[ccan] [PATCH 1/4] queue: Simple queue implementation
Cody P Schafer
dev at codyps.com
Tue Jul 8 13:13:58 EST 2014
On Mon, Jul 7, 2014 at 8:51 AM, David Gibson
<david at gibson.dropbear.id.au> wrote:
> This new module provides a simple queue implementation as a singly linked
> (circular) list.
>
> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
I've been looking for a singly-linked list for places where I don't
necessarily need a doubly linked one (as provided by ccan/list).
Would it be possible to format the api for this singly-linked list
more like the current list.h api?
More to the point: can't we use this "queue" as a "stack" (or, well, a
list) just as easily?
Or was the naming purposful so readers of code that uses it would
actually have an understanding of the intent in using it?
More information about the ccan
mailing list