mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-20 13:34:51 +01:00
r8969@totoro: nickm | 2006-10-09 09:58:38 -0400
Another patch to checkSpace.pl: allow type (WINAPI *fn)() svn:r8668
This commit is contained in:
parent
c639fd8258
commit
fa3ee3600e
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue