diff options
Diffstat (limited to 'data/libxml2')
-rw-r--r-- | data/libxml2/_metadata/depiction | 1 | ||||
-rw-r--r-- | data/libxml2/_metadata/homepage | 1 | ||||
-rw-r--r-- | data/libxml2/formed.diff | 38 | ||||
-rw-r--r-- | data/libxml2/nspop.diff | 10 |
4 files changed, 50 insertions, 0 deletions
diff --git a/data/libxml2/_metadata/depiction b/data/libxml2/_metadata/depiction new file mode 100644 index 000000000..e14987749 --- /dev/null +++ b/data/libxml2/_metadata/depiction @@ -0,0 +1 @@ +http://cydia.saurik.com/info/libxml2/ diff --git a/data/libxml2/_metadata/homepage b/data/libxml2/_metadata/homepage new file mode 100644 index 000000000..3257c46a0 --- /dev/null +++ b/data/libxml2/_metadata/homepage @@ -0,0 +1 @@ +http://xmlsoft.org/ 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); + } + diff --git a/data/libxml2/nspop.diff b/data/libxml2/nspop.diff new file mode 100644 index 000000000..c324af8ac --- /dev/null +++ b/data/libxml2/nspop.diff @@ -0,0 +1,10 @@ +--- libxml2-2.6.16/parser.c 2004-11-09 15:48:18.000000000 +0000 ++++ libxml2-2.6.16+iPhone/parser.c 2007-08-10 01:39:38.000000000 +0000 +@@ -9253,6 +9276,8 @@ + (!ctxt->disableSAX)) + ctxt->sax->endElementNs(ctxt->userData, name, prefix, URI); ++ if (ctxt->nsNr - nsNr > 0) ++ nsPop(ctxt, ctxt->nsNr - nsNr); + #ifdef LIBXML_SAX1_ENABLED + } else { + if ((ctxt->sax != NULL) && (ctxt->sax->endElement != NULL) && |