aboutsummaryrefslogtreecommitdiff
path: root/src/allocators.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-29 02:42:56 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-29 02:42:56 -0800
commitb631ea7d725a42954c577ea686ae711ef04f63e1 (patch)
tree37852a650a0ec02fd6042919dc476c7dab550529 /src/allocators.zig
parent7b59d9d97c4d4543d8fe2a2222781d7b89539fc2 (diff)
downloadbun-b631ea7d725a42954c577ea686ae711ef04f63e1.tar.gz
bun-b631ea7d725a42954c577ea686ae711ef04f63e1.tar.zst
bun-b631ea7d725a42954c577ea686ae711ef04f63e1.zip
import everything from "bun" where possible
Diffstat (limited to 'src/allocators.zig')
-rw-r--r--src/allocators.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/allocators.zig b/src/allocators.zig
index e5f990fef..4d300c0eb 100644
--- a/src/allocators.zig
+++ b/src/allocators.zig
@@ -4,8 +4,8 @@ const FeatureFlags = @import("./feature_flags.zig");
const Environment = @import("./env.zig");
const Wyhash = std.hash.Wyhash;
const FixedBufferAllocator = std.heap.FixedBufferAllocator;
-const constStrToU8 = @import("./global.zig").constStrToU8;
-const bun = @import("./global.zig");
+const constStrToU8 = @import("bun").constStrToU8;
+const bun = @import("bun");
pub fn isSliceInBuffer(slice: anytype, buffer: anytype) bool {
return (@ptrToInt(&buffer) <= @ptrToInt(slice.ptr) and (@ptrToInt(slice.ptr) + slice.len) <= (@ptrToInt(buffer) + buffer.len));
}
@@ -75,7 +75,7 @@ fn OverflowGroup(comptime Block: type) type {
// ...right?
const max = 4095;
const UsedSize = std.math.IntFittingRange(0, max + 1);
- const default_allocator = @import("./global.zig").default_allocator;
+ const default_allocator = @import("bun").default_allocator;
used: UsedSize = 0,
allocated: UsedSize = 0,
ptrs: [max]*Block = undefined,