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
Improvements surrounding --list-only and --dirs.
[rsync/rsync.git]
/
mkproto.awk
diff --git
a/mkproto.awk
b/mkproto.awk
index
6af5dfc
..
6a46c46
100644
(file)
--- a/
mkproto.awk
+++ b/
mkproto.awk
@@
-54,15
+54,14
@@
BEGIN {
printf "int %s(void);\n", a[2]
}
printf "int %s(void);\n", a[2]
}
-/^static|^extern/ ||
!/^[a-zA-Z]/ ||
/[;]/ {
+/^static|^extern/ || /[;]/ {
next;
}
next;
}
-!/^
OFF_T|^size_t|^off_t|^pid_t|^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time
/ {
+!/^
[A-Za-z][A-Za-z0-9_]*
/ {
next;
}
next;
}
-
/[(].*[)][ \t]*$/ {
printf "%s;\n",$0;
next;
/[(].*[)][ \t]*$/ {
printf "%s;\n",$0;
next;
@@
-73,4
+72,3
@@
BEGIN {
printf "%s\n",$0;
next;
}
printf "%s\n",$0;
next;
}
-