gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 124/256: checksrc: disable SPACEBEFOREPAREN for cas


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 124/256: checksrc: disable SPACEBEFOREPAREN for case statement.
Date: Fri, 06 Oct 2017 19:43:35 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit ea4e7bdc81a69aace3b9db00d2aea8a5048696b7
Author: Patrick Monnerat <address@hidden>
AuthorDate: Sat Sep 2 12:58:55 2017 +0100

    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.
---
 lib/checksrc.pl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index 2eff3e0cf..b9fa9362f 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!
             }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]