Diff for /parser3/src/main/pa_globals.C between versions 1.152.2.19 and 1.152.2.19.2.3

version 1.152.2.19, 2003/03/07 14:56:59 version 1.152.2.19.2.3, 2003/03/24 13:43:41
Line 71  public: Line 71  public:
                 thread_id=0;                   thread_id=0; 
                 buf[used=0]=0;                  buf[used=0]=0;
         }          }
         CharPtr get_and_reset() {          const char* get_and_reset() {
                 CharPtr result(new char[used+1]);                  const char* result=(PointerFreeGC)new char[used+1];
                 memcpy(result.get(), buf, used+1);                  memcpy(result, buf, used+1);
                 reset();                  reset();
                 return result;                  return result;
         }          }
Line 123  bool xmlHaveGenericErrors() { Line 123  bool xmlHaveGenericErrors() {
         return xml_generic_error_info(thread_id)!=0;          return xml_generic_error_info(thread_id)!=0;
 }  }
   
 CharPtr xmlGenericErrors() {  const char* xmlGenericErrors() {
     pa_thread_t thread_id=pa_get_thread_id();      pa_thread_t thread_id=pa_get_thread_id();
   
         SYNCHRONIZED;  // find+free blocked          SYNCHRONIZED;  // find+free blocked
   
         XML_Generic_error_info *p=xml_generic_error_info(thread_id);          XML_Generic_error_info *p=xml_generic_error_info(thread_id);
         if(!p) // no errors for our thread_id registered          if(!p) // no errors for our thread_id registered
                 return CharPtr(0);                  return 0;
   
         return p->get_and_reset();          return p->get_and_reset();
 }  }

Removed from v.1.152.2.19  
changed lines
  Added in v.1.152.2.19.2.3


E-mail: