diff options
| author | 2025-11-08 19:59:08 +1100 | |
|---|---|---|
| committer | 2025-11-08 19:59:08 +1100 | |
| commit | 2f02c3b16c073d0bd3d9368a66ce272a574f75a3 (patch) | |
| tree | 8b3f9062edde82724c73147abf42143a885640fc /codegen/compat.zig | |
| parent | Embed data files in scripts rather than relying on filesystem access for easi... (diff) | |
| download | zg-2f02c3b16c073d0bd3d9368a66ce272a574f75a3.tar.gz zg-2f02c3b16c073d0bd3d9368a66ce272a574f75a3.tar.xz zg-2f02c3b16c073d0bd3d9368a66ce272a574f75a3.zip | |
Use takeDelimiterInclusive to support Zig 0.15.2
Diffstat (limited to 'codegen/compat.zig')
| -rw-r--r-- | codegen/compat.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/codegen/compat.zig b/codegen/compat.zig index 0a06c44..debb83d 100644 --- a/codegen/compat.zig +++ b/codegen/compat.zig | |||
| @@ -21,7 +21,8 @@ pub fn main() anyerror!void { | |||
| 21 | 21 | ||
| 22 | const endian = builtin.cpu.arch.endian(); | 22 | const endian = builtin.cpu.arch.endian(); |
| 23 | 23 | ||
| 24 | lines: while (in_reader.takeDelimiterExclusive('\n')) |line| { | 24 | lines: while (in_reader.takeDelimiterInclusive('\n')) |took| { |
| 25 | const line = std.mem.trimRight(u8, took, "\n"); | ||
| 25 | if (line.len == 0) continue; | 26 | if (line.len == 0) continue; |
| 26 | 27 | ||
| 27 | var field_iter = std.mem.splitScalar(u8, line, ';'); | 28 | var field_iter = std.mem.splitScalar(u8, line, ';'); |