From: Nick Mathewson Date: Wed, 12 Jun 2019 20:37:21 +0000 (-0400) Subject: checkSpace.pl: Allow 'bool' before a space and an open-paren X-Git-Tag: tor-0.4.2.1-alpha~131^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81d16d8d0cd2789c2d20b350c59bc3a283dda432;p=thirdparty%2Ftor.git checkSpace.pl: Allow 'bool' before a space and an open-paren We need this so we can declare function pointers returning bool without upsetting our style checker. :/ --- diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl index 433ae62807..9c9b68ff9d 100755 --- a/scripts/maint/checkSpace.pl +++ b/scripts/maint/checkSpace.pl @@ -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"; } }