> The next thing I want to do is add a call to setup_restart() to each of
> the arch_reset() functions.  I've not yet found a way to tell coccinelle
> to add the call after any local variable declarations.  My last try was:
> 

Try:

@@
identifier m, c;
statement S1,S2
@@
arch_reset(char m, const char *c)
{
... when != S1
+setup_restart(m);
S2
...
}

S1 only matches a statement, not a declaration.  S2 is representing the
first statement in the function.

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

Reply via email to