return errors from parse() #1

Merged
ralsina merged 12 commits from return-errors into main 2023-07-14 01:05:13 +00:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit f6e775474d - Show all commits

View File

@ -1,4 +1,4 @@
CC=tcc CC=gcc
all: tests all: tests
shortcodes.c: shortcodes.rl shortcodes.c: shortcodes.rl
ragel -G2 -L shortcodes.rl -o shortcodes.c ragel -G2 -L shortcodes.rl -o shortcodes.c
@ -6,10 +6,8 @@ shortcodes.c: shortcodes.rl
$(CC) -fPIC -c -o $@ $^ -g $(CC) -fPIC -c -o $@ $^ -g
tests.so: shortcodes.o tests.o tests.so: shortcodes.o tests.o
$(CC) -shared -g -o $@ $^ -lbg -lcgreen $(CC) -shared -g -o $@ $^ -lbg -lcgreen
test-binary: shortcodes.c tests.c
$(CC) -g -o tests shortcodes.c tests.c -DMAIN=1 -lbg -lcgreen
clean: clean:
rm -f shortcodes.c *.o *.so rm -f shortcodes.c *.o *.so tests
test: tests.so test: tests.so
cgreen-runner $^ cgreen-runner $^
debug: debug:

0
tests.c Executable file → Normal file
View File