On 04/21/2012 08:15 AM, Julia Lawall wrote:
> 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
>
> I don't get this part. I only have the part below being removed.
It probably doesn't matters as it seems to behave very unpredictable:
In the "real world" diff where I noticed this only 1 out of 4 #if 0
chunks was removed. Afair the modified function had even two such #if 0
chunks.
thanks
bye
michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)