GNOME Bugzilla – Bug 788379
gtkdoc-scan parse error on trivial whitespace change
Last modified: 2018-05-22 13:11:58 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
Created attachment 362000 [details] [review] Proposed fix
This has probably always been the case. We'll need to be sure it won#t cause regressions.
-- 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.