hare

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

commit fc33704f2ccd4f98680a28f48e59062225389db8
parent 36453c2551f6dcc542bce4377e3822ff156367f6
Author: Christopher M. Riedl <cmr@bluescreens.de>
Date:   Fri, 25 Feb 2022 22:39:03 -0600

gen-stdlib: add strcmp.ha

Commit 9761fd06e2d4 ("strings: add strcmp function") added the new
strcmp.ha to stdlib.mk directly instead of using scripts/gen-stdlib to
generate stdlib.mk. Fix this so that strcmp.ha does not accidentally get
removed from stdlib.mk when re-running scripts/gen-stdlib.

Signed-off-by: Christopher M. Riedl <cmr@bluescreens.de>

Diffstat:
Mscripts/gen-stdlib | 3++-
Mstdlib.mk | 8++++----
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -1067,7 +1067,8 @@ strings() { tokenize.ha \ utf8.ha \ index.ha \ - trim.ha + trim.ha \ + strcmp.ha gen_ssa strings bytes encoding::utf8 types } diff --git a/stdlib.mk b/stdlib.mk @@ -1620,13 +1620,13 @@ stdlib_strings_any_srcs= \ $(STDLIB)/strings/cstrings.ha \ $(STDLIB)/strings/dup.ha \ $(STDLIB)/strings/iter.ha \ - $(STDLIB)/strings/strcmp.ha \ $(STDLIB)/strings/sub.ha \ $(STDLIB)/strings/suffix.ha \ $(STDLIB)/strings/tokenize.ha \ $(STDLIB)/strings/utf8.ha \ $(STDLIB)/strings/index.ha \ - $(STDLIB)/strings/trim.ha + $(STDLIB)/strings/trim.ha \ + $(STDLIB)/strings/strcmp.ha $(HARECACHE)/strings/strings-any.ssa: $(stdlib_strings_any_srcs) $(stdlib_rt) $(stdlib_bytes_$(PLATFORM)) $(stdlib_encoding_utf8_$(PLATFORM)) $(stdlib_types_$(PLATFORM)) @printf 'HAREC \t$@\n' @@ -3489,13 +3489,13 @@ testlib_strings_any_srcs= \ $(STDLIB)/strings/cstrings.ha \ $(STDLIB)/strings/dup.ha \ $(STDLIB)/strings/iter.ha \ - $(STDLIB)/strings/strcmp.ha \ $(STDLIB)/strings/sub.ha \ $(STDLIB)/strings/suffix.ha \ $(STDLIB)/strings/tokenize.ha \ $(STDLIB)/strings/utf8.ha \ $(STDLIB)/strings/index.ha \ - $(STDLIB)/strings/trim.ha + $(STDLIB)/strings/trim.ha \ + $(STDLIB)/strings/strcmp.ha $(TESTCACHE)/strings/strings-any.ssa: $(testlib_strings_any_srcs) $(testlib_rt) $(testlib_bytes_$(PLATFORM)) $(testlib_encoding_utf8_$(PLATFORM)) $(testlib_types_$(PLATFORM)) @printf 'HAREC \t$@\n'