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 {
|
||||
// Allocator and command line args
|
||||
var gpa = std.heap.GeneralPurposeAllocator(.{
|
||||
.thread_safe = false,
|
||||
}){};
|
||||
defer std.debug.assert(gpa.deinit() == .ok);
|
||||
const allocator = gpa.allocator();
|
||||
|
||||
pub fn main(init: std.process.Init) !void {
|
||||
const allocator = init.gpa;
|
||||
var threaded_io: Io.Threaded = .init_single_threaded;
|
||||
const io = threaded_io.io();
|
||||
|
||||
var args = try init.args.iterateAllocator(allocator);
|
||||
var args = try init.minimal.args.iterateAllocator(allocator);
|
||||
defer args.deinit();
|
||||
std.debug.assert(args.skip());
|
||||
const in_path = args.next().?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue