From ce1b50bf2afbbcfd6c560feed00de2df50b7dfba Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 12 Jul 2012 16:09:57 +0200 Subject: [PATCH] GRegex, GConvert: Add some missing annotations. Also, removed pointless (allow-none) return annotation. https://bugzilla.gnome.org/show_bug.cgi?id=679762 --- glib/gconvert.c | 6 +++--- glib/gregex.c | 15 +++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/glib/gconvert.c b/glib/gconvert.c index e18f3c1..dded367 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -2079,9 +2079,9 @@ g_filename_to_uri (const gchar *filename, * mime type defined in RFC 2483 into individual URIs, * discarding any comments. The URIs are not validated. * - * Returns: a newly allocated %NULL-terminated list of - * strings holding the individual URIs. The array should - * be freed with g_strfreev(). + * Returns: (transfer full): a newly allocated %NULL-terminated list + * of strings holding the individual URIs. The array should be freed + * with g_strfreev(). * * Since: 2.6 */ diff --git a/glib/gregex.c b/glib/gregex.c index 8921ad3..c8ccf3f 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -1199,9 +1199,9 @@ g_match_info_fetch_named_pos (const GMatchInfo *match_info, * The strings are fetched from the string passed to the match function, * so you cannot call this function after freeing the string. * - * Returns: (allow-none): a %NULL-terminated array of gchar * pointers. - * It must be freed using g_strfreev(). If the previous match failed - * %NULL is returned + * Returns: (transfer full): a %NULL-terminated array of gchar * + * pointers. It must be freed using g_strfreev(). If the previous + * match failed %NULL is returned * * Since: 2.14 */ @@ -1984,7 +1984,8 @@ g_regex_get_string_number (const GRegex *regex, * characters. For example splitting "ab c" using as a separator * "\s*", you will get "a", "b" and "c". * - * Returns: a %NULL-terminated array of strings. Free it using g_strfreev() + * Returns: (transfer full): a %NULL-terminated array of strings. Free + * it using g_strfreev() * * Since: 2.14 **/ @@ -2030,7 +2031,8 @@ g_regex_split_simple (const gchar *pattern, * For example splitting "ab c" using as a separator "\s*", you will get * "a", "b" and "c". * - * Returns: a %NULL-terminated gchar ** array. Free it using g_strfreev() + * Returns: (transfer full): a %NULL-terminated gchar ** array. Free + * it using g_strfreev() * * Since: 2.14 **/ @@ -2076,7 +2078,8 @@ g_regex_split (const GRegex *regex, * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern * that begins with any kind of lookbehind assertion, such as "\b". * - * Returns: a %NULL-terminated gchar ** array. Free it using g_strfreev() + * Returns: (transfer full): a %NULL-terminated gchar ** array. Free + * it using g_strfreev() * * Since: 2.14 **/ -- 2.7.4