aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-07-06 15:51:44 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-07-07 22:43:53 -0700
commit7e2a26c0c441a902968726442114e3590820433b (patch)
tree90035e47e0208afa7d1bcd3484e30d22d2a24f4e /src/codegen
parent5378fdb153bc76990105e3640e7725e434e8cdee (diff)
downloadzig-7e2a26c0c441a902968726442114e3590820433b.tar.gz
zig-7e2a26c0c441a902968726442114e3590820433b.zip
std.io.Writer.printValue: rework logic
Alignment and fill options only apply to numbers. Rework the implementation to mainly branch on the format string rather than the type information. This is more straightforward to maintain and more straightforward for comptime evaluation. Enums support being printed as decimal, hexadecimal, octal, and binary. `formatInteger` is another possible format method that is unconditionally called when the value type is struct and one of the integer-printing format specifiers are used.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions