Add support for the --disable-boehm-gc flag for systems that lack -lgc.
[fw/sdcc] / src / SDCCset.h
index f236b5708c9a110ec2e96c0fd4d54b717bf4370f..f676886710b2ebe343e84f8a9ae9870c26c4adc8 100644 (file)
 #ifndef SDCCSET_H
 #define SDCCSET_H
 #include <stdarg.h>
-#ifdef _NO_GC
+#include "sdccconf.h"
+#include "SDCCalloc.h"
 
-#define GC_malloc malloc
-#define GC_free free
-#define GC_realloc realloc
-
-#else
-
-#include "./gc/gc.h" 
-
-#endif
-
-#ifndef ALLOC
-#define  ALLOC(x,sz) if (!(x = GC_malloc(sz)))                          \
-         {                                                           \
-            fprintf(stderr,"out of virtual memory %s , %d",__FILE__,__LINE__);\
-            exit (1);                                                \
-         }
-
-#endif
 
 #ifndef THROWS
 #define THROWS