commit eedd0843577d6339c7c197cdb1e9450955a65591 parent 740c5794e4d3b14061fd6de8fa56bb6f9eb1b349 Author: Drew DeVault <sir@cmpwn.com> Date: Fri, 19 Feb 2021 14:12:08 -0500 stdlib: add ascii::strcmp Diffstat:
M | gen-stdlib | | | 5 | +++-- |
M | mk/stdlib.mk | | | 10 | ++++++---- |
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/gen-stdlib b/gen-stdlib @@ -91,8 +91,9 @@ EOF ascii() { printf '# ascii\n' gen_srcs ascii \ - ctype.ha - gen_ssa ascii + ctype.ha \ + strcmp.ha + gen_ssa ascii strings } bufio() { diff --git a/mk/stdlib.mk b/mk/stdlib.mk @@ -107,9 +107,10 @@ hare_stdlib_deps+=$(stdlib_types) # ascii stdlib_ascii_srcs= \ - $(STDLIB)/ascii/ctype.ha + $(STDLIB)/ascii/ctype.ha \ + $(STDLIB)/ascii/strcmp.ha -$(HARECACHE)/ascii/ascii.ssa: $(stdlib_ascii_srcs) $(stdlib_rt) +$(HARECACHE)/ascii/ascii.ssa: $(stdlib_ascii_srcs) $(stdlib_rt) $(stdlib_strings) @printf 'HAREC \t$@\n' @mkdir -p $(HARECACHE)/ascii @HARECACHE=$(HARECACHE) $(HAREC) $(HAREFLAGS) -o $@ -Nascii \ @@ -400,9 +401,10 @@ hare_testlib_deps+=$(testlib_types) # ascii testlib_ascii_srcs= \ - $(STDLIB)/ascii/ctype.ha + $(STDLIB)/ascii/ctype.ha \ + $(STDLIB)/ascii/strcmp.ha -$(TESTCACHE)/ascii/ascii.ssa: $(testlib_ascii_srcs) $(testlib_rt) +$(TESTCACHE)/ascii/ascii.ssa: $(testlib_ascii_srcs) $(testlib_rt) $(testlib_strings) @printf 'HAREC \t$@\n' @mkdir -p $(TESTCACHE)/ascii @HARECACHE=$(TESTCACHE) $(HAREC) $(TESTHAREFLAGS) -o $@ -Nascii \