[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8668: Another patch to checkSpace.pl: allow type (WINAPI *fn)() (in tor/trunk: . contrib)



Author: nickm
Date: 2006-10-09 11:46:12 -0400 (Mon, 09 Oct 2006)
New Revision: 8668

Modified:
   tor/trunk/
   tor/trunk/contrib/checkSpace.pl
Log:
 r8969@totoro:  nickm | 2006-10-09 09:58:38 -0400
 Another patch to checkSpace.pl: allow type (WINAPI *fn)()



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r8969] on 96637b51-b116-0410-a10e-9941ebb49b64

Modified: tor/trunk/contrib/checkSpace.pl
===================================================================
--- tor/trunk/contrib/checkSpace.pl	2006-10-09 09:21:02 UTC (rev 8667)
+++ tor/trunk/contrib/checkSpace.pl	2006-10-09 15:46:12 UTC (rev 8668)
@@ -80,10 +80,10 @@
             #    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";
                 }