From owner-cvs-all@FreeBSD.ORG Tue Feb 22 07:58:53 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C162616A4CE; Tue, 22 Feb 2005 07:58:53 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BBB443D48; Tue, 22 Feb 2005 07:58:53 +0000 (GMT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1M7wr6f013310; Tue, 22 Feb 2005 07:58:53 GMT (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1M7wr88013309; Tue, 22 Feb 2005 07:58:53 GMT (envelope-from harti) Message-Id: <200502220758.j1M7wr88013309@repoman.freebsd.org> From: Hartmut Brandt Date: Tue, 22 Feb 2005 07:58:53 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/make lst.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 07:58:53 -0000 harti 2005-02-22 07:58:53 UTC FreeBSD src repository Modified files: usr.bin/make lst.h Log: Invent the LST_FOREACH macro for looping through a list. In contrast to the Lst_ForEach function this macro reduces the number of function calls per invocation by N + 1 (where N is the number of list elements) and increases code locality thereby increasing readability and (maybe) performance. Revision Changes Path 1.29 +4 -0 src/usr.bin/make/lst.h