-static DatabaseNode *findchar(OcrReader *rd, int w, Pixcol cols[],
- int x, int ctxi, int *matchx_r) {
- DatabaseNode *current= &rd->contexts[ctxi];
+typedef struct {
+ OcrReader *rd;
+ int w;
+ Pixcol *cols;
+ int x;
+} FindCharArgs;
+
+static DatabaseNode *findchar(const FindCharArgs *fca,
+ DatabaseNode *start, int *matchx_r) {
+ DatabaseNode *current= start;