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 788379 - gtkdoc-scan parse error on trivial whitespace change
gtkdoc-scan parse error on trivial whitespace change
Status: RESOLVED OBSOLETE
Product: gtk-doc
Classification: Platform
Component: general
1.26
Other Linux
: Normal normal
: ---
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-30 17:36 UTC by Andreas Metzler
Modified: 2018-05-22 13:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (1.02 KB, patch)
2017-10-21 07:34 UTC, Andreas Metzler
none Details | Review

Description Andreas Metzler 2017-09-30 17:36:24 UTC
Hello,

gtkdoc-scan fails when struct definitions are indented with whitespace:
----------------------------------------------------------------------
(sid)ametzler@argenau:/tmp$ rm -f foo-decl-list.txt ; echo testin/foo.h: ; cat testin/foo.h ;  gtkdoc-scan --module=foo --source-dir=testin  ; echo foo-decl-list.txt: ; cat foo-decl-list.txt
testin/foo.h:
#define NUMBERX 42

  struct foo_st
  {
    const char *name;           /* Name */
  };
  typedef struct foo_st foo;

#define NUMBERY 23
foo-decl-list.txt:
<SECTION>
<FILE>foo</FILE>
NUMBERX
</SECTION>

(sid)ametzler@argenau:/tmp$ rm -f foo-decl-list.txt ; echo testin/foo.h: ; cat testin/foo.h ;  gtkdoc-scan --module=foo --source-dir=testin  ; echo foo-decl-list.txt: ; cat foo-decl-list.txt
testin/foo.h:
#define NUMBERX 42

struct foo_st
{
  const char *name;             /* Name */
};
typedef struct foo_st foo;

#define NUMBERY 23
foo-decl-list.txt:
<SECTION>
<FILE>foo</FILE>
NUMBERX
foo_st
foo
NUMBERY
</SECTION>
----------------------------------------------------------------------

This applies to both 1.25 and 1.26.

cu Andreas
Comment 1 Andreas Metzler 2017-10-21 07:34:20 UTC
Created attachment 362000 [details] [review]
Proposed fix
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2017-10-25 17:48:53 UTC
This has probably always been the case. We'll need to be sure it won#t cause regressions.
Comment 3 GNOME Infrastructure Team 2018-05-22 13:11:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk-doc/issues/37.