aboutsummaryrefslogtreecommitdiffstats
path: root/entities.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>1999-12-01 09:51:45 +0000
committerDaniel Veillard <veillard@src.gnome.org>1999-12-01 09:51:45 +0000
commita594bf46ec7c4ad7ecb8f67b195e19b4684f8986 (patch)
treeb56185158daf90b99d9b2090573db5b8ac9905b9 /entities.c
parent6dff214ed72eb23122eb76bd2f0e23d79e482396 (diff)
downloadandroid_external_libxml2-a594bf46ec7c4ad7ecb8f67b195e19b4684f8986.tar.gz
android_external_libxml2-a594bf46ec7c4ad7ecb8f67b195e19b4684f8986.tar.bz2
android_external_libxml2-a594bf46ec7c4ad7ecb8f67b195e19b4684f8986.zip
- added the patch from Carl Nygard <cnygard@bellatlantic.net>
which allow impressive speed improvement on dataset with large text pieces, but at the cost of broken binary compatibility and slightly bigger memory usage. Configure with --with-buffers to activate them, they are protected with XML_USE_BUFFER_CONTENT define. - added xmlCleanupPredefinedEntities(), memory allocation cleanup Daniel
Diffstat (limited to 'entities.c')
-rw-r--r--entities.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/entities.c b/entities.c
index 78571e02..8818f45a 100644
--- a/entities.c
+++ b/entities.c
@@ -149,6 +149,18 @@ void xmlInitializePredefinedEntities(void) {
}
/**
+ * xmlCleanupPredefinedEntities:
+ *
+ * Cleanup up the predefined entities table.
+ */
+void xmlCleanupPredefinedEntities(void) {
+ if (xmlPredefinedEntities == NULL) return;
+
+ xmlFreeEntitiesTable(xmlPredefinedEntities);
+ xmlPredefinedEntities = NULL;
+}
+
+/**
* xmlGetPredefinedEntity:
* @name: the entity name
*