static pid_t resolver_pid;
static int resolver_done;
+DEBUG_DEFINE_DEBUGF(ocr)
+
static void fgetsline(FILE *f, char *lbuf, size_t lbufsz) {
char *s= fgets(lbuf,lbufsz,f);
eassert(s);
.midword=1 /* Lower only */
};
-static void vdebugf(const char *fmt, va_list al) {
- if (DEBUGP(ocr))
- vfprintf(debug,fmt,al);
-}
-static void debugf(const char *fmt, ...) {
- va_list al; va_start(al,fmt); vdebugf(fmt,al); va_end(al);
-}
-
OcrResultGlyph *ocr(OcrReader *rd, OcrCellType ct, int w, Pixcol cols[]) {
int nspaces;
unsigned ctxmap;