GNOME Bugzilla – Bug 755645
g-ir-scanner doesn't support typedefs of functions without pointers
Last modified: 2015-10-20 02:30:45 UTC
Created attachment 312167 [details] [review] fix you can do typedef void (*func)(void); but not typedef void func(void);
Review of attachment 312167 [details] [review]: Looks reasonable. Can you add a test case to tests/scanner/regress.[ch] ? It involves updating some XML and doc stuff in `make check`. If you hit issues I can do it.
Created attachment 313222 [details] [review] Patch with tests
Review of attachment 313222 [details] [review]: I had to learn about this syntax - hadn't seen it before. It's not clear to me offhand if this is part of the C standard or a GNU extension. Do you know? Regardless, LGTM, thanks.
https://git.gnome.org/browse/gobject-introspection/commit/?id=d9a6824b2dd373f7bd3d3b3f434d2fe7069eaa51
I think it is standard