summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-05-15 22:11:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-05-15 22:11:36 +0000
commit781ac8b19bfc10635a8bb83158f874116fd7559e (patch)
treed4d835a320b96fd08c5dea232346e63cd20e9fb7 /parser.c
parent6f7e24bb7d94e2163ef26fdad860a3cd06116549 (diff)
downloadlibxml2-781ac8b19bfc10635a8bb83158f874116fd7559e.tar.gz
patch from Stéphane Bidoul for setting up threads global defaults. this
* build_glob.py global.data globals.c parser.c include/libxml/globals.h: patch from Stéphane 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
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index faeda8d6..40ffd20d 100644
--- a/parser.c
+++ b/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;
}