hare

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

commit 505fdcd2925c71a6b101ca8f5129f0f51b7858e0
parent 2248416a7222392134fd7c3869cb9f67d42d31c1
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue,  5 Sep 2023 22:06:42 -0400

io: remove unused strings import

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mio/+freebsd/platform_file.ha | 1-
Mio/+linux/platform_file.ha | 1-
Mio/+test/stream_test.ha | 1-
Mscripts/gen-stdlib | 4++--
Mstdlib.mk | 8++++----
5 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/io/+freebsd/platform_file.ha b/io/+freebsd/platform_file.ha @@ -3,7 +3,6 @@ // (c) 2021 Ember Sawady <ecs@d2evs.net> use errors; use rt; -use strings; // This is an opaque type which encloses an OS-level file handle resource. It // can be used as a [[handle]] in most situations, but there are some APIs which diff --git a/io/+linux/platform_file.ha b/io/+linux/platform_file.ha @@ -4,7 +4,6 @@ // (c) 2021 Ember Sawady <ecs@d2evs.net> use errors; use rt; -use strings; // This is an opaque type which encloses an OS-level file handle resource. It // can be used as a [[handle]] in most situations, but there are some APIs which diff --git a/io/+test/stream_test.ha b/io/+test/stream_test.ha @@ -1,7 +1,6 @@ // License: MPL-2.0 // (c) 2021 Bor Grošelj Simić <bor.groseljsimic@telemach.net> // (c) 2021 Drew DeVault <sir@cmpwn.com> -use strings; const teststream_vtable: vtable = vtable { reader = &teststream_read, diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -960,8 +960,8 @@ io() { +test/limit_test.ha \ +test/stream_test.ha fi - gen_ssa -plinux io strings errors bytes rt - gen_ssa -pfreebsd io strings errors bytes rt + gen_ssa -plinux io errors bytes rt + gen_ssa -pfreebsd io errors bytes rt } linux() { diff --git a/stdlib.mk b/stdlib.mk @@ -1604,13 +1604,13 @@ stdlib_io_freebsd_srcs = \ $(STDLIB)/io/util.ha \ $(STDLIB)/io/zero.ha -$(HARECACHE)/io/io-linux.ssa: $(stdlib_io_linux_srcs) $(stdlib_rt) $(stdlib_strings_$(PLATFORM)) $(stdlib_errors_$(PLATFORM)) $(stdlib_bytes_$(PLATFORM)) $(stdlib_rt_$(PLATFORM)) +$(HARECACHE)/io/io-linux.ssa: $(stdlib_io_linux_srcs) $(stdlib_rt) $(stdlib_errors_$(PLATFORM)) $(stdlib_bytes_$(PLATFORM)) $(stdlib_rt_$(PLATFORM)) @printf 'HAREC \t$@\n' @mkdir -p $(HARECACHE)/io @$(stdlib_env) $(HAREC) $(HAREFLAGS) -o $@ -Nio \ -t$(HARECACHE)/io/io.td $(stdlib_io_linux_srcs) -$(HARECACHE)/io/io-freebsd.ssa: $(stdlib_io_freebsd_srcs) $(stdlib_rt) $(stdlib_strings_$(PLATFORM)) $(stdlib_errors_$(PLATFORM)) $(stdlib_bytes_$(PLATFORM)) $(stdlib_rt_$(PLATFORM)) +$(HARECACHE)/io/io-freebsd.ssa: $(stdlib_io_freebsd_srcs) $(stdlib_rt) $(stdlib_errors_$(PLATFORM)) $(stdlib_bytes_$(PLATFORM)) $(stdlib_rt_$(PLATFORM)) @printf 'HAREC \t$@\n' @mkdir -p $(HARECACHE)/io @$(stdlib_env) $(HAREC) $(HAREFLAGS) -o $@ -Nio \ @@ -4057,13 +4057,13 @@ testlib_io_freebsd_srcs = \ $(STDLIB)/io/+test/limit_test.ha \ $(STDLIB)/io/+test/stream_test.ha -$(TESTCACHE)/io/io-linux.ssa: $(testlib_io_linux_srcs) $(testlib_rt) $(testlib_strings_$(PLATFORM)) $(testlib_errors_$(PLATFORM)) $(testlib_bytes_$(PLATFORM)) $(testlib_rt_$(PLATFORM)) +$(TESTCACHE)/io/io-linux.ssa: $(testlib_io_linux_srcs) $(testlib_rt) $(testlib_errors_$(PLATFORM)) $(testlib_bytes_$(PLATFORM)) $(testlib_rt_$(PLATFORM)) @printf 'HAREC \t$@\n' @mkdir -p $(TESTCACHE)/io @$(testlib_env) $(HAREC) $(TESTHAREFLAGS) -o $@ -Nio \ -t$(TESTCACHE)/io/io.td $(testlib_io_linux_srcs) -$(TESTCACHE)/io/io-freebsd.ssa: $(testlib_io_freebsd_srcs) $(testlib_rt) $(testlib_strings_$(PLATFORM)) $(testlib_errors_$(PLATFORM)) $(testlib_bytes_$(PLATFORM)) $(testlib_rt_$(PLATFORM)) +$(TESTCACHE)/io/io-freebsd.ssa: $(testlib_io_freebsd_srcs) $(testlib_rt) $(testlib_errors_$(PLATFORM)) $(testlib_bytes_$(PLATFORM)) $(testlib_rt_$(PLATFORM)) @printf 'HAREC \t$@\n' @mkdir -p $(TESTCACHE)/io @$(testlib_env) $(HAREC) $(TESTHAREFLAGS) -o $@ -Nio \