News for hackers. Stuff that matters.
Re:No more confusions on tricky C declarations by jeffmax on Saturday June 26, 2010 @03:51PM (#1464176)
Re:No more confusions on tricky C declarations by javert on Saturday June 26, 2010 @05:01PM (#1464274)
"So is somebody gonna create a tool that uses this parser so you can declare your C in English?" -My roommate
Re:No more confusions on tricky C declarations by exit on Saturday June 26, 2010 @04:36PM (#1464247)
this is fantastic, but apparently "void (signal(int, void (fp)(int)))(int);" is a syntax error?
Re:No more confusions on tricky C declarations by loup-vaillant on Saturday June 26, 2010 @05:36PM (#1464326)
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