diff options
Diffstat (limited to 'misctools/readlink-getfd.zig')
-rw-r--r-- | misctools/readlink-getfd.zig | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/misctools/readlink-getfd.zig b/misctools/readlink-getfd.zig index 340bf9c53..c8faa8a82 100644 --- a/misctools/readlink-getfd.zig +++ b/misctools/readlink-getfd.zig @@ -1,16 +1,16 @@ const std = @import("std"); const path_handler = @import("../src/resolver/resolve_path.zig"); -const _global = @import("../src/global.zig"); -const string = _global.string; -const Output = _global.Output; -const Global = _global.Global; -const Environment = _global.Environment; -const strings = _global.strings; -const MutableString = _global.MutableString; -const stringZ = _global.stringZ; -const default_allocator = _global.default_allocator; -const C = _global.C; +const bun = @import("../src/global.zig"); +const string = bun.string; +const Output = bun.Output; +const Global = bun.Global; +const Environment = bun.Environment; +const strings = bun.strings; +const MutableString = bun.MutableString; +const stringZ = bun.stringZ; +const default_allocator = bun.default_allocator; +const C = bun.C; // zig build-exe -Drelease-fast --main-pkg-path ../ ./readlink-getfd.zig pub fn main() anyerror!void { @@ -29,12 +29,12 @@ pub fn main() anyerror!void { const to_resolve = args[args.len - 1]; const cwd = try std.process.getCwdAlloc(allocator); var path: []u8 = undefined; - var out_buffer: [_global.MAX_PATH_BYTES]u8 = undefined; + var out_buffer: [bun.MAX_PATH_BYTES]u8 = undefined; var j: usize = 0; while (j < 1000) : (j += 1) { var parts = [1][]const u8{std.mem.span(to_resolve)}; - var joined_buf: [_global.MAX_PATH_BYTES]u8 = undefined; + var joined_buf: [bun.MAX_PATH_BYTES]u8 = undefined; var joined = path_handler.joinAbsStringBuf( cwd, &joined_buf, |