Module Name: src Committed By: rillig Date: Mon Mar 8 22:26:17 UTC 2021
Modified Files: src/usr.bin/indent: io.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/usr.bin/indent/io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/indent/io.c diff -u src/usr.bin/indent/io.c:1.25 src/usr.bin/indent/io.c:1.26 --- src/usr.bin/indent/io.c:1.25 Mon Mar 8 22:23:58 2021 +++ src/usr.bin/indent/io.c Mon Mar 8 22:26:17 2021 @@ -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 @@ static char sccsid[] = "@(#)io.c 8.1 (Be #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 @@ int comment_open; 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;