[glib] GSList: Note that using ->next directly is OK
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSList: Note that using ->next directly is OK
- Date: Mon, 7 Aug 2017 19:39:48 +0000 (UTC)
commit f6aa8c398868907bb68ab39c61d943bcde76e284
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 d85b425..518ee08 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]