Re: GLists & Sorting

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

 



On Sun, Dec 17, 2006 at 03:10:23PM -0800, Hadron wrote:
> 
> Where I had my problem was where I did not reassign the output of the call
> to g_list_sort to "filesystems". What is the thinking behind this in the
> API? If I had a pointer to a List "object" then it should be just that - not
> a pointer to a sub element.

Quite the contrary, there is no List object, only pointers
to elements, so you never have a pointer to a List object.

By convention, many functions get and return the pointer to
the head, but other algorithms don't care where the list has
the head -- or whether it has any at all, you can make
a cyclic list of GList items, no problem (of course, you
must not use a GLib function that assumes a non-cyclic list).

Yeti


--
Whatever.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux