Re: comments on g_list_slice / g_list_splice

2005-11-30 Thread Paul LeoNerd Evans
On Wed, 30 Nov 2005 00:57:42 -0500 ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN [EMAIL PROTECTED] wrote: GList * g_list_slice(GList *list, GList *link, gint n_links); GList * g_list_remove_slice(GList *list, GList *link, gint n_links); GList * g_list_splice(GList *list, GList *splice_list, gint

Fwd: Re: comments on g_list_slice / g_list_splice

2005-11-30 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
I just realized that all of the APIs need to return the original list because it can be modified. The way I'm playing with it now, the slice calls would simply unlink 'link' and it is up to the caller to reuse the same 'link' pointer as the newly separated list.. - Original Message -

comments on g_list_slice / g_list_splice

2005-11-29 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
Does anyone have any comments on the possibility of creating g_list_slice and g_list_splice functions? I find myself needing to remove/add contiguous sections of a GList, and believe these functions might be useful to others. The idea would be: GList * g_list_slice(GList *list, GList *link,