summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-12-18 21:13:02 +0000
committerFreeArtMan <dos21h@gmail.com>2015-12-18 21:13:02 +0000
commit2441dad315cdf050995e5b1fb48bf9e871fe791c (patch)
tree4d689a86e048a3727b42600d075c5dac512258e3 /Makefile
parent4c058db338ff00e0e97cea0e985625deb47143cd (diff)
downloaddm-2441dad315cdf050995e5b1fb48bf9e871fe791c.tar.gz
dm-2441dad315cdf050995e5b1fb48bf9e871fe791c.zip
Added assertions all over the code. Fixed missing () in realloc size calc part that caused mem violation problem
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ea7c840..03aa111 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PROJECT=dm
CC=gcc
-CFLAGS=-std=c99
+CFLAGS=
SOURCES=$(PROJECT)_parser.c darray.c tokenizer.c syntax.c mtable.c
OBJECTS=$(SOURCES:.c=.o)
@@ -18,3 +18,8 @@ ragel:
clean:
rm -f $(PROJECT)
rm -f *.o
+
+leak:
+ valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./dm -f test/test.bin -m test/one_byte.dm
+ #valgrind --track-origins=yes --log-file=log.txt ./dm -f test/test.bin -m test/one_byte.dm
+