Author: ekohl
Date: Tue Dec 2 15:08:02 2008
New Revision: 37814
URL:
http://svn.reactos.org/svn/reactos?rev=37814&view=rev
Log:
Sync to wine-1.1.1 (Patch 8 of 10):
- Rob Shearman <robertshearman(a)gmail.com> Fri, 4 Jul 2008
widl: Remove some unnecessary calls to duptype.
Modified:
trunk/reactos/tools/widl/parser.tab.c
trunk/reactos/tools/widl/parser.y
Modified: trunk/reactos/tools/widl/parser.tab.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/parser.tab.c?re…
==============================================================================
--- trunk/reactos/tools/widl/parser.tab.c [iso-8859-1] (original)
+++ trunk/reactos/tools/widl/parser.tab.c [iso-8859-1] Tue Dec 2 15:08:02 2008
@@ -3635,7 +3635,7 @@
case 222:
#line 822 "parser.y"
- { (yyval.type) = duptype(find_type("float", 0), 1); ;}
+ { (yyval.type) = find_type("float", 0); ;}
break;
case 223:
@@ -4065,7 +4065,7 @@
case 295:
#line 1072 "parser.y"
- { (yyval.type) = duptype(find_type_or_error("void", 0), 1); ;}
+ { (yyval.type) = find_type_or_error("void", 0); ;}
break;
case 296:
@@ -5076,7 +5076,7 @@
static type_t *make_safearray(type_t *type)
{
- type_t *sa = duptype(find_type_or_error("SAFEARRAY", 0), 1);
+ type_t *sa = find_type_or_error("SAFEARRAY", 0);
sa->ref = type;
return make_type(pointer_default, sa);
}
Modified: trunk/reactos/tools/widl/parser.y
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/parser.y?rev=37…
==============================================================================
--- trunk/reactos/tools/widl/parser.y [iso-8859-1] (original)
+++ trunk/reactos/tools/widl/parser.y [iso-8859-1] Tue Dec 2 15:08:02 2008
@@ -819,7 +819,7 @@
}
| tUNSIGNED { $$ = make_int(-1); }
| tFLOAT { $$ = make_builtin($<str>1); }
- | tSINGLE { $$ = duptype(find_type("float", 0), 1); }
+ | tSINGLE { $$ = find_type("float", 0); }
| tDOUBLE { $$ = make_builtin($<str>1); }
| tBOOLEAN { $$ = make_builtin($<str>1); }
| tERRORSTATUST { $$ = make_builtin($<str>1); }
@@ -1069,7 +1069,7 @@
}
;
-type: tVOID { $$ = duptype(find_type_or_error("void", 0), 1); }
+type: tVOID { $$ = find_type_or_error("void", 0); }
| aKNOWNTYPE { $$ = find_type_or_error($1, 0); }
| base_type { $$ = $1; }
| enumdef { $$ = $1; }
@@ -1761,7 +1761,7 @@
static type_t *make_safearray(type_t *type)
{
- type_t *sa = duptype(find_type_or_error("SAFEARRAY", 0), 1);
+ type_t *sa = find_type_or_error("SAFEARRAY", 0);
sa->ref = type;
return make_type(pointer_default, sa);
}