diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-03-17 01:10:54 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-03-17 01:10:54 +0000 |
commit | d9f975991d53b93e15d703c5e48ae9aea5162637 (patch) | |
tree | dd1d9b7620f3ee9a37e547299d2cc978c5114674 /toke.c | |
parent | ac4c12e7aee90d31d5da776601addbfd9d738a5a (diff) | |
download | perl-d9f975991d53b93e15d703c5e48ae9aea5162637.tar.gz |
[asperl] add a part of AS patch#14, backout incomplete variable
name changes for gcc. Builds and tests under VC/BC once again.
p4raw-id: //depot/asperl@830
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -876,23 +876,23 @@ scan_const(char *start) *d++ = *s++; } else if (s[2] == '{') { /* This should march regcomp.c */ I32 count = 1; - char *pregparse = s + 3; + char *regparse = s + 3; char c; - while (count && (c = *pregparse)) { - if (c == '\\' && pregparse[1]) - pregparse++; + while (count && (c = *regparse)) { + if (c == '\\' && regparse[1]) + regparse++; else if (c == '{') count++; else if (c == '}') count--; - pregparse++; + regparse++; } - if (*pregparse == ')') - pregparse++; + if (*regparse == ')') + regparse++; else yyerror("Sequence (?{...}) not terminated or not {}-balanced"); - while (s < pregparse && *s != ')') + while (s < regparse && *s != ')') *d++ = *s++; } } |