c-mera icon indicating copy to clipboard operation
c-mera copied to clipboard

Multiple function pointer declarations

Open leigenstetter opened this issue 1 year ago • 0 comments

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.

leigenstetter avatar Oct 23 '23 10:10 leigenstetter