diff options
author | Julien Dessaux | 2022-12-01 22:46:01 +0100 |
---|---|---|
committer | Julien Dessaux | 2022-12-01 23:00:42 +0100 |
commit | 860ebc4fd45e3d9865d95e80d3d80d5dd10c12bf (patch) | |
tree | 9a9f9f39ecc0abd9aa5ac801c5bb1ebdcc7c0b7d /src/main.zig | |
parent | Update compiler flags (diff) | |
download | zigfunge98-860ebc4fd45e3d9865d95e80d3d80d5dd10c12bf.tar.gz zigfunge98-860ebc4fd45e3d9865d95e80d3d80d5dd10c12bf.tar.bz2 zigfunge98-860ebc4fd45e3d9865d95e80d3d80d5dd10c12bf.zip |
Fixed bugs from zig 0.10 upgrade (some real!)
Diffstat (limited to '')
-rw-r--r-- | src/main.zig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index 4830f45..7337100 100644 --- a/src/main.zig +++ b/src/main.zig @@ -16,16 +16,15 @@ pub fn main() anyerror!void { defer file.close(); const env: []const [*:0]const u8 = std.os.environ; - var i = try interpreter.Interpreter.init(gpa.allocator(), file.reader(), std.time.timestamp, args, env[0..]); + var i = try interpreter.Interpreter.init(gpa.allocator(), file.reader(), null, args, env[0..]); defer i.deinit(); var ioContext = io.context(std.io.getStdIn().reader(), std.io.getStdOut().writer()); std.os.exit(@intCast(u8, try i.run(&ioContext))); } -fn testTimestamp() i64 { - return 1660681247; -} +const testTimestamp: i64 = 1660681247; + test "all" { std.testing.refAllDecls(@This()); } |