On Sun, 27 Oct 2019, Julia Lawall wrote:
>
>
> On Sun, 27 Oct 2019, Markus Elfring wrote:
>
> > Hello,
> >
> > I hoped to achieve something together with the semantic patch language
> > by the following search pattern.
> >
> > @display@
> > identifier action, driver;
> > @@
> > static struct platform_driver driver =
> > {
> > <+...
> > *.remove = action
> > ...+>
> > };
Sorry, I thought that the above code was in a function definition.
It should be:
static struct platform_driver driver = { . remove = acrtion, };
There is no need for any form of ...
On the other hand the trailing comma is required.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci