This is so that other .c files can call dbg();
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
} while (0)
-static int debug;
+int debug;
static void display_help(void)
{
extern const char identica_host[];
extern const char twitter_name[];
extern const char identica_name[];
+extern int debug;
extern void bti_parse_configfile(struct session *session);
+#define dbg(format, arg...) \
+ do { \
+ if (debug) \
+ fprintf(stdout, "bti: %s: " format , __func__ , \
+ ## arg); \
+ } while (0)
+
+
#endif