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: manually fix indentation



details:   https://anonhg.NetBSD.org/src/rev/7f87910cd08a
branches:  trunk
changeset: 960226:7f87910cd08a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Mar 12 00:15:34 2021 +0000

description:
indent: manually fix indentation

No functional change.

diffstat:

 usr.bin/indent/indent.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 13e8044681f3 -r 7f87910cd08a usr.bin/indent/indent.c
--- a/usr.bin/indent/indent.c   Fri Mar 12 00:13:06 2021 +0000
+++ b/usr.bin/indent/indent.c   Fri Mar 12 00:15:34 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: indent.c,v 1.43 2021/03/11 22:32:06 rillig Exp $       */
+/*     $NetBSD: indent.c,v 1.44 2021/03/12 00:15:34 rillig Exp $       */
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -46,7 +46,7 @@
 #include <sys/cdefs.h>
 #ifndef lint
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: indent.c,v 1.43 2021/03/11 22:32:06 rillig Exp $");
+__RCSID("$NetBSD: indent.c,v 1.44 2021/03/12 00:15:34 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/indent.c 340138 2018-11-04 19:24:49Z oshogbo $");
 #endif
@@ -995,7 +995,7 @@
            prefix_blankline_requested = 0;
            parse(rbrace);      /* let parser know about this */
            ps.search_brace = opt.cuddle_else
-               && ps.p_stack[ps.tos] == if_expr_stmt
+               && ps.p_stack[ps.tos] == if_expr_stmt
                && ps.il[ps.tos] >= ps.ind_level;
            if (ps.tos <= 1 && opt.blanklines_after_procs && ps.dec_nest <= 0)
                postfix_blankline_requested = 1;



Home | Main Index | Thread Index | Old Index