Re: invasive doubly linked list



On Tue, 7 Aug 2001, James Henstridge wrote:

> 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.

these have different conotations in the GList API, for
append/prepend, it's clear what the new head (start) is.

> 
> James.
> 

---
ciaoTJ





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