Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Feb 2001 10:56:15 +0200
From:      Mark Murray <mark@grondar.za>
To:        Luigi Rizzo <luigi@info.iet.unipi.it>
Cc:        Bruce Evans <bde@zeta.org.au>, Peter Wemm <peter@netplex.com.au>, Mike Heffner <mikeh@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: QUEUE macros considered harmful (was Re: cvs commit: src/usr.bin/lam lam.c) 
Message-ID:  <200102090855.f198ti905417@gratis.grondar.za>
In-Reply-To: <200102090735.IAA31362@info.iet.unipi.it> ; from Luigi Rizzo <luigi@info.iet.unipi.it>  "Fri, 09 Feb 2001 08:35:35 %2B0100."
References:  <200102090735.IAA31362@info.iet.unipi.it> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Simple example taken from the firewall code:

Simple examples don't cut the cake.

Complex use of linked list code is _dramatically_ simplified by use
of queue(3) macros. The formal structure and consistent use (even if
not the most obvious use, nor the most intuitive at first).

> the manpage says that LIST_ENTRY(TYPE) "declares a structure",
> but 'TYPE' is not really a type, (the real type 'struct TYPE'),
> and the macro declares a type, not the actual object. The LIST
> macros are then used as follows:

Fix the documentation, then! :-)

M
-- 
Mark Murray
Warning: this .sig is umop ap!sdn


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?200102090855.f198ti905417>