diff options
author | Jay Freeman <saurik@saurik.com> | 2009-06-20 01:30:42 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2009-06-20 01:30:42 +0000 |
commit | b047ebb3a6b1ad92dde89b400169cd091d2da568 (patch) | |
tree | a1e2b4870723baeb677398aa4dae9db048e26111 /data/_libxml2/formed.diff | |
parent | 086a9c8bd2ef956336016613e7691d304d0116fa (diff) |
Stage 1 of massive libxml2 reorganization.
git-svn-id: http://svn.telesphoreo.org/trunk@626 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/_libxml2/formed.diff')
-rw-r--r-- | data/_libxml2/formed.diff | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/data/_libxml2/formed.diff b/data/_libxml2/formed.diff new file mode 100644 index 000000000..9ff684d7c --- /dev/null +++ b/data/_libxml2/formed.diff @@ -0,0 +1,38 @@ +diff -ru libxml2-2.6.32/parser.c libxml2-2.6.32+iPhone/parser.c +--- libxml2-2.6.32/parser.c 2008-04-08 14:47:58.000000000 +0000 ++++ libxml2-2.6.32+iPhone/parser.c 2008-08-28 07:30:34.000000000 +0000 +@@ -10003,7 +10003,7 @@ + xmlParseGetLasts(ctxt, &lastlt, &lastgt); + + while (1) { +- if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX == 1)) ++ if ((ctxt->wellFormed != 1) && (ctxt->disableSAX == 1)) + return(0); + + +@@ -10881,7 +10881,7 @@ + + if (ctxt == NULL) + return(XML_ERR_INTERNAL_ERROR); +- if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX == 1)) ++ if ((ctxt->wellFormed != 1) && (ctxt->disableSAX == 1)) + return(ctxt->errNo); + if (ctxt->instate == XML_PARSER_START) + xmlDetectSAX2(ctxt); +@@ -10932,7 +10932,7 @@ + (ctxt->input->buf != NULL)) { + xmlParserInputBufferPush(ctxt->input->buf, 1, "\r"); + } +- if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX == 1)) ++ if ((ctxt->wellFormed != 1) && (ctxt->disableSAX == 1)) + return(ctxt->errNo); + if (terminate) { + /* +@@ -10962,6 +10962,7 @@ + } + ctxt->instate = XML_PARSER_EOF; + } ++ if (ctxt->wellFormed) return(0); + return((xmlParserErrors) ctxt->errNo); + } + |