Hi,

On Wed, Dec 22, 2010 at 09:19:31PM +0100, Julia Lawall wrote:
[...]
> > I think, I stripped my problem down to a very simple test
> > case (attached). And I don't know, how to resolve that for
> > Coccinelle.
> > 
> > (Using Coccinelle from Debian/experimental: 0.2.4.deb-2)
> 
> Try running:
> 
> spatch -type_c yourfile.c
> 
> It complains a lot, but if you see type annotations on the code you want 
> to match and transform, then that code will be processed anyway.  It seems 
> to even understand about the parameter types.
> 
> Perhaps you need to send a bigger example, if you are not getting the 
> result you expect.


-parse_c gives a lot of warnings.
-type_c doesn't give types on the RPC_IO_DECLARE usage.


At least the following transform does not work for me:

  @@
  identifier e1;
  type e2;
  identifier e3;
  @@
  -RPC_IO_DECLARE(e1,e2,e3)
  +y(e1,e3)


> julia

Thanks for your fast reply


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

Reply via email to