> I may have miss something in the provided example which was based on of
> your proposal. My only point is to be able to treat independantly of its
> position the expression:
>       Packet p1, p2;
> like
>       Packet p1;
>       Packet p2;
> because the two are syntaxically equivalent.
> 
> The transformation I want to do is the following:
> - Packet p;
> + Packet *p = EXPRESSION
> OTHER DECLARATION
> + if (p == NULL) then exit;
> ...
> + free(p)
> return ...;

Sure.  The OTHER DECLARATION part should just be ...

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

Reply via email to