X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4da09a65f84b2ebca6bf05e6b793868fc683b40f..bd685982389b78a158921b7839bdeca501338d19:/mkproto.pl diff --git a/mkproto.pl b/mkproto.pl index b989a5f6..cdeb2ea3 100644 --- a/mkproto.pl +++ b/mkproto.pl @@ -26,7 +26,7 @@ while (<>) { } elsif (/^FN_(LOCAL|GLOBAL)_([^(]+)\(([^,()]+)/) { $ret = $FN_MAP{$2}; $func = $3; - $arg = $1 eq 'LOCAL' ? 'int ' : 'void'; + $arg = $1 eq 'LOCAL' ? 'int module_id' : 'void'; $protos .= "$ret$func($arg);\n"; } elsif (/^static|^extern/ || /[;]/ || !/^[A-Za-z][A-Za-z0-9_]* /) { ; @@ -44,3 +44,5 @@ if ($old_protos ne $protos) { print OUT $protos; close OUT; } + +open(OUT, '>proto.h-tstamp') and close OUT;