[Cocci] Unhandled #undef
Michael Stefaniuc
mstefani at redhat.com
Mon Dec 6 10:42:12 CET 2010
On 12/06/2010 06:48 AM, Julia Lawall wrote:
> On Sun, 5 Dec 2010, Michael Stefaniuc wrote:
>
>> Hello,
>>
>> I'm removing some #define and wanted to get rid of the corresponding #undef
>> too but
>>
>> @@
>> @@
>> - #undef DEFINE_THIS
>>
>> will give the error:
>> File "/tmp/ttt.cocci", line 3, column 2, charpos = 8
>> around = '#', whole content = - #undef DEFINE_THIS
>> Fatal error: exception Lexer_cocci.Lexical("unrecognised symbol, in token
>> rule: #")
>
> OK. I never thought about handling #undef, but it should not be
> difficult.
Me neither ;) but for whatever reason the Wine code I'm cleaning up atm
has them.
thanks
bye
michael
More information about the Cocci
mailing list