Re: invasive doubly linked list
- From: Tim Janik <timj gtk org>
- To: James Henstridge <james daa com au>
- Cc: Joshua N Pritikin <vishnu pobox com>, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: invasive doubly linked list
- Date: Tue, 7 Aug 2001 21:02:54 +0200 (CEST)
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]