X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=embed.pl;h=f85c5a326d0e831bad6a61ee451c9f61c455f257;hb=08d0d8ab11be611f4baf746cfb6ff7791962f494;hp=b7d9bb23890b9b0096978f89a493aa0158f4147f;hpb=67edeb9aab7e64ec46e81a9ccb767449a20cad5f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/embed.pl b/embed.pl index b7d9bb2..f85c5a3 100755 --- a/embed.pl +++ b/embed.pl @@ -23,7 +23,7 @@ sub do_not_edit ($) { my $file = shift; - my $years = '1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008'; + my $years = '1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009'; $years =~ s/1999,/1999,\n / if length $years > 40; @@ -50,7 +50,9 @@ EOW Up to the threshold of the door there mounted a flight of twenty-seven broad stairs, hewn by some unknown art of the same black stone. This -was the only entrance to the tower. +was the only entrance to the tower; ... + + [p.577 of _The Lord of the Rings_, III/x: "The Voice of Saruman"] EOW @@ -159,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; @@ -214,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; } }