#include <string.h>
#include <stdint.h>
#include <stdlib.h>
+#include <stddef.h>
#include <unistd.h>
#include <dirent.h>
#include <inttypes.h>
#endif /*DEBUG_FLAG_LIST*/
+#ifndef debug_flags
extern unsigned debug_flags;
+#endif
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);