* [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
* [Cocci] matching "..." va_list args
2014-11-06 17:12 [Cocci] matching "..." va_list args Jonathan Klee
@ 2014-11-06 20:04 ` Julia Lawall
0 siblings, 0 replies; 2+ messages in thread
From: Julia Lawall @ 2014-11-06 20:04 UTC (permalink / raw)
To: cocci
On Thu, 6 Nov 2014, Jonathan Klee wrote:
> 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); }
It is currently not supported, but someone is working on it. I hope that
it could be available in a couple of weeks (the person only works on
Coccinelle part time).
julia
^ 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.