1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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.
This commit is contained in:
Patrick Monnerat 2017-09-02 12:58:55 +01:00
parent 989e4d4a31
commit ea4e7bdc81

View File

@ -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!
}