Annotation of parser3/src/targets/apache13/modules/extra/pa_pool.C, revision 1.8
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.8 ! parser 7: $Id: pa_pool.C,v 1.7 2001/09/15 11:48:41 parser 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:
1.8 ! parser 24: void Pool::real_register_cleanup(void (*cleanup) (void *), void *data) {
1.7 parser 25: ap_register_cleanup((pool*)fstorage, data,
26: cleanup,
27: ap_null_cleanup);
28: }
E-mail: