]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
checkSpace.pl: Allow 'bool' before a space and an open-paren
authorNick Mathewson <nickm@torproject.org>
Wed, 12 Jun 2019 20:37:21 +0000 (16:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 24 Jun 2019 19:11:57 +0000 (15:11 -0400)
We need this so we can declare function pointers returning bool
without upsetting our style checker. :/

scripts/maint/checkSpace.pl

index 433ae6280703b1764beccd62f4a9eee898594532..9c9b68ff9dc00d8b5295f0ddb0a173a147fdb591 100755 (executable)
@@ -177,7 +177,7 @@ for my $fn (@ARGV) {
                     $1 ne "elsif" and $1 ne "WINAPI" and $2 ne "WINAPI" and
                     $1 ne "void" and $1 ne "__attribute__" and $1 ne "op" and
                     $1 ne "size_t" and $1 ne "double" and $1 ne "uint64_t" and
-                    $1 ne "workqueue_reply_t") {
+                    $1 ne "workqueue_reply_t" and $1 ne "bool") {
                     msg "     fn ():$fn:$.\n";
                 }
             }