From 41e5331c084b4ca75eae2d0a7f668b244a22f8d1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 24 Sep 2025 20:35:01 -0700 Subject: [PATCH] resinator: fix compile errors --- lib/compiler/resinator/main.zig | 2 +- lib/compiler/resinator/preprocess.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler/resinator/main.zig b/lib/compiler/resinator/main.zig index 4faf3feb02b171587cb1ce863c374b2cfa262e6a..08e6f7d4ce1247a5ac9101fa8fd27bc171afe0b0 100644 --- a/lib/compiler/resinator/main.zig +++ b/lib/compiler/resinator/main.zig @@ -156,7 +156,7 @@ pub fn main() !void { try stdout.flush(); } - preprocess.preprocess(&comp, &preprocessed_buf.writer, argv.items, maybe_dependencies_list) catch |err| switch (err) { + preprocess.preprocess(&comp, &preprocessed_buf.writer, argv.items, maybe_dependencies) catch |err| switch (err) { error.GeneratedSourceError => { try error_handler.emitAroDiagnostics(allocator, "failed during preprocessor setup (this is always a bug)", &comp); std.process.exit(1); diff --git a/lib/compiler/resinator/preprocess.zig b/lib/compiler/resinator/preprocess.zig index 2a5dfd9f63a3d34172ba04ffd163f30dcdbf1564..97b320d50d7017b0dfc75b8f934f1617314b2c34 100644 --- a/lib/compiler/resinator/preprocess.zig +++ b/lib/compiler/resinator/preprocess.zig @@ -37,7 +37,7 @@ pub fn preprocess( error.FatalError => return error.GeneratedSourceError, else => |e| return e, }; - const user_macros = comp.addSourceFromBuffer("", macro_buf.written()) catch |err| switch (err) { + const user_macros = comp.addSourceFromBuffer("", macro_buf.items) catch |err| switch (err) { error.FatalError => return error.GeneratedSourceError, else => |e| return e, }; -- 2.54.0