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:
parent
989e4d4a31
commit
ea4e7bdc81
@ -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!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user