--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/21 16:48:17 1.5 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/21 17:16:34 1.7 @@ -1,11 +1,11 @@ /** @file - Parser: apache module. + Parser: apache 1.3 module. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mod_parser3.C,v 1.5 2001/03/21 16:48:17 paf Exp $ + $Id: mod_parser3.C,v 1.7 2001/03/21 17:16:34 paf Exp $ */ #include "httpd.h" @@ -554,7 +554,8 @@ static int parser3_handler(request_rec * const char *content_length = (const char *)ap_table_get(r->subprocess_env, "CONTENT_LENGTH"); request_info.content_length=(content_length?atoi(content_length):0); - request_info.cookie=(const char *)ap_table_get(r->subprocess_env, "HTTP_COOKIE"); + request_info.cookie= + (const char *)ap_table_get(r->subprocess_env, "HTTP_COOKIE"); // prepare to process request Request request(pool, @@ -665,15 +666,12 @@ static int parser3_handler(request_rec * */ static void parser3_init(server_rec *s, pool *p) { - - char *sname = s->server_hostname; - static bool globals_inited=false; if(globals_inited) return; globals_inited=true; - static Pool pool; ///< global pool + static Pool pool; // global pool pool.set_storage(p); PTRY { // init global variables @@ -695,37 +693,6 @@ static void parser3_init(server_rec *s, } /* - * This function is called during server initialisation when an heavy-weight - * process (such as a child) is being initialised. As with the - * module-initialisation function, any information that needs to be recorded - * must be in static cells, since there's no configuration record. - * - * There is no return value. - */ - -/* - * All our process-initialiser does is add its trace to the log. - */ -static void parser3_child_init(server_rec *s, pool *p) -{ - - char *note; - char *sname = s->server_hostname; - - /* - * Set up any module cells that ought to be initialised. - */ - setup_module_cells(); - /* - * The arbitrary text we add to our trace entry indicates for which server - * we're being called. - */ - sname = (sname != NULL) ? sname : ""; - note = ap_pstrcat(p, "parser3_child_init(", sname, ")", NULL); - trace_add(s, NULL, NULL, note); -} - -/* * This function is called when an heavy-weight process (such as a child) is * being run down or destroyed. As with the child-initialisation function, * any information that needs to be recorded must be in static cells, since @@ -1102,7 +1069,7 @@ module MODULE_VAR_EXPORT parser3_module ,0 /* [3] header parser */ #endif #if MODULE_MAGIC_NUMBER >= 19970719 - ,parser3_child_init /* process initializer */ + ,0 /* process initializer */ #endif #if MODULE_MAGIC_NUMBER >= 19970728 ,parser3_child_exit /* process exit/cleanup */