GNOME Bugzilla – Bug 744075
Missing struct members if forward declared in another header
Last modified: 2015-02-06 14:55:10 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.
Created attachment 296249 [details] [review] Fix typo when building with --enable-debug
Created attachment 296250 [details] [review] Fix unions not being treated consistently like structs
The following fixes have been pushed: 19ad99f Fix unions not being treated consistently like structs 238b89b Fix typo when building with --enable-debug
Created attachment 296278 [details] [review] Fix unions not being treated consistently like structs
Created attachment 296279 [details] [review] Fix typo when building with --enable-debug