diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-01 18:42:38 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-12-01 18:42:38 +0000 |
commit | 3c3eec57473df2067943d3a2bb444a3e95a38412 (patch) | |
tree | 71313d6c953eed48771712fcba9c06944cfa9e07 /regexec.c | |
parent | 6cb9131c3c45484b20cdd0fbdd8c19fda70c73a8 (diff) | |
download | perl-3c3eec57473df2067943d3a2bb444a3e95a38412.tar.gz |
find_byclass() prototype was incoherent
p4raw-id: //depot/perl@4608
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -745,8 +745,8 @@ Perl_re_intuit_start(pTHX_ regexp *prog, SV *sv, char *strpos, } /* We know what class REx starts with. Try to find this position... */ -static char * -find_byclass(regexp * prog, regnode *c, char *s, char *strend, char *startpos, I32 norun) +STATIC char * +S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, char *strend, char *startpos, I32 norun) { I32 doevery = (prog->reganch & ROPT_SKIP) == 0; char *m; @@ -1221,11 +1221,8 @@ find_byclass(regexp * prog, regnode *c, char *s, char *strend, char *startpos, I } break; default: - { - dTHX; - Perl_croak(aTHX_ "panic: unknown regstclass %d", (int)OP(c)); - break; - } + Perl_croak(aTHX_ "panic: unknown regstclass %d", (int)OP(c)); + break; } return 0; got_it: |