Re: invasive doubly linked list



On Tue, 7 Aug 2001, Tim Janik wrote:

[snip]
> GslRing*        gsl_ring_prepend        (GslRing        *head,
>                                          gpointer        data); /* O(1) */
> GslRing*        gsl_ring_append         (GslRing        *head,
>                                          gpointer        data); /* O(1) */

I would have thought ring_insert_before() and ring_insert_after would be
better names for these APIs, as a ring doesn't really have a start or end
to attach elements to.

James.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]