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.
Thanks!
On Sun, Dec 18, 2016 at 1:52 PM, Julia Lawall <[email protected]> wrote:
>
>
> On Sun, 18 Dec 2016, Kishan Sandeep wrote:
>
> > Hi,
> >
> >
> > Please help me to write cocci script here -
> >
> > I have below typedef -
> >
> > typedef int INT;
> >
> > INT is used so-many files in the code. Now i want to remove this typedef
> and
> > want to replace with int.
>
> @@
> typedef INT;
> @@
>
> - INT
> + int
>
> @@
> @@
>
> - typedef int INT;
>
> julia
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci