summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-03-16 08:44:37 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-03-16 08:44:37 +0000
commitac4c12e7aee90d31d5da776601addbfd9d738a5a (patch)
tree1824760ad266d03442e71a134673c0c0837302f1 /toke.c
parenta0824163008c006b841cb7ca91d331692d4ba14a (diff)
downloadperl-ac4c12e7aee90d31d5da776601addbfd9d738a5a.tar.gz
[asperl] various changes to get asperl working under Borland
(passes all tests when built under PERL_OBJECT) p4raw-id: //depot/asperl@809
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 00dbf7fc47..c24f87868f 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 *regparse = s + 3;
+ char *pregparse = s + 3;
char c;
- while (count && (c = *regparse)) {
- if (c == '\\' && regparse[1])
- regparse++;
+ while (count && (c = *pregparse)) {
+ if (c == '\\' && pregparse[1])
+ pregparse++;
else if (c == '{')
count++;
else if (c == '}')
count--;
- regparse++;
+ pregparse++;
}
- if (*regparse == ')')
- regparse++;
+ if (*pregparse == ')')
+ pregparse++;
else
yyerror("Sequence (?{...}) not terminated or not {}-balanced");
- while (s < regparse && *s != ')')
+ while (s < pregparse && *s != ')')
*d++ = *s++;
}
}