diff options
Diffstat (limited to 'vendor/libghostty-vt/src/unicode/props_uucode.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/unicode/props_uucode.zig | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vendor/libghostty-vt/src/unicode/props_uucode.zig b/vendor/libghostty-vt/src/unicode/props_uucode.zig index 527a757e..211d1ac3 100644 --- a/vendor/libghostty-vt/src/unicode/props_uucode.zig +++ b/vendor/libghostty-vt/src/unicode/props_uucode.zig @@ -22,10 +22,8 @@ pub fn get(cp: u21) Properties { } /// Runnable binary to generate the lookup tables and output to stdout. -pub fn main() !void { - var arena_state = std.heap.ArenaAllocator.init(std.heap.page_allocator); - defer arena_state.deinit(); - const alloc = arena_state.allocator(); +pub fn main(init: std.process.Init) !void { + const alloc = init.arena.allocator(); const gen: lut.Generator( Properties, @@ -48,7 +46,7 @@ pub fn main() !void { defer alloc.free(t.stage3); var buf: [4096]u8 = undefined; - var stdout = std.fs.File.stdout().writer(&buf); + var stdout = std.Io.File.stdout().writer(init.io, &buf); try t.writeZig(&stdout.interface); // Use flush instead of end because stdout is a pipe when captured by // the build system, and pipes cannot be truncated (Windows returns |
