fn dupePathInner(arena: Allocator, bytes: []const u8) []const u8
arena: Allocator
bytes: []const u8
148 149 150 151 152 153
fn dupePathInner(arena: Allocator, bytes: []const u8) []const u8 { if (builtin.os.tag != .windows) return arena.dupe(u8, bytes) catch @panic("OOM"); const the_copy = arena.dupe(u8, bytes) catch @panic("OOM"); mem.replaceScalar(u8, the_copy, '/', '\\'); return the_copy; }