Hello,

I'm trying to use the comma operator in a patch. For example:

    @@
    identifier x;
    @@
    - x = 5;
    + x = (3, 5);

to patch:

    int main(void) {
        int x;
        x = 5;
        return 0;
    }

I get a parse error... Is it possible to use the comma operator in a
patch at all?

Thanks for your time,
Mansour
_______________________________________________
Cocci mailing list
Cocci@diku.dk
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to