--- parser3/src/targets/isapi/parser3isapi.C 2003/07/24 11:31:25 1.83 +++ parser3/src/targets/isapi/parser3isapi.C 2004/02/03 16:45:25 1.86 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3ISAPI_C="$Date: 2003/07/24 11:31:25 $"; +static const char * const IDENT_PARSER3ISAPI_C="$Date: 2004/02/03 16:45:25 $"; #ifndef _MSC_VER # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] @@ -81,7 +81,7 @@ void SAPI::log(SAPI_Info& SAPI_info, con } /// @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")) { vfprintf(log, fmt, args); fclose(log); @@ -92,14 +92,14 @@ static void die_or_abort(const char* fmt void SAPI::die(const char* fmt, ...) { va_list args; va_start(args, fmt); - die_or_abort(fmt, args, false/*write core?*/); + ::abort(fmt, args); va_end(args); } void SAPI::abort(const char* fmt, ...) { va_list args; va_start(args, fmt); - die_or_abort(fmt, args, true/*write core?*/); + ::abort(fmt, args); va_end(args); } @@ -265,7 +265,7 @@ static bool parser_init() { // successful finish return true; } catch(const Exception& e) { // global problem - const char* body=e.comment(); + //const char* body=e.comment(); // unsuccessful finish return false; @@ -414,7 +414,7 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSI char header_buf[MAX_STRING]; int header_len=snprintf(header_buf, MAX_STRING, "content-type: text/plain\r\n" - "content-length: %lu\r\n" + "content-length: %u\r\n" // "expires: Fri, 23 Mar 2001 09:32:23 GMT\r\n" "\r\n", content_length); @@ -447,7 +447,7 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSI char header_buf[MAX_STRING]; int header_len=snprintf(header_buf, MAX_STRING, "content-type: text/plain\r\n" - "content-length: %lu\r\n" + "content-length: %u\r\n" "expires: Fri, 23 Mar 2001 09:32:23 GMT\r\n" "\r\n", content_length); @@ -473,8 +473,8 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSI BOOL WINAPI DllMain( HINSTANCE hinstDLL, // handle to the DLL module - DWORD fdwReason, // reason for calling function - LPVOID lpvReserved // reserved + DWORD /*fdwReason*/, // reason for calling function + LPVOID /*lpvReserved*/ // reserved ) { GetModuleFileName(