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 446648 - gtk-doc does not handle forward typedef'd enums
gtk-doc does not handle forward typedef'd enums
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.10
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2007-06-12 08:12 UTC by Philip Van Hoof
Modified: 2007-12-04 07:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (825 bytes, patch)
2007-07-17 12:01 UTC, Yeti
committed Details | Review
test case patch (714 bytes, patch)
2007-07-22 07:09 UTC, Yeti
committed Details | Review

Description Philip Van Hoof 2007-06-12 08:12:53 UTC
Gtk doc does not handle enums like this:

typedef enum _MyEnum MyEnum;

enum _MyEnum {
 BLABLA
};

It only supports this:

typedef enum {
  BLABLA
} MyEnum;
Comment 1 Yeti 2007-07-17 12:01:31 UTC
Created attachment 91888 [details] [review]
proposed patch

It seems sufficient to just allow this construct in gtkdoc-common.pl to make it work.
Comment 2 Yeti 2007-07-22 07:09:25 UTC
Created attachment 92148 [details] [review]
test case patch

Adds a test case to the test suite.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2007-12-04 07:25:23 UTC
2007-12-04  Stefan Kost  <ensonic@users.sf.net>

	patch by: David Nečas <yeti@physics.muni.cz>

	* gtkdoc-common.pl.in:
	* tests/bugs/docs/tester-sections.txt:
	* tests/bugs/src/tester.c:
	* tests/bugs/src/tester.h:
	  Handle forward typedef'd enums. Fixes #446648.