--- parser3/src/include/pa_memory.h 2005/08/05 14:13:41 1.11.14.2 +++ parser3/src/include/pa_memory.h 2005/11/25 11:11:26 1.13 @@ -9,7 +9,7 @@ #ifndef PA_MEMORY_H #define PA_MEMORY_H -static const char * const IDENT_MEMORY_H="$Date: 2005/08/05 14:13:41 $"; +static const char * const IDENT_MEMORY_H="$Date: 2005/11/25 11:11:26 $"; // include @@ -17,7 +17,8 @@ static const char * const IDENT_MEMORY_H /// to debug backtrace pointers switch this on: #ifdef _DEBUG -#define GC_DEBUG +// this switches on straightforward realloc implementation, bad for profiling +//#define GC_DEBUG #endif #include "gc.h" @@ -83,14 +84,8 @@ inline void *pa_realloc(void *ptr, size_ } //{@ these operators are disabled, one should explicitely specify either new(UseGC) or new(PointerFreeGC) -#if _MSC_VER -# pragma warning(disable:4702) // disable warning -#endif inline void *operator new(size_t) { abort(); } // disabled inline void *operator new[] (size_t) { abort(); } // disabled -#if _MSC_VER -# pragma warning(default:4702) -#endif //}@ #define UseGC ((int)1)