From owner-cvs-all Fri Jan 4 14:13:27 2002 Delivered-To: cvs-all@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id D2D4337B405; Fri, 4 Jan 2002 14:13:23 -0800 (PST) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.5/8.11.5) with ESMTP id g04MDBg93058; Fri, 4 Jan 2002 15:13:11 -0700 (MST) (envelope-from gibbs@scsiguy.com) Message-Id: <200201042213.g04MDBg93058@aslan.scsiguy.com> To: Dag-Erling Smorgrav Cc: Julian Elischer , Poul-Henning Kamp , Stephen McKay , John Baldwin , cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Julian Elischer , Greg Lehey Subject: Re: cvs commit: src/share/man/man3 queue.3 In-Reply-To: Your message of "04 Jan 2002 22:07:58 +0100." Date: Fri, 04 Jan 2002 15:13:11 -0700 From: "Justin T. Gibbs" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >--=-=-= > >"Justin T. Gibbs" writes: >> Any foreach macro must test the termination condition. If we decided >> to define that the element pointer == NULL for a complete traversal, this >> would be at most a single assignment within the the termination >> conditional. > >Like the attached patch, you mean? Sure. Is the compiler smart enough to not bother testing the result of the assignment? -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message