Annotation of parser3/src/targets/cgi/pa_pool.C, revision 1.34

1.4       paf         1: /** @file
                      2:        Parser: CGI memory manager impl.
                      3: 
1.1       paf         4:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.31      paf         5:        Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)
1.4       paf         6: 
1.34    ! paf         7:        $Id: pa_pool.C,v 1.33 2001/12/13 13:02:43 paf Exp $
1.1       paf         8: */
                      9: 
                     10: #include "pa_pool.h"
1.24      parser     11: #include "pool_storage.h"
1.1       paf        12: 
1.25      paf        13: void *Pool::real_malloc(size_t size, int place) {
1.33      paf        14:        return fstorage?
                     15:                static_cast<Pool_storage *>(fstorage)->malloc(size): ::malloc(size);
1.1       paf        16: }
                     17: 
                     18: void *Pool::real_calloc(size_t size) {
1.33      paf        19:        return fstorage?
                     20:                static_cast<Pool_storage *>(fstorage)->calloc(size): ::calloc(size, 1);
1.1       paf        21: }
1.18      parser     22: 
1.20      parser     23: bool Pool::real_register_cleanup(void (*cleanup) (void *), void *data) {
1.24      parser     24:        return fstorage!=0 && static_cast<Pool_storage *>(fstorage)->register_cleanup(cleanup, data);
1.34    ! paf        25: }

E-mail: