mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-06 05:39:20 +02:00
glib: Add missing (nullable) and (optional) annotations
Add various (nullable) and (optional) annotations which were missing from a variety of functions. Also port a couple of existing (allow-none) annotations in the same files to use (nullable) and (optional) as appropriate instead. Secondly, add various (not nullable) annotations as needed by the new default in gobject-introspection of marking gpointers as (nullable). See https://bugzilla.gnome.org/show_bug.cgi?id=729660. This includes adding some stub documentation comments for the assertion macro error functions, which weren’t previously documented. The new comments are purely to allow for annotations, and hence are marked as (skip) to prevent the symbols appearing in the GIR file. https://bugzilla.gnome.org/show_bug.cgi?id=719966
This commit is contained in:
@@ -436,8 +436,9 @@ try_steal_and_unref (GBytes *bytes,
|
||||
* g_bytes_new_take() or g_byte_array_free_to_bytes(). In all other cases the
|
||||
* data is copied.
|
||||
*
|
||||
* Returns: (transfer full) (array length=size) (element-type guint8):
|
||||
* a pointer to the same byte data, which should be freed with g_free()
|
||||
* Returns: (transfer full) (array length=size) (element-type guint8)
|
||||
* (not nullable): a pointer to the same byte data, which should be
|
||||
* freed with g_free()
|
||||
*
|
||||
* Since: 2.32
|
||||
*/
|
||||
|
Reference in New Issue
Block a user