public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
From: wsa@the-dreams.de (Wolfram Sang)
To: cocci@systeme.lip6.fr
Subject: [Cocci] Removing pointer declaration
Date: Sat, 8 Jun 2013 19:28:53 +0200	[thread overview]
Message-ID: <20130608172853.GA2997@katana> (raw)

Hi,

This spatch:

@@
int *p;
@@

-	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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20130608/353b5d59/attachment.asc>

             reply	other threads:[~2013-06-08 17:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-08 17:28 Wolfram Sang [this message]
2013-06-08 18:53 ` [Cocci] Removing pointer declaration Julia Lawall
2013-06-08 19:02   ` Wolfram Sang
2013-06-08 19:06     ` Julia Lawall
2013-06-10  7:34 ` Michael Stefaniuc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130608172853.GA2997@katana \
    --to=wsa@the-dreams.de \
    --cc=cocci@systeme.lip6.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox