Date: Mon, 11 May 1998 21:58:55 -0600 From: "Justin T. Gibbs" <gibbs@plutotech.com> To: Julian Assange <proff@iq.org> Cc: Garance A Drosihn <drosih@rpi.edu>, gibbs@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: more queue.h brokenness Message-ID: <199805120402.WAA29568@pluto.plutotech.com> In-Reply-To: Your message of "12 May 1998 11:11:57 %2B1000." <wxu36wb8de.fsf@polysynaptic.iq.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>No, by other types I meant the other queue types, e.g STAILQ/LIST. > >The definitions for TAILQ_LAST and TAILQ_PREV have changed; I'm not >sure if these new definitions have fixed the problem or not (the code >path is complex). The symptoms were that after a certain combination >of inserts and removes, TAILQ_PREV on the first element returned the >first member, rather than NULL (meaning a backwards loop through the >TAILQ never ended). When there was only one member left, TAILQ_LAST >returned NULL, rather than the first member. Before this change, TAILQ_PREV was unusable for reverse traversals in a list. It returned a pointer to the "links" area of the previous object, not the previous object. >Cheers, >Julian. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805120402.WAA29568>