widl [1/3]: Fix redefinition of types in header files

Dan Hipschman dsh at linux.ucla.edu
Fri Jul 21 14:09:03 CDT 2006


Currently, if widl finds an enum, struct or union type in an imported IDL
file it may be redefined in the output header file.  That's invalid C.
The type is defined in the imported file's header file, which is #included.

ChangeLog:
* If a type is defined in an import file, don't rewrite it in the header
---
 tools/widl/parser.y |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 7257bd8..5607e4b 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1050,7 +1050,7 @@ static type_t *make_type(unsigned char t
   t->is_const = FALSE;
   t->sign = 0;
   t->defined = FALSE;
-  t->written = FALSE;
+  t->written = parse_only;
   t->typelib_idx = -1;
   INIT_LINK(t);
   return t;



More information about the wine-patches mailing list