Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 67A171A9217 for ; Sun, 27 Sep 2020 11:43:48 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id BCC9384E1A; Sun, 27 Sep 2020 11:43:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3A79184DB3 for ; Sun, 27 Sep 2020 11:43:47 +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 dx7G8UwJgPoR for ; Sun, 27 Sep 2020 11:43:46 +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 BF09084DAA for ; Sun, 27 Sep 2020 11:43:46 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id AB52FFB28; Sun, 27 Sep 2020 11:43:46 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 27 Sep 2020 11:43:46 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200927114346.AB52FFB28@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org 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 Sep 27 11:43:46 UTC 2020 Modified Files: src/usr.bin/make: compat.c Log Message: make(1): inline Lst_ForEachUntil in Compat_Make This avoids the extra local function and a few conversions to void pointers, to gain additional type safety. The code in Compat_RunCommand does not modify gn->commands structurally, therefore it does not need the extra complexity of Lst_ForEachUntil. It does have access to a list node to exactly this list. This list node is only used to set the command to NULL after processing it, not for removing the node from the list. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/usr.bin/make/compat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.