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 587103 - return values of function-like macros
return values of function-like macros
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.12
Assigned To: gtk-doc maintainers
gtk-doc maintainers
: 581038 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-06-27 02:54 UTC by Matthias Clasen
Modified: 2012-02-21 09:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2009-06-27 02:54:46 UTC
gobject doc comments for e.g. g_signal_connect have a Returns: line, but it doesn't survive in the docs. Probably because g_signal_connect is  a macro ? See bug 581038
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-27 11:36:52 UTC
It seems to be a regression and there is an example for it in gtk-doc/tests/gobject  the GTKDOC_OBJECT_MACRO_SUM macro.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-27 13:44:44 UTC
In gtk-doc tests it works, I just wrote "Return:" instead of "Returns:". Although in the deprecated tmpl based docs it fails, someone needs to figure out and fix it, but apart glib/gtk should really move the stuff inline.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-27 15:43:05 UTC
Matthias, are you sure that this ever worked?
Comment 4 Matthias Clasen 2009-06-27 15:47:57 UTC
The gobject docs are all inline nowadays, actually.
And I am not sure that it ever worked.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-27 16:13:48 UTC
Right, I merged them :)

For the gtk-doc tests it now works both ways:

commit 4e0c66b59f6437d24b195a0ebb016832c3509dbc
Author: Stefan Kost <ensonic@users.sf.net>
Date:   Sat Jun 27 19:10:57 2009 +0300

    mkdb: merge returns for tmpl based docs, Fixes #587103

Could you test with git version?
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-27 20:40:47 UTC
The patch fixes it. gobject has all docs merge, but you still use the tmpl files. If you want to speed up the docs build, migrate the rest of glib to use inline docs and use
 gtkdocize --flavour no-tmpl
in autogen.sh. Everyone will be happy :)
Comment 7 David King 2012-02-21 09:49:57 UTC
*** Bug 581038 has been marked as a duplicate of this bug. ***