1 /* match.h - interface to shell ##/%% matching code */
3 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
5 typedef char *(*scan_t)(char *string, char *match, bool match_at_left);
7 char *scanleft(char *string, char *match, bool match_at_left);
8 char *scanright(char *string, char *match, bool match_at_left);
10 static inline scan_t pick_scan(char op1, char op2, bool *match_at_left)
18 *match_at_left = true;
19 return op1 == op2 ? scanright : scanleft;
21 *match_at_left = false;
22 return op1 == op2 ? scanleft : scanright;
26 POP_SAVED_FUNCTION_VISIBILITY