zig/lib/std/zig
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
..
Ast std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
c_translation zig fmt 2025-09-24 20:01:19 -07:00
llvm llvm.Builder: allow Metadata to reference metadata strings 2025-10-07 07:49:54 -04:00
system fix miscellaneous compilation failures 2025-10-29 06:20:50 -07:00
Ast.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
AstGen.zig forbid trivial local address returned from functions (#25333) 2025-09-23 23:37:53 +00:00
AstRlAnnotate.zig AstGen: forward result type through unary float builtins 2025-08-28 15:46:12 +01:00
BuiltinFn.zig remove async and await keywords 2025-07-07 13:39:16 -07:00
Client.zig fuzzing: implement limited fuzzing 2025-09-24 12:46:48 +02:00
ErrorBundle.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
LibCDirs.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
LibCInstallation.zig std: accessZ -> access 2025-10-29 06:20:50 -07:00
llvm.zig std.zig: finish updating to new I/O API 2025-07-19 19:57:37 -07:00
number_literal.zig Make 0e.0 and 0xp0 not crash 2024-07-03 02:53:37 -04:00
Parse.zig langref: sync with zig-spec grammar.peg 2025-08-21 17:12:38 +02:00
parser_test.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
perf_test.zig std.zig: finish updating to new I/O API 2025-07-19 19:57:37 -07:00
primitives.zig ComptimeStringMap: return a regular struct and optimize 2024-04-22 15:31:41 -07:00
Server.zig std.Build.Step.Run: many enhancements 2025-10-18 09:28:41 +01:00
string_literal.zig std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
system.zig std.zig.system: fix error set of abiAndDynamicLinkerFromFile 2025-10-29 06:20:51 -07:00
target.zig chore: make std.zig.target.intByteSize return an u16 2025-10-27 11:13:25 +01:00
tokenizer.zig add some new fuzz tests 2025-09-18 18:56:18 -04:00
WindowsSdk.zig rework std.Io.Writer.Allocating to support runtime-known alignment 2025-08-30 00:48:50 -07:00
Zir.zig frontend: replace elem_val_node with elem_ptr_load 2025-09-20 18:33:00 -07:00
Zoir.zig std.zig.Ast: improve type safety 2025-03-07 22:22:01 +01:00
ZonGen.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00