M fast-hg-common.h +6 -0
@@ 13,5 13,11 @@
#include <unistd.h>
#include <limits.h>
+#ifndef DEBUG
+#define PRINT(format, ...) /* arg */
+#else
+#define PRINT(format, ...) printf("DEBUG: "); printf(format, ##__VA_ARGS__)
+#endif
+
void go_up_one_dir(char* dir_path);
int map(int (*apply)(const char*));
M fast-hg-status.c +0 -6
@@ 15,12 15,6 @@
#include "fast-hg-common.h"
-#ifndef DEBUG
-#define PRINT(format, ...) /* arg */
-#else
-#define PRINT(format, ...) printf("DEBUG: "); printf(format, ##__VA_ARGS__)
-#endif
-
void dirty(const char* reason) {
/* we got here because the repo is modified in some way */
PRINT("dirty repo reason: %s\n", reason);