2023-11-07 10:14:07 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
2023-11-13 10:16:57 -05:00
|
|
|
clang -DSTATIC_SOURCE -g -Weverything -O0 -o xhartae xhartae.c
|
2023-11-09 09:41:53 -05:00
|
|
|
|
2023-11-13 21:05:10 -05:00
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_0.o chapter/chapter_0.c
|
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_1.o chapter/chapter_1.c
|
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_2.o chapter/chapter_2.c
|
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_3.o chapter/chapter_3.c
|
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_4.o chapter/chapter_4.c
|
2023-11-20 09:43:12 -05:00
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_5.o chapter/chapter_5.c
|
2023-11-23 15:23:23 -05:00
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o chapter/chapter_6.o chapter/chapter_6.c
|
2023-11-13 10:16:57 -05:00
|
|
|
|
|
|
|
gcc -g -Wall -Wextra -Wpedantic -O0 -c -o xhartae.o xhartae.c
|
2023-11-09 09:41:53 -05:00
|
|
|
|
2023-11-23 15:23:23 -05:00
|
|
|
gcc -o xhartae xhartae.o chapter/chapter_0.o chapter/chapter_1.o chapter/chapter_2.o chapter/chapter_3.o chapter/chapter_4.o chapter/chapter_5.o chapter/chapter_6.o
|
2023-11-13 21:05:10 -05:00
|
|
|
|
2023-11-15 16:10:08 -05:00
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_0.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_0.c
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_1.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_1.c
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_2.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_2.c
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_3.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_3.c
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_4.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_4.c
|
2023-11-20 09:43:12 -05:00
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_5.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_5.c
|
2023-11-23 15:23:23 -05:00
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_6.h
|
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type chapter/chapter_6.c
|
2023-11-15 16:10:08 -05:00
|
|
|
#~splint -weak -warnposix -retvalother -syntax -type xhartae.c
|
2023-11-13 11:58:31 -05:00
|
|
|
|
2023-11-23 15:23:23 -05:00
|
|
|
valgrind --show-leak-kinds=all --leak-check=full --log-file=log.txt ./xhartae
|
|
|
|
|
|
|
|
xighlight -V < log.txt
|
2023-11-13 15:07:28 -05:00
|
|
|
|
2023-11-07 10:14:07 -05:00
|
|
|
exit
|