Date: Thu, 3 Jan 2002 14:00:22 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Matthew Dillon <dillon@apollo.backplane.com> Cc: 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: <Pine.BSF.4.21.0201031358340.24204-100000@InterJet.elischer.org> In-Reply-To: <200201032015.g03KF2X72435@apollo.backplane.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 3 Jan 2002, Matthew Dillon wrote: > : > :I don't understand your point.. > :TAILQ_FIRST() does not do a conditional to give a NULL on empty.. > :...#define TAILQ_FIRST(head) ((head)->tqh_first) > > My example wasn't meant to be compatible with sys/queue.h, but if you > look at sys/queue.h you will find that CIRCLEQ_FIRST() does not > return NULL on an empty list, nor does CIRCLEQ_NEXT(). You have > to use CIRCLEQ_EMPTY() to test for an empty lilst and you pretty > much have to use CIRCLEQ_FOREACH() to iterate over a list. So what.? We are arguing about TAILQ_FOREACH not CIRCLEQ_FOREACH (Which phk deleted anyhow) in any case, because TAILQ and CIRCLEQ DIFFER in this regard I'd assume that this was a good reason to document the difference. > > -Matt > Matthew Dillon > <dillon@backplane.com> > 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?Pine.BSF.4.21.0201031358340.24204-100000>