Module Name:    src
Committed By:   rillig
Date:           Sun Oct 24 11:08:46 UTC 2021

Modified Files:
        src/usr.bin/indent: pr_comment.c

Log Message:
indent: clean up comments


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/usr.bin/indent/pr_comment.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/pr_comment.c
diff -u src/usr.bin/indent/pr_comment.c:1.80 src/usr.bin/indent/pr_comment.c:1.81
--- src/usr.bin/indent/pr_comment.c:1.80	Wed Oct 20 05:14:21 2021
+++ src/usr.bin/indent/pr_comment.c	Sun Oct 24 11:08:46 2021
@@ -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 @@ static char sccsid[] = "@(#)pr_comment.c
 
 #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 @@ process_comment(void)
 	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;

Reply via email to