cdecl-blocks icon indicating copy to clipboard operation
cdecl-blocks copied to clipboard

can't parse function pointer

Open rsp4jack opened this issue 2 years ago • 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]);

rsp4jack avatar Apr 02 '22 09:04 rsp4jack

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

rsp4jack avatar Apr 02 '22 09:04 rsp4jack

Also:

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

thradams avatar Aug 28 '23 12:08 thradams

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

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

ridiculousfish avatar Aug 29 '23 04:08 ridiculousfish