Skip to content

Multiple function pointer declarations #105

@leigenstetter

Description

@leigenstetter

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions