[glib/glib-2-52] GSList: Note that using ->next directly is OK



commit 510b290e2fedcbcd3300116113dd45786b30e1c1
Author: Daniel Boles <dboles src gnome org>
Date:   Mon Aug 7 20:39:06 2017 +0100

    GSList: Note that using ->next directly is OK
    
    as for GList

 glib/gslist.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/gslist.c b/glib/gslist.c
index 0757f64..0a3238b 100644
--- a/glib/gslist.c
+++ b/glib/gslist.c
@@ -95,6 +95,8 @@
  * @slist: an element in a #GSList.
  *
  * A convenience macro to get the next element in a #GSList.
+ * Note that it is considered perfectly acceptable to access
+ * @slist->next directly.
  *
  * Returns: the next element, or %NULL if there are no more elements.
  **/


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