--- parser3/src/main/Attic/pa_array.C 2001/02/11 11:27:25 1.13 +++ parser3/src/main/Attic/pa_array.C 2001/02/21 11:19:20 1.15 @@ -1,5 +1,5 @@ /* - $Id: pa_array.C,v 1.13 2001/02/11 11:27:25 paf Exp $ + $Id: pa_array.C,v 1.15 2001/02/21 11:19:20 paf Exp $ */ #include @@ -11,7 +11,7 @@ Array::Array(Pool& apool, int initial_rows) : Pooled(apool) { head=tail=static_cast( - pool.malloc(sizeof(int)+sizeof(Chunk::Row)*initial_rows+sizeof(Chunk *))); + pool().malloc(sizeof(int)+sizeof(Chunk::Row)*initial_rows+sizeof(Chunk *))); head->count=initial_rows; append_here=head->rows; link_row=&head->rows[initial_rows]; @@ -24,7 +24,7 @@ Array::Array(Pool& apool, int initial_ro void Array::expand(int chunk_rows) { Chunk *chunk=tail=static_cast( - pool.malloc(sizeof(int)+sizeof(Chunk::Row)*chunk_rows+sizeof(Chunk *))); + pool().malloc(sizeof(int)+sizeof(Chunk::Row)*chunk_rows+sizeof(Chunk *))); chunk->count=chunk_rows; link_row->link=chunk; append_here=chunk->rows; @@ -33,7 +33,7 @@ void Array::expand(int chunk_rows) { } -Array& Array::operator += (const Item *src) { +Array& Array::operator += (Item *src) { if(chunk_is_full()) expand(tail->count*CR_GROW_PERCENT/100); @@ -43,9 +43,9 @@ Array& Array::operator += (const Item *s return *this; } -const Array::Item *Array::get(int index) const { +Array::Item *Array::get(int index) const { if(!(index>=0 && index