[comp.lang.c] cdecl

ELIEL%BROWNVM.BITNET@wiscvm.wisc.EDU (06/02/87)

I recently saw a posting displaying the marvelous functions of a program
called cdecl (short for, I assume "C declare"?).   The poster had mentioned
something about the program being archived somewhere that I seem to recall
being out of reach of my node.   If any of you have information regarding
where such a program could be found on BITNET or would be so kind as to send
me a copy of the source code for cdecl through the gateways to me at:
        ELIEL@BROWNVM.BITNET
I would be forever grateful.
                      thanks a lot,
                                   eliel
Acknowledge-To: <ELIEL@BROWNVM>

restuccia@mergvax.UUCP (06/04/87)

In article <7642@brl-adm.ARPA>, ELIEL%BROWNVM.BITNET@wiscvm.wisc.EDU (Eliel Mamousette, II) writes:
>	[ request for copy of sources for cdecl ]
> Acknowledge-To: <ELIEL@BROWNVM>

I seem to have missed the posting of these sources, also.  Our news feed was
down for a couple of weeks and so we probably missed quite a bit.  If anyone
could supply me with sources for cdecl, please email to me at:
		...ihnp4!motown!mergvax!restuccia

Thanks.
			Philip Restuccia
			Linotype AG

kees@praxis.co.uk (Kees Goossens) (06/07/87)

In article <7642@brl-adm.ARPA> ELIEL%BROWNVM.BITNET@wiscvm.wisc.EDU (Eliel Mamousette, II) writes:
> ... would be so kind as to send me a copy of the source code for cdecl ...

Me too, please!

---------------------------------+----------------------------------------------
Kees Goossens             o      | "En nu lieve kijkbuis kinderen: Oogjes dicht
kees@praxis.uucp          |Rood  |  en snaveltjes toe. Slaap lekker!"
kees@praxis.co.uk         |Wit   |                             -- Meneer de Uil.
...!mcvax!ukc!praxis!kees |Blauw |
                          |      | The land is a mother that never dies --Maori
------------------------~~^~~----+----------------------------------------------

evh@vax1.acs.udel.EDU (09/27/87)

Any one with the source please mail it to me @
evh@vax1.acs.udel.edu.
Thanks.......

BOL%HWALHW50.BITNET@wiscvm.wisc.EDU (09/29/87)

Can someone tell me where to find the source of the CDECL program.
If possible, send it to BOL@HWALHW50.bitnet.

                                Kees Bol

rab@mimsy.UUCP (Bob Bruce) (09/30/87)

In article <9539@brl-adm.ARPA> BOL%HWALHW50.BITNET@wiscvm.wisc.EDU writes:
>Can someone tell me where to find the source of the CDECL program.
>If possible, send it to BOL@HWALHW50.bitnet.
>

The cdecl program is available, in shar format, via anonymous ftp
from mimsy.umd.edu

andrew@teletron.UUCP (10/01/87)

> >Can someone tell me where to find the source of the CDECL program.

> The cdecl program is available, in shar format, via anonymous ftp
> from mimsy.umd.edu

Could someone mail the source to comp.sources.misc, or wherever, for uucp
sites that can't ftp?  I'm sure it's of enough interest to warrant a posting.

	Thanks,
		Andrew

BOL%HWALHW50.BITNET@WISCVM.WISC.EDU (10/01/87)

Due to errors on our system I repeat the following question:

Can someone tell me where to find the source of the CDECL program.
If possible, send it to BOL@HWALHW50.bitnet.

                                Kees Bol

gu.morris@SCIENCE (Richard D. Morris) (10/05/87)

X-Us-Mail: "Center for Scientific Computation, South Physics, University of Utah, Salt Lake City, UT 84112"

X-Telephone: (801) 581-5254


Would you be so kind as to let me know where to find the
source of CDECL when you find it.

Thanks in advance,

Richard Morris
-------

chris@mimsy.UUCP (Chris Torek) (10/15/89)

In article <334@oha.UUCP> tony@oha.UUCP (Tony Olekshy) writes:
>    (echo `cat` | cdecl) << \_end_
>    declare foo as pointer to function (a,b) returning pointer to
 	...
>Generates:
>    char **(*(**(*(*(*(*(*foo)(a, b))(c, d))[3])(e, f))[4][2])(g, h))[5]

This depends on your cdecl.  Old ones accept only a single `argument' in
parentheses.  This is enough to work with, although that cdecl will never
produce things like

	int (*func(short (*arg[5])(char (**)(long *(*)[3]))))(char *(*)) {
		... <code goes here, using argument `arg'> ...
	}

(which might well be a good thing!).

>So, isn't:
>    typedef int a, b, c, d, e, f;
>    (char **(*(**(*(*(*(*(*)(a, b))(c, d))[3])(e, f))[4][2])(g, h))[5])x;
>ok?

Yes, although casting `x' to something like that and then discarding the
result is not particularly exciting :-) .
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@cs.umd.edu	Path:	uunet!mimsy!chris