Thanks for the report. It was only supposed to do that if the code before
and after was removed.
julia
On Mon, 16 Apr 2012, Michael Stefaniuc wrote:
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)
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)