Re: g_list_prepend() vs g_list_append()
- From: Johannes Stezenbach <js convergence de>
- To: James Henstridge <james daa com au>
- Cc: Jonathan Blandford <jrb redhat com>, gtk-devel-list gnome org
- Subject: Re: g_list_prepend() vs g_list_append()
- Date: Mon, 9 Sep 2002 13:23:02 +0200
On Sun, Sep 08, 2002 at 06:58:31PM +0800, James Henstridge wrote:
> By the way, if you want to efficiently append to a GList, you should
> maintain a tail pointer. When you want to append, g_list_append() to
> the tail, and update the tail pointer. There are a number of examples
> of this in the gtk API.
Doesn't that contradict what Jonathan Blandford said about the
argument to g_list_append() having to be a pointer to
the first list element?
Johannes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]