Hacker News new | ask | show | jobs
by exit 5832 days ago
this is fantastic, but apparently "void (signal(int, void (fp)(int)))(int);" is a syntax error?
1 comments

It is not, but their implementation is incomplete. They parse it correctly when you remove "fp". Apparently, they don't handle declarations which have another identifiers besides the one that is declared.

  int f(int  ) // OK
  int f(int i) // fail