From 55d86077d5acb952ed6a5693c216ea32b0878cce Mon Sep 17 00:00:00 2001 From: Jan Philipp Hafer Date: Thu, 29 Aug 2024 22:53:24 +0200 Subject: [PATCH] fixups for zig master 0.14.0-dev.5464+e9a00ba7f --- src/main.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.zig b/src/main.zig index fa81789..5942070 100644 --- a/src/main.zig +++ b/src/main.zig @@ -154,7 +154,7 @@ fn checkOnly(comptime enc: Encoding, arena: mem.Allocator, args: [][:0]u8) !u8 { if (mem.eql(u8, args[i], "-c")) // skip -c continue; const root_path = args[i]; - var it = mem.tokenize(u8, root_path, &[_]u8{fs.path.sep}); + var it = mem.tokenizeAny(u8, root_path, &[_]u8{fs.path.sep}); skipItIfWindows(&it); while (it.next()) |entry| { std.debug.assert(entry.len > 0); @@ -439,7 +439,7 @@ fn writeOutput(comptime mode: Mode, file: *const fs.File, arena: mem.Allocator, var found_newline = false; // unused for ShellOutputAscii, ShellOutput // tmp data for realpath(), never to be references otherwise - var tmp_buf: [fs.MAX_PATH_BYTES]u8 = undefined; + var tmp_buf: [fs.max_path_bytes]u8 = undefined; const cwd = try process.getCwdAlloc(arena); // windows compatibility defer arena.free(cwd); @@ -461,7 +461,7 @@ fn writeOutput(comptime mode: Mode, file: *const fs.File, arena: mem.Allocator, // ensure that super path does not contain any // control characters, that might get printed later const real_path = try fs.realpath(root_path, &tmp_buf); - var it = mem.tokenize(u8, root_path, &[_]u8{fs.path.sep}); + var it = mem.tokenizeAny(u8, root_path, &[_]u8{fs.path.sep}); skipItIfWindows(&it); while (it.next()) |entry| { std.debug.assert(entry.len > 0);