You not only fixed my problem you anticipated my next question :-)

struct a {
        int b;
        int c;
};

struct a A {
        .b = 5,
        .c = 10,
};

I'm failing on the rule for the second case ... I think you answered
me but I must have misunderstood.
@@
expression E;
@@
struct a {
...
-.b = E;
...
};
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to