Hi,
does spatch handle structure initialization,
like
struct Foo foo = {
.field1 = value1,
};
?
I try to make such transformation:
//----------------------------------
typedef void (*f_t)(void);
struct Foo {
f_t f;
};
static void my_f(void)
{
}
struct Foo foo = {
.f = my_f,
};
//----------------------------------
to (void -> int)
//----------------------------------
typedef int (*f_t)(void);
struct Foo {
f_t f;
};
static int my_f(void)
{
}
struct Foo foo = {
.f = my_f,
};
//----------------------------------
--
/Evgeniy
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)