diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-10-09 15:46:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-10-09 15:46:12 +0000 |
commit | fa3ee3600eb7a443343af560e10eab7263d75d31 (patch) | |
tree | b29bfa5c78c53de20bc2c789f3169d302d196050 /contrib | |
parent | c639fd8258ea65a85f013e65cc558d18399690da (diff) | |
download | tor-fa3ee3600eb7a443343af560e10eab7263d75d31.tar.gz tor-fa3ee3600eb7a443343af560e10eab7263d75d31.zip |
r8969@totoro: nickm | 2006-10-09 09:58:38 -0400
Another patch to checkSpace.pl: allow type (WINAPI *fn)()
svn:r8668
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/checkSpace.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl index 7c2ee39d1d..686427f73d 100755 --- a/contrib/checkSpace.pl +++ b/contrib/checkSpace.pl @@ -80,10 +80,10 @@ for $fn (@ARGV) { # print " {X:$fn:$.\n"; #} ## Warn about function calls with space before parens. - if (/(\w+)\s\(/) { + if (/(\w+)\s\(([A-Z]*)/) { if ($1 ne "if" and $1 ne "while" and $1 ne "for" and $1 ne "switch" and $1 ne "return" and $1 ne "int" and - $1 ne "elsif" and $1 ne "WINAPI" and + $1 ne "elsif" and $1 ne "WINAPI" and $2 ne "WINAPI" and $1 ne "void" and $1 ne "__attribute__") { print " fn ():$fn:$.\n"; } |