hare

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

commit 4a2ea5b8c4cf6fa8c9b4df242f6f4a56dd65884c
parent 84f074cff5f4615923a2b9a056a7e1a2d38a74c7
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  2 Feb 2021 21:45:22 -0500

fdstream: autofill future io::stream fields

Diffstat:
Mos/+linux/fdstream.ha | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/os/+linux/fdstream.ha b/os/+linux/fdstream.ha @@ -20,6 +20,7 @@ export fn fdopen(fd: int, name: str) *io::stream = { writer = &fd_write, closer = &fd_close, copier = &fd_copy, + ... }, fd = fd, offs = 0z, @@ -52,6 +53,7 @@ fn static_fdopen(fd: int, name: str, stream: *fd_stream) *io::stream = { writer = &fd_write, closer = &fd_close_static, copier = &fd_copy, + ... }; stream.fd = fd; return &stream.stream;