X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=embed.pl;h=f85c5a326d0e831bad6a61ee451c9f61c455f257;hb=08d0d8ab11be611f4baf746cfb6ff7791962f494;hp=7eb4ad056796fb011f1881c28de8815b5d976b9e;hpb=83706693c63eb4fe0fd171a88263c83548c89029;p=p5sagit%2Fp5-mst-13.2.git diff --git a/embed.pl b/embed.pl index 7eb4ad0..f85c5a3 100755 --- a/embed.pl +++ b/embed.pl @@ -161,6 +161,7 @@ sub write_protos { my $has_context = ( $flags !~ /n/ ); my $never_returns = ( $flags =~ /r/ ); my $commented_out = ( $flags =~ /m/ ); + my $binarycompat = ( $flags =~ /b/ ); my $is_malloc = ( $flags =~ /a/ ); my $can_ignore = ( $flags !~ /R/ ) && !$is_malloc; my @names_of_nn; @@ -216,7 +217,7 @@ sub write_protos { if ( $SPLINT && $nullok && !$commented_out ) { $arg = '/*@null@*/ ' . $arg; } - if (defined $1 && $nn) { + if (defined $1 && $nn && !($commented_out && !$binarycompat)) { push @names_of_nn, $1; } }