/*----- debugging arrangements, rather contingent -----*/
#define DEBUG_FLAG_LIST \
- DF(ocr) \
+ DF(findypp) \
+ DF(pages) \
DF(rect) \
- DF(callout) \
- DF(pages)
+ DF(ocr) \
+ DF(callout)
enum {
#define DF(f) dbg__shift_##f,
const char *get_vardir(void);
-#define DEBUG_DEFINE_DEBUGF(f) \
- static void vdebugf(const char *fmt, va_list al) { \
- if (DEBUGP(f)) \
+#define DEBUG_DEFINE_SOME_DEBUGF(fl,funcf) \
+ static void v##funcf(const char *fmt, va_list al) { \
+ if (DEBUGP(fl)) \
vfprintf(debug,fmt,al); \
} \
- static void debugf(const char *fmt, ...) { \
- va_list al; va_start(al,fmt); vdebugf(fmt,al); va_end(al); \
+ static void funcf(const char *fmt, ...) { \
+ va_list al; va_start(al,fmt); v##funcf(fmt,al); va_end(al); \
}
+#define DEBUG_DEFINE_DEBUGF(fl) DEBUG_DEFINE_SOME_DEBUGF(fl,debugf)
+
#endif /*OCR_H*/