All of lore.kernel.org
 help / color / mirror / Atom feed
From: jklee@nosuchfail.org (Jonathan Klee)
To: cocci@systeme.lip6.fr
Subject: [Cocci] matching "..." va_list args
Date: Thu, 06 Nov 2014 18:12:50 +0100	[thread overview]
Message-ID: <545BAC12.90402@nosuchfail.org> (raw)

Dear all,

Since "..." basically means anything, I was wondering if we can match 
"..." va_list kind of arguments in a function prototype.
I would like to do something like :

@@
identifier f, a;
type T, A;
@@
-T f(A a, ...);
+T f(A a, ...) { va_list args; va_start(args, a); va_stop(args); }

Regards,
jklee

             reply	other threads:[~2014-11-06 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-06 17:12 Jonathan Klee [this message]
2014-11-06 20:04 ` [Cocci] matching "..." va_list args Julia Lawall

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=545BAC12.90402@nosuchfail.org \
    --to=jklee@nosuchfail.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.