Module Name: src
Committed By: rillig
Date: Mon Jun 5 12:06:51 UTC 2023
Modified Files:
src/usr.bin/indent: io.c
Log Message:
indent: clean up comments
To generate a diff of this commit:
cvs rdiff -u -r1.197 -r1.198 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.197 src/usr.bin/indent/io.c:1.198
--- src/usr.bin/indent/io.c:1.197 Mon Jun 5 12:01:33 2023
+++ src/usr.bin/indent/io.c Mon Jun 5 12:06:51 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.197 2023/06/05 12:01:33 rillig Exp $ */
+/* $NetBSD: io.c,v 1.198 2023/06/05 12:06:51 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: io.c,v 1.197 2023/06/05 12:01:33 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.198 2023/06/05 12:06:51 rillig Exp $");
#include <stdio.h>
@@ -240,8 +240,6 @@ output_line_comment(void)
/*
* Write a line of formatted source to the output file. The line consists of
* the label, the code and the comment.
- *
- * Comments are written directly, bypassing this function.
*/
void
output_line(void)
@@ -260,9 +258,9 @@ output_line(void)
&& out.line_kind != lk_blank)
output_newline();
+ /* This kludge aligns function definitions correctly. */
if (ps.ind_level == 0)
- ps.in_stmt_cont = false; /* this is a class A
- * kludge */
+ ps.in_stmt_cont = false;
if (opt.blank_line_after_decl && ps.declaration == decl_end
&& ps.tos > 1) {