svn commit: r361430 - stable/12/usr.bin/indent
Piotr Pawel Stefaniak
pstef at FreeBSD.org
Sun May 24 09:46:45 UTC 2020
Author: pstef
Date: Sun May 24 09:46:44 2020
New Revision: 361430
URL: https://svnweb.freebsd.org/changeset/base/361430
Log:
MFC r361337: indent(1): add fallthrough markers
Modified:
stable/12/usr.bin/indent/indent.c
stable/12/usr.bin/indent/parse.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/usr.bin/indent/indent.c
==============================================================================
--- stable/12/usr.bin/indent/indent.c Sun May 24 03:50:49 2020 (r361429)
+++ stable/12/usr.bin/indent/indent.c Sun May 24 09:46:44 2020 (r361430)
@@ -967,6 +967,7 @@ check_type:
case structure:
if (ps.p_l_follow > 0)
goto copy_id;
+ /* FALLTHROUGH */
case decl: /* we have a declaration type (int, etc.) */
parse(decl); /* let parser worry about indentation */
if (ps.last_token == rparen && ps.tos <= 1) {
Modified: stable/12/usr.bin/indent/parse.c
==============================================================================
--- stable/12/usr.bin/indent/parse.c Sun May 24 03:50:49 2020 (r361429)
+++ stable/12/usr.bin/indent/parse.c Sun May 24 09:46:44 2020 (r361430)
@@ -107,6 +107,7 @@ parse(int tk) /* tk: the code for the construct scanne
*/
ps.i_l_follow = ps.il[ps.tos--];
/* the rest is the same as for dolit and forstmt */
+ /* FALLTHROUGH */
case dolit: /* 'do' */
case forstmt: /* for (...) */
ps.p_stack[++ps.tos] = tk;
More information about the svn-src-all
mailing list