version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: re-cmp.c,v 1.4 2000/12/04 00:40:03 cvs Exp $"; | | * "$Id: re-cmp.c,v 1.5 2001/02/23 06:06:35 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
case rep_once_or_more: | | case rep_once_or_more: |
if (matched == False) | | if (matched == False) |
return NULL; | | return NULL; |
| | |
if (re_cmp_step(str+1, regexp, 0, 1)) | | if (re_cmp_step(str+1, regexp, 0, 1)) |
return str; | | return str; |
break; | | break; |
| | |
if (re_cmp_step(str+1, next_regexp, 1, 0)) | | if (re_cmp_step(str+1, next_regexp, 1, 0)) |
return str; | | return str; |
} | | } |
| | #if 0 |
do { | | do { |
++str; | | ++str; |
if (re_cmp_step(str, regexp, 0, 0)) | | if (re_cmp_step(str, regexp, 0, 0)) |
return str; | | return str; |
} while (*str); | | } while (*str); |
| | #endif |
return NULL; | | return NULL; |
} | | } |
| | |