https://bugs.winehq.org/show_bug.cgi?id=47159
Bug ID: 47159 Summary: widl ignores calling convention when declaring functions with extraneous parenthesis Product: Wine Version: 4.6 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: rpc Assignee: wine-bugs@winehq.org Reporter: richard@torproject.org Distribution: ---
When declaring a __stdcall function foo like so widl discards the calling convention attribute.
This snippet:
void (__stdcall foo)(void);
will generate:
void foo(void);
A bit of an edge case, looks like the parser grammar will need to be changed. As a side effect, this snippet:
extern int (__stdcall someval);
will generate:
extern int someval;