[geany/geany] 43122e: Add more 'fall through' comments for switch cases

Matthew Brush git-noreply at xxxxx
Fri Jan 12 22:09:36 UTC 2018


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <matt at geany.org>
Date:        Thu, 21 Dec 2017 01:22:51 UTC
Commit:      43122ea7d95808b04e44d03a4650de0d28d04d97
             https://github.com/geany/geany/commit/43122ea7d95808b04e44d03a4650de0d28d04d97

Log Message:
-----------
Add more 'fall through' comments for switch cases

TODO: make sure these are actually meant to fall-through.


Modified Paths:
--------------
    ctags/parsers/perl.c
    ctags/parsers/r.c

Modified: ctags/parsers/perl.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -138,9 +138,11 @@ static bool isSubroutineDeclaration (const unsigned char *cp)
 				case ';':
 					if (!nparens)
 						return true;
+					/* fall through */
 				case '{':
 					if (!nparens)
 						return false;
+					/* fall through */
 				default:
 					if (attr) {
 						if (isIdentifier1(*cp)) {


Modified: ctags/parsers/r.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -142,6 +142,7 @@ static void createRTags (void)
 							break;
 						}
 					}
+					/* fall through */
 				case ' ':
 				case '\x009':
 					/* skip whitespace */



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list