Diff for /parser3/src/main/pa_exception.C between versions 1.43.2.15.2.2 and 1.43.2.15.2.6

version 1.43.2.15.2.2, 2003/03/19 16:28:08 version 1.43.2.15.2.6, 2003/03/24 13:43:41
Line 39  Exception::Exception(const char* atype, Line 39  Exception::Exception(const char* atype,
         fproblem_source=aproblem_source;          fproblem_source=aproblem_source;
   
         if(comment_fmt) {          if(comment_fmt) {
                 fcomment=new char[MAX_STRING];                  fcomment=new(PointerFreeGC) char[MAX_STRING];
                 va_list args;                  va_list args;
                 va_start(args, comment_fmt);                  va_start(args, comment_fmt);
                 vsnprintf(fcomment, MAX_STRING, comment_fmt, args);                  vsnprintf(fcomment, MAX_STRING, comment_fmt, args);
Line 79  Exception::Exception( Line 79  Exception::Exception(
                 default: s="<UNKNOWN CODE>"; break;                  default: s="<UNKNOWN CODE>"; break;
                 }                  }
                                   
                 fcomment=CharPtr(new char[MAX_STRING]);                  fcomment=new(PointerFreeGC) char[MAX_STRING];
                 const char* xml_error_message;                  const char* xml_error_message;
                 const char* xml_error_prefix;                  const char* xml_error_prefix;
                 if(xml_generic_errors) {                  if(xml_generic_errors) {
Line 103  Exception::Exception( Line 103  Exception::Exception(
                                         xml_error_message // xml generic messages accumulated                                          xml_error_message // xml generic messages accumulated
                         );                          );
         } else          } else
                 fcomment=CharPtr(0);                  fcomment=0;
 }  }
 #endif  #endif
   
 const String* Exception::problem_source() const {   const String* Exception::problem_source() const { 
         return fproblem_source && fproblem_source->size()?fproblem_source:0;           return fproblem_source && fproblem_source->length()?fproblem_source:0; 
 }  }

Removed from v.1.43.2.15.2.2  
changed lines
  Added in v.1.43.2.15.2.6


E-mail: