Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!thelake!steve From: steve@thelake.mn.org (Steve Yelvington) Newsgroups: comp.sys.atari.st Subject: Re: Sozobon C starter question Message-ID: Date: 18 Apr 91 01:11:00 GMT Article-I.D.: thelake.A2707429009 References: <91107.154833JJL101@psuvm.psu.edu> <1991Apr17.143748.13488@hellgate.utah.edu> Organization: St. Croix Valley C and Ski Lines: 28 [In article <1991Apr17.143748.13488@hellgate.utah.edu>, jbleaza%peruvian.utah.edu@cs.utah.edu (Jason Bleazard) writes ... ] > Sozobon expects this really arcane method of passing parameters. It's not arcane (any more than the rest of C). Archaic, if you want to consider most C compilers available for the ST as archaic. Mark Williams, Laser C, Sozobon and Alcyon all use the traditional K&R form. It's the way parameters were passed in C before the idea of function prototypes was endorsed by ANSI. GCC and Prospero C understand the newer format. Lattice may as well (I haven't seen it). Sozobon follows the original Kernighan and Ritchie definition of C, with some common extensions. Some of those extensions happen to be part of the (fairly new) ANSI standard, and the library largely follows the ANSI standard, but the current Sozobon C does not pretend to be an ANSI-conformant compiler. There was a preprocessor posted to the network (comp.os.minix) a year or so ago that purported to convert ANSI C files to K&R style. I don't know if it was ever ported to TOS. (If so, I want a copy!) Dan Wilga of Gribnif Software recently released a K&R-to-ANSI converter called OLD2ANSI. It's on GENie. ---- Steve Yelvington, Marine on St. Croix, Minnesota, USA / steve@thelake.mn.org