From 9d802c755c22f8612b6933da99998e7ddae14886 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 3 May 2026 15:25:50 +0900 Subject: update zig to 0.16 --- src/jq/execute.zig | 4 ++-- src/jq/saveable_stack.zig | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/jq') diff --git a/src/jq/execute.zig b/src/jq/execute.zig index cee7845..30dabe1 100644 --- a/src/jq/execute.zig +++ b/src/jq/execute.zig @@ -156,11 +156,11 @@ pub const Runtime = struct { return .{ .allocator = allocator, .values = try ValueStack.init(allocator), - .forks = .{}, + .forks = .empty, .instrs = &[_]Instr{}, .pc = 0, .constants = constants, - .variables = .{}, + .variables = .empty, }; } diff --git a/src/jq/saveable_stack.zig b/src/jq/saveable_stack.zig index f3a0b40..6bf2c77 100644 --- a/src/jq/saveable_stack.zig +++ b/src/jq/saveable_stack.zig @@ -67,9 +67,9 @@ pub fn SaveableStack(comptime T: type) type { pub fn init(allocator: std.mem.Allocator) !Self { var stack = Self{ - .segments = .{}, + .segments = .empty, .active_segment_index = 0, - .savepoints = .{}, + .savepoints = .empty, .allocator = allocator, }; -- cgit v1.3.1