diff options
| author | 2024-03-31 09:59:51 -0400 | |
|---|---|---|
| committer | 2024-03-31 09:59:51 -0400 | |
| commit | 200c617c865a5952f0bd12378802cc06ea3eb1c2 (patch) | |
| tree | 2af456d4c62a08330cf961e7237f083fc4566370 /codegen/gencat.zig | |
| parent | Split out Unicode tests to separate file (diff) | |
| download | zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.tar.gz zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.tar.xz zg-200c617c865a5952f0bd12378802cc06ea3eb1c2.zip | |
Updated README
Diffstat (limited to 'codegen/gencat.zig')
| -rw-r--r-- | codegen/gencat.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/codegen/gencat.zig b/codegen/gencat.zig index a7713e6..fe06bd7 100644 --- a/codegen/gencat.zig +++ b/codegen/gencat.zig | |||
| @@ -151,11 +151,10 @@ pub fn main() !void { | |||
| 151 | _ = args_iter.skip(); | 151 | _ = args_iter.skip(); |
| 152 | const output_path = args_iter.next() orelse @panic("No output file arg!"); | 152 | const output_path = args_iter.next() orelse @panic("No output file arg!"); |
| 153 | 153 | ||
| 154 | const compressor = std.compress.deflate.compressor; | 154 | const compressor = std.compress.flate.deflate.compressor; |
| 155 | var out_file = try std.fs.cwd().createFile(output_path, .{}); | 155 | var out_file = try std.fs.cwd().createFile(output_path, .{}); |
| 156 | defer out_file.close(); | 156 | defer out_file.close(); |
| 157 | var out_comp = try compressor(allocator, out_file.writer(), .{ .level = .best_compression }); | 157 | var out_comp = try compressor(.raw, out_file.writer(), .{ .level = .best }); |
| 158 | defer out_comp.deinit(); | ||
| 159 | const writer = out_comp.writer(); | 158 | const writer = out_comp.writer(); |
| 160 | 159 | ||
| 161 | const endian = builtin.cpu.arch.endian(); | 160 | const endian = builtin.cpu.arch.endian(); |