|
|
| version 1.146, 2001/12/06 20:19:31 | version 1.152, 2002/01/31 11:11:45 |
|---|---|
| Line 9 | Line 9 |
| #include "pa_config_includes.h" | #include "pa_config_includes.h" |
| #ifdef WIN32 | |
| # include <windows.h> | |
| #endif | |
| #if _MSC_VER | #if _MSC_VER |
| # include <new.h> | # include <new.h> |
| # include <crtdbg.h> | |
| #else | |
| # include "pa_config_paths.h" | |
| #endif | #endif |
| #include "pa_sapi.h" | #include "pa_sapi.h" |
| Line 25 | Line 24 |
| #include "pa_version.h" | #include "pa_version.h" |
| #include "pool_storage.h" | #include "pool_storage.h" |
| #ifdef XML | #ifdef WIN32 |
| #include <XalanTransformer/XalanCAPI.h> | # include <windows.h> |
| #endif | #endif |
| //#define DEBUG_POOL_MALLOC | //#define DEBUG_POOL_MALLOC |
| Line 41 extern const char *gd_RCSIds[]; | Line 40 extern const char *gd_RCSIds[]; |
| extern const char *classes_RCSIds[]; | extern const char *classes_RCSIds[]; |
| extern const char *types_RCSIds[]; | extern const char *types_RCSIds[]; |
| extern const char *parser3_RCSIds[]; | extern const char *parser3_RCSIds[]; |
| #ifdef XML | |
| extern const char *xalan_patched_RCSIds[]; | |
| #endif | |
| const char **RCSIds[]={ | const char **RCSIds[]={ |
| main_RCSIds, | main_RCSIds, |
| #ifdef USE_SMTP | #ifdef USE_SMTP |
| Line 53 const char **RCSIds[]={ | Line 49 const char **RCSIds[]={ |
| classes_RCSIds, | classes_RCSIds, |
| types_RCSIds, | types_RCSIds, |
| parser3_RCSIds, | parser3_RCSIds, |
| #ifdef XML | |
| xalan_patched_RCSIds, | |
| #endif | |
| 0 | 0 |
| }; | }; |
| Line 177 void SAPI::add_header_attribute(Pool& , | Line 170 void SAPI::add_header_attribute(Pool& , |
| /// @todo intelligent cache-control | /// @todo intelligent cache-control |
| void SAPI::send_header(Pool& ) { | void SAPI::send_header(Pool& ) { |
| if(cgi) { | if(cgi) { |
| puts("expires: Fri, 23 Mar 2001 09:32:23 GMT"); | // puts("expires: Fri, 23 Mar 2001 09:32:23 GMT"); |
| // header | body delimiter | // header | body delimiter |
| puts(""); | puts(""); |
| Line 215 void real_parser_handler( | Line 208 void real_parser_handler( |
| // init socks | // init socks |
| init_socks(pool); | init_socks(pool); |
| #ifdef XML | |
| /** | |
| * Initialize Xerces and Xalan. | |
| * | |
| * Should be called only once per process before making | |
| * any other API calls. | |
| */ | |
| //_asm int 3; | |
| XalanInitialize(); | |
| #endif | |
| // init global classes | // init global classes |
| init_methoded_array(pool); | init_methoded_array(pool); |
| // init global variables | // init global variables |
| Line 311 void real_parser_handler( | Line 293 void real_parser_handler( |
| true /* status_allowed */); | true /* status_allowed */); |
| // some root-controlled location | // some root-controlled location |
| #ifdef SYSCONFDIR | #ifdef ROOT_CONFIG_DIR |
| const char *root_config_filespec=SYSCONFDIR "/" CONFIG_FILE_NAME; | const char *root_config_filespec=ROOT_CONFIG_DIR "/" CONFIG_FILE_NAME; |
| #else | #else |
| # ifdef WIN32 | # ifdef WIN32 |
| // c:\windows | // c:\windows |
| Line 435 int main(int argc, char *argv[]) { | Line 417 int main(int argc, char *argv[]) { |
| #if _MSC_VER | #if _MSC_VER |
| _set_new_handler(failed_new); | _set_new_handler(failed_new); |
| #ifdef _DEBUG | |
| // Get current flag | |
| int tmpFlag = _CrtSetDbgFlag( _CRTDBG_REPORT_FLAG ); | |
| // Turn on leak-checking bit | |
| tmpFlag |= _CRTDBG_LEAK_CHECK_DF; | |
| // Set flag to the new value | |
| _CrtSetDbgFlag( tmpFlag ); | |
| // _CrtSetBreakAlloc(471); | |
| #endif | |
| #endif | #endif |
| #ifdef HAVE_SET_NEW_HANDLER | #ifdef HAVE_SET_NEW_HANDLER |