amassari    2005/03/09 08:07:12

  Modified:    c/src/xercesc/parsers DOMBuilderImpl.hpp
                        SAX2XMLFilterImpl.hpp SAX2XMLReaderImpl.hpp
                        SAXParser.hpp XercesDOMParser.hpp
               c/src/xercesc/internal ReaderMgr.hpp
               c/src/xercesc/sax2 SAX2XMLReader.hpp
  Log:
  Protected getSrcOffset to avoid crashing when parsing has finished; updated 
documentation
  
  Revision  Changes    Path
  1.18      +2 -1      xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.hpp
  
  Index: DOMBuilderImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/DOMBuilderImpl.hpp,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DOMBuilderImpl.hpp        8 Sep 2004 13:56:17 -0000       1.17
  +++ DOMBuilderImpl.hpp        9 Mar 2005 16:07:09 -0000       1.18
  @@ -652,6 +652,7 @@
   
       /**
         * Returns the current src offset within the input source.
  +      * To be used only while parsing is in progress.
         *
         * @return offset within the input source
         */
  
  
  
  1.3       +4 -0      xml-xerces/c/src/xercesc/parsers/SAX2XMLFilterImpl.hpp
  
  Index: SAX2XMLFilterImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAX2XMLFilterImpl.hpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SAX2XMLFilterImpl.hpp     6 Jan 2005 21:39:44 -0000       1.2
  +++ SAX2XMLFilterImpl.hpp     9 Mar 2005 16:07:09 -0000       1.3
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.3  2005/03/09 16:07:09  amassari
  + * Protected getSrcOffset to avoid crashing when parsing has finished; 
updated documentation
  + *
    * Revision 1.2  2005/01/06 21:39:44  amassari
    * Removed warnings
    *
  @@ -473,6 +476,7 @@
   
       /**
         * Returns the current src offset within the input source.
  +      * To be used only while parsing is in progress.
         *
         * @return offset within the input source
         */
  
  
  
  1.31      +4 -0      xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.hpp
  
  Index: SAX2XMLReaderImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAX2XMLReaderImpl.hpp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- SAX2XMLReaderImpl.hpp     25 Feb 2005 11:31:07 -0000      1.30
  +++ SAX2XMLReaderImpl.hpp     9 Mar 2005 16:07:10 -0000       1.31
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.31  2005/03/09 16:07:10  amassari
  + * Protected getSrcOffset to avoid crashing when parsing has finished; 
updated documentation
  + *
    * Revision 1.30  2005/02/25 11:31:07  amassari
    * Performance improvements by David Bertoni (jira# 1343)
    *
  @@ -729,6 +732,7 @@
   
       /**
         * Returns the current src offset within the input source.
  +      * To be used only while parsing is in progress.
         *
         * @return offset within the input source
         */
  
  
  
  1.38      +5 -0      xml-xerces/c/src/xercesc/parsers/SAXParser.hpp
  
  Index: SAXParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/SAXParser.hpp,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- SAXParser.hpp     7 Dec 2004 19:45:43 -0000       1.37
  +++ SAXParser.hpp     9 Mar 2005 16:07:10 -0000       1.38
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.38  2005/03/09 16:07:10  amassari
  + * Protected getSrcOffset to avoid crashing when parsing has finished; 
updated documentation
  + *
    * Revision 1.37  2004/12/07 19:45:43  knoaman
    * An option to ignore a cached DTD grammar when a document contains an
    * internal and external subset.
  @@ -657,6 +660,7 @@
   
       /**
        * Returns the current src offset within the input source.
  +     * To be used only while parsing is in progress.
        *
        * @return offset within the input source
        */
  
  
  
  1.22      +2 -1      xml-xerces/c/src/xercesc/parsers/XercesDOMParser.hpp
  
  Index: XercesDOMParser.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/parsers/XercesDOMParser.hpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- XercesDOMParser.hpp       7 Dec 2004 19:45:43 -0000       1.21
  +++ XercesDOMParser.hpp       9 Mar 2005 16:07:10 -0000       1.22
  @@ -195,6 +195,7 @@
   
       /**
        * Returns the current src offset within the input source.
  +     * To be used only while parsing is in progress.
        *
        * @return offset within the input source
        */
  
  
  
  1.16      +4 -1      xml-xerces/c/src/xercesc/internal/ReaderMgr.hpp
  
  Index: ReaderMgr.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/ReaderMgr.hpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ReaderMgr.hpp     8 Feb 2005 09:21:11 -0000       1.15
  +++ ReaderMgr.hpp     9 Mar 2005 16:07:11 -0000       1.16
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.16  2005/03/09 16:07:11  amassari
  + * Protected getSrcOffset to avoid crashing when parsing has finished; 
updated documentation
  + *
    * Revision 1.15  2005/02/08 09:21:11  amassari
    * Removed warnings
    *
  @@ -412,7 +415,7 @@
   
   inline unsigned int ReaderMgr::getSrcOffset() const
   {
  -    return fCurReader->getSrcOffset();
  +    return fCurReader? fCurReader->getSrcOffset() : 0;
   }
   
   inline bool ReaderMgr::lookingAtChar(const XMLCh chToCheck)
  
  
  
  1.15      +4 -0      xml-xerces/c/src/xercesc/sax2/SAX2XMLReader.hpp
  
  Index: SAX2XMLReader.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/sax2/SAX2XMLReader.hpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SAX2XMLReader.hpp 6 Jan 2005 21:39:44 -0000       1.14
  +++ SAX2XMLReader.hpp 9 Mar 2005 16:07:11 -0000       1.15
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.15  2005/03/09 16:07:11  amassari
  + * Protected getSrcOffset to avoid crashing when parsing has finished; 
updated documentation
  + *
    * Revision 1.14  2005/01/06 21:39:44  amassari
    * Removed warnings
    *
  @@ -601,6 +604,7 @@
   
       /**
         * Returns the current src offset within the input source.
  +      * To be used only while parsing is in progress.
         *
         * @return offset within the input source
         */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to