[Cocci] Removing pointer declaration

Julia Lawall
2013-06-08T18:53:19Z

On Sat, 8 Jun 2013, Wolfram Sang wrote:

> Hi,
>
> This spatch:
>
> @@
> int *p;

This should be "identifier p".

julia

> @@
>
> - int *p;
>
> with this code:
>
>
> int main()
> {
> int *a;
>
> return 0;
> }
>
> results in:
>
> Fatal error: exception Failure("minus: parse error:
> = File "test.cocci", line 5, column 7, charpos = 22
> around = 'p', whole content = - int *p;
> ")
>
> using:
>
> spatch version 1.0.0-rc15 with Python support and with PCRE support
> (although dpkg says it is rc16)
>
> Am I doing something wrong?
>
> Thanks,
>
> Wolfram
>