indent: format its own code

This commit is contained in:
rillig 2023-06-09 07:20:30 +00:00
parent 0fcafc89fc
commit 545ff05aaa
5 changed files with 19 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: indent.c,v 1.341 2023/06/08 21:18:54 rillig Exp $ */
/* $NetBSD: indent.c,v 1.342 2023/06/09 07:20:30 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: indent.c,v 1.341 2023/06/08 21:18:54 rillig Exp $");
__RCSID("$NetBSD: indent.c,v 1.342 2023/06/09 07:20:30 rillig Exp $");
#include <sys/param.h>
#include <err.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: io.c,v 1.205 2023/06/09 06:36:57 rillig Exp $ */
/* $NetBSD: io.c,v 1.206 2023/06/09 07:20:30 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: io.c,v 1.205 2023/06/09 06:36:57 rillig Exp $");
__RCSID("$NetBSD: io.c,v 1.206 2023/06/09 07:20:30 rillig Exp $");
#include <stdio.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: lexi.c,v 1.217 2023/06/08 21:18:54 rillig Exp $ */
/* $NetBSD: lexi.c,v 1.218 2023/06/09 07:20:30 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: lexi.c,v 1.217 2023/06/08 21:18:54 rillig Exp $");
__RCSID("$NetBSD: lexi.c,v 1.218 2023/06/09 07:20:30 rillig Exp $");
#include <stdlib.h>
#include <string.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: parse.c,v 1.69 2023/06/07 15:46:12 rillig Exp $ */
/* $NetBSD: parse.c,v 1.70 2023/06/09 07:20:30 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: parse.c,v 1.69 2023/06/07 15:46:12 rillig Exp $");
__RCSID("$NetBSD: parse.c,v 1.70 2023/06/09 07:20:30 rillig Exp $");
#include <err.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: pr_comment.c,v 1.157 2023/06/09 07:18:52 rillig Exp $ */
/* $NetBSD: pr_comment.c,v 1.158 2023/06/09 07:20:30 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: pr_comment.c,v 1.157 2023/06/09 07:18:52 rillig Exp $");
__RCSID("$NetBSD: pr_comment.c,v 1.158 2023/06/09 07:20:30 rillig Exp $");
#include <string.h>
@ -198,9 +198,8 @@ copy_comment_wrap_text(int line_length, ssize_t *last_blank)
output_line();
com_add_delim();
/* Assume that output_line and com_add_delim don't
* invalidate the "unused" part of the buffer beyond
* com.s + com.len. */
/* Assume that output_line and com_add_delim don't invalidate the
* "unused" part of the buffer beyond com.s + com.len. */
memmove(com.s + com.len, last_word_s, last_word_len);
com.len += last_word_len;
*last_blank = -1;