Re: g_list_append() knows how to duplicate data?



You can find documentation at http://developer.gnome.org/doc/API/

Documentation specific for g_list (including it's memory management
system) is found at:

http://developer.gnome.org/doc/API/glib/glib-doubly-linked-lists.html

Thanks for the clarification, I use these documents as well.

But in my contributor's defense, the documents do not mention any
allocation or deallocation of passed pointers...

... *but* I guess if it dosen't say it duplicates then it should be
assumed it does not duplicate.

Only function I would make note about is, is g_list_free() in which
some newbies might think it frees each data pointer in the list array...

That's about it, no hard done. I double checked and we know are pretty
sure of the inner workings of g_list now. :)

--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





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