ridiculousfish/cdecl-blocks

can't parse function pointer

Opened this issue · 3 comments

const volatile unsigned long long int*const&&(*const&& b)(const volatile unsigned long long int*const*const*const(*const*const*const&&v)[0x1fb]);

It should be like:
declare b to rvalue reference to const pointer to function (rvalue reference to const pointer to const pointer to const pointer to array 0x1fb of const pointer to const pointer to const pointer to const volatile unsigned long long int) returning reference to reference to const pointer to const volatile unsigned long long int

Also:

void (*(*PF)(int a, int b))(void)

This 70s era parser doesn't like identifiers for function parameters. Try:

void (*(*PF)(int, int))(void)