made the predefined entities static predefined structures to avoid the
* entities.c legacy.c parser.c: made the predefined entities
static predefined structures to avoid the work, memory and
hazards associated to initialization/cleanup.
Daniel
diff --git a/legacy.c b/legacy.c
index 3d29c98..e0f533e 100644
--- a/legacy.c
+++ b/legacy.c
@@ -10,12 +10,14 @@
#define IN_LIBXML
#include "libxml.h"
+#ifdef LIBXML_LEGACY_ENABLED
+#include <string.h>
+
#include <libxml/tree.h>
#include <libxml/entities.h>
#include <libxml/SAX.h>
#include <libxml/parserInternals.h>
-#ifdef LIBXML_LEGACY_ENABLED
void xmlUpgradeOldNs(xmlDocPtr doc);
/************************************************************************
@@ -24,6 +26,24 @@
* *
************************************************************************/
+/**
+ * xmlInitializePredefinedEntities:
+ *
+ * Set up the predefined entities.
+ * Deprecated call
+ */
+void xmlInitializePredefinedEntities(void) {
+}
+
+/**
+ * xmlCleanupPredefinedEntities:
+ *
+ * Cleanup up the predefined entities table.
+ * Deprecated call
+ */
+void xmlCleanupPredefinedEntities(void) {
+}
+
static const char *xmlFeaturesList[] = {
"validate",
"load subset",