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 744075 - Missing struct members if forward declared in another header
Missing struct members if forward declared in another header
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.22
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2015-02-05 22:16 UTC by Xavier Claessens
Modified: 2015-02-06 14:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix typo when building with --enable-debug (791 bytes, patch)
2015-02-06 02:13 UTC, Xavier Claessens
committed Details | Review
Fix unions not being treated consistently like structs (2.25 KB, patch)
2015-02-06 02:13 UTC, Xavier Claessens
committed Details | Review
Fix unions not being treated consistently like structs (2.26 KB, patch)
2015-02-06 14:55 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review
Fix typo when building with --enable-debug (808 bytes, patch)
2015-02-06 14:55 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Xavier Claessens 2015-02-05 22:16:20 UTC
In glib, GTypeCValue struct is missing from the doc.

I believe this is because gtkdoc-scan first see in gtype.h:
typedef union  _GTypeCValue             GTypeCValue;

It adds it to $forward_decls, then at the end of the file it didn't see the declaration so it writes in gobject-decl.txt:

<UNION>
<NAME>GTypeCValue</NAME>
</UNION>

Later it parses gvaluecollector.h and see:
union _GTypeCValue
{
  gint     v_int;
  glong    v_long;
  gint64   v_int64;
  gdouble  v_double;
  gpointer v_pointer;
};

It writes in gobject-decl.txt the whole thing.

Later it removes dups from gobject-decl.txt and the 2nd, more complete, is lost.
Comment 1 Xavier Claessens 2015-02-06 02:13:09 UTC
Created attachment 296249 [details] [review]
Fix typo when building with --enable-debug
Comment 2 Xavier Claessens 2015-02-06 02:13:13 UTC
Created attachment 296250 [details] [review]
Fix unions not being treated consistently like structs
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2015-02-06 14:54:55 UTC
The following fixes have been pushed:
19ad99f Fix unions not being treated consistently like structs
238b89b Fix typo when building with --enable-debug
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2015-02-06 14:55:06 UTC
Created attachment 296278 [details] [review]
Fix unions not being treated consistently like structs
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2015-02-06 14:55:10 UTC
Created attachment 296279 [details] [review]
Fix typo when building with --enable-debug