GNOME Bugzilla – Bug 554833
Be more careful with "struct _<struct_name>"
Last modified: 2008-10-03 13:38:30 UTC
I had the following declaration in some Evolution code, which was confusing Gtk-Doc and causing it to skip not only that declaration but all subsequent declarations in the file: struct _EShellView; ... struct _EShellView * e_shell_window_get_shell_view (EShellWindow *shell_window); The forward declaration of "struct _EShellView" was to avoid an #include loop. Gtk-Doc saw the second "struct _EShellView" and assumed it was an "EShellView" declaration. I patched gtkdoc-scan.in to have it make sure it's not a pointer before making that assumption.
Created attachment 119855 [details] [review] Proposed patch
Thanks for patch! 2008-10-03 Stefan Kost <ensonic@users.sf.net> patch by: Matthew Barnes <mbarnes@redhat.com> * gtkdoc-scan.in: * tests/bugs/docs/tester-sections.txt: * tests/bugs/src/tester.h: Be more careful with "struct _<struct_name>". Fixes #554833.