gtkdoc-scan parse error on trivial whitespace change
Submitted by Andreas Metzler
Link to original bug (#788379)
Description
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
Version: 1.26