summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-03-02 02:14:39 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-03-02 20:34:37 +0100
commit5dcfbc490094c4c9630c9093974e46527f64e7e7 (patch)
tree8bb125885058510914606e4f890a848fc200de18 /globals.c
parent5ec1ef1ca575c22da9b63d2c38aae05e0b297015 (diff)
downloadlibxml2-5dcfbc490094c4c9630c9093974e46527f64e7e7.tar.gz
Move xmlCleanupGlobals to non-generated section
The bottom of the file was generated by build_glob.py. The generator script needs some updates, but might still be useful.
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/globals.c b/globals.c
index 4aec8123..cfbb4b9d 100644
--- a/globals.c
+++ b/globals.c
@@ -562,6 +562,22 @@ xmlInitializeGlobalState(xmlGlobalStatePtr gs)
}
/**
+ * xmlCleanupGlobals:
+ *
+ * Additional cleanup for multi-threading
+ */
+void xmlCleanupGlobals(void)
+{
+ xmlResetError(&xmlLastError);
+
+ if (xmlThrDefMutex != NULL) {
+ xmlFreeMutex(xmlThrDefMutex);
+ xmlThrDefMutex = NULL;
+ }
+ __xmlGlobalInitMutexDestroy();
+}
+
+/**
* DOC_DISABLE : we ignore missing doc for the xmlThrDef functions,
* those are really internal work
*/
@@ -1106,19 +1122,3 @@ __xmlOutputBufferCreateFilenameValue(void) {
return (&xmlGetGlobalState()->xmlOutputBufferCreateFilenameValue);
}
-/**
- * xmlCleanupGlobals:
- *
- * Additional cleanup for multi-threading
- */
-void xmlCleanupGlobals(void)
-{
- xmlResetError(&xmlLastError);
-
- if (xmlThrDefMutex != NULL) {
- xmlFreeMutex(xmlThrDefMutex);
- xmlThrDefMutex = NULL;
- }
- __xmlGlobalInitMutexDestroy();
-}
-