Annotation of parser3/src/targets/apache13/modules/extra/pa_pool.C, revision 1.7

1.6       paf         1: /** @file
                      2:        Parser: Apache module memory manager impl.
                      3: 
1.2       paf         4:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
                      5:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
                      6: 
1.7     ! parser      7:        $Id: pa_pool.C,v 1.6 2001/04/26 15:09:10 paf Exp $
1.2       paf         8: */
                      9: 
1.4       paf        10: //#include <stdlib.h>
1.2       paf        11: 
                     12: #include "httpd.h"
                     13: 
                     14: #include "pa_pool.h"
                     15: 
                     16: void *Pool::real_malloc(size_t size) {
                     17:        return ap_palloc((pool*)fstorage, size);
                     18: }
                     19: 
                     20: void *Pool::real_calloc(size_t size) {
1.3       paf        21:        return ap_pcalloc((pool*)fstorage, size);
1.2       paf        22: }
1.7     ! parser     23: 
        !            24: void Pool::register_cleanup(void (*cleanup) (void *), void *data) {
        !            25:        ap_register_cleanup((pool*)fstorage, data,
        !            26:                cleanup,
        !            27:                ap_null_cleanup);
        !            28: }

E-mail: