On Wed, 24 Nov 2010, Julia Lawall wrote:

> Thanks for your interest in Coccinelle.  I had thought that in the special 
> case where the change is only on the variable that it would be able to 
> make the transformation.  Ie, if the second rule were rather written with:
> 
>   Packet
> - p
> + *p = SCMalloc(SIZE_OF_PACKET)
>   ;
> 
> But I see that this is not working either.  I will look into it and hope 
> to find a solution today or tomorrow.

It turned out to be a little more subtle than expected.  I will hope to 
have a working solution soon.

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

Reply via email to