mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
- 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
This commit is contained in:
12
entities.c
12
entities.c
@ -148,6 +148,18 @@ void xmlInitializePredefinedEntities(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* xmlCleanupPredefinedEntities:
|
||||||
|
*
|
||||||
|
* Cleanup up the predefined entities table.
|
||||||
|
*/
|
||||||
|
void xmlCleanupPredefinedEntities(void) {
|
||||||
|
if (xmlPredefinedEntities == NULL) return;
|
||||||
|
|
||||||
|
xmlFreeEntitiesTable(xmlPredefinedEntities);
|
||||||
|
xmlPredefinedEntities = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlGetPredefinedEntity:
|
* xmlGetPredefinedEntity:
|
||||||
* @name: the entity name
|
* @name: the entity name
|
||||||
|
@ -88,6 +88,7 @@ void xmlFreeEntitiesTable (xmlEntitiesTablePtr table);
|
|||||||
void xmlDumpEntitiesTable (xmlBufferPtr buf,
|
void xmlDumpEntitiesTable (xmlBufferPtr buf,
|
||||||
xmlEntitiesTablePtr table);
|
xmlEntitiesTablePtr table);
|
||||||
xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
|
xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
|
||||||
|
void xmlCleanupPredefinedEntities(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -88,6 +88,7 @@ void xmlFreeEntitiesTable (xmlEntitiesTablePtr table);
|
|||||||
void xmlDumpEntitiesTable (xmlBufferPtr buf,
|
void xmlDumpEntitiesTable (xmlBufferPtr buf,
|
||||||
xmlEntitiesTablePtr table);
|
xmlEntitiesTablePtr table);
|
||||||
xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
|
xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
|
||||||
|
void xmlCleanupPredefinedEntities(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user