GQueue: accept a NULL sibling for insert_before() and insert_after()
authorSébastien Wilmet <swilmet@gnome.org>
Wed, 5 Nov 2014 13:03:30 +0000 (14:03 +0100)
committerSébastien Wilmet <swilmet@gnome.org>
Sun, 9 Nov 2014 19:42:49 +0000 (20:42 +0100)
commit8a90f5e9f6da778743aaec365ee4ceb62b717130
treebc4f66387c3e28290a14823b4de67a3440344c8c
parent012c9dcd820f9679784181568f97c0e1e6b5e37f
GQueue: accept a NULL sibling for insert_before() and insert_after()

It simplifies a little bit some code that inserts data relative to a
GList location, that might be NULL for the tail of the queue. A NULL
sibling is probably less useful for insert_after(), so it's more for
consistency with insert_before().

https://bugzilla.gnome.org/show_bug.cgi?id=736620
glib/gqueue.c
glib/tests/queue.c