From 06468c1272035fcacf6d46a80b5738b55cffae38 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 22 Nov 2024 09:27:23 +0100 Subject: zig 0.12 and 0.13 changes --- src/main.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 381a6cb..5872724 100644 --- a/src/main.zig +++ b/src/main.zig @@ -5,11 +5,11 @@ const io = @import("io.zig"); pub fn main() anyerror!void { var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){}; const gpa = general_purpose_allocator.allocator(); - var args = try std.process.argsAlloc(gpa); + const args = try std.process.argsAlloc(gpa); defer std.process.argsFree(gpa, args); if (args.len < 2) { std.debug.print("Usage: {s} \n", .{args[0]}); - std.os.exit(1); + std.posix.exit(1); } var file = try std.fs.cwd().openFile(args[1], .{}); @@ -20,7 +20,7 @@ pub fn main() anyerror!void { defer i.deinit(); var ioContext = io.context(std.io.getStdIn().reader(), std.io.getStdOut().writer()); - std.os.exit(@intCast(try i.run(&ioContext))); + std.posix.exit(@intCast(try i.run(&ioContext))); } const testTimestamp: i64 = 1660681247; -- cgit v1.2.3