Replace separate aliases and arena implementations with stdlib submodule

This commit is contained in:
Abdelrahman Said 2024-02-24 20:44:44 +00:00
parent 10ba3d642d
commit 84873f1e98
4 changed files with 19 additions and 7 deletions

6
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "intern/aliases"] [submodule "intern/wizapp"]
path = intern/aliases path = intern/wizapp
url = https://git.thewizardapprentice.com/abdelrahman/c-cpp-aliases.git url = https://git.thewizardapprentice.com/abdelrahman/wizapp-stdlib.git

18
compile
View File

@ -1,9 +1,21 @@
#!/bin/bash #!/bin/bash
CC=clang CC=clang
CFLAGS="-g -Wall -Iinclude -Iintern $(pkg-config --cflags sdl2)" CFLAGS="-g -Wall $(pkg-config --cflags sdl2)"
LIBS="$(pkg-config --libs sdl2) -lm" LIBS="$(pkg-config --libs sdl2) -lm"
SRC=src/*.c INCLUDE="\
-Iinclude \
-Iintern/wizapp/aliases \
-Iintern/wizapp/cpath/include \
-Iintern/wizapp/dstr/include \
$(find intern/wizapp/mem/include/ -type d | xargs -I{} printf "-I{} ") \
"
SRC="\
intern/wizapp/cpath/src/*.c \
intern/wizapp/dstr/src/*.c \
intern/wizapp/mem/src/*/*.c \
src/*.c \
"
OUT=main OUT=main
(set -x ; $CC $CFLAGS $LIBS $SRC -o $OUT) (set -x ; $CC $CFLAGS $INCLUDE $LIBS $SRC -o $OUT)

@ -1 +0,0 @@
Subproject commit f95f3aa499910286876c1f2cdceea8146ebcf7b1

1
intern/wizapp Submodule

@ -0,0 +1 @@
Subproject commit b8db582098a866aa56c62d0b2b6351ea08411f6b