summaryrefslogtreecommitdiff
path: root/embed.pl
diff options
context:
space:
mode:
authorJim Cromie <jcromie@cpan.org>2007-09-12 05:25:08 -0600
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-09-17 11:49:04 +0000
commitd1594dd030daae8de2eb6f816e957dfd814508ae (patch)
tree10206c994f836c90ee3f5dbb8dc4043c075c49d9 /embed.pl
parent3fa779abd4d5a443708a30f61ef389c19295ec35 (diff)
downloadperl-d1594dd030daae8de2eb6f816e957dfd814508ae.tar.gz
[ patch ] add line-number to embed.pl warnings
Message-ID: <46E820F4.80106@gmail.com> p4raw-id: //depot/perl@31884
Diffstat (limited to 'embed.pl')
-rwxr-xr-xembed.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/embed.pl b/embed.pl
index f0af73cf08..964406fe9c 100755
--- a/embed.pl
+++ b/embed.pl
@@ -312,7 +312,7 @@ sub readsyms (\%$) {
s/[ \t]*#.*//; # Delete comments.
if (/^\s*(\S+)\s*$/) {
my $sym = $1;
- warn "duplicate symbol $sym while processing $file\n"
+ warn "duplicate symbol $sym while processing $file line $.\n"
if exists $$syms{$sym};
$$syms{$sym} = 1;
}
@@ -333,7 +333,7 @@ sub readvars(\%$$@) {
if (/PERLVARA?I?S?C?\($pre(\w+)/) {
my $sym = $1;
$sym = $pre . $sym if $keep_pre;
- warn "duplicate symbol $sym while processing $file\n"
+ warn "duplicate symbol $sym while processing $file line $.\n"
if exists $$syms{$sym};
$$syms{$sym} = $pre || 1;
}