--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/23 10:27:32 1.15 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/24 11:33:28 1.17 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mod_parser3.C,v 1.15 2001/03/23 10:27:32 paf Exp $ + $Id: mod_parser3.C,v 1.17 2001/03/24 11:33:28 paf Exp $ */ #include "httpd.h" @@ -149,8 +149,7 @@ void SAPI::send_body(Pool& pool, const c */ static int parser_handler(request_rec *r) { - Pool pool; - pool.set_storage(r->pool); + Pool pool(r->pool); pool.set_context(r); Parser_module_config *dcfg=our_dconfig(r); @@ -272,10 +271,7 @@ static void setup_module_cells() { /* * allocate our module-private pool. */ - pool *module_pool=ap_make_sub_pool(NULL); - - static Pool pool; // global pool - pool.set_storage(module_pool); + static Pool pool(ap_make_sub_pool(NULL)); // global pool PTRY { // init global variables pa_globals_init(pool); @@ -290,7 +286,7 @@ static void setup_module_cells() { static void parser_server_init(server_rec *s, pool *p) { #if MODULE_MAGIC_NUMBER >= 19980527 - ap_add_version_component("Parser/" PARSER_VERSION); + ap_add_version_component("Parser/"PARSER_VERSION); #endif /*