mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
patch from Stphane Bidoul for setting up threads global defaults. this
* build_glob.py global.data globals.c parser.c include/libxml/globals.h: patch from Stphane Bidoul for setting up threads global defaults. * doc/libxml2-api.xml: this extends the API with new functions * python/tests/Makefile.am python/tests/reader2.py python/tests/thread2.py: integrated the associated testcase and fixed the error string used in reader2 Daniel
This commit is contained in:
2
parser.c
2
parser.c
@ -11140,6 +11140,7 @@ xmlInitParser(void) {
|
||||
if ((xmlGenericError == xmlGenericErrorDefaultFunc) ||
|
||||
(xmlGenericError == NULL))
|
||||
initGenericErrorDefaultFunc(NULL);
|
||||
xmlInitGlobals();
|
||||
xmlInitThreads();
|
||||
xmlInitMemory();
|
||||
xmlInitCharEncodingHandlers();
|
||||
@ -11176,5 +11177,6 @@ xmlCleanupParser(void) {
|
||||
xmlCatalogCleanup();
|
||||
#endif
|
||||
xmlCleanupThreads();
|
||||
xmlCleanupGlobals();
|
||||
xmlParserInitialized = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user