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: move comment about dump_line to column 1
details: https://anonhg.NetBSD.org/src/rev/1b7a89b2fa96
branches: trunk
changeset: 960138:1b7a89b2fa96
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Mar 08 22:26:17 2021 +0000
description:
indent: move comment about dump_line to column 1
It looked misplaced on the right side since that area is usually
reserved for small remarks, not long explanations.
No functional change.
diffstat:
usr.bin/indent/io.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r 1f2ae78acf61 -r 1b7a89b2fa96 usr.bin/indent/io.c
--- a/usr.bin/indent/io.c Mon Mar 08 22:23:58 2021 +0000
+++ b/usr.bin/indent/io.c Mon Mar 08 22:26:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.25 2021/03/08 22:23:58 rillig Exp $ */
+/* $NetBSD: io.c,v 1.26 2021/03/08 22:26:17 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@@ -46,7 +46,7 @@
#include <sys/cdefs.h>
#ifndef lint
#if defined(__NetBSD__)
-__RCSID("$NetBSD: io.c,v 1.25 2021/03/08 22:23:58 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.26 2021/03/08 22:26:17 rillig Exp $");
#elif defined(__FreeBSD__)
__FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $");
#endif
@@ -65,13 +65,14 @@
static int paren_target;
static int pad_output(int current, int target);
+/*
+ * dump_line is the routine that actually effects the printing of the new
+ * source. It prints the label section, followed by the code section with
+ * the appropriate nesting level, followed by any comments.
+ */
void
dump_line(void)
-{ /* dump_line is the routine that actually
- * effects the printing of the new source. It
- * prints the label section, followed by the
- * code section with the appropriate nesting
- * level, followed by any comments */
+{
int cur_col,
target_col = 1;
static int not_first_line;
Home |
Main Index |
Thread Index |
Old Index