After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561617 - Return value array annotations
Return value array annotations
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-11-19 23:54 UTC by Johan (not receiving bugmail) Dahlin
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Johan (not receiving bugmail) Dahlin 2008-11-19 23:54:45 UTC
Support for missing return value array annotations, this is the gtk-doc for one:

/**
  * gtk_recent_info_get_applications:
  * @info: a #GtkRecentInfo
  * @length: return location for the length of the returned list, or %NULL
  *
  * Retrieves the list of applications that have registered this resource.
  *
  * Return value: a newly allocated %NULL-terminated array of strings.
  * Use g_strfreev() to free it.
  *
  * Since: 2.10
  */
gchar **
gtk_recent_info_get_applications (GtkRecentInfo *info,
gsize *length)

The return value is zero-terminated, but we should probably map it to length anyway, eg:

  Return value: (length=length): a newly allocated ...
Comment 1 Johan (not receiving bugmail) Dahlin 2008-11-20 00:06:39 UTC
Make that:

Return value: (array length=length zero-terminated=1): ...
Comment 2 Johan (not receiving bugmail) Dahlin 2008-11-21 02:53:44 UTC
2008-11-21  Johan Dahlin  <jdahlin@async.com.br>

    Bug 561617 – Return value array annotations

    * giscanner/transformer.py:
    * tests/scanner/annotation.c (annotation_return_array):
    * tests/scanner/annotation.h:
    Add support for (array) for return value annotations as well.

Fixed in r957.
Comment 3 André Klapper 2015-02-07 16:53:29 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]