GNOME Bugzilla – Bug 512154
Struct member type attributes are limited to one token
Last modified: 2008-02-01 12:50:20 UTC
In cairo, gtk-doc is nagging about this struct: typedef struct { unsigned long index; double x; double y; } cairo_glyph_t; Apparently it thinks "long" is the name of the first struct member, not "index".
What gtk-doc version is this? It works fine with gtk-doc from trunk.
Umm, gtk-doc-1.8-2.fc7, that doesn't look right as this is a F8 machine.
Upgraded and still seeing this: WARNING: Field described in source code comment block but does not exist - STRUCT: cairo_glyph_t Field: index. gtk-doc-1.9-4.fc8
Behdad, could you try svn head. I usually don't break it badly and it would be good if developers use it to warn me if I did before I release it. gtk-doc-1.10 is overdue for release.
Not fixed with head. The same: WARNING: Field described in source code comment block but does not exist - STRUCT: cairo_glyph_t Field: index. (also, where can I read what the cairo-undeclared.txt file is about and what its format is?)
I added a test and I can't reproduce it :( cd test/bug make check I created a simmilar struct in test/bugs/src/tester.h
I wonder if it has something to do with index being defined as a function in <strings.h>. We don't include that file though IIRC. Can you unpack cairo-1.5.8 from http://cairographics.org/snapshots/ ./configure --enable-gtk-doc, and make doc and see?
I tested against cairo-1.5.6 as I don't have new enough pixman. The error was in the tmpl parsing, which we don't recommend to use anymore ... 2008-02-01 Stefan Kost <ensonic@users.sf.net> * gtkdoc-common.pl.in: * gtkdoc-mkdb.in: * gtkdoc-mktmpl.in: * tests/bugs/src/tester.h: Improve tmpl parsing and add some more logging. Fixes #512154.
Thanks!