Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jan 2002 15:13:11 -0700
From:      "Justin T. Gibbs" <gibbs@scsiguy.com>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Julian Elischer <julian@elischer.org>, Poul-Henning Kamp <phk@critter.freebsd.dk>, Stephen McKay <mckay@thehub.com.au>, John Baldwin <jhb@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Julian Elischer <julian@FreeBSD.org>, Greg Lehey <grog@FreeBSD.org>
Subject:   Re: cvs commit: src/share/man/man3 queue.3 
Message-ID:  <200201042213.g04MDBg93058@aslan.scsiguy.com>
In-Reply-To: Your message of "04 Jan 2002 22:07:58 %2B0100." <xzpy9jdn7td.fsf@flood.ping.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
>--=-=-=
>
>"Justin T. Gibbs" <gibbs@scsiguy.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201042213.g04MDBg93058>