g_list_prepend() does not call g_list_first()



Just wondering if there is a legacy reason why g_list_prepend() does not call 
g_list_first() on the pointer passed in to ensure that it is prepending to the 
head of the list. The g_list_append() call ensure it is appending to the end, 
and this is unintuitive to people. If this seems logical, is this a possible 
addition to 2.10 since it would change API behavior? Or has this never been done
 because the impact was deemed to great versus the benefit?

Andrew Paprocki
Bloomberg LP






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