version 1.6 | | version 1.7 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: re-cmp.c,v 1.6 2001/04/13 05:19:23 mwedel Exp $"; | | * "$Id: re-cmp.c,v 1.7 2001/10/30 00:49:02 michtoen Exp $"; |
*/ | | */ |
| | |
| | |
| | |
/* P r o t o t y p e s | | /* P r o t o t y p e s |
*/ | | */ |
char *re_cmp(char *, char *); | | char *re_cmp(char *, char *); |
static Boolean re_cmp_step(char *, char *, int, int); | | static Boolean re_cmp_step(char *, char *, unsigned int, int); |
static void re_init(void); | | static void re_init(void); |
static Boolean re_match_token(uchar, selection *); | | static Boolean re_match_token(uchar, selection *); |
static char *re_get_token(selection *, char *); | | static char *re_get_token(selection *, char *); |
| | |
*/ | | */ |
| | |
static Boolean | | static Boolean |
re_cmp_step(char *str, char *regexp, int slot, int matches) { | | re_cmp_step(char *str, char *regexp, unsigned int slot, int matches) { |
/* str - string to match | | /* str - string to match |
* regexp - pattern | | * regexp - pattern |
* slot - number of the token which under consideration | | * slot - number of the token which under consideration |