Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (42 sloc) 771 Bytes
//
// Keep pointer to resource so it can be freed
//
// Target: Linux, Generic
// Copyright: 2012 - LIP6/INRIA
// License: Licensed under ISC. See LICENSE or http://www.isc.org/software/license
// Author: Julia Lawall <Julia.Lawall@lip6.fr>
// URL: http://coccinelle.lip6.fr/
// URL: http://coccinellery.org/
@r@
expression E, E1;
identifier f;
statement S1,S2,S3;
iterator I;
position p1,p2;
@@
if@p1 (E == NULL)
{
... when != if (E == NULL || ...) S1 else S2
when != I(...,E,...) S1
when != E = E1
E@p2->f
... when any
return ...;
}
else S3
@@
expression e <= r.E;
expression E, E1;
identifier f;
statement S1,S2,S3;
iterator I;
position r.p1,r.p2;
@@
if@p1 (E == NULL)
{
... when != e = E1
* E@p2->f
... when any
return ...;
}
else S3