Merge branch 'glist-gslist-nullable-param-docs' into 'main'

Add missing "nullable" to parameter docs of GList/GSList

See merge request GNOME/glib!4807
This commit is contained in:
Philip Withnall
2025-09-17 09:20:49 +00:00
2 changed files with 8 additions and 8 deletions

View File

@@ -165,7 +165,7 @@ g_list_free_full (GList *list,
/**
* g_list_append:
* @list: a pointer to a #GList
* @list: (nullable): a pointer to a #GList
* @data: the data for the new element
*
* Adds a new element on to the end of the list.
@@ -222,7 +222,7 @@ g_list_append (GList *list,
/**
* g_list_prepend:
* @list: a pointer to a #GList, this must point to the top of the list
* @list: (nullable): a pointer to a #GList, this must point to the top of the list
* @data: the data for the new element
*
* Prepends a new element on to the start of the list.
@@ -269,7 +269,7 @@ g_list_prepend (GList *list,
/**
* g_list_insert:
* @list: a pointer to a #GList, this must point to the top of the list
* @list: (nullable): a pointer to a #GList, this must point to the top of the list
* @data: the data for the new element
* @position: the position to insert the element. If this is
* negative, or is larger than the number of elements in the
@@ -366,7 +366,7 @@ g_list_insert_before_link (GList *list,
/**
* g_list_insert_before:
* @list: a pointer to a #GList, this must point to the top of the list
* @list: (nullable): a pointer to a #GList, this must point to the top of the list
* @sibling: the list element before which the new element
* is inserted or %NULL to insert at the end of the list
* @data: the data for the new element

View File

@@ -152,7 +152,7 @@ g_slist_free_full (GSList *list,
/**
* g_slist_append:
* @list: a #GSList
* @list: (nullable): a #GSList
* @data: the data for the new element
*
* Adds a new element on to the end of the list.
@@ -205,7 +205,7 @@ g_slist_append (GSList *list,
/**
* g_slist_prepend:
* @list: a #GSList
* @list: (nullable): a #GSList
* @data: the data for the new element
*
* Adds a new element on to the start of the list.
@@ -238,7 +238,7 @@ g_slist_prepend (GSList *list,
/**
* g_slist_insert:
* @list: a #GSList
* @list: (nullable): a #GSList
* @data: the data for the new element
* @position: the position to insert the element.
* If this is negative, or is larger than the number
@@ -289,7 +289,7 @@ g_slist_insert (GSList *list,
/**
* g_slist_insert_before:
* @slist: a #GSList
* @slist: (nullable): a #GSList
* @sibling: node to insert @data before
* @data: data to put in the newly-inserted node
*