1*5e7646d2SAndroid Build Coastguard Worker/* ========= begin header generated by ./mkh ========= */ 2*5e7646d2SAndroid Build Coastguard Worker#ifdef __cplusplus 3*5e7646d2SAndroid Build Coastguard Workerextern "C" { 4*5e7646d2SAndroid Build Coastguard Worker#endif 5*5e7646d2SAndroid Build Coastguard Worker 6*5e7646d2SAndroid Build Coastguard Worker/* === engine.c === */ 7*5e7646d2SAndroid Build Coastguard Workerstatic int matcher(register struct re_guts *g, char *string, size_t nmatch, regmatch_t pmatch[], int eflags); 8*5e7646d2SAndroid Build Coastguard Workerstatic char *dissect(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); 9*5e7646d2SAndroid Build Coastguard Workerstatic char *backref(register struct match *m, char *start, char *stop, sopno startst, sopno stopst, sopno lev); 10*5e7646d2SAndroid Build Coastguard Workerstatic char *fast(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); 11*5e7646d2SAndroid Build Coastguard Workerstatic char *slow(register struct match *m, char *start, char *stop, sopno startst, sopno stopst); 12*5e7646d2SAndroid Build Coastguard Workerstatic states step(register struct re_guts *g, sopno start, sopno stop, register states bef, int ch, register states aft); 13*5e7646d2SAndroid Build Coastguard Worker#define BOL (OUT+1) 14*5e7646d2SAndroid Build Coastguard Worker#define EOL (BOL+1) 15*5e7646d2SAndroid Build Coastguard Worker#define BOLEOL (BOL+2) 16*5e7646d2SAndroid Build Coastguard Worker#define NOTHING (BOL+3) 17*5e7646d2SAndroid Build Coastguard Worker#define BOW (BOL+4) 18*5e7646d2SAndroid Build Coastguard Worker#define EOW (BOL+5) 19*5e7646d2SAndroid Build Coastguard Worker#define CODEMAX (BOL+5) /* highest code used */ 20*5e7646d2SAndroid Build Coastguard Worker#define NONCHAR(c) ((c) > CHAR_MAX) 21*5e7646d2SAndroid Build Coastguard Worker#define NNONCHAR (CODEMAX-CHAR_MAX) 22*5e7646d2SAndroid Build Coastguard Worker#ifdef REDEBUG 23*5e7646d2SAndroid Build Coastguard Workerstatic void print(struct match *m, char *caption, states st, int ch, FILE *d); 24*5e7646d2SAndroid Build Coastguard Worker#endif 25*5e7646d2SAndroid Build Coastguard Worker#ifdef REDEBUG 26*5e7646d2SAndroid Build Coastguard Workerstatic void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); 27*5e7646d2SAndroid Build Coastguard Worker#endif 28*5e7646d2SAndroid Build Coastguard Worker#ifdef REDEBUG 29*5e7646d2SAndroid Build Coastguard Workerstatic char *pchar(int ch); 30*5e7646d2SAndroid Build Coastguard Worker#endif 31*5e7646d2SAndroid Build Coastguard Worker 32*5e7646d2SAndroid Build Coastguard Worker#ifdef __cplusplus 33*5e7646d2SAndroid Build Coastguard Worker} 34*5e7646d2SAndroid Build Coastguard Worker#endif 35*5e7646d2SAndroid Build Coastguard Worker/* ========= end header generated by ./mkh ========= */ 36