zig/lib/std/json
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
..
dynamic.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
dynamic_test.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
hashmap.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
hashmap_test.zig std.json: update to new I/O API 2025-07-19 16:05:01 -07:00
JSONTestSuite_test.zig x86_64: fix behavior of getValue 2023-10-26 21:45:58 -04:00
Scanner.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
scanner_test.zig std.json: delete test tightly coupled to ArrayList growth 2025-09-20 14:38:01 -07:00
static.zig coerce vectors to arrays rather than inline for 2025-09-20 18:33:00 -07:00
static_test.zig std.json: delete test tightly coupled to ArrayList growth 2025-09-20 14:38:01 -07:00
Stringify.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
test.zig std.json: update to new I/O API 2025-07-19 16:05:01 -07:00