diff options
author | Daniel Veillard <veillard@redhat.com> | 2012-08-13 12:41:33 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-08-13 12:41:33 +0800 |
commit | 968a03a2e54f5bcf53089f5e3c8f790dbe0bf824 (patch) | |
tree | 03e35961a6c9e704aa545876e798f586d51b6007 /xmllint.c | |
parent | 264cee695ad2ff20776ec880f1bb8185367bbf58 (diff) | |
download | libxml2-968a03a2e54f5bcf53089f5e3c8f790dbe0bf824.tar.gz |
Add support for big line numbers in error reporting
Fix the lack of line number as reported by Johan Corveleyn <jcorvel@gmail.com>
* parser.c include/libxml/parser.h: add an XML_PARSE_BIG_LINES parser
option not switch on by default, it's an opt-in
* SAX2.c: if XML_PARSE_BIG_LINES is set store the long line numbers
in the psvi field of text nodes
* tree.c: expand xmlGetLineNo to extract those informations, also
make sure we can't fail on recursive behaviour
* error.c: in __xmlRaiseError, if a node is provided, call
xmlGetLineNo() if we can't get a valid line number.
* xmllint.c: switch on XML_PARSE_BIG_LINES in xmllint
Diffstat (limited to 'xmllint.c')
-rw-r--r-- | xmllint.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -209,7 +209,7 @@ static xmlStreamCtxtPtr patstream = NULL; #ifdef LIBXML_XPATH_ENABLED static const char *xpathquery = NULL; #endif -static int options = XML_PARSE_COMPACT; +static int options = XML_PARSE_COMPACT | XML_PARSE_BIG_LINES; static int sax = 0; static int oldxml10 = 0; |