From: johanknol Date: Sun, 4 Feb 2001 17:17:22 +0000 (+0000) Subject: gdb complains about: X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c82ca0515e26ed1ccc57c4c06f9fe20f5b0bb168;p=fw%2Fsdcc gdb complains about: // this is a comment \ // and this too. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@578 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index 0b78524f..d5547fdf 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -88,18 +88,21 @@ 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); \ -// } +#if 0 +#define ALLOC(x,sz) if (!(x = calloc(1, sz))) \ + { \ + werror(E_OUT_OF_MEM,__FILE__,(long) sz);\ + exit (1); \ + } +#endif + +#if 0 +#define ALLOCTYPE(type,size) if (!(type##Pool = calloc(1, size*sizeof(type))))\ + { \ + werror(E_OUT_OF_MEM,__FILE__,(long) size); \ + exit (1); \ + } +#endif #define PUSH(x,y) x##FreeStack[x##StackPtr++] = y #define PEEK(x) x##FreeStack[x##StackPtr-1]