Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const builtin = @import("builtin");
const zls_version = std.SemanticVersion{ .major = 0, .minor = 12, .patch = 0 };

/// document the latest breaking change that caused a change to the string below:
/// build/LazyPath: Add dirname (#18371)
const min_zig_string = "0.12.0-dev.2046+d3a163f86";
/// std.heap: add runtime safety for calling `stackFallback(N).get` multiple times
const min_zig_string = "0.12.0-dev.2138+828d23956";

const Build = blk: {
const current_zig = builtin.zig_version;
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/translate_c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ pub fn convertCInclude(allocator: std.mem.Allocator, tree: Ast, node: Ast.Node.I
var output = std.ArrayListUnmanaged(u8){};
errdefer output.deinit(allocator);

var stack_allocator = std.heap.stackFallback(512, allocator);

var buffer: [2]Ast.Node.Index = undefined;
for (ast.builtinCallParams(tree, node, &buffer).?) |child| {
var stack_allocator = std.heap.stackFallback(512, allocator);
try convertCIncludeInternal(allocator, stack_allocator.get(), tree, child, &output);
}

Expand Down