Diff for /parser3/src/main/pa_globals.C between versions 1.142 and 1.149

version 1.142, 2002/11/25 15:37:12 version 1.149, 2003/01/10 16:52:25
Line 32  extern "C" { Line 32  extern "C" {
 String *content_type_name;  String *content_type_name;
 String *charset_name;  String *charset_name;
 String *body_name;  String *body_name;
   String *download_name;
 String *value_name;  String *value_name;
 String *expires_name;  String *expires_name;
 String *path_name;  String *path_name;
Line 40  String *size_name; Line 41  String *size_name;
 String *text_name;  String *text_name;
   
 String *content_disposition_name;  String *content_disposition_name;
   String *content_disposition_value;
 String *content_disposition_filename_name;  String *content_disposition_filename_name;
   
 String *conf_method_name;  String *conf_method_name;
Line 245  xmlFileOpenLocalhost (const char *filena Line 247  xmlFileOpenLocalhost (const char *filena
     return((void *) fd);      return((void *) fd);
 }  }
   
 /**  
  * xmlFileRead:  
  * @context:  the I/O context  
  * @buffer:  where to drop data  
  * @len:  number of bytes to write  
  *  
  * Read @len bytes to @buffer from the I/O channel.  
  *  
  * Returns the number of bytes written  
  */  
 static int  
 xmlFileRead (void * context, char * buffer, int len) {  
     return(fread(&buffer[0], 1,  len, (FILE *) context));  
 }  
   
 /**  
  * xmlFileWrite:  
  * @context:  the I/O context  
  * @buffer:  where to drop data  
  * @len:  number of bytes to write  
  *  
  * Write @len bytes from @buffer to the I/O channel.  
  *  
  * Returns the number of bytes written  
  */  
 static int  
 xmlFileWrite (void * context, const char * buffer, int len) {  
     return(fwrite(&buffer[0], 1,  len, (FILE *) context));  
 }  
   
 /**  
  * xmlFileClose:  
  * @context:  the I/O context  
  *  
  * Close an I/O channel  
  */  
 static int  
 xmlFileClose (void * context) {  
     return ( ( fclose((FILE *) context) == EOF ) ? -1 : 0 );  
 }  
   
 #endif  #endif
   
 void pa_globals_destroy(void *) {  void pa_globals_destroy(void *) {
Line 318  void pa_globals_init(Pool& pool) { Line 279  void pa_globals_init(Pool& pool) {
         content_type_name=NEW String(pool, CONTENT_TYPE_NAME);          content_type_name=NEW String(pool, CONTENT_TYPE_NAME);
         charset_name=NEW String(pool, CHARSET_NAME);          charset_name=NEW String(pool, CHARSET_NAME);
         body_name=NEW String(pool, BODY_NAME);          body_name=NEW String(pool, BODY_NAME);
           download_name=NEW String(pool, DOWNLOAD_NAME);
         value_name=NEW String(pool, VALUE_NAME);          value_name=NEW String(pool, VALUE_NAME);
         expires_name=NEW String(pool, EXPIRES_NAME);          expires_name=NEW String(pool, EXPIRES_NAME);
         path_name=NEW String(pool, PATH_NAME);          path_name=NEW String(pool, PATH_NAME);
Line 326  void pa_globals_init(Pool& pool) { Line 288  void pa_globals_init(Pool& pool) {
         text_name=NEW String(pool, TEXT_NAME);          text_name=NEW String(pool, TEXT_NAME);
   
         content_disposition_name=NEW String(pool, CONTENT_DISPOSITION_NAME);          content_disposition_name=NEW String(pool, CONTENT_DISPOSITION_NAME);
           content_disposition_value=NEW String(pool, CONTENT_DISPOSITION_VALUE);
         content_disposition_filename_name=NEW String(pool, CONTENT_DISPOSITION_FILENAME_NAME);          content_disposition_filename_name=NEW String(pool, CONTENT_DISPOSITION_FILENAME_NAME);
   
         conf_method_name=NEW String(pool, CONF_METHOD_NAME);          conf_method_name=NEW String(pool, CONF_METHOD_NAME);
Line 378  void pa_globals_init(Pool& pool) { Line 341  void pa_globals_init(Pool& pool) {
         #define ULN(cstr, LANG) \          #define ULN(cstr, LANG) \
                 untaint_lang_name2enum->put(*NEW String(pool, cstr), (int)String::UL_##LANG);                  untaint_lang_name2enum->put(*NEW String(pool, cstr), (int)String::UL_##LANG);
         ULN("as-is", AS_IS);          ULN("as-is", AS_IS);
           ULN("optimized-as-is", AS_IS|String::UL_OPTIMIZE_BIT);
         ULN("file-spec", FILE_SPEC);          ULN("file-spec", FILE_SPEC);
         ULN("http-header", HTTP_HEADER);          ULN("http-header", HTTP_HEADER);
         ULN("mail-header", MAIL_HEADER);          ULN("mail-header", MAIL_HEADER);
Line 386  void pa_globals_init(Pool& pool) { Line 350  void pa_globals_init(Pool& pool) {
         ULN("sql", SQL);          ULN("sql", SQL);
         ULN("js", JS);          ULN("js", JS);
         ULN("xml", XML);          ULN("xml", XML);
           ULN("optimized-xml", XML|String::UL_OPTIMIZE_BIT);
         ULN("html", HTML);          ULN("html", HTML);
         ULN("optimized-html", HTML|String::UL_OPTIMIZE_BIT);          ULN("optimized-html", HTML|String::UL_OPTIMIZE_BIT);
   

Removed from v.1.142  
changed lines
  Added in v.1.149


E-mail: