--- parser3/src/include/pa_array.h 2003/01/27 15:07:47 1.57.2.9 +++ parser3/src/include/pa_array.h 2003/01/27 15:35:24 1.57.2.10 @@ -8,7 +8,7 @@ #ifndef PA_ARRAY_H #define PA_ARRAY_H -static const char* IDENT_ARRAY_Y="$Date: 2003/01/27 15:07:47 $"; +static const char* IDENT_ARRAY_Y="$Date: 2003/01/27 15:35:24 $"; #include "pa_pool.h" #include "pa_exception.h" @@ -143,7 +143,7 @@ protected: } void expand(int delta) { fallocated+=delta; - felements = (T *)pa_realloc(felements, fallocated*sizeof(T)); + felements = (T *)realloc(felements, fallocated*sizeof(T)); } private: //disabled @@ -156,7 +156,7 @@ typedef smart_ptr CharPtr; class Pool: public Array { public: char *malloc(size_t size) { - CharPtr result=CharPtr(new char[size]); + CharPtr result=CharPtr((char *)Array::malloc(size)); *this += result; return result.get(); }