News for hackers. Stuff that matters.
Re:The "Clockwise/Spiral Rule" in C by malkia on Friday January 18, 2013 @12:57PM (#5079979)
Re:The "Clockwise/Spiral Rule" in C by binarycrusader on Friday January 18, 2013 @01:14PM (#5080067)
Cool, but it doesn't handle the last example:

  void (*signal(int, void (*fp)(int)))(int)
...claims there's a syntax error, and there might be, but I don't know off-hand.
Re:The "Clockwise/Spiral Rule" in C by cnvogel on Friday January 18, 2013 @01:18PM (#5080082)
It's confused by the parameter name fp.

    cdecl> explain void (*signal(int, void (*)(int)))(int) ;

    declare signal as function (int, pointer to function (int) returning void) returning pointer to function (int) returning void
Re:The "Clockwise/Spiral Rule" in C by malkia on Friday January 18, 2013 @01:19PM (#5080085)
This works:

  void (*signal(int, void (*)(int)))(int)
Re:The "Clockwise/Spiral Rule" in C by tantalor on Friday January 18, 2013 @01:47PM (#5080231)
It says "C gibberish ↔ English", but does it really support English to C?
Re:The "Clockwise/Spiral Rule" in C by stephencanon on Friday January 18, 2013 @01:56PM (#5080279)
Re:The "Clockwise/Spiral Rule" in C by stephencanon on Friday January 18, 2013 @01:37PM (#5080183)
cdecl is a great resource, though I do wish that it knew about the restrict keyword.
Re:The "Clockwise/Spiral Rule" in C by caf on Friday January 18, 2013 @11:10PM (#5082599)
It misspells it "noalias".
Re:The "Clockwise/Spiral Rule" in C by hobbyist on Friday January 18, 2013 @02:30PM (#5080444)
there is a cdecl package in all linux distributions, which can be used inside terminal to expand such C declrations. It was really helpful when I started C programming.
Re:The "Clockwise/Spiral Rule" in C by rwmj on Saturday January 19, 2013 @04:51AM (#5083045)
Unfortunately the license is not clearly free. This was why we had to drop it from Fedora.

I have tried to contact the original authors, and have got clarifications from all of them except Graham Ross.

So if anyone here knows how to get hold of him, please let me know! (rjones at redhat dot com)