chiark / gitweb /
WIP routesearch; fix route trades cache block linked list
[ypp-sc-tools.db-live.git] / yarrg / common.h
index fdae435493488e71402c567bff9965022e2f4684..22f61cbc4c833029675afdde31d57739717fe2f7 100644 (file)
@@ -86,7 +86,9 @@ enum {
 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)))
@@ -137,6 +139,7 @@ void waitpid_check_exitstatus(pid_t pid, const char *what, int sigpipeok);
 
 
 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);