summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-10-13 06:50:56 +0000
committerWayne Davison <wayned@samba.org>2006-10-13 06:50:56 +0000
commit0c25dedf3101373398564ee974875a7760ecb8d2 (patch)
tree0107cc822859a21e5f2aeed00a03640cd06cd51f
parent6105464b79a155d62df97b36b3586f1622399713 (diff)
downloadrsync-0c25dedf3101373398564ee974875a7760ecb8d2.tar.gz
Simplified the function-finding regex, and made it more versatile
(so we don't need to keep adding variable-type strings).
-rw-r--r--mkproto.awk6
1 files changed, 2 insertions, 4 deletions
diff --git a/mkproto.awk b/mkproto.awk
index 9f8955d4..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|^RETSIGTYPE/ {
+!/^[A-Za-z][A-Za-z0-9_]* / {
next;
}
-
/[(].*[)][ \t]*$/ {
printf "%s;\n",$0;
next;
@@ -73,4 +72,3 @@ BEGIN {
printf "%s\n",$0;
next;
}
-