ANSI prototypes, the right choice...

Peter da Silva peter at sugar.hackercorp.com
Sat Feb 9 16:48:32 AEST 1991


In article <1991Feb5.155953.26790 at maytag.waterloo.edu> giguere at csg.uwaterloo.ca (Eric Giguere) writes:
> Strictly speaking, this is not true.

Point. But...

>     int foo( char a, char b );

>     int foo( a, b )
>       char a, b;
>       {
>         ...
>       }

Yeh, stuff like that. Apparently Lattice C for the Amiga accepts this and
silently fixes it up. Other C compilers (some UNIX compilers, apparently)
do the same thing, because I keep getting UNIX and Lattice-C/Amiga source
that looks like this... so I get to go through fixing up all the definitions
so it compiles. It's getting old.

Please... folks... write your code consistently or don't bother.
-- 
Peter da Silva.   `-_-'
<peter at sugar.hackercorp.com>.



More information about the Comp.std.c mailing list