[PATCH 04/11] widl: Handle default value for public vs hidden attribute.
Kai Tietz
ktietz70 at googlemail.com
Thu Aug 8 10:57:05 CDT 2013
Hi,
this patch fixes a bug about applying public-attribute on a tag marked
already as hidden.
Ok for apply?
Kai
>From cdd645abb9a0f0ea96a00a2ee8cacb6f8895ddde Mon Sep 17 00:00:00 2001
From: Kai Tietz <ktietz70 at googlemail.com>
Date: Thu, 8 Aug 2013 16:04:13 +0200
Subject: [PATCH 04/11] widl: Handle default value for public vs hidden
attribute.
---
tools/widl/parser.y | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 77ac679..e4f4bf8 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1840,11 +1840,12 @@ static type_t *reg_typedefs(decl_spec_t
*decl_spec, declarator_list_t *decls, at
type_get_type_detect_alias(type) == TYPE_ENCAPSULATED_UNION) &&
!type->name && !parse_only)
{
- if (! is_attr(attrs, ATTR_PUBLIC))
+ if (! is_attr(attrs, ATTR_PUBLIC) && ! is_attr (attrs, ATTR_HIDDEN))
attrs = append_attr( attrs, make_attr(ATTR_PUBLIC) );
type->name = gen_name();
}
- else if (is_attr(attrs, ATTR_UUID) && !is_attr(attrs, ATTR_PUBLIC))
+ else if (is_attr(attrs, ATTR_UUID) && !is_attr(attrs, ATTR_PUBLIC)
+ && !is_attr(attrs, ATTR_HIDDEN))
attrs = append_attr( attrs, make_attr(ATTR_PUBLIC) );
LIST_FOR_EACH_ENTRY( decl, decls, const declarator_t, entry )
--
1.7.9
More information about the wine-patches
mailing list