Compare commits

...

3 Commits

Author SHA1 Message Date
DTB
7c9f640ee1
stris(1): fix bug only checking the first rune of strings 2024-05-03 21:36:23 -06:00
DTB
3910c341bd
remove str(1) 2024-05-03 21:04:10 -06:00
DTB
cfef7aec1d
stris(1) 2024-05-03 21:03:30 -06:00
5 changed files with 221 additions and 139 deletions

View File

@ -28,7 +28,7 @@ RUSTLIBS = --extern getopt=build/o/libgetopt.rlib \
CFLAGS += -I$(SYSEXITS) CFLAGS += -I$(SYSEXITS)
.PHONY: all .PHONY: all
all: dj false fop hru intcmp mm npc rpn scrut str strcmp swab true all: dj false fop hru intcmp mm npc rpn scrut strcmp stris swab true
build: build:
# keep build/include until bindgen(1) has stdin support # keep build/include until bindgen(1) has stdin support
@ -118,10 +118,13 @@ scrut: build/bin/scrut
build/bin/scrut: src/scrut.c build build/bin/scrut: src/scrut.c build
$(CC) $(CFLAGS) -o $@ src/scrut.c $(CC) $(CFLAGS) -o $@ src/scrut.c
.PHONY: str .PHONY: stris
str: build/bin/str stris: build/bin/stris
build/bin/str: src/str.c build build/bin/stris: src/stris.rs build build/o/libgetopt.rlib \
$(CC) $(CFLAGS) -o $@ src/str.c build/o/libsysexits.rlib
$(RUSTC) $(RUSTFLAGS) --extern getopt=build/o/libgetopt.rlib \
--extern sysexits=build/o/libsysexits.rlib \
-o $@ src/stris.rs
.PHONY: strcmp .PHONY: strcmp
strcmp: build/bin/strcmp strcmp: build/bin/strcmp