summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwaclaw <kwaclaw>2006-04-07 20:24:20 +0000
committerkwaclaw <kwaclaw>2006-04-07 20:24:20 +0000
commit6d06f9ea100596564279d46e67a7cd8c8ab381e7 (patch)
treec741db8f924721d0b10dd7595adbf940ea5158dd
parent258b59c516c590cdc282673f926e8724c3e011f2 (diff)
downloadlibexpat-6d06f9ea100596564279d46e67a7cd8c8ab381e7.tar.gz
Added XML_FEATURE_LARGE_SIZE to be able to detect if Expat was
compiled with XML_LARGE_SIZE - see XML_GetFeatureList().
-rw-r--r--lib/expat.h3
-rw-r--r--lib/xmlparse.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/expat.h b/lib/expat.h
index cf113ee..929ac44 100644
--- a/lib/expat.h
+++ b/lib/expat.h
@@ -983,7 +983,8 @@ enum XML_FeatureEnum {
XML_FEATURE_MIN_SIZE,
XML_FEATURE_SIZEOF_XML_CHAR,
XML_FEATURE_SIZEOF_XML_LCHAR,
- XML_FEATURE_NS
+ XML_FEATURE_NS,
+ XML_FEATURE_LARGE_SIZE
/* Additional features must be added to the end of this enum. */
};
diff --git a/lib/xmlparse.c b/lib/xmlparse.c
index 04f8b91..a2953ce 100644
--- a/lib/xmlparse.c
+++ b/lib/xmlparse.c
@@ -1948,6 +1948,9 @@ XML_GetFeatureList(void)
#ifdef XML_NS
{XML_FEATURE_NS, XML_L("XML_NS"), 0},
#endif
+#ifdef XML_LARGE_SIZE
+ {XML_FEATURE_LARGE_SIZE, XML_L("XML_LARGE_SIZE"), 0},
+#endif
{XML_FEATURE_END, NULL, 0}
};