Adds g_list_copy_deep and g_slist_copy_deep
authorJonh Wendell <jwendell@gnome.org>
Thu, 21 Jun 2012 15:23:23 +0000 (12:23 -0300)
committerJonh Wendell <jwendell@gnome.org>
Thu, 21 Jun 2012 20:21:30 +0000 (17:21 -0300)
commit2fd6eb7e1cfc878d011ec0b7e58c5e696186516e
treea71c520b83d5e92d6b5a6f71dcbd0e9bfa7106ee
parente0f4b2b03b877e0360f56836ebfe454aa3a9dca5
Adds g_list_copy_deep and g_slist_copy_deep

They make a full (deep) copy of a list.

In contrast with g_[s]list_copy(), these functions take a function as a argument
to make a copy of each list element, in addition to copying the list container itself.

The functions g_[s]list_copy() were reimplemented to just call the new functions
with NULL as the function argument, which will behave like current implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=675024
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/glist.c
glib/glist.h
glib/gslist.c
glib/gslist.h
glib/tests/list.c