lint (was: Funny mistake)
Steve Summit
scs at adam.mit.edu
Thu Mar 28 18:44:03 AEST 1991
In article <c48H01l04bKM00 at amdahl.uts.amdahl.com> lamont at amdahl.uts.amdahl.com (Duane Richard LaMont) writes:
>In article <1991Mar24.165719.26908 at druid.uucp> darcy at druid.uucp (D'Arcy J.M. Cain) writes:
>>I simply make sure that within a file a function is not used until it
>>has been defined. This in effect makes it a prototype for itself.
>
>I thought this was a good idea too, but it didn't work for me on the
>first prototyping compiler I ever used (SCO XENIX, forget the version
>number). It behaved as if I had declared the function without
>prototyping it (i.e. the return type was known, but not the argument
>count and types).
>
>Are prototyping compilers supposed to treat a function as prototyped
>following that function's definition?
Yes.
Steve Summit
scs at adam.mit.edu
More information about the Comp.lang.c
mailing list