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

version 1.43.2.15.2.2, 2003/03/19 16:28:08 version 1.43.2.15.2.7, 2003/03/24 17:52:19
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 56  Exception::Exception( Line 56  Exception::Exception(
         fproblem_source(aproblem_source) {          fproblem_source(aproblem_source) {
   
         const char* xml_generic_errors=xmlGenericErrors();          const char* xml_generic_errors=xmlGenericErrors();
         if(xml_generic_errors.get() || exc) {          if(xml_generic_errors || exc) {
                 const char* s;                  const char* s;
                 switch((GdomeExceptionCode)exc) {                  switch((GdomeExceptionCode)exc) {
                 case GDOME_NOEXCEPTION_ERR: s="NOEXCEPTION_ERR"; break;                  case GDOME_NOEXCEPTION_ERR: s="NOEXCEPTION_ERR"; break;
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.7


E-mail: