--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/22 11:19:12 1.8 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/03/22 15:30:46 1.10 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: mod_parser3.C,v 1.8 2001/03/22 11:19:12 paf Exp $ + $Id: mod_parser3.C,v 1.10 2001/03/22 15:30:46 paf Exp $ */ #include "httpd.h" @@ -429,12 +429,12 @@ static const char *cmd_parser_auto_path( //@{ /// service func decl static const char *get_env(Pool& pool, const char *name) { - request_rec *r=static_cast(pool.info()); + request_rec *r=static_cast(pool.context()); return (const char *)ap_table_get(r->subprocess_env, name); } static uint read_post(Pool& pool, char *buf, uint max_bytes) { - request_rec *r=static_cast(pool.info()); + request_rec *r=static_cast(pool.context()); /* ap_log_error(APLOG_MARK, APLOG_DEBUG, r->server, "mod_parser3: read_post(max=%u)", max_bytes); @@ -461,7 +461,7 @@ static uint read_post(Pool& pool, char * } static void add_header_attribute(Pool& pool, const char *key, const char *value) { - request_rec *r=static_cast(pool.info()); + request_rec *r=static_cast(pool.context()); if(strcasecmp(key, "content-type")==0) { /* r->content_type, *not* r->headers_out("Content-type"). If you don't @@ -475,7 +475,7 @@ static void add_header_attribute(Pool& p } static void send_header(Pool& pool) { - request_rec *r=static_cast(pool.info()); + request_rec *r=static_cast(pool.context()); ap_hard_timeout("Send header", r); ap_send_http_header(r); @@ -483,7 +483,7 @@ static void send_header(Pool& pool) { } static void send_body(Pool& pool, const char *buf, size_t size) { - request_rec *r=static_cast(pool.info()); + request_rec *r=static_cast(pool.context()); ap_hard_timeout("Send body", r); ap_rwrite(buf, size, r); @@ -505,7 +505,7 @@ static int parser_handler(request_rec *r { Pool pool; pool.set_storage(r->pool); - pool.set_info(r); + pool.set_context(r); Parser_module_config *dcfg=our_dconfig(r); @@ -551,10 +551,6 @@ static int parser_handler(request_rec *r String::UL_HTML_TYPO ); - ap_log_error(APLOG_MARK, APLOG_DEBUG, r->server, - "mod_parser3: handler(%s|%s)", dcfg->parser_root_auto_path, - dcfg->parser_site_auto_path); - // process the request request.core( dcfg->parser_root_auto_path, true, // /path/to/admin/auto.p @@ -630,11 +626,7 @@ static int parser_handler(request_rec *r * * There is no return value. */ - - -/* - * All our module-initialiser does is add its trace to the log. - */ +/// @todo answer this: "why when it's called second time all globals are cleared?" static void parser_init(server_rec *s, pool *p) { #if MODULE_MAGIC_NUMBER >= 19980527 @@ -655,7 +647,7 @@ static void parser_init(server_rec *s, p //... } PCATCH(e) { // global problem const char *body=e.comment(); - // somehow report that error + // TODO: somehow report that error } PEND_CATCH }