Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that the inc_recurse value is always set to
[rsync/rsync.git]
/
mkproto.pl
diff --git
a/mkproto.pl
b/mkproto.pl
index
b989a5f
..
cdeb2ea
100644
(file)
--- a/
mkproto.pl
+++ b/
mkproto.pl
@@
-26,7
+26,7
@@
while (<>) {
} elsif (/^FN_(LOCAL|GLOBAL)_([^(]+)\(([^,()]+)/) {
$ret = $FN_MAP{$2};
$func = $3;
} 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_]* /) {
;
$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;
}
print OUT $protos;
close OUT;
}
+
+open(OUT, '>proto.h-tstamp') and close OUT;