persing minus sign and exponents for numeric values
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user