Fixed the hairy inline 'Y' bug in SDCC.y
[fw/sdcc] / src / SDCCset.h
index f236b5708c9a110ec2e96c0fd4d54b717bf4370f..b5e2ccde84b64a5b2843f7d78296b138ef7dc546 100644 (file)
 #ifndef SDCCSET_H
 #define SDCCSET_H
 #include <stdarg.h>
-#ifdef _NO_GC
-
-#define GC_malloc malloc
-#define GC_free free
-#define GC_realloc realloc
 
+#if defined(_MSC_VER)
+#      include "sdcc_vc.h"
 #else
+#      include "sdccconf.h"
+#endif         // _MSC_VER
 
-#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