I have this code:
struct i2c_adapter {int i;};
struct intel_dp *x { struct i2c_adapter d;}

I want to delete references to a no longer present field:

@@
type T;
identifier f;
struct intel_dp *d;
struct i2c_adapter s;
expression E;
@@
T f(...)
{<...
-d->s.owner = E;
...>}

obviously I botched it :-)

Fatal error: exception Failure("minus: parse error:
 = File "spatches/intel_dp.c.cocci", line 318, column 4,  charpos = 4023
    around = 's', whole content = -d->s.owner = E;

Any hints on how to do this?

ron
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to