On 03/27/2012 12:07 AM, Cyril Roelandt wrote:
> On 03/26/12 23:56, ron minnich wrote:
>> @@
>> identifier f;
>> type T;
>> identifer e;
>> @@
>> T f(...){<...
>> -e = i2c_add_adapter(...);
>> ...>}
>
> You wrote "identifer" instead of "identifier" :)
Julia, shouldn't spatch --parse-cocci complain about that?
This is all I get:
spatch --parse-cocci /tmp/bla.cocci
init_defs_builtins: /usr/share/coccinelle/standard.h
@@
rule starting on line 1
@@
rule starting on line 1:T rule starting on line 1:f(...) {
<...
-rule starting on line 1:e -= -i2c_add_adapter-(-...-)-;
...>
}
grep tokens
No query
bye
michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)