diff options
author | Larry Wall <larry@netlabs.com> | 1993-10-10 00:00:00 +0000 |
---|---|---|
committer | Larry Wall <larry@netlabs.com> | 1993-10-10 00:00:00 +0000 |
commit | 93a17b20b6d176db3f04f51a63b0a781e5ffd11c (patch) | |
tree | 764149b1d480d5236d4d62b3228bd57f53a71042 /regcomp.c | |
parent | 79072805bf63abe5b5978b5928ab00d360ea3e7f (diff) | |
download | perl-93a17b20b6d176db3f04f51a63b0a781e5ffd11c.tar.gz |
perl 5.0 alpha 3
[editor's note: the sparc executables have not been included,
and emacs backup files have been removed]
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -236,7 +236,7 @@ I32 fold; else sv_upgrade(r->regstart, SVt_PVBM); } - else if ((exp = index(simple,OP(first))) && exp > simple) + else if ((exp = strchr(simple,OP(first))) && exp > simple) r->regstclass = first; else if (OP(first) == BOUND || OP(first) == NBOUND) r->regstclass = first; @@ -309,7 +309,7 @@ I32 fold; else curback += *OPERAND(first); } - else if (index(varies,OP(scan))) { + else if (strchr(varies,OP(scan))) { curback = -30000; len = 0; if (SvCUR(longish) > SvCUR(longest)) { @@ -318,13 +318,13 @@ I32 fold; } sv_setpvn(longish,"",0); if (OP(scan) == PLUS && - index(simple,OP(NEXTOPER(scan)))) + strchr(simple,OP(NEXTOPER(scan)))) minlen++; else if (OP(scan) == CURLY && - index(simple,OP(NEXTOPER(scan)+4))) + strchr(simple,OP(NEXTOPER(scan)+4))) minlen += ARG1(scan); } - else if (index(simple,OP(scan))) { + else if (strchr(simple,OP(scan))) { curback++; minlen++; len = 0; |