diff --git a/reactos/tools/widl/parser.tab.c b/reactos/tools/widl/parser.tab.c index f13f6cc8114..6f5c3032e94 100644 --- a/reactos/tools/widl/parser.tab.c +++ b/reactos/tools/widl/parser.tab.c @@ -3635,7 +3635,7 @@ yyreduce: 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 @@ yyreduce: 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_class(char *name) 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); } diff --git a/reactos/tools/widl/parser.y b/reactos/tools/widl/parser.y index 2165eecfe9e..d044c07c5f4 100644 --- a/reactos/tools/widl/parser.y +++ b/reactos/tools/widl/parser.y @@ -819,7 +819,7 @@ base_type: tBYTE { $$ = make_builtin($1); } } | tUNSIGNED { $$ = make_int(-1); } | tFLOAT { $$ = make_builtin($1); } - | tSINGLE { $$ = duptype(find_type("float", 0), 1); } + | tSINGLE { $$ = find_type("float", 0); } | tDOUBLE { $$ = make_builtin($1); } | tBOOLEAN { $$ = make_builtin($1); } | tERRORSTATUST { $$ = make_builtin($1); } @@ -1069,7 +1069,7 @@ structdef: tSTRUCT t_ident '{' fields '}' { $$ = get_typev(RPC_FC_STRUCT, $2, ts } ; -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_class(char *name) 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); }