aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-04-18 12:34:58 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-04-18 12:34:58 +0000
commit3e59fc52d52a7e07a9dbf214893d90c965b53c1c (patch)
tree31eba8b02b65f1fc8003ed56ba658893a14fed40 /include
parente81765f61094eee43dd09b99736927e373ce2c00 (diff)
downloadandroid_external_libxml2-3e59fc52d52a7e07a9dbf214893d90c965b53c1c.tar.gz
android_external_libxml2-3e59fc52d52a7e07a9dbf214893d90c965b53c1c.tar.bz2
android_external_libxml2-3e59fc52d52a7e07a9dbf214893d90c965b53c1c.zip
added support for large file, tested with a 3+GB instance, and some
* libxml.h include/libxml/parser.h parser.c xmlIO.c DOCBparser.c: added support for large file, tested with a 3+GB instance, and some cleanup. * catalog.c: added a TODO * Makefile.am: added some "make tests" comments Daniel
Diffstat (limited to 'include')
-rw-r--r--include/libxml/parser.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libxml/parser.h b/include/libxml/parser.h
index d221825f..d623e73f 100644
--- a/include/libxml/parser.h
+++ b/include/libxml/parser.h
@@ -55,7 +55,12 @@ struct _xmlParserInput {
int length; /* length if known */
int line; /* Current line */
int col; /* Current column */
- int consumed; /* How many xmlChars already consumed */
+ /*
+ * NOTE: consumed is only tested for equality in the parser code,
+ * so even if there is an overflow this should not give troubles
+ * for parsing very large instances.
+ */
+ unsigned long consumed; /* How many xmlChars already consumed */
xmlParserInputDeallocate free; /* function to deallocate the base */
const xmlChar *encoding; /* the encoding string for entity */
const xmlChar *version; /* the version string for entity */