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 755645 - g-ir-scanner doesn't support typedefs of functions without pointers
g-ir-scanner doesn't support typedefs of functions without pointers
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-09-25 20:13 UTC by Ben
Modified: 2015-10-20 02:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (1.97 KB, patch)
2015-09-25 20:13 UTC, Ben
none Details | Review
Patch with tests (12.93 KB, patch)
2015-10-13 22:44 UTC, Ben
accepted-commit_now Details | Review

Description Ben 2015-09-25 20:13:49 UTC
Created attachment 312167 [details] [review]
fix

you can do 

    typedef void (*func)(void);

but not

    typedef void func(void);
Comment 1 Colin Walters 2015-09-26 15:34:25 UTC
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.
Comment 2 Ben 2015-10-13 22:44:41 UTC
Created attachment 313222 [details] [review]
Patch with tests
Comment 3 Colin Walters 2015-10-19 22:19:49 UTC
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.
Comment 5 Ben 2015-10-20 02:30:45 UTC
I think it is standard