[Cocci] [Coccinelle] Problem with __asm instruction

Florian Many Florian.Many at onera.fr
Thu Jun 24 14:47:02 CEST 2010


Good afternoon,

i need to remove code from C files. These files contain the __asm{...} 
instruction, and i want to remove this instruction.

I wrote this patch:
@@
@@
- __asm
{
- ...
}

But the -parse_cocci option returns "line 3: should __asm be a 
metavariable?"

and the -debug mode:
  bad         __asm
BAD!!!!!! {
bad           cli
bad         }

Could you help me to solve this problem?

yours sincerely

-- 
IETA Florian MANY
Doctorant DGA Techniques aéronautiques-ONERA

ONERA - DTIM
2 avenue Edouard Belin
31055 Toulouse Cedex 4

Tél: 05.62.25.26.73

http://www.onera.fr




More information about the Cocci mailing list