diff options
author | 2023-08-25 07:13:14 +0800 | |
---|---|---|
committer | 2023-08-24 16:13:14 -0700 | |
commit | 19aa9d93de0971513b1ff94ab72b54c7c2031dda (patch) | |
tree | a6c6fcef14562ea9bdcfd0779ee420cd9e6439cc /src/api | |
parent | 55eb4ffe8fc8708d5a44c53fe75026a03f0a4de8 (diff) | |
download | bun-19aa9d93de0971513b1ff94ab72b54c7c2031dda.tar.gz bun-19aa9d93de0971513b1ff94ab72b54c7c2031dda.tar.zst bun-19aa9d93de0971513b1ff94ab72b54c7c2031dda.zip |
update zig to 0.11.0 (#4233)
* WIP
* backup
* more change
* json related error sovled
* number related issue solved
* revert WriterType changed before
* destroy -> free
* jsonStringify related issues solved
* fix mem.free expected []T or *[_]T, passed [*]const u8
* fix expected []T or *[_]T, passed [*:0]const u8
* fix build script
* fix build script, for real
* replace 0.11.0-dev.4006+bf827d0b5 to 0.12.0-dev.161+6a5463951
* fix build on macOS, COPYFILE.DATA -> COPYFILE_DATA
* fix the last destroy on [*]ptr issue
---------
Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com>
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/schema.zig | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/api/schema.zig b/src/api/schema.zig index ae63af87a..f3141a1b5 100644 --- a/src/api/schema.zig +++ b/src/api/schema.zig @@ -373,8 +373,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -391,8 +391,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -418,8 +418,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -648,8 +648,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -799,8 +799,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -820,8 +820,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -838,8 +838,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -856,8 +856,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -1124,8 +1124,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -1139,8 +1139,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -1246,8 +1246,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -1953,8 +1953,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -2185,8 +2185,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -2200,8 +2200,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -2271,8 +2271,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -2478,8 +2478,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -2511,8 +2511,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -2529,8 +2529,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; @@ -3147,8 +3147,8 @@ pub const Api = struct { _, - pub fn jsonStringify(self: *const @This(), opts: anytype, o: anytype) !void { - return try std.json.stringify(@tagName(self), opts, o); + pub fn jsonStringify(self: *const @This(), writer: anytype) !void { + return try writer.write(@tagName(self)); } }; |