[PATCH v2 0/1] MR383: widl: Add basic support for the [deprecated] attribute.
Rémi Bernon (@rbernon)
wine at gitlab.winehq.org
Wed Jul 6 04:01:59 CDT 2022
Rémi Bernon (@rbernon) commented about tools/widl/parser.y:
> }
> | contract_req { $$ = $1; } /* activatable on the default activation factory */
>
> +deprecated_ver:
> + contract_req { $$ = $1; }
> + | aNUM { $$ = make_exprl(EXPR_NUM, $1); }
> + ;
> +
> +deprecated_attr:
> + aSTRING ',' aIDENTIFIER ',' deprecated_ver {
> + $$ = make_expr2(EXPR_MEMBER, make_exprs(EXPR_STRLIT, $1), make_exprs(EXPR_IDENTIFIER, $3));
> + $$ = make_expr2(EXPR_MEMBER, $$, $5);
> + }
> +
Please keep the indentation consistent with the other rules.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/383#note_3435
More information about the wine-devel
mailing list