--- parser3/src/targets/cgi/parser3.C 2001/03/21 14:06:52 1.27 +++ parser3/src/targets/cgi/parser3.C 2001/03/21 16:59:07 1.29 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.27 2001/03/21 14:06:52 paf Exp $ + $Id: parser3.C,v 1.29 2001/03/21 16:59:07 paf Exp $ */ #ifdef HAVE_CONFIG_H @@ -34,7 +34,7 @@ #include "pa_globals.h" #include "pa_request.h" -Pool pool; ///< global pool +Pool pool; // global pool bool cgi; ///< we were started as CGI? #ifdef WIN32 @@ -78,6 +78,10 @@ void fix_slashes(char *s) { // service funcs +const char *get_env(Pool& pool, const char *name) { + return getenv(name); +} + int read_post(char *buf, int max_bytes) { int read_size=0; do { @@ -114,6 +118,7 @@ int main(int argc, char *argv[]) { //\#endif // Service funcs + service_funcs.get_env=get_env; service_funcs.read_post=read_post; service_funcs.output_header_attribute=output_header_attribute; service_funcs.output_body=output_body;