Open jason-s opened 6 years ago
These apply to the cdecl.org website. I am not sure about the cdecl program itself; I don't have lex and yacc installed so I can't easily try building from source.
Is there an appropriate issue tracker for the website? I got here from the "source code" link from cdecl.org. A few other things I've noticed:
Error error
Hey jason-s! Thanks for filing this!
cdecl is like 35 year old software put up on a 10 year old website. There's surely plenty of holes!
Honestly I don't have much juice to work on it any more. If you think you'd like to contribute to the site, I can try to publish some of the sources - it's JQuery on the front end, with Python talking to a native executable (!) on Amazon Lambda. Let me know if that's something you're eager to take on :)
These work fine:
cast foo into pointer to pointer to const int
↔(const int **)foo
cast foo into pointer to function (void) returning pointer to array 3 of int
↔(int (*(*)(void ))[3])foo
cast foo into const pointer to pointer to const int
→(const int ** const )foo
cast foo into pointer to const pointer to const int
→(const int * const *)foo
cast foo into pointer to function (void) returning const pointer to array 3 of int
→(int (* const (*)(void ))[3])foo
These cause syntax errors (the inverse of the last three cases shown above):
(const int * const *)foo
(const int ** const )foo
(int (* const (*)(void ))[3])foo