From e2a17344dc543c9c652cfe2b14cd2709dd6cfd22 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 28 Aug 2023 04:39:16 -0700 Subject: just kernel32 things (#4354) * just kernel32 things * more * Update linux_c.zig * Update windows_c.zig * Add workaround Workaround https://github.com/ziglang/zig/issues/16980 * Rename http.zig to bun_dev_http_server.zig * Rename usages * more * more * more * thanks tigerbeetle * Rename `JSC.Node.Syscall` -> `bun.sys` * more * woops * more! * hmm * it says there are only 37 errors, but that's not true * populate argv * it says 32 errors! * 24 errors * fix regular build * 12 left! * Still 12 left! * more * 2 errors left... * 1 more error * Add link to Tigerbeetle * Fix the remainign error * Fix test timeout * Update syscall.zig --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/string_mutable.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string_mutable.zig') diff --git a/src/string_mutable.zig b/src/string_mutable.zig index e0734574f..c6ac943f6 100644 --- a/src/string_mutable.zig +++ b/src/string_mutable.zig @@ -14,7 +14,7 @@ pub const MutableString = struct { allocator: std.mem.Allocator, list: std.ArrayListUnmanaged(u8), - pub fn init2048(allocator: std.mem.Allocator) !MutableString { + pub fn init2048(allocator: std.mem.Allocator) std.mem.Allocator.Error!MutableString { return MutableString.init(allocator, 2048); } @@ -53,7 +53,7 @@ pub const MutableString = struct { return BufferedWriter{ .context = self }; } - pub fn init(allocator: std.mem.Allocator, capacity: usize) !MutableString { + pub fn init(allocator: std.mem.Allocator, capacity: usize) std.mem.Allocator.Error!MutableString { return MutableString{ .allocator = allocator, .list = if (capacity > 0) try std.ArrayListUnmanaged(u8).initCapacity(allocator, capacity) else -- cgit v1.2.3