Avoid 2 levels of indirection, and having to allocate twice for small payloads, by having an inlined array on the vector directly! Beautiful and simple. Required a bit of refactoring around the board, but overall the result makes me feel happier.
10 lines
204 B
Bash
10 lines
204 B
Bash
#!/usr/bin/env sh
|
|
|
|
CFLAGS="-Wall -Wextra -std=c11 -ggdb -fsanitize=address -fsanitize=undefined"
|
|
SRC="vec.c symtable.c tag.c constructor.c sys.c main.c"
|
|
OUT="alisp.out"
|
|
|
|
set -xe
|
|
|
|
cc $CFLAGS -o $OUT $SRC;
|