--- parser3/src/include/pa_memory.h 2005/11/25 11:11:26 1.13 +++ parser3/src/include/pa_memory.h 2006/04/09 13:38:47 1.15 @@ -9,17 +9,11 @@ #ifndef PA_MEMORY_H #define PA_MEMORY_H -static const char * const IDENT_MEMORY_H="$Date: 2005/11/25 11:11:26 $"; +static const char * const IDENT_MEMORY_H="$Date: 2006/04/09 13:38:47 $"; // include #include "pa_config_includes.h" - -/// to debug backtrace pointers switch this on: -#ifdef _DEBUG -// this switches on straightforward realloc implementation, bad for profiling -//#define GC_DEBUG -#endif #include "gc.h" // defines @@ -84,8 +78,8 @@ inline void *pa_realloc(void *ptr, size_ } //{@ these operators are disabled, one should explicitely specify either new(UseGC) or new(PointerFreeGC) -inline void *operator new(size_t) { abort(); } // disabled -inline void *operator new[] (size_t) { abort(); } // disabled +inline void *operator new(size_t) { abort(); return /*calm, compiler*/ (void*)1; } // disabled +inline void *operator new[] (size_t) { abort(); return /*calm, compiler*/ (void*)1; } // disabled //}@ #define UseGC ((int)1)