From: Patrick Monnerat Date: Sat, 2 Sep 2017 11:58:55 +0000 (+0100) Subject: checksrc: disable SPACEBEFOREPAREN for case statement. X-Git-Tag: curl-7_56_0~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea4e7bdc81a69aace3b9db00d2aea8a5048696b7;p=thirdparty%2Fcurl.git checksrc: disable SPACEBEFOREPAREN for case statement. The case keyword may be followed by a constant expression and thus should allow it to start with an open parenthesis. --- diff --git a/lib/checksrc.pl b/lib/checksrc.pl index 2eff3e0cf4..b9fa9362f4 100755 --- a/lib/checksrc.pl +++ b/lib/checksrc.pl @@ -345,6 +345,9 @@ sub scanfile { elsif($3 eq "return") { # return must have a space } + elsif($3 eq "case") { + # case must have a space + } elsif($4 eq "*") { # (* beginning makes the space OK! }