hare

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

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

gen-stdlib: restore replace.ha and pad.ha

Commit cd546049a280 ("Add strings::replace,padleft,padright,index_string")
originally added replace.ha and pad.ha to stdlib.mk directly. A later
commit, bd80e5d9fe19 ("add crypto::cipher::stream interface") then
updated scripts/gen-stdlib and generated a stdlib.mk without those two
files. Add them both to scripts/gen-stdlib.

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

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

diff --git a/scripts/gen-stdlib b/scripts/gen-stdlib @@ -1068,7 +1068,9 @@ strings() { utf8.ha \ index.ha \ trim.ha \ - strcmp.ha + strcmp.ha \ + pad.ha \ + replace.ha gen_ssa strings bytes encoding::utf8 types } diff --git a/stdlib.mk b/stdlib.mk @@ -1626,7 +1626,9 @@ stdlib_strings_any_srcs= \ $(STDLIB)/strings/utf8.ha \ $(STDLIB)/strings/index.ha \ $(STDLIB)/strings/trim.ha \ - $(STDLIB)/strings/strcmp.ha + $(STDLIB)/strings/strcmp.ha \ + $(STDLIB)/strings/pad.ha \ + $(STDLIB)/strings/replace.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' @@ -3495,7 +3497,9 @@ testlib_strings_any_srcs= \ $(STDLIB)/strings/utf8.ha \ $(STDLIB)/strings/index.ha \ $(STDLIB)/strings/trim.ha \ - $(STDLIB)/strings/strcmp.ha + $(STDLIB)/strings/strcmp.ha \ + $(STDLIB)/strings/pad.ha \ + $(STDLIB)/strings/replace.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'