summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-03-17 01:10:54 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-03-17 01:10:54 +0000
commitd9f975991d53b93e15d703c5e48ae9aea5162637 (patch)
treedd1d9b7620f3ee9a37e547299d2cc978c5114674 /toke.c
parentac4c12e7aee90d31d5da776601addbfd9d738a5a (diff)
downloadperl-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.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/toke.c b/toke.c
index c24f87868f..00dbf7fc47 100644
--- a/toke.c
+++ b/toke.c
@@ -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++;
}
}