Date: Tue, 01 Jan 2002 10:26:44 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Marcel Moolenaar <marcel@xcllnt.net> Cc: Julian Elischer <julian@elischer.org>, 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: <69091.1009877204@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 31 Dec 2001 19:01:26 PST." <20011231190126.A755@dhcp01.pn.xcllnt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20011231190126.A755@dhcp01.pn.xcllnt.net>, Marcel Moolenaar writes:
>What's wrong with the following if _FOREACH is preferred:
>
> TAILQ_FOREACH(p, &list, p_next) {
> if (some_test_on(p)) {
> /* Do something */
> break; /* optional */
> }
> }
I think this is far superior to the TAILQ_UNTIL idea.
We don't want to add too many obscure variants to queue(3).
"KISS shall prevail" remember ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
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?69091.1009877204>
