--- parser3/src/main/pa_pool.C 2001/01/26 15:32:52 1.2 +++ parser3/src/main/pa_pool.C 2003/03/06 12:02:05 1.59.2.6 @@ -1,21 +1,18 @@ -/* - $Id: pa_pool.C,v 1.2 2001/01/26 15:32:52 paf Exp $ +/** @file + Parser: pool class implementation. + + Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ -#include +static const char* IDENT_POOL_C="$Date: 2003/03/06 12:02:05 $"; #include "pa_pool.h" +#include "pa_types.h" +#include "pa_common.h" -Pool::Pool() { -} - -Pool::~Pool() { -} - -void *Pool::alloc(size_t size) { - return ::malloc(size); -} +char* Pool::format_integer(int value) { + char local[MAX_NUMBER]; + return copy(local, snprintf(local, MAX_NUMBER, "%d", value)+1/*for terminating 0*/); +}; -void *Pool::calloc(size_t size) { - return ::calloc(size, 1); -}