matching "..." va_list args
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
Review
Quoted 12 lines · Jonathan Klee
Dear all,
Since "..." basically means anything, I was wondering if we can match "..."
va_listkind of arguments in a function prototype.
I would like to do something like :@@
identifier f, a;
type T, A;
@@(quoted diff) +1
-1-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