Diff for /parser3/src/targets/isapi/parser3isapi.C between versions 1.35 and 1.38

version 1.35, 2001/06/28 07:44:17 version 1.38, 2001/09/06 06:11:13
Line 27  static const char *RCSId="$Id$"; Line 27  static const char *RCSId="$Id$";
   
 // SAPI  // SAPI
   
 /**   #ifndef DOXYGEN
   /*
         ISAPI SAPI functions receive this context information.           ISAPI SAPI functions receive this context information. 
           see Pool::set_context
         @see Pool::set_context  
 */  */
 struct SAPI_func_context {  struct SAPI_func_context {
         LPEXTENSION_CONTROL_BLOCK lpECB;          LPEXTENSION_CONTROL_BLOCK lpECB;
         String *header;          String *header;
         DWORD http_response_code;          DWORD http_response_code;
 };  };
   #endif
   
 // goes to 'cs-uri-query' log file field. webmaster: switch it ON[default OFF].  // goes to 'cs-uri-query' log file field. webmaster: switch it ON[default OFF].
 void SAPI::log(Pool& pool, const char *fmt, ...) {  void SAPI::log(Pool& pool, const char *fmt, ...) {
Line 199  static bool parser_init() { Line 200  static bool parser_init() {
 /// ISAPI //  /// ISAPI //
 BOOL WINAPI GetExtensionVersion(HSE_VERSION_INFO *pVer) {  BOOL WINAPI GetExtensionVersion(HSE_VERSION_INFO *pVer) {
         pVer->dwExtensionVersion = HSE_VERSION;          pVer->dwExtensionVersion = HSE_VERSION;
         strncpy(pVer->lpszExtensionDesc, "Parser "PARSER_VERSION, HSE_MAX_EXT_DLL_NAME_LEN);          strncpy(pVer->lpszExtensionDesc, "Parser "PARSER_VERSION, HSE_MAX_EXT_DLL_NAME_LEN-1);
           pVer->lpszExtensionDesc[HSE_MAX_EXT_DLL_NAME_LEN-1]=0;
         return parser_init();          return parser_init();
 }  }
   
Line 211  BOOL WINAPI GetExtensionVersion(HSE_VERS Line 213  BOOL WINAPI GetExtensionVersion(HSE_VERS
                 to do that we need to consult metabase,                  to do that we need to consult metabase,
                 wich is tested&works but seems slow runtime                   wich is tested&works but seems slow runtime 
                 and not could-be-quickly-implemented if prepared.                  and not could-be-quickly-implemented if prepared.
           @test
                   PARSER_VERSION from outside
 */  */
 DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB) {  DWORD WINAPI HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB) {
         Pool_storage pool_storage;          Pool_storage pool_storage;
Line 240  DWORD WINAPI HttpExtensionProc(LPEXTENSI Line 244  DWORD WINAPI HttpExtensionProc(LPEXTENSI
                         // IIS                          // IIS
                         size_t len=strlen(filespec_to_process)-strlen(path_info);                          size_t len=strlen(filespec_to_process)-strlen(path_info);
                         char *buf=(char *)pool.malloc(len+1);                          char *buf=(char *)pool.malloc(len+1);
                         strncpy(buf, filespec_to_process, len);                          strncpy(buf, filespec_to_process, len); buf[len]=0;
                         buf[len]=0;  
                         request_info.document_root=buf;                          request_info.document_root=buf;
                 } else                  } else
                         PTHROW(0, 0,                          PTHROW(0, 0,

Removed from v.1.35  
changed lines
  Added in v.1.38


E-mail: