All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] matching "..." va_list args
@ 2014-11-06 17:12 Jonathan Klee
  2014-11-06 20:04 ` Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Klee @ 2014-11-06 17:12 UTC (permalink / raw)
  To: cocci

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-06 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06 17:12 [Cocci] matching "..." va_list args Jonathan Klee
2014-11-06 20:04 ` Julia Lawall

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.