Porting to a 3b2

Karl Heuer karl at haddock.ima.isc.com
Fri Aug 17 10:10:56 AEST 1990


In article <28562 at netnews.upenn.edu> kehoe at scotty.dccs.upenn.edu (Brendan Kehoe) writes:
>[Tried to port a program, but the compiler doesn't support prototypes or
>automatic aggregate initialization.]  Is it K&R compatible at all??

Ah, how naive today's youth; the new standard is in place for but a year, and
they believe there's never been anything else.

You are describing a pre-ANSI compiler.  Second edition K&R describes ANSI C;
the implementation in question adheres to First edition K&R (plus the
enhancements that were added to the language shortly after publication).
Function prototypes and automatic aggregate initialization are features that
are new to ANSI C.

Either obtain an ANSI C compiler (gcc is a good choice), or rewrite your code
to be compliant to Classic C.  The former is probably easier.

Karl W. Z. Heuer (karl at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint



More information about the Comp.lang.c mailing list