[PATCH 1/4] widl: Keep const attributes applied to pointers when writing out the type. [try 3]
rob at codeweavers.com
Tue Apr 29 14:39:53 CDT 2008
Use an attribute to store the const qualifier for the pointer and type.
Allow multiple type-qualifiers to be applied to a type by adding a
declaration-specifier rule that encompasses type-qualifiers and types.
tools/widl/header.c | 5 ++-
tools/widl/parser.y | 111
tools/widl/widltypes.h | 2 +-
3 files changed, 100 insertions(+), 18 deletions(-)
This patch fixes the const attribute being applied to the wrong pointer
when written out by constructing the tree in the right order (left-most
'*' is the bottom-most in the tree, not the top-most).
I've verified that a diff of header files in include/ of before and
after these patches have been applied doesn't change anything except
correctly printing out const on pointers.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10333 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080429/1c21979a/attachment-0001.bin
More information about the wine-patches