persing minus sign and exponents for numeric values

This commit is contained in:
cozis
2022-04-24 23:12:35 +02:00
parent 841e3f75fa
commit 113830d092
7 changed files with 132 additions and 10 deletions
+17 -2
View File
@@ -1,2 +1,17 @@
gcc test.c xjson.c -o test -Wall -Wextra -g
gcc parse-file.c xjson.c -o parse-file -Wall -Wextra -g
CC=gcc
FLAGS="-Wall -Wextra"
for arg in "$@"
do
case $arg in
--debug) FLAGS="$FLAGS -DDEBUG -g"
;;
--release) FLAGS="$FLAGS -DNDEBUG -O3"
;;
--coverage) FLAGS="$FLAGS -fprofile-arcs -ftest-coverage"
;;
esac
done
$CC test.c xjson.c -o test $FLAGS
$CC parse-file.c xjson.c -o parse-file $FLAGS