Annotation of parser3/src/targets/isapi/pa_pool.C, revision 1.16
1.2 paf 1: /** @file
2: Parser: ISAPI memory manager impl.
3:
1.16 ! paf 4: Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
1.12 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.14 paf 6: */
1.2 paf 7:
1.16 ! paf 8: static const char* IDENT_POOL_C="$Date: 2002/08/01 11:41:21 $";
1.1 paf 9:
1.14 paf 10: //#include <stdlib.h>
1.1 paf 11:
12: #include "pa_pool.h"
1.3 paf 13: #include "pool_storage.h"
1.1 paf 14:
1.8 paf 15: void *Pool::real_malloc(size_t size, int place) {
1.3 paf 16: return fstorage?
1.13 paf 17: static_cast<Pool_storage *>(fstorage)->malloc(size): 0;
1.1 paf 18: }
19:
20: void *Pool::real_calloc(size_t size) {
1.3 paf 21: return fstorage?
1.13 paf 22: static_cast<Pool_storage *>(fstorage)->calloc(size): 0;
1.1 paf 23: }
1.4 parser 24:
1.5 parser 25: bool Pool::real_register_cleanup(void (*cleanup) (void *), void *data) {
26: return fstorage!=0 && static_cast<Pool_storage *>(fstorage)->register_cleanup(cleanup, data);
1.10 paf 27: }
E-mail: