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: inline bloated call to 'parse' during...
details: https://anonhg.NetBSD.org/src/rev/711262c133d5
branches: trunk
changeset: 990551:711262c133d5
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Oct 30 10:01:31 2021 +0000
description:
indent: inline bloated call to 'parse' during initialization
No functional change.
diffstat:
usr.bin/indent/indent.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (36 lines):
diff -r 4101023d7b18 -r 711262c133d5 usr.bin/indent/indent.c
--- a/usr.bin/indent/indent.c Sat Oct 30 09:53:47 2021 +0000
+++ b/usr.bin/indent/indent.c Sat Oct 30 10:01:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: indent.c,v 1.181 2021/10/30 09:51:22 rillig Exp $ */
+/* $NetBSD: indent.c,v 1.182 2021/10/30 10:01:31 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
#include <sys/cdefs.h>
#if defined(__NetBSD__)
-__RCSID("$NetBSD: indent.c,v 1.181 2021/10/30 09:51:22 rillig Exp $");
+__RCSID("$NetBSD: indent.c,v 1.182 2021/10/30 10:01:31 rillig Exp $");
#elif defined(__FreeBSD__)
__FBSDID("$FreeBSD: head/usr.bin/indent/indent.c 340138 2018-11-04 19:24:49Z oshogbo $");
#endif
@@ -468,7 +468,7 @@
buf_init(&lab);
buf_init(&code);
- ps.s_sym[0] = psym_stmt;
+ ps.s_sym[0] = psym_stmt_list;
ps.prev_token = lsym_semicolon;
ps.prev_newline = true;
@@ -586,8 +586,6 @@
{
inbuf_read_line();
- parse(psym_semicolon);
-
int ind = 0;
for (const char *p = inp.s;; p++) {
if (*p == ' ')
Home |
Main Index |
Thread Index |
Old Index