Module Name:    src
Committed By:   rillig
Date:           Thu Nov 25 20:00:31 UTC 2021

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

Log Message:
indent: update cross-reference comments for bug in comment handling

The function was renamed in io.c 1.122 from 2021-11-19.


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 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.131 src/usr.bin/indent/io.c:1.132
--- src/usr.bin/indent/io.c:1.131	Thu Nov 25 07:45:32 2021
+++ src/usr.bin/indent/io.c	Thu Nov 25 20:00:31 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: io.c,v 1.131 2021/11/25 07:45:32 rillig Exp $	*/
+/*	$NetBSD: io.c,v 1.132 2021/11/25 20:00:31 rillig Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@ static char sccsid[] = "@(#)io.c	8.1 (Be
 
 #include <sys/cdefs.h>
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: io.c,v 1.131 2021/11/25 07:45:32 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.132 2021/11/25 20:00:31 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $");
 #endif
@@ -173,8 +173,8 @@ inp_comment_init_newline(void)
 	return;
 
     inbuf.save_com_s = inbuf.save_com_buf;
-    inbuf.save_com_s[0] = ' ';	/* see search_stmt_lbrace */
-    inbuf.save_com_s[1] = ' ';	/* see search_stmt_lbrace */
+    inbuf.save_com_s[0] = ' ';	/* see inp_comment_insert_lbrace */
+    inbuf.save_com_s[1] = ' ';	/* see inp_comment_insert_lbrace */
     inbuf.save_com_e = &inbuf.save_com_s[2];
     debug_inp(__func__);
 }
@@ -209,8 +209,8 @@ inp_comment_init_comment(void)
     assert(line_len < array_length(inbuf.save_com_buf));
     memcpy(inbuf.save_com_buf, inbuf.inp.buf, line_len);
     inbuf.save_com_s = inbuf.save_com_buf + line_len;
-    inbuf.save_com_s[0] = ' ';	/* see search_stmt_lbrace */
-    inbuf.save_com_s[1] = ' ';	/* see search_stmt_lbrace */
+    inbuf.save_com_s[0] = ' ';	/* see inp_comment_insert_lbrace */
+    inbuf.save_com_s[1] = ' ';	/* see inp_comment_insert_lbrace */
     inbuf.save_com_e = &inbuf.save_com_s[2];
     debug_vis_range("search_stmt_comment: before save_com is \"",
 	inbuf.save_com_buf, inbuf.save_com_s, "\"\n");

Reply via email to