Widl: Conditionals, Dotted Versions, Handles

Robert Shearman R.J.Shearman at warwick.ac.uk
Mon Apr 19 10:03:22 CDT 2004


>>> Ove Kaaven <ovek at arcticnet.no> 04/18/04 15:25 PM >>>
lør, 17.04.2004 kl. 18.53 skrev Robert Shearman:
> > Hi,
> > 
> > This patch adds support for several features I found lacking whilst
> > attempting to generate headers for RPC interfaces.
> 
> Is this needed?
> 
> @@ -350,6 +354,7 @@
>         | tSWITCHTYPE '(' type ')'              { $$ = make_attrp(ATTR_SWITCHTYPE, type_ref($3)); }
>         | tUUID '(' aUUID ')'                   { $$ = make_attrp(ATTR_UUID, $3); }
>         | tV1ENUM                               { $$ = make_attr(ATTR_V1ENUM); }
> +       | tVERSION '(' version '.' version ')'  { $$ = make_attrv2(ATTR_VERSION, $3, $5); }
>         | tVERSION '(' version ')'              { $$ = make_attrv(ATTR_VERSION, $3); }
>         | tWIREMARSHAL '(' type ')'             { $$ = make_attrp(ATTR_WIREMARSHAL, type_ref($3)); }
>         | pointer_type                          { $$ = make_attrv(ATTR_POINTERTYPE, $1); }
> 
> Doesn't the "version" rule already handle this?

It would appear not. The 'version' type is declared as a number further up and when it attempts to parse a
dotted version it just returns 0.

Rob





More information about the wine-devel mailing list