Updates for latest Zig

This commit is contained in:
Mason Remaley 2026-03-18 00:09:04 -07:00
parent 3eed376140
commit 1673ed636a

View file

@ -174,18 +174,12 @@ const Header = struct {
}; };
}; };
pub fn main(init: std.process.Init.Minimal) !void { pub fn main(init: std.process.Init) !void {
// Allocator and command line args const allocator = init.gpa;
var gpa = std.heap.GeneralPurposeAllocator(.{
.thread_safe = false,
}){};
defer std.debug.assert(gpa.deinit() == .ok);
const allocator = gpa.allocator();
var threaded_io: Io.Threaded = .init_single_threaded; var threaded_io: Io.Threaded = .init_single_threaded;
const io = threaded_io.io(); const io = threaded_io.io();
var args = try init.args.iterateAllocator(allocator); var args = try init.minimal.args.iterateAllocator(allocator);
defer args.deinit(); defer args.deinit();
std.debug.assert(args.skip()); std.debug.assert(args.skip());
const in_path = args.next().?; const in_path = args.next().?;