On Sat, 10 Mar 2012, David Wagner wrote:
On 09/03/2012 21:46, Julia Lawall wrote:
I have removed the test that the ) and the following identifier are on
the same line. Can anyone think of a case where one has
(x)y
or
(x)n for an integer n
where x is not a typedef?
thanks,
julia
What about
typedef void(func)(int);
void f(int arg) { }
void g(int arg) { }
void main() {
func *pf[] = {&f, &g};
(*(pf + 1))(1);
}
One could have avoided the problem by writing pf[1](1) but this writing is
also legal and the parenthesis are mandatory.
Sorry, I don't see the point of the example. I'm only concerned with the
cases where y or n appear directly, without parentheses. But y could be a
type name, as Derek pointed out.
julia
Regards,
David.
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)