resinator: fix compile errors

This commit is contained in:
Andrew Kelley 2025-09-24 20:35:01 -07:00
parent d83c76eb5a
commit 41e5331c08
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ pub fn main() !void {
try stdout.flush(); 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 => { error.GeneratedSourceError => {
try error_handler.emitAroDiagnostics(allocator, "failed during preprocessor setup (this is always a bug)", &comp); try error_handler.emitAroDiagnostics(allocator, "failed during preprocessor setup (this is always a bug)", &comp);
std.process.exit(1); std.process.exit(1);

View File

@ -37,7 +37,7 @@ pub fn preprocess(
error.FatalError => return error.GeneratedSourceError, error.FatalError => return error.GeneratedSourceError,
else => |e| return e, else => |e| return e,
}; };
const user_macros = comp.addSourceFromBuffer("<command line>", macro_buf.written()) catch |err| switch (err) { const user_macros = comp.addSourceFromBuffer("<command line>", macro_buf.items) catch |err| switch (err) {
error.FatalError => return error.GeneratedSourceError, error.FatalError => return error.GeneratedSourceError,
else => |e| return e, else => |e| return e,
}; };