--- parser3/src/include/pa_array.h 2003/01/30 11:00:41 1.57.2.15 +++ parser3/src/include/pa_array.h 2003/02/04 09:44:27 1.57.2.19 @@ -1,14 +1,14 @@ /** @file Parser: Array & Array_iterator classes decls. - Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_ARRAY_H #define PA_ARRAY_H -static const char* IDENT_ARRAY_Y="$Date: 2003/01/30 11:00:41 $"; +static const char* IDENT_ARRAY_Y="$Date: 2003/02/04 09:44:27 $"; #include "pa_pool.h" #include "pa_exception.h" @@ -165,7 +165,7 @@ public: return result.get(); } - char *copy(const char *buf, size_t size=0) { + char *copy(const char* buf, size_t size=0) { if(!size) size=strlen(buf)+1; @@ -175,7 +175,7 @@ public: } }; -inline void *operator new(size_t size, Pool& pool) { +inline void *operator new[] (size_t size, Pool& pool) { return pool.malloc(size); } @@ -199,7 +199,7 @@ public: } /// quickly extracts next Array element - T next() { + T& next() { return *(fcurrent++); }