mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
io: Rework default callbacks
Register a dummy callback struct for default callbacks. Handle them in a separate function which will later allow to return meaningful error codes.
This commit is contained in:
10
threads.c
10
threads.c
@@ -591,11 +591,6 @@ xmlInitParser(void) {
|
||||
xmlInitXPathInternal();
|
||||
#endif
|
||||
|
||||
xmlRegisterDefaultInputCallbacks();
|
||||
#ifdef LIBXML_OUTPUT_ENABLED
|
||||
xmlRegisterDefaultOutputCallbacks();
|
||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||
|
||||
xmlParserInnerInitialized = 1;
|
||||
}
|
||||
|
||||
@@ -643,11 +638,6 @@ xmlCleanupParser(void) {
|
||||
|
||||
/* These functions should never call xmlFree. */
|
||||
|
||||
xmlCleanupInputCallbacks();
|
||||
#ifdef LIBXML_OUTPUT_ENABLED
|
||||
xmlCleanupOutputCallbacks();
|
||||
#endif
|
||||
|
||||
xmlCleanupDictInternal();
|
||||
xmlCleanupRandom();
|
||||
xmlCleanupGlobalsInternal();
|
||||
|
||||
Reference in New Issue
Block a user