From owner-cvs-all Wed Jan 2 10:31:12 2002 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id AC20137B41B; Wed, 2 Jan 2002 10:31:05 -0800 (PST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id g02ISnV01542; Wed, 2 Jan 2002 19:28:49 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Julian Elischer Cc: 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 "Wed, 02 Jan 2002 09:34:05 PST." Date: Wed, 02 Jan 2002 19:28:49 +0100 Message-ID: <1540.1009996129@critter.freebsd.dk> From: Poul-Henning Kamp 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 In message , Ju lian Elischer writes: >how about explicitly detailing that it's NULL at the end? >Doesn't that also work? I don't think we should document that. There are types of lists/queues which doesn't naturally end with that condition. That is why we have the FOO_EMPTY() clause, although people tend to also rely on if (FOO_FIRST(...) == NULL) /* nothing to do */ -- 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