aboutsummaryrefslogtreecommitdiffstats
path: root/xmlmemory.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-10-13 09:15:48 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-10-13 09:15:48 +0000
commitd0463560300f1d8b3e41d70c3728ed84fdc8dd30 (patch)
tree559d845bad18c3c44cf7d08cc738efc9ea573b78 /xmlmemory.c
parentb847864fc2f7151c81e57d02ca3b523dc5d8cf72 (diff)
downloadandroid_external_libxml2-d0463560300f1d8b3e41d70c3728ed84fdc8dd30.tar.gz
android_external_libxml2-d0463560300f1d8b3e41d70c3728ed84fdc8dd30.tar.bz2
android_external_libxml2-d0463560300f1d8b3e41d70c3728ed84fdc8dd30.zip
Applied the last patches from Gary, cleanup, activated threading all user
* include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c: Applied the last patches from Gary, cleanup, activated threading all user accessible global variables are now handled in globals.[ch] Still a bit rought but make tests passes with either --with-threads defined at configure time or not. * Makefile.am example/Makefile.am: added globals.[ch] and threads linking options Daniel
Diffstat (limited to 'xmlmemory.c')
-rw-r--r--xmlmemory.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/xmlmemory.c b/xmlmemory.c
index f6892364..aa82c4ec 100644
--- a/xmlmemory.c
+++ b/xmlmemory.c
@@ -26,6 +26,7 @@
#include <libxml/xmlmemory.h>
+#include <libxml/globals.h>
#include <libxml/xmlerror.h>
void xmlMallocBreakpoint(void);
@@ -657,18 +658,6 @@ xmlMemoryDump(void)
* *
****************************************************************/
-#if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
-xmlFreeFunc xmlFree = (xmlFreeFunc) xmlMemFree;
-xmlMallocFunc xmlMalloc = (xmlMallocFunc) xmlMemMalloc;
-xmlReallocFunc xmlRealloc = (xmlReallocFunc) xmlMemRealloc;
-xmlStrdupFunc xmlMemStrdup = (xmlStrdupFunc) xmlMemoryStrdup;
-#else
-xmlFreeFunc xmlFree = (xmlFreeFunc) free;
-xmlMallocFunc xmlMalloc = (xmlMallocFunc) malloc;
-xmlReallocFunc xmlRealloc = (xmlReallocFunc) realloc;
-xmlStrdupFunc xmlMemStrdup = (xmlStrdupFunc) strdup;
-#endif
-
/**
* xmlInitMemory:
*