www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/12/21:32:57

Message-Id: <199809130127.VAA23637@delorie.com>
Sender: nate AT cartsys DOT com
Date: Sat, 12 Sep 1998 13:40:14 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: djgpp-announce AT delorie DOT com
Subject: [ANNOUNCE] cdecl 2.5 uploaded

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019