Hello,

rc12 introduced an interesting regression: when modifying a function all
#if 0 code is removed.

float f;
#if 0
char c;
#endif

int foo(void)
{
    int i = 1;

#if 0
    TRACE("\n");
#endif
    return i;
}


This SmPL code modifies the function foo:
@@ @@
-int
+size_t

and the diff contains
-#if 0
-char c;
-#endif
...
-#if 0
-    TRACE("\n");
-#endif

If the function isn't touched like in the below SmPL code the #if 0 code
is preserved.
@@ @@
-float
+double

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

Reply via email to