Hello,
I know that the following SmPL script example gets accepted
by the Coccinelle software.
@display@
expression x, y;
@@
*y = ... *(x) ...
I have tried another tiny script variant out for the semantic patch language
(according to the software combination “Coccinelle 1.0.8-00131-g675b9670”).
On Thu, 25 Jun 2020, Markus Elfring wrote:
> Hello,
>
> I know that the following SmPL script example gets accepted
> by the Coccinelle software.
>
> @display@
> expression x, y;
> @@
> *y = ... *(x) ...
This is probably not what you think. It is an assignment of y to a
multiplication followed
On Thu, 25 Jun 2020, Markus Elfring wrote:
> >> @display@
> >> expression x, y;
> >> @@
> >> *y = ... *(x) ...
> >
> > This is probably not what you think. It is an assignment of y to a
> > multiplication followed by some other code (the second ...).
>
> I would interpret such a source code se