chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip finding window
[ypp-sc-tools.db-live.git]
/
pctb
/
ocr.h
diff --git
a/pctb/ocr.h
b/pctb/ocr.h
index e8b5b1a1207dc3f5ebae2060718d7c0a96cba5b3..5b5f697dbd88603a37dd8f518f91308c39192dfb 100644
(file)
--- a/
pctb/ocr.h
+++ b/
pctb/ocr.h
@@
-55,10
+55,11
@@
OcrResultGlyph *ocr(OcrReader *rd, OcrCellType, int w, Pixcol cols[]);
/*----- debugging arrangements, rather contingent -----*/
#define DEBUG_FLAG_LIST \
/*----- debugging arrangements, rather contingent -----*/
#define DEBUG_FLAG_LIST \
- DF(ocr) \
+ DF(findypp) \
+ DF(pages) \
DF(rect) \
DF(rect) \
- DF(
callout)
\
- DF(
pages
)
+ DF(
ocr)
\
+ DF(
callout
)
enum {
#define DF(f) dbg__shift_##f,
enum {
#define DF(f) dbg__shift_##f,
@@
-82,13
+83,15
@@
void debug_flush(void);
const char *get_vardir(void);
const char *get_vardir(void);
-#define DEBUG_DEFINE_
DEBUGF(f)
\
- static void v
debugf(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(f
l))
\
vfprintf(debug,fmt,al); \
} \
vfprintf(debug,fmt,al); \
} \
- static void
debugf(const char *fmt, ...) {
\
- va_list al; va_start(al,fmt); v
debugf(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*/
#endif /*OCR_H*/