|
|
| version 1.83, 2003/07/24 11:31:25 | version 1.85, 2003/11/21 09:38:14 |
|---|---|
| Line 5 | Line 5 |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| static const char* IDENT_PARSER3ISAPI_C="$Date$"; | static const char * const IDENT_PARSER3ISAPI_C="$Date$"; |
| #ifndef _MSC_VER | #ifndef _MSC_VER |
| # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] | # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] |
| Line 81 void SAPI::log(SAPI_Info& SAPI_info, con | Line 81 void SAPI::log(SAPI_Info& SAPI_info, con |
| } | } |
| /// @todo event log | /// @todo event log |
| static void die_or_abort(const char* fmt, va_list args, bool write_core) { | static void abort(const char* fmt, va_list args) { |
| if(FILE *log=fopen("c:\\parser3die.log", "at")) { | if(FILE *log=fopen("c:\\parser3die.log", "at")) { |
| vfprintf(log, fmt, args); | vfprintf(log, fmt, args); |
| fclose(log); | fclose(log); |
| Line 92 static void die_or_abort(const char* fmt | Line 92 static void die_or_abort(const char* fmt |
| void SAPI::die(const char* fmt, ...) { | void SAPI::die(const char* fmt, ...) { |
| va_list args; | va_list args; |
| va_start(args, fmt); | va_start(args, fmt); |
| die_or_abort(fmt, args, false/*write core?*/); | ::abort(fmt, args); |
| va_end(args); | va_end(args); |
| } | } |
| void SAPI::abort(const char* fmt, ...) { | void SAPI::abort(const char* fmt, ...) { |
| va_list args; | va_list args; |
| va_start(args, fmt); | va_start(args, fmt); |
| die_or_abort(fmt, args, true/*write core?*/); | ::abort(fmt, args); |
| va_end(args); | va_end(args); |
| } | } |
| Line 265 static bool parser_init() { | Line 265 static bool parser_init() { |
| // successful finish | // successful finish |
| return true; | return true; |
| } catch(const Exception& e) { // global problem | } catch(const Exception& e) { // global problem |
| const char* body=e.comment(); | //const char* body=e.comment(); |
| // unsuccessful finish | // unsuccessful finish |
| return false; | return false; |
| Line 473 DWORD WINAPI HttpExtensionProc(LPEXTENSI | Line 473 DWORD WINAPI HttpExtensionProc(LPEXTENSI |
| BOOL WINAPI DllMain( | BOOL WINAPI DllMain( |
| HINSTANCE hinstDLL, // handle to the DLL module | HINSTANCE hinstDLL, // handle to the DLL module |
| DWORD fdwReason, // reason for calling function | DWORD /*fdwReason*/, // reason for calling function |
| LPVOID lpvReserved // reserved | LPVOID /*lpvReserved*/ // reserved |
| ) { | ) { |
| GetModuleFileName( | GetModuleFileName( |