mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Build.ConfigHeader: render identifiers
This commit is contained in:
parent
77dd64b5f4
commit
7ab306d1f7
@ -546,9 +546,9 @@ fn replace_variables(
|
||||
allocator.free(content_buf);
|
||||
content_buf = buf;
|
||||
},
|
||||
.string => |string| {
|
||||
const buf = try std.fmt.allocPrint(allocator, "{s}{s}{s}", .{ beginline, string, endline });
|
||||
last_index = start_index + string.len + 1;
|
||||
.string, .ident => |x| {
|
||||
const buf = try std.fmt.allocPrint(allocator, "{s}{s}{s}", .{ beginline, x, endline });
|
||||
last_index = start_index + x.len + 1;
|
||||
|
||||
allocator.free(content_buf);
|
||||
content_buf = buf;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user