diff options
author | 2022-03-08 18:54:54 -0800 | |
---|---|---|
committer | 2022-03-08 18:54:54 -0800 | |
commit | 701d6ec45d7e339b352b37869bd2a7d4849b35fb (patch) | |
tree | a88a0b03a2e644d5e1bd51eb609526b75f78ef53 /misctools | |
parent | 787769ac3912fce6d1ffdbd384f19b800e133362 (diff) | |
download | bun-701d6ec45d7e339b352b37869bd2a7d4849b35fb.tar.gz bun-701d6ec45d7e339b352b37869bd2a7d4849b35fb.tar.zst bun-701d6ec45d7e339b352b37869bd2a7d4849b35fb.zip |
rename _global -> bun
Diffstat (limited to 'misctools')
-rw-r--r-- | misctools/features.zig | 20 | ||||
-rw-r--r-- | misctools/fetch.zig | 24 | ||||
-rw-r--r-- | misctools/http_bench.zig | 24 | ||||
-rw-r--r-- | misctools/readlink-getfd.zig | 24 | ||||
-rw-r--r-- | misctools/readlink-realpath.zig | 22 | ||||
-rw-r--r-- | misctools/tgz.zig | 22 |
6 files changed, 68 insertions, 68 deletions
diff --git a/misctools/features.zig b/misctools/features.zig index 6e1aa7a3e..e2af60cb8 100644 --- a/misctools/features.zig +++ b/misctools/features.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; const Features = @import("../src/analytics/analytics_thread.zig").Features; // zig run --main-pkg-path ../ ./features.zig diff --git a/misctools/fetch.zig b/misctools/fetch.zig index 236639c76..62c66b9c3 100644 --- a/misctools/fetch.zig +++ b/misctools/fetch.zig @@ -1,14 +1,14 @@ const std = @import("std"); -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; const clap = @import("../src/deps/zig-clap/clap.zig"); const URL = @import("../src/query_string_map.zig").URL; @@ -60,8 +60,8 @@ const MethodNames = std.ComptimeStringMap(Method, .{ .{ "head", Method.HEAD }, }); -var file_path_buf: [_global.MAX_PATH_BYTES + 1]u8 = undefined; -var cwd_buf: [_global.MAX_PATH_BYTES + 1]u8 = undefined; +var file_path_buf: [bun.MAX_PATH_BYTES + 1]u8 = undefined; +var cwd_buf: [bun.MAX_PATH_BYTES + 1]u8 = undefined; pub const Arguments = struct { url: URL, diff --git a/misctools/http_bench.zig b/misctools/http_bench.zig index c6f1fe1f1..5a5dee7bd 100644 --- a/misctools/http_bench.zig +++ b/misctools/http_bench.zig @@ -1,14 +1,14 @@ const std = @import("std"); -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; const clap = @import("../src/deps/zig-clap/clap.zig"); const URL = @import("../src/query_string_map.zig").URL; @@ -63,8 +63,8 @@ const MethodNames = std.ComptimeStringMap(Method, .{ .{ "head", Method.HEAD }, }); -var file_path_buf: [_global.MAX_PATH_BYTES + 1]u8 = undefined; -var cwd_buf: [_global.MAX_PATH_BYTES + 1]u8 = undefined; +var file_path_buf: [bun.MAX_PATH_BYTES + 1]u8 = undefined; +var cwd_buf: [bun.MAX_PATH_BYTES + 1]u8 = undefined; pub const Arguments = struct { url: URL, 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, diff --git a/misctools/readlink-realpath.zig b/misctools/readlink-realpath.zig index bc8b604de..f683f986c 100644 --- a/misctools/readlink-realpath.zig +++ b/misctools/readlink-realpath.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 { @@ -27,7 +27,7 @@ pub fn main() anyerror!void { var args = std.mem.span(try std.process.argsAlloc(allocator)); const to_resolve = args[args.len - 1]; - var out_buffer: [_global.MAX_PATH_BYTES]u8 = undefined; + var out_buffer: [bun.MAX_PATH_BYTES]u8 = undefined; var path: []u8 = undefined; var j: usize = 0; diff --git a/misctools/tgz.zig b/misctools/tgz.zig index 33e7f657d..c423b9d9a 100644 --- a/misctools/tgz.zig +++ b/misctools/tgz.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; const Archive = @import("../src/libarchive/libarchive.zig").Archive; const Zlib = @import("../src/zlib.zig"); @@ -38,7 +38,7 @@ pub fn main() anyerror!void { std.os.abort(); } - var tarball_path_buf: [_global.MAX_PATH_BYTES]u8 = undefined; + var tarball_path_buf: [bun.MAX_PATH_BYTES]u8 = undefined; var basename = std.fs.path.basename(std.mem.span(args[args.len - 1])); while (RecognizedExtensions.has(std.fs.path.extension(basename))) { basename = basename[0 .. basename.len - std.fs.path.extension(basename).len]; |