diff options
author | Julien Dessaux | 2022-06-12 21:47:52 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-06-12 21:47:52 +0200 |
commit | f7a5e4f52c529a74ca0e4ec5a269c4d594990802 (patch) | |
tree | e15a2d8c22aae7efba67904048a121aa1e8cc7e3 /src/defaultIO.zig | |
parent | Implemented basic cli (diff) | |
download | zigfunge98-f7a5e4f52c529a74ca0e4ec5a269c4d594990802.tar.gz zigfunge98-f7a5e4f52c529a74ca0e4ec5a269c4d594990802.tar.bz2 zigfunge98-f7a5e4f52c529a74ca0e4ec5a269c4d594990802.zip |
Refactored io functions handling
Diffstat (limited to '')
-rw-r--r-- | src/defaultIO.zig | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/defaultIO.zig b/src/defaultIO.zig deleted file mode 100644 index 9da4ad2..0000000 --- a/src/defaultIO.zig +++ /dev/null @@ -1,30 +0,0 @@ -const std = @import("std"); - -pub const IOErrors = error{ - IOError, - NotImplemented, -}; - -pub fn characterInput() IOErrors!i64 { - // TODO - return error.NotImplemented; -} - -pub fn decimalInput() IOErrors!i64 { - // TODO - return error.NotImplemented; -} - -pub fn characterOutput(v: i64) IOErrors!void { - std.debug.print("{c}", .{@intCast(u8, v)}); - return; -} - -pub fn decimalOutput(v: i64) IOErrors!void { - std.debug.print("{d}", .{v}); - return; -} - -test "all" { - std.testing.refAllDecls(@This()); -} |