From 781ac8b19bfc10635a8bb83158f874116fd7559e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 15 May 2003 22:11:36 +0000 Subject: =?UTF-8?q?patch=20from=20St=E9phane=20Bidoul=20for=20setting=20up?= =?UTF-8?q?=20threads=20global=20defaults.=20this?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- parser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parser.c') 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; } -- cgit v1.2.1