Re: g_list_append() knows how to duplicate data?
- From: David Ford <david linux com>
- To: Havoc Pennington <hp redhat com>
- Cc: learfox furry ao net, GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: g_list_append() knows how to duplicate data?
- Date: Tue, 16 Jan 2001 18:18:49 -0800
I said that because I was told that it acted like the gtk clist in copying
data in spite of the very simple g_list structure.
Better documentation for gtk/glib would prevent a lot of this.
-d
Havoc Pennington wrote:
learfox furry ao net writes:
I was just told that g_list_append() takes the second argument and
duplicates it before setting it to the list.
Is this true?
No.
If so how does it know what size the given data is?
It couldn't possibly, as you might expect.
Also I was told that g_list_free() deallocates each data pointer on
each linked item on the glist, is that true and if so does it know if it
should be deallocated or not or if it has allocated substructures?
Same deal. Someone is smoking some crackpipe. Ask them to share. ;-)
Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
..NOTICE fwd: fwd: fwd: type emails will be deleted automatically.
"There is a natural aristocracy among men. The grounds of this are
virtue and talents", Thomas Jefferson [1742-1826], 3rd US President
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]