Updates for latest Zig
This commit is contained in:
parent
3eed376140
commit
1673ed636a
1 changed files with 3 additions and 9 deletions
|
|
@ -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().?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue