[glib] gstrfuncs: Add missing annotations to g_[ascii_]strto*() functions



commit 2e078f1fc0f580bf390c84ebfcd36bcde076eca6
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Oct 8 11:08:28 2015 +0100

    gstrfuncs: Add missing annotations to g_[ascii_]strto*() functions
    
    Add missing (out) (transfer none) (optional) annotations to g_strtod(),
    g_ascii_strtod(), g_ascii_strtoull() and g_ascii_strtoll().

 glib/gstrfuncs.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c
index 6712a64..46c5d06 100644
--- a/glib/gstrfuncs.c
+++ b/glib/gstrfuncs.c
@@ -601,8 +601,8 @@ g_strconcat (const gchar *string1, ...)
 /**
  * g_strtod:
  * @nptr:    the string to convert to a numeric value.
- * @endptr:  if non-%NULL, it returns the character after
- *           the last character used in the conversion.
+ * @endptr:  (out) (transfer none) (optional): if non-%NULL, it returns the
+ *           character after the last character used in the conversion.
  *
  * Converts a string to a #gdouble value.
  * It calls the standard strtod() function to handle the conversion, but
@@ -654,8 +654,8 @@ g_strtod (const gchar *nptr,
 /**
  * g_ascii_strtod:
  * @nptr:    the string to convert to a numeric value.
- * @endptr:  if non-%NULL, it returns the character after
- *           the last character used in the conversion.
+ * @endptr:  (out) (transfer none) (optional): if non-%NULL, it returns the
+ *           character after the last character used in the conversion.
  *
  * Converts a string to a #gdouble value.
  *
@@ -1130,8 +1130,8 @@ g_parse_long_long (const gchar  *nptr,
 /**
  * g_ascii_strtoull:
  * @nptr:    the string to convert to a numeric value.
- * @endptr:  if non-%NULL, it returns the character after
- *           the last character used in the conversion.
+ * @endptr:  (out) (transfer none) (optional): if non-%NULL, it returns the
+ *           character after the last character used in the conversion.
  * @base:    to be used for the conversion, 2..36 or 0
  *
  * Converts a string to a #guint64 value.
@@ -1177,8 +1177,8 @@ g_ascii_strtoull (const gchar *nptr,
 /**
  * g_ascii_strtoll:
  * @nptr:    the string to convert to a numeric value.
- * @endptr:  if non-%NULL, it returns the character after
- *           the last character used in the conversion.
+ * @endptr:  (out) (transfer none) (optional): if non-%NULL, it returns the
+ *           character after the last character used in the conversion.
  * @base:    to be used for the conversion, 2..36 or 0
  *
  * Converts a string to a #gint64 value.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]