31 Oct
2023
31 Oct
'23
4:07 p.m.
On Tue Oct 31 15:49:08 2023 +0000, Jacek Caban wrote:
Can it be `sizeof(expression)` in IDLs? Quick check with midl doesn't confirm that and our parser expects a type as well. It's allowed in C, but I think its argument is specified as "type or expression". You also can't use `(expression)expression` for a cast just like you can't do `0 + (type)`. Right, but that's IMO something that the grammar doesn't allow. I don't see why it would have to be modeled as distinct widl types (which only makes expressions combination more complicated), rather than distinct widl expr enum.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4201#note_50348