get rid of redundant mallocs
[c11tester.git] / common.h
index bb66c3a7f5d9cab70b680a8f2f42b89c7c468547..81facf69c634e855b71d71ffa8cf1eddca11f822 100644 (file)
--- a/common.h
+++ b/common.h
@@ -3,8 +3,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include "mymemory.h"
 
-//#define CONFIG_DEBUG
+#define CONFIG_DEBUG
 
 #ifdef CONFIG_DEBUG
 #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0)
@@ -25,9 +26,6 @@ do { \
 } while (0);
 
 
-void * myMalloc(size_t size);
-void myFree(void *ptr);
-
 #define userMalloc(size)       malloc(size)
 #define userFree(ptr)          free(ptr)