Index: /trunk/mem.c
===================================================================
--- /trunk/mem.c	(revision 393)
+++ /trunk/mem.c	(revision 543)
@@ -2,7 +2,13 @@
 #include <limits.h>
 #include <stdio.h>
+#	define XCACHE_DEBUG
 #else
 #include <php.h>
 #endif
+
+#ifdef XCACHE_DEBUG
+#	define ALLOC_DEBUG_BLOCK_CHECK
+#endif
+
 
 #include <assert.h>
@@ -14,11 +20,4 @@
 #include "align.h"
 #include "utils.h"
-
-#ifdef TEST
-#	define DEBUG
-#endif
-#ifdef DEBUG
-#	define ALLOC_DEBUG_BLOCK_CHECK
-#endif
 
 #if 0
Index: /trunk/utils.h
===================================================================
--- /trunk/utils.h	(revision 522)
+++ /trunk/utils.h	(revision 543)
@@ -2,5 +2,5 @@
 #include "xcache.h"
 
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 #	define IFDEBUG(x) (x)
 int xc_vtrace(const char *fmt, va_list args);
@@ -25,5 +25,5 @@
 #   undef inline
 #   define inline
-#else /* DEBUG */
+#else /* XCACHE_DEBUG */
 
 #	ifdef ZEND_WIN32
@@ -41,5 +41,5 @@
 #       define NDEBUG
 #   endif
-#endif /* DEBUG */
+#endif /* XCACHE_DEBUG */
 #include <assert.h>
 
Index: /trunk/coverager.c
===================================================================
--- /trunk/coverager.c	(revision 524)
+++ /trunk/coverager.c	(revision 543)
@@ -1,2 +1,6 @@
+#if 0
+#define XCACHE_DEBUG
+#endif
+
 #include <stdio.h>
 #include "xcache.h"
@@ -18,8 +22,4 @@
 static char *xc_coveragedump_dir = NULL;
 static zend_compile_file_t *old_compile_file = NULL;
-
-#if 0
-#define DEBUG
-#endif
 
 /* dumper */
Index: /trunk/optimizer.c
===================================================================
--- /trunk/optimizer.c	(revision 485)
+++ /trunk/optimizer.c	(revision 543)
@@ -1,4 +1,4 @@
 #if 0
-#	define DEBUG
+#	define XCACHE_DEBUG
 #endif
 
@@ -9,5 +9,5 @@
 #include "xcache_globals.h"
 
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 #	include "processor.h"
 #	include "const_string.h"
@@ -181,5 +181,5 @@
 }
 /* }}} */
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 static void op_snprint(char *buf, int size, znode *op) /* {{{ */
 {
@@ -278,5 +278,5 @@
 }
 /* }}} */
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 static void bb_print(bb_t *bb, zend_op *opcodes) /* {{{ */
 {
@@ -320,5 +320,5 @@
 }
 /* }}} */
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 static void bbs_print(bbs_t *bbs, zend_op *opcodes) /* {{{ */
 {
@@ -408,5 +408,5 @@
 		}
 	}
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 	for (i = 0; i < count; i ++) {
 		TRACE("catchbbids[%d] = %d", i, catchbbids[i]);
@@ -522,5 +522,5 @@
 	}
 
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 #	if 0
 	TRACE("optimize file: %s", op_array->filename);
@@ -534,5 +534,5 @@
 		if (bbs_build_from(&bbs, op_array, op_array->last) == SUCCESS) {
 			int i;
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 			bbs_print(&bbs, op_array->opcodes);
 #endif
@@ -547,5 +547,5 @@
 	}
 
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 #	if 0
 	TRACE("%s", "after compiles");
Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 542)
+++ /trunk/xcache.c	(revision 543)
@@ -1,5 +1,5 @@
 
 #if 0
-#define DEBUG
+#define XCACHE_DEBUG
 #endif
 
@@ -1029,5 +1029,5 @@
 	php->cache  = xce->cache;
 	php->hvalue = (hv & php->cache->hphp->mask);
-#ifdef DEBUG
+#ifdef XCACHE_DEBUG
 	{
 		char md5str[33];
