expat/lib xmltok_impl.c,1.6,1.7 xmlparse.c,1.82,1.83

"Karl Waclawek" <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv7788

Modified Files:
	xmltok_impl.c xmlparse.c 
Log Message:
Added some comments regarding previous fix (bug #602729).

Index: xmltok_impl.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmltok_impl.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- xmltok_impl.c	30 Aug 2002 23:22:20 -0000	1.6
+++ xmltok_impl.c	31 Aug 2002 02:27:20 -0000	1.7
@@ -1011,6 +1011,7 @@
   case BT_CR:
     if (ptr + MINBPC(enc) == end) {
       *nextTokPtr = end;
+      /* indicate that this might be part of a CR/LF pair */
       return -XML_TOK_PROLOG_S;
     }
     /* fall through */

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- xmlparse.c	30 Aug 2002 23:22:20 -0000	1.82
+++ xmlparse.c	31 Aug 2002 02:27:20 -0000	1.83
@@ -4022,7 +4022,8 @@
     int tok = XmlPrologTok(encoding, s, end, &next);
     eventEndPtr = next;
     switch (tok) {
-    case -XML_TOK_PROLOG_S:
+    /* report partial linebreak - it might be the last token */
+    case -XML_TOK_PROLOG_S: 
       if (defaultHandler) {
         eventEndPtr = next;
         reportDefault(parser, encoding, s, next);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.