mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 05:43:28 +02:00
introspection: use (nullable) or (optional) instead of (allow-none)
If we have an input parameter (or return value) we need to use (nullable). However, if it is an (inout) or (out) parameter, (optional) is sufficient. It looks like (nullable) could be used for everything according to the Annotation documentation, but (optional) is more specific.
This commit is contained in:
@@ -753,7 +753,7 @@ g_fopen (const gchar *filename,
|
||||
* @filename: (type filename): a pathname in the GLib file name encoding
|
||||
* (UTF-8 on Windows)
|
||||
* @mode: a string describing the mode in which the file should be opened
|
||||
* @stream: (allow-none): an existing stream which will be reused, or %NULL
|
||||
* @stream: (nullable): an existing stream which will be reused, or %NULL
|
||||
*
|
||||
* A wrapper for the POSIX freopen() function. The freopen() function
|
||||
* opens a file and associates it with an existing stream.
|
||||
|
Reference in New Issue
Block a user