extern unsigned debug_flags;
void debug_flush(void);
-#define debug stderr
+#ifndef debug
+# define debug stderr
+#endif
#define FMT(f,a) __attribute__((format(printf,f,a)))
#define SCANFMT(f,a) __attribute__((format(scanf,f,a)))
void *mmalloc(size_t sz);
+void *mcalloc(size_t sz);
void *mrealloc(void *p, size_t sz);
char *masprintf(const char *fmt, ...) FMT(1,2);