From owner-cvs-all Thu Jan 3 14:20:13 2002 Delivered-To: cvs-all@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id 1941B37B41A; Thu, 3 Jan 2002 14:20:09 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020103222008.MZBQ20119.rwcrmhc51.attbi.com@InterJet.elischer.org>; Thu, 3 Jan 2002 22:20:08 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA24996; Thu, 3 Jan 2002 14:00:23 -0800 (PST) Date: Thu, 3 Jan 2002 14:00:22 -0800 (PST) From: Julian Elischer To: Matthew Dillon Cc: 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: <200201032015.g03KF2X72435@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message