]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update check-spaces to remove false positive for timercmp macro
authorSebastian Hahn <sebastian@torproject.org>
Thu, 24 Nov 2011 08:24:59 +0000 (09:24 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 24 Nov 2011 08:29:45 +0000 (09:29 +0100)
The timercmp macro uses triggers a "space between function name and
opening parentheses" warning for the check spaces script. Work around
this by simply disabling the check for all "functions" named 'op()'.

changes/checkSpaces [new file with mode: 0644]
contrib/checkSpace.pl

diff --git a/changes/checkSpaces b/changes/checkSpaces
new file mode 100644 (file)
index 0000000..91f79ed
--- /dev/null
@@ -0,0 +1,5 @@
+   o Minor bugfixes:
+     - Prevent a false positive from the check-spaces script by disabling
+       the "whitespace between function name and (" check for functions
+       named 'op()'.
+
index 6eb32e562074d2f9743a80ad8849983c2e4251a7..a18df99b1699c5273d8e963d6fd30b6d20aaaa43 100755 (executable)
@@ -97,7 +97,7 @@ for $fn (@ARGV) {
                 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 $2 ne "WINAPI" and
-                    $1 ne "void" and $1 ne "__attribute__") {
+                    $1 ne "void" and $1 ne "__attribute__" and $1 ne "op") {
                     print "     fn ():$fn:$.\n";
                 }
             }