commit 7cbbccbf7b9ef6f2e36f0628b85e8dc6d9f9c398
parent dd14bf25f0f7ad0406facf241bdba66cf99f1617
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 7 Feb 2021 11:04:37 -0500
stdlib: io updates
Diffstat:
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/gen-stdlib b/gen-stdlib
@@ -139,6 +139,7 @@ gensrcs_io() {
copy.ha \
println.ha \
stream.ha \
+ limit.ha \
$*
}
@@ -154,10 +155,13 @@ io() {
then
# Test is broken on aarch64, temporarily disabled
# https://todo.sr.ht/~sircmpwn/hare-v2/196
- gensrcs_io
+ gensrcs_io \
+ +test/limit.ha
else
gensrcs_io \
- copy+test.ha
+ +test/copy.ha \
+ +test/limit.ha \
+ +test/stream.ha
fi
fi
gen_ssa io
diff --git a/mk/stdlib.mk b/mk/stdlib.mk
@@ -138,7 +138,8 @@ stdlib_io_srcs= \
$(STDLIB)/io/types.ha \
$(STDLIB)/io/copy.ha \
$(STDLIB)/io/println.ha \
- $(STDLIB)/io/stream.ha
+ $(STDLIB)/io/stream.ha \
+ $(STDLIB)/io/limit.ha
$(HARECACHE)/io/io.ssa: $(stdlib_io_srcs) $(stdlib_rt)
@printf 'HAREC \t$@\n'
@@ -344,7 +345,10 @@ testlib_io_srcs= \
$(STDLIB)/io/copy.ha \
$(STDLIB)/io/println.ha \
$(STDLIB)/io/stream.ha \
- $(STDLIB)/io/copy+test.ha
+ $(STDLIB)/io/limit.ha \
+ $(STDLIB)/io/+test/copy.ha \
+ $(STDLIB)/io/+test/limit.ha \
+ $(STDLIB)/io/+test/stream.ha
$(TESTCACHE)/io/io.ssa: $(testlib_io_srcs) $(testlib_rt)
@printf 'HAREC \t$@\n'