Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/indent indent: clean up style



details:   https://anonhg.NetBSD.org/src/rev/f9ff54392870
branches:  trunk
changeset: 1026442:f9ff54392870
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Nov 25 07:30:54 2021 +0000

description:
indent: clean up style

No functional change.

diffstat:

 usr.bin/indent/indent.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 33d4153a90d7 -r f9ff54392870 usr.bin/indent/indent.c
--- a/usr.bin/indent/indent.c   Thu Nov 25 06:19:06 2021 +0000
+++ b/usr.bin/indent/indent.c   Thu Nov 25 07:30:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: indent.c,v 1.228 2021/11/19 20:23:17 rillig Exp $      */
+/*     $NetBSD: indent.c,v 1.229 2021/11/25 07:30:54 rillig Exp $      */
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: indent.c,v 1.228 2021/11/19 20:23:17 rillig Exp $");
+__RCSID("$NetBSD: indent.c,v 1.229 2021/11/25 07:30:54 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/indent.c 340138 2018-11-04 19:24:49Z oshogbo $");
 #endif
@@ -599,7 +599,7 @@
        return;
     if (lsym == lsym_semicolon)
        return;
-    else if (lsym == lsym_lbrace && opt.brace_same_line)
+    if (lsym == lsym_lbrace && opt.brace_same_line)
        return;
 
     if (opt.verbose)
@@ -969,7 +969,8 @@
 
     *code.e++ = '}';
     ps.want_blank = true;
-    ps.in_stmt = ps.ind_stmt = false;
+    ps.in_stmt = false;
+    ps.ind_stmt = false;
 
     if (ps.decl_level > 0) { /* we are in multi-level structure declaration */
        *decl_ind = di_stack[--ps.decl_level];



Home | Main Index | Thread Index | Old Index