Annotation of parser3/src/targets/isapi/pa_pool.C, revision 1.13

1.2       paf         1: /** @file
                      2:        Parser: ISAPI memory manager impl.
                      3: 
1.11      paf         4:        Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
1.12      paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.2       paf         6: 
1.13    ! paf         7:        $Id: pa_pool.C,v 1.12.2.1 2002/05/07 07:23:11 paf Exp $
1.1       paf         8: */
                      9: 
                     10: #include <stdlib.h>
                     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: