[3/5] widl: Simplify make_safearray

Dan Hipschman dsh at linux.ucla.edu
Wed May 9 22:48:13 CDT 2007


This patch just simplifies the make_safearray function.  It didn't need
to be that complicated.  I tested the generated headers and typelibs
with this patch applied (well, I do that with every patch in this series),
and this doesn't change anything.

---
 tools/widl/parser.y |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 8c85565..b2f4691 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1279,13 +1279,8 @@ static type_t *make_class(char *name)
 static type_t *make_safearray(type_t *type)
 {
   type_t *sa = duptype(find_type("SAFEARRAY", 0), 1);
-  type_t *ptr;
-
   sa->ref = type;
-  ptr = make_type(RPC_FC_FP, sa);
-  ptr->name = xstrdup("SAFEARRAY");
-
-  return ptr;
+  return make_type(RPC_FC_FP, sa);
 }
 
 #define HASHMAX 64



More information about the wine-patches mailing list