--- parser3/src/main/Attic/pa_array.C 2001/01/29 20:46:22 1.11 +++ parser3/src/main/Attic/pa_array.C 2001/02/11 11:27:25 1.13 @@ -1,19 +1,15 @@ /* - $Id: pa_array.C,v 1.11 2001/01/29 20:46:22 paf Exp $ + $Id: pa_array.C,v 1.13 2001/02/11 11:27:25 paf Exp $ */ #include #include "pa_pool.h" #include "pa_array.h" -#include "pa_error.h" - -void *Array::operator new(size_t size, Pool& apool) { - return apool.malloc(size); -} +#include "pa_exception.h" Array::Array(Pool& apool, int initial_rows) : - pool(apool) { + Pooled(apool) { head=tail=static_cast( pool.malloc(sizeof(int)+sizeof(Chunk::Row)*initial_rows+sizeof(Chunk *))); head->count=initial_rows; @@ -49,7 +45,8 @@ Array& Array::operator += (const Item *s const Array::Item *Array::get(int index) const { if(!(index>=0 && index