Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id AABE284E83 for ; Thu, 8 Jun 2023 21:18:55 +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 3yrTH9goNMKf for ; Thu, 8 Jun 2023 21:18:55 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4089784CFD for ; Thu, 8 Jun 2023 21:18:55 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 398EAFA89; Thu, 8 Jun 2023 21:18:55 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 8 Jun 2023 21:18:55 +0000 From: "Roland Illig" Subject: CVS commit: src To: source-changes@NetBSD.org Approved: for-source-only Reply-To: rillig@netbsd.org X-Mailer: log_accum Message-Id: <20230608211855.398EAFA89@cvs.NetBSD.org> Module Name: src Committed By: rillig Date: Thu Jun 8 21:18:55 UTC 2023 Modified Files: src/tests/usr.bin/indent: fmt_decl.c lsym_for.c lsym_unary_op.c src/usr.bin/indent: debug.c indent.c indent.h lexi.c Log Message: indent: remove fragile heuristic for detecting cast expressions The assumption that in an expression of the form '(a * anything)', the '*' marks a pointer type was too simple-minded. For now, fix the obvious cases and leave the others for later. If needed, they can be worked around using the '-T' option. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/tests/usr.bin/indent/fmt_decl.c cvs rdiff -u -r1.6 -r1.7 src/tests/usr.bin/indent/lsym_for.c cvs rdiff -u -r1.9 -r1.10 src/tests/usr.bin/indent/lsym_unary_op.c cvs rdiff -u -r1.39 -r1.40 src/usr.bin/indent/debug.c cvs rdiff -u -r1.340 -r1.341 src/usr.bin/indent/indent.c cvs rdiff -u -r1.178 -r1.179 src/usr.bin/indent/indent.h cvs rdiff -u -r1.216 -r1.217 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.