mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
Merge branch '2793-clear-annotations' into 'main'
gmem: Fix introspection annotations for g_clear_pointer() and g_clear_fd() Closes #2793 See merge request GNOME/glib!3085
This commit is contained in:
commit
1e5178b002
@ -232,8 +232,8 @@ g_free (gpointer mem)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_clear_pointer: (skip)
|
* g_clear_pointer: (skip)
|
||||||
* @pp: (not nullable): a pointer to a variable, struct member etc. holding a
|
* @pp: (nullable) (not optional) (inout) (transfer full): a pointer to a
|
||||||
* pointer
|
* variable, struct member etc. holding a pointer
|
||||||
* @destroy: a function to which a gpointer can be passed, to destroy *@pp
|
* @destroy: a function to which a gpointer can be passed, to destroy *@pp
|
||||||
*
|
*
|
||||||
* Clears a reference to a variable.
|
* Clears a reference to a variable.
|
||||||
|
@ -1839,7 +1839,7 @@ g_close (gint fd,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_clear_fd: (skip)
|
* g_clear_fd: (skip)
|
||||||
* @fd_ptr: (not nullable): a pointer to a file descriptor
|
* @fd_ptr: (not optional) (inout) (transfer full): a pointer to a file descriptor
|
||||||
* @error: Used to return an error on failure
|
* @error: Used to return an error on failure
|
||||||
*
|
*
|
||||||
* If @fd_ptr points to a file descriptor, close it and return
|
* If @fd_ptr points to a file descriptor, close it and return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user