From 2441dad315cdf050995e5b1fb48bf9e871fe791c Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Fri, 18 Dec 2015 21:13:02 +0000 Subject: Added assertions all over the code. Fixed missing () in realloc size calc part that caused mem violation problem --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 + -- cgit v1.2.3