On Sun, 18 Dec 2016, Kishan Sandeep wrote:
> Thanks Julia for the reply. facing error while running with spatch.
>
> $ cat test.cocci
> @@
> typedef INT;
> @@
>
> - INT
> + int
>
> @@
> @@
>
> - typedef int INT;
>
> Facing below error when run with - spatch --sp-file test.cocci file.c
>
> init_defs_builtins: /usr/share/coccinelle/standard.h
> Fatal error: exception Failure("minus: parse error:
> = File "test.cocci", line 11, column 14, charpos = 54
> around = 'INT', whole content = - typedef int INT;
> ")
>
> please help me to resolve this.
Just try switching the order of the rules.
julia_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci