summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-04-01 13:11:58 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-04-01 13:11:58 +0000
commit5d4644ef6e38479a648615eca758c5e962a141d5 (patch)
treec4144bb6bd5715a3787846e3cf0eb181775df65f /globals.c
parent64354ea7d6b8e0d95f3f9bcfdc98bddd065b65fc (diff)
downloadlibxml2-5d4644ef6e38479a648615eca758c5e962a141d5.tar.gz
revamped the elfgcchack.h format to cope with gcc4 change of aliasing
* doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/globals.c b/globals.c
index 01e2c426..4a002d38 100644
--- a/globals.c
+++ b/globals.c
@@ -78,13 +78,6 @@ void xmlCleanupGlobals()
#undef xmlRealloc
#if defined(DEBUG_MEMORY_LOCATION) || defined(DEBUG_MEMORY)
-#ifndef __DEBUG_MEMORY_ALLOC__
-extern void xmlMemFree(void *ptr);
-extern void * xmlMemMalloc(size_t size);
-extern void * xmlMemRealloc(void *ptr,size_t size);
-extern char * xmlMemoryStrdup(const char *str);
-#endif
-
xmlFreeFunc xmlFree = (xmlFreeFunc) xmlMemFree;
xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
xmlMallocFunc xmlMallocAtomic = (xmlMallocFunc) xmlMemMalloc;
@@ -1096,3 +1089,6 @@ __xmlOutputBufferCreateFilenameValue(void) {
else
return (&xmlGetGlobalState()->xmlOutputBufferCreateFilenameValue);
}
+
+#define bottom_globals
+#include "elfgcchack.h"