From: mstefani@redhat.com (Michael Stefaniuc)
To: cocci@systeme.lip6.fr
Subject: [Cocci] OK, this time I *promise* I'm stuck
Date: Fri, 09 Aug 2013 13:05:09 +0200 [thread overview]
Message-ID: <5204CCE5.8030508@redhat.com> (raw)
In-Reply-To: <CAP6exYJwt0HpKsACRGRY0PBd-Ez7PE=NZyDsKGabRSUxpHk=Xw@mail.gmail.com>
On 08/01/2013 05:56 PM, ron minnich wrote:
> @@
> function f;
> identifier d;
> @@
> f(...,
> -Chan *d,
> +struct chan *d,
> ...);
There are multiple issues with this:
- function is not a metavariable, coccinelle assumes that f is an
expression of type "function".
- f( ) is a function call not a function definition.
- coccinelle doesn't detects that "Chan" is a type.
@@
identifier f, d;
typedef Chan;
type T;
@@
T f(...,
-Chan
+struct chan
*d, ...);
bye
michael
prev parent reply other threads:[~2013-08-09 11:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 15:56 [Cocci] OK, this time I *promise* I'm stuck ron minnich
2013-08-09 11:05 ` Michael Stefaniuc [this message]
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=5204CCE5.8030508@redhat.com \
--to=mstefani@redhat.com \
--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