TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Pete Lyall 76703,4230 (X)
from: Bob van der Poel 76510,2203
date: 1992-11-24 18:20:06
subject: #17149-#12

#: 17163 S12/OS9/68000 (OSK)
    24-Nov-92  18:20:06
Sb: #17149-#12
Fm: Bob van der Poel 76510,2203
To: Pete Lyall 76703,4230 (X)

Pete,

The CDECL program is a magic aid to figuring out complex C declarations. Some
sample input:

  declare foo as pointer to function returning pointer to int
  explain char *(*woof)()
  cast yy into pointer to array 44 of int

returns the lines:

  int *(*foo)()
  declare woof as pointer to function returning pointer to char
  (int (*)[44])yy

The history of this program is UNIX. I got it out of the TOP library. Not sure
which volume (I've repacked mine onto 1.44meg disks). It comes in source and
you'll need flex and bison to complile it. I had to change the flex parser to
use readln() instead of read() to get the interactive mode to work...otherwise
(if you ignore the compile warnings ) all works fine. Very useful for the
strange declarations needed from time to time.

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.