Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E761E84EEA for ; Wed, 14 Jun 2023 16:14:30 +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 BEGTFJXyoKLp for ; Wed, 14 Jun 2023 16:14:30 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 8189784CFC for ; Wed, 14 Jun 2023 16:14:30 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7A566FA89; Wed, 14 Jun 2023 16:14:30 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 14 Jun 2023 16:14:30 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/indent To: source-changes@NetBSD.org Approved: for-source-only Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20230614161430.7A566FA89@cvs.NetBSD.org> Module Name: src Committed By: rillig Date: Wed Jun 14 16:14:30 UTC 2023 Modified Files: src/usr.bin/indent: debug.c indent.c indent.h io.c lexi.c parse.c Log Message: indent: clean up array indexing for parser symbols With 'top' pointing to the actual top element, the array was indexed in the closed range from 0 to top. All other arrays are indexed by the usual half-open interval from 0 to len. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/usr.bin/indent/debug.c cvs rdiff -u -r1.364 -r1.365 src/usr.bin/indent/indent.c cvs rdiff -u -r1.194 -r1.195 src/usr.bin/indent/indent.h cvs rdiff -u -r1.220 -r1.221 src/usr.bin/indent/io.c cvs rdiff -u -r1.228 -r1.229 src/usr.bin/indent/lexi.c cvs rdiff -u -r1.73 -r1.74 src/usr.bin/indent/parse.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.