zig/lib/compiler/resinator
Matthew Lugg 74931fe25c
std.debug.lockStderrWriter: also return ttyconf
`std.Io.tty.Config.detect` may be an expensive check (e.g. involving
syscalls), and doing it every time we need to print isn't really
necessary; under normal usage, we can compute the value once and cache
it for the whole program's execution. Since anyone outputting to stderr
may reasonably want this information (in fact they are very likely to),
it makes sense to cache it and return it from `lockStderrWriter`. Call
sites who do not need it will experience no significant overhead, and
can just ignore the TTY config with a `const w, _` destructure.
2025-10-30 09:31:28 +00:00
..
ani.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
ast.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
bmp.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
cli.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
code_pages.zig resinator: Sync with upstream 2025-01-17 23:10:41 -08:00
comments.zig resinator: Sync with upstream 2025-01-17 23:10:41 -08:00
compile.zig resinator: update for new Io APIs 2025-10-29 06:20:50 -07:00
cvtres.zig resinator: update for new Io APIs 2025-10-29 06:20:50 -07:00
disjoint_code_page.zig resinator: Sync with upstream 2025-01-17 23:10:41 -08:00
errors.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
ico.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
lang.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
lex.zig std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
literals.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
main.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
parse.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
preprocess.zig resinator: Sync with upstream, fix an alignment problem 2025-10-01 07:48:33 -07:00
rc.zig resinator: Sync with upstream 2025-01-17 23:10:41 -08:00
res.zig std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
source_mapping.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00
utils.zig resinator: update for new Io APIs 2025-10-29 06:20:50 -07:00
windows1252.zig resinator: Complete the update to the new Reader/Writer 2025-08-28 18:30:57 -07:00