Mail Archives: djgpp-announce/1998/09/12/21:32:57
A DJGPP port of cdecl 2.5 has been uploaded to Simtelnet.
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2apps/cdecl25b.zip
[binary]
ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2apps/cdecl25s.zip
[sources]
What is cdecl?
==============
cdecl is a program for translating the often hairy declaration syntax of
C and C++ into readable pseudo-English.
Example:
The frequent newbie question, "How do I declare an array of pointers to
functions?" (Assume the functions are of form `void f(void)'.)
>>> cdecl> declare a as array of pointer to function (void) returning void
<<< void (*a[])(void )
Or vice versa: A declaration of `signal' without typedefs would be very
complicated. How would you understand it?
>>> 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
It uses readline, so it has command line editing, completion, etc.
To build the sources requires Bison, Flex, and Readline, among other
things.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -