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 512154 - Struct member type attributes are limited to one token
Struct member type attributes are limited to one token
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal minor
: 1.10
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-26 00:44 UTC by Behdad Esfahbod
Modified: 2008-02-01 12:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2008-01-26 00:44:45 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".
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-28 14:11:20 UTC
What gtk-doc version is this? It works fine with gtk-doc from trunk.
Comment 2 Behdad Esfahbod 2008-01-28 20:39:07 UTC
Umm, gtk-doc-1.8-2.fc7, that doesn't look right as this is a F8 machine.
Comment 3 Behdad Esfahbod 2008-01-28 21:18:53 UTC
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
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-29 19:28:40 UTC
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.
Comment 5 Behdad Esfahbod 2008-01-29 21:00:57 UTC
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?)
Comment 6 Stefan Sauer (gstreamer, gtkdoc dev) 2008-01-31 08:26:57 UTC
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
Comment 7 Behdad Esfahbod 2008-01-31 16:03:28 UTC
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?
Comment 8 Stefan Sauer (gstreamer, gtkdoc dev) 2008-02-01 11:36:25 UTC
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.
Comment 9 Behdad Esfahbod 2008-02-01 12:50:20 UTC
Thanks!