Received: by mail.netbsd.org (Postfix, from userid 605) id 5C61184E91; Sun, 13 Feb 2022 12:20:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 91DA084D84 for ; Sun, 13 Feb 2022 12:20:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id NGIUwFMEiPh7 for ; Sun, 13 Feb 2022 12:20:10 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 2AAD084D39 for ; Sun, 13 Feb 2022 12:20:10 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 23EE1FB24; Sun, 13 Feb 2022 12:20:10 +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:20:10 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/indent To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20220213122010.23EE1FB24@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:20:10 UTC 2022 Modified Files: src/usr.bin/indent: indent.c indent.h io.c lexi.c Log Message: indent: replace bitmasking code with struct The struct directly represents the properties of a pair of parentheses, without forcing the human reader to decode any bitset. This makes it easier to find the remaining bugs in the heuristic for determining the kind of parentheses. No functional change outside debug mode. To generate a diff of this commit: cvs rdiff -u -r1.240 -r1.241 src/usr.bin/indent/indent.c cvs rdiff -u -r1.109 -r1.110 src/usr.bin/indent/indent.h cvs rdiff -u -r1.144 -r1.145 src/usr.bin/indent/io.c cvs rdiff -u -r1.170 -r1.171 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.