X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=embed.pl;h=964406fe9c44fa43b7ea9b8cadf6c7e088d062fd;hb=37be2b3976e33708042402101fbafebc36dcb7a3;hp=5718561dc642319b60e42347d8ec24496dd2ee97;hpb=907b3e23950be4dd31c150e1902fbd26201355bd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/embed.pl b/embed.pl index 5718561..964406f 100755 --- a/embed.pl +++ b/embed.pl @@ -178,7 +178,7 @@ sub write_protos { } else { $retval = "PERL_CALLCONV $splint_flags$retval"; - if ($flags =~ /p/) { + if ($flags =~ /[bp]/) { $func = "Perl_$func"; } } @@ -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; }