[PATCH] widl: Always generate a name for anonymous UDTs.

Zebediah Figura z.figura12 at gmail.com
Sun Sep 1 12:56:18 CDT 2019


On 9/1/19 11:52 AM, Jacek Caban wrote:
> Hi Zebediah,
> 
> 
> On 01/09/2019 18:48, Zebediah Figura wrote:
>> On 9/1/19 11:41 AM, Zebediah Figura wrote:
>>> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47710
>>> Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
>>> ---
>>>    tools/widl/parser.y   |  2 +-
>>>    tools/widl/typetree.c | 32 ++++++++------------------------
>>>    2 files changed, 9 insertions(+), 25 deletions(-)
>>>
>>
>> Sorry, please ignore this patch. On further testing it appears this is
>> not in fact correct.
> 
> 
> FWIW, the problematic union is not nameless in PSDK and it's called
> _STGMEDIUM_UNION.
> 

Yes, I noticed that too. Unfortunately, it's nontrivial to add this, 
because if the union is nameless it violates the C11 spec and causes gcc 
to emit warnings. So we need to define NONAMELESSUNION everywhere that 
includes objidl.idl first.

> 
> Cheers,
> 
> Jacek
> 
> 
> 



More information about the wine-devel mailing list