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:
22
legacy.c
22
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 @@ 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",
|
||||
|
Reference in New Issue
Block a user