Received: by mail.netbsd.org (Postfix, from userid 605) id 8586684D84; Sun, 13 Feb 2022 12:43:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BB7E484D82 for ; Sun, 13 Feb 2022 12:43:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id ORr69Wsr-JMS for ; Sun, 13 Feb 2022 12:43:26 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id D4C9484D35 for ; Sun, 13 Feb 2022 12:43:26 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id CE30DFB24; Sun, 13 Feb 2022 12:43:26 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 13 Feb 2022 12:43:26 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/indent To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220213124326.CE30DFB24@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sun Feb 13 12:43:26 UTC 2022 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c Log Message: indent: rename parser_state.p_l_follow and paren_level The previous variable names were misleading. Paren_level is not the current level of parentheses but the one from the beginning of the current output line. For better accuracy, rename it to line_start_paren_level. P_l_follow is not the level of parentheses that will be active at some point in the future, as the previous name suggested. Instead, it is the level of parentheses right now. For better accuracy, rename it to nparen. This nicely matches its main usage, which is as index to the parser_state.paren array. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.241 -r1.242 src/usr.bin/indent/indent.c cvs rdiff -u -r1.110 -r1.111 src/usr.bin/indent/indent.h cvs rdiff -u -r1.145 -r1.146 src/usr.bin/indent/io.c cvs rdiff -u -r1.171 -r1.172 src/usr.bin/indent/lexi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.