Dan Hipschman : widl: Simplify make_safearray.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 10 07:50:00 CDT 2007


Module: wine
Branch: master
Commit: 541dddfde37120d1334dade507e390836403bf82
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=541dddfde37120d1334dade507e390836403bf82

Author: Dan Hipschman <dsh at linux.ucla.edu>
Date:   Wed May  9 20:48:13 2007 -0700

widl: Simplify make_safearray.

---

 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-cvs mailing list