aboutsummaryrefslogtreecommitdiffstats
path: root/xmlmemory.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-02-06 16:06:58 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-02-06 16:06:58 +0000
commit70cab35abbb75eb9f0e328d498aa7a85195a1d5b (patch)
tree46b56146c96ce214b25ae3a65b2207d2cf49e996 /xmlmemory.c
parent7a96efc0c9f94e1f9146d1cc7d393b68d6aaf46f (diff)
downloadandroid_external_libxml2-70cab35abbb75eb9f0e328d498aa7a85195a1d5b.tar.gz
android_external_libxml2-70cab35abbb75eb9f0e328d498aa7a85195a1d5b.tar.bz2
android_external_libxml2-70cab35abbb75eb9f0e328d498aa7a85195a1d5b.zip
cleanup the extension function lookup always compile the list Daniel
* python/TODO python/libxml.c: cleanup the extension function lookup * xmlmemory.c include/libxml/xmlmemory.h: always compile the list Daniel
Diffstat (limited to 'xmlmemory.c')
-rw-r--r--xmlmemory.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/xmlmemory.c b/xmlmemory.c
index afb8b8aa..57a7ce59 100644
--- a/xmlmemory.c
+++ b/xmlmemory.c
@@ -24,6 +24,15 @@
#include <ctype.h>
#endif
+/**
+ * MEM_LIST:
+ *
+ * keep track of all allocated blocks for error reporting
+ * Always build the memory list !
+ */
+#ifndef MEM_LIST
+#define MEM_LIST /* keep a list of all the allocated memory blocks */
+#endif
#include <libxml/xmlmemory.h>
#include <libxml/globals.h>
@@ -638,7 +647,6 @@ static FILE *xmlMemoryDumpFile = NULL;
void
xmlMemoryDump(void)
{
-#if defined(DEBUG_MEMORY_LOCATION) | defined(DEBUG_MEMORY)
FILE *dump;
dump = fopen(".memdump", "w");
@@ -649,7 +657,6 @@ xmlMemoryDump(void)
xmlMemDisplay(xmlMemoryDumpFile);
if (dump != NULL) fclose(dump);
-#endif
}