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 | 774e381ae07945033884d5e7b3defcfd92ad62fd (patch) | |
tree | 71313d6c953eed48771712fcba9c06944cfa9e07 /regexec.c | |
parent | f53ec758e2452e9629d77ba4d10bc5bbb3c582fd (diff) | |
download | perl-774e381ae07945033884d5e7b3defcfd92ad62fd.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: |