summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-12-06 14:38:59 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-12-06 14:38:59 +0000
commita30ac1520b1f2865b12dda3a3ca7d9715cb02229 (patch)
treead7eb3394c9e96757a20a62fadfc4f7891d731df /toke.c
parent0f31cffe78d3a5cfa348eb1c3208e5daec5777d9 (diff)
downloadperl-a30ac1520b1f2865b12dda3a3ca7d9715cb02229.tar.gz
mention limit on line numbers reported by diagnostics
p4raw-id: //depot/perl@2457
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 090a56b1a5..b1bd0d701c 100644
--- a/toke.c
+++ b/toke.c
@@ -4964,7 +4964,6 @@ new_constant(char *s, STRLEN len, char *key, SV *sv, SV *pv, char *type)
bool oldcatch = CATCH_GET;
SV **cvp;
SV *cv, *typesv;
- char buf[128];
if (!table) {
yyerror("%^H is not defined");
@@ -4972,6 +4971,7 @@ new_constant(char *s, STRLEN len, char *key, SV *sv, SV *pv, char *type)
}
cvp = hv_fetch(table, key, strlen(key), FALSE);
if (!cvp || !SvOK(*cvp)) {
+ char buf[128];
sprintf(buf,"$^H{%s} is not defined", key);
yyerror(buf);
return sv;
@@ -5017,6 +5017,7 @@ new_constant(char *s, STRLEN len, char *key, SV *sv, SV *pv, char *type)
POPSTACK;
if (!SvOK(res)) {
+ char buf[128];
sprintf(buf,"Call to &{$^H{%s}} did not return a defined value", key);
yyerror(buf);
}