Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6105464
)
Simplified the function-finding regex, and made it more versatile
author
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 06:50:56 +0000
(06:50 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 13 Oct 2006 06:50:56 +0000
(06:50 +0000)
(so we don't need to keep adding variable-type strings).
mkproto.awk
patch
|
blob
|
blame
|
history
diff --git
a/mkproto.awk
b/mkproto.awk
index
9f8955d
..
6a46c46
100644
(file)
--- 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;
}
-