widl: duplicate type in case of argument with range attribute

Alexandre Julliard julliard at winehq.org
Tue Aug 30 05:46:35 CDT 2011


Jérôme Gardou <jerome.gardou at laposte.net> writes:

> @@ -1418,6 +1418,11 @@ static var_t *declare_var(attr_list_t *attrs, decl_spec_t *decl_spec, const decl
>    type_t *func_type = decl ? decl->func_type : NULL;
>    type_t *type = decl_spec->type;
>  
> +  /* In case of a range attribute, duplicate the type to keep track of
> +   * the min/max values in the type format string */
> +  if(is_attr(attrs, ATTR_RANGE))
> +    type = duptype(type, 1);

You shouldn't need that. The range should go with the variable and be
output again for each type. Please add a test case showing the problem.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list