aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/ConfigHeader.zig
diff options
context:
space:
mode:
authorIan Johnson <ian@ianjohnson.dev>2023-10-27 20:29:17 -0400
committerIan Johnson <ian@ianjohnson.dev>2024-01-29 19:02:18 -0500
commitcc25756b3f33578774b557bdf09dcc9e918c1e5a (patch)
treee713795cfeaa0674321003bf2b6d7d847cf6a89c /lib/std/Build/Step/ConfigHeader.zig
parente392c1a0b33e69156c36234e6584be306caf16ef (diff)
downloadzig-cc25756b3f33578774b557bdf09dcc9e918c1e5a.tar.gz
zig-cc25756b3f33578774b557bdf09dcc9e918c1e5a.zip
Eliminate generic duplication in `allocPrint`
Since `bufPrint` and `count` both control the writers used internally, they can leverage type-erased writers while maintaining correct error handling. This reduces generic instantiations when using `allocPrint`, which calls both `count` and `bufPrint` internally.
Diffstat (limited to 'lib/std/Build/Step/ConfigHeader.zig')
0 files changed, 0 insertions, 0 deletions