c-mera
c-mera copied to clipboard
Multiple function pointer declarations
Using fpointer seems to be bugged:
which is what I would expect.
If I try to declare multiple function pointers:
(decl ((float (fpointer fp1 ((int)))) (float (fpointer fp2 ((int))))))
The output is:
{ float (*fp1)(int); float (*fp2)(int); }
And for:
(decl ((float (fpointer fp1 ((int)))))) (decl ((float (fpointer fp2 ((int))))))
I get:
float (*fp1)(int); { float (*fp2)(int); }
I would expect a decl of a fpointer to behave the same as a decl of a normal variable. This is especially problematic when using function pointers as members of structs, since nested curly brackets are not allowed there.