#endif
/* Optional routines, for some compiler/runtime combinations */
-#if defined(__MWERKS__) && defined(__powerc)
-#define MALLOC_DEBUG
-#endif
#if defined(USE_GUSI) || !defined(__MWERKS__)
#define WEHAVE_FDOPEN
#endif
return newintobject((long)size);
}
-#ifdef MALLOC_DEBUG
+#ifdef USE_MALLOC_DEBUG
static object *
mac_mstats(self, args)
object*self;
INCREF(None);
return None;
}
-#endif MALLOC_DEBUG
+#endif USE_MALLOC_DEBUG
static struct methodlist mac_methods[] = {
{"chdir", mac_chdir},
{"remove", mac_unlink},
{"unlink", mac_unlink},
{"write", mac_write},
-#ifdef MALLOC_DEBUG
+#ifdef USE_MALLOC_DEBUG
{"mstats", mac_mstats},
#endif
*
*/
-
+#ifdef USE_MALLOC_DEBUG
+/* You may also selectively enable some of these (but some are interdependent) */
#define DEBUG
#define DEBUG2
#define MSTATS
#define RCHECK
#define VCHECK
+#endif /* USE_MALLOC_DEBUG */
typedef unsigned char u_char;
typedef unsigned long u_long;