diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-12-06 14:38:59 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-12-06 14:38:59 +0000 |
commit | a30ac1520b1f2865b12dda3a3ca7d9715cb02229 (patch) | |
tree | ad7eb3394c9e96757a20a62fadfc4f7891d731df /toke.c | |
parent | 0f31cffe78d3a5cfa348eb1c3208e5daec5777d9 (diff) | |
download | perl-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |