X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bc1fac96486956f7b1b2185aa4296955289f98cb..b5ae4e25c26f006e686dcefde9fe7d489f840248:/mkproto.awk diff --git a/mkproto.awk b/mkproto.awk index cf21dd72..6a46c46d 100644 --- a/mkproto.awk +++ b/mkproto.awk @@ -54,15 +54,14 @@ BEGIN { printf "int %s(void);\n", a[2] } -/^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ { +/^static|^extern/ || /[;]/ { next; } -!/^OFF_T|^size_t|^off_t|^pid_t|^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^uchar|^short|^struct|^BOOL|^void|^time|^const/ { +!/^[A-Za-z][A-Za-z0-9_]* / { next; } - /[(].*[)][ \t]*$/ { printf "%s;\n",$0; next; @@ -73,4 +72,3 @@ BEGIN { printf "%s\n",$0; next; } -