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: update cross-reference comments for b...
details: https://anonhg.NetBSD.org/src/rev/c7d99a719487
branches: trunk
changeset: 1026469:c7d99a719487
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Nov 25 20:00:31 2021 +0000
description:
indent: update cross-reference comments for bug in comment handling
The function was renamed in io.c 1.122 from 2021-11-19.
diffstat:
usr.bin/indent/io.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 2461ae32aa39 -r c7d99a719487 usr.bin/indent/io.c
--- a/usr.bin/indent/io.c Thu Nov 25 19:56:03 2021 +0000
+++ b/usr.bin/indent/io.c Thu Nov 25 20:00:31 2021 +0000
@@ -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 @@
#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 @@
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 @@
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");
Home |
Main Index |
Thread Index |
Old Index