1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

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
This commit is contained in:
Daniel Veillard
2003-09-30 13:38:04 +00:00
parent 73b013fc17
commit d3a2e4c2b3
4 changed files with 86 additions and 70 deletions

View File

@ -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 @@ void xmlUpgradeOldNs(xmlDocPtr doc);
* *
************************************************************************/
/**
* 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",