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 comments



details:   https://anonhg.NetBSD.org/src/rev/0502d588c0f1
branches:  trunk
changeset: 990027:0502d588c0f1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Oct 24 11:08:46 2021 +0000

description:
indent: clean up comments

diffstat:

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

diffs (33 lines):

diff -r 46f96b0c7ae5 -r 0502d588c0f1 usr.bin/indent/pr_comment.c
--- a/usr.bin/indent/pr_comment.c       Sun Oct 24 10:54:12 2021 +0000
+++ b/usr.bin/indent/pr_comment.c       Sun Oct 24 11:08:46 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pr_comment.c,v 1.80 2021/10/20 05:14:21 rillig Exp $   */
+/*     $NetBSD: pr_comment.c,v 1.81 2021/10/24 11:08:46 rillig Exp $   */
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: pr_comment.c,v 1.80 2021/10/20 05:14:21 rillig Exp $");
+__RCSID("$NetBSD: pr_comment.c,v 1.81 2021/10/24 11:08:46 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/pr_comment.c 334927 2018-06-10 16:44:18Z pstef $");
 #endif
@@ -219,11 +219,10 @@
        com_add_delim();
     }
 
-    /* Start to copy the comment */
+    /* Now copy the comment. */
 
-    for (;;) {                 /* this loop will go until the comment is
-                                * copied */
-       switch (*inp.s) {       /* this checks for various special cases */
+    for (;;) {
+       switch (*inp.s) {
        case '\f':
            if (may_wrap) {     /* in a text comment, break the line here */
                ps.use_ff = true;



Home | Main Index | Thread Index | Old Index