From 74583affe0308c2d6a4c6dd60ac4030b42b2a5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?= =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= Date: Fri, 19 Jul 2019 11:45:49 +0000 Subject: [PATCH] Add (out) annotation to (optional) parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … as the parameters are not (inout). Closes #1837 --- gio/gvdb/gvdb-reader.c | 2 +- glib/gtree.c | 4 ++-- glib/gvarianttypeinfo.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gio/gvdb/gvdb-reader.c b/gio/gvdb/gvdb-reader.c index ccae40e64..83ad2ac19 100644 --- a/gio/gvdb/gvdb-reader.c +++ b/gio/gvdb/gvdb-reader.c @@ -332,7 +332,7 @@ gvdb_table_list_from_item (GvdbTable *table, /** * gvdb_table_get_names: * @table: a #GvdbTable - * @length: (optional): the number of items returned, or %NULL + * @length: (out) (optional): the number of items returned, or %NULL * * Gets a list of all names contained in @table. * diff --git a/glib/gtree.c b/glib/gtree.c index 115f44659..e8d4e204c 100644 --- a/glib/gtree.c +++ b/glib/gtree.c @@ -853,8 +853,8 @@ g_tree_lookup (GTree *tree, * g_tree_lookup_extended: * @tree: a #GTree * @lookup_key: the key to look up - * @orig_key: (optional) (nullable): returns the original key - * @value: (optional) (nullable): returns the value associated with the key + * @orig_key: (out) (optional) (nullable): returns the original key + * @value: (out) (optional) (nullable): returns the value associated with the key * * Looks up a key in the #GTree, returning the original key and the * associated value. This is useful if you need to free the memory diff --git a/glib/gvarianttypeinfo.c b/glib/gvarianttypeinfo.c index bed0bb717..2904686b8 100644 --- a/glib/gvarianttypeinfo.c +++ b/glib/gvarianttypeinfo.c @@ -223,8 +223,8 @@ g_variant_type_info_get_type_string (GVariantTypeInfo *info) /* < private > * g_variant_type_info_query: * @info: a #GVariantTypeInfo - * @alignment: (optional): the location to store the alignment, or %NULL - * @fixed_size: (optional): the location to store the fixed size, or %NULL + * @alignment: (out) (optional): the location to store the alignment, or %NULL + * @fixed_size: (out) (optional): the location to store the fixed size, or %NULL * * Queries @info to determine the alignment requirements and fixed size * (if any) of the type. @@ -332,8 +332,8 @@ g_variant_type_info_element (GVariantTypeInfo *info) /* < private > * g_variant_type_query_element: * @info: a #GVariantTypeInfo for an array or maybe type - * @alignment: (optional): the location to store the alignment, or %NULL - * @fixed_size: (optional): the location to store the fixed size, or %NULL + * @alignment: (out) (optional): the location to store the alignment, or %NULL + * @fixed_size: (out) (optional): the location to store the fixed size, or %NULL * * Returns the alignment requires and fixed size (if any) for the * element type of the array. This call is a convenience wrapper around