New Memory Allocation functions
[fw/sdcc] / src / SDCCglobl.h
index f7877795be0952385e5ca373157a094ea5412e92..0b78524fe678d68d1a99423fedb6156015be4ffd 100644 (file)
@@ -88,18 +88,18 @@ typedef int bool;
     type *type##FreeStack [size]  ; \
     int   type##StackPtr = 0      ;
 
-#define  ALLOC(x,sz) if (!(x = calloc(1, sz)))      \
-         {                                          \
-            werror(E_OUT_OF_MEM,__FILE__,(long) sz);\
-            exit (1);                               \
-         }
-
-
-#define ALLOCTYPE(type,size) if (!(type##Pool = calloc(1, size*sizeof(type))))\
-         {                                                            \
-            werror(E_OUT_OF_MEM,__FILE__,(long) size);               \
-            exit (1);                                                \
-         }
+//#define  ALLOC(x,sz) if (!(x = calloc(1, sz)))      \
+//         {                                          \
+//            werror(E_OUT_OF_MEM,__FILE__,(long) sz);\
+//            exit (1);                               \
+//         }
+
+
+//#define ALLOCTYPE(type,size) if (!(type##Pool = calloc(1, size*sizeof(type))))\
+//         {                                                            \
+//            werror(E_OUT_OF_MEM,__FILE__,(long) size);                     \
+//            exit (1);                                                \
+//         }
 
 #define PUSH(x,y)   x##FreeStack[x##StackPtr++] = y
 #define PEEK(x)     x##FreeStack[x##StackPtr-1]