hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit ee84a84873a304f7848b78b9d4aebfa75f80643f
parent 1f9ddbb6523ae1cc287ada78d3fe4429002f69e3
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  1 Feb 2021 10:08:24 -0500

io: add io::mode

Diffstat:
Mio/types.ha | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/io/types.ha b/io/types.ha @@ -22,6 +22,12 @@ export fn errstr(err: error) str = { }; }; +export type mode = enum uint { + RDONLY = 0u, + WRONLY = 1u, + RDWR = 2u, +}; + // The interface for a stream which can be read from. Reads up to len(buf) // bytes from the reader into the given buffer, returning the number of bytes // read or an error.