new style declarations OK for old style definitions?
Doug Gwyn
gwyn at smoke.brl.mil
Fri Apr 5 03:48:22 AEST 1991
In article <14590 at life.ai.mit.edu> tmb at ai.mit.edu writes:
>Conceivably, the whole calling sequence for old style and new style
>definitions could differ. Is it legal for the compiler to choose
>completely incompatible calling sequences for old-style and new-style
>declarations?
No, a conforming implementation must support intermixing of old-style
and prototype-style function linkage, so long as compatible types are
involved. Basically that means that an exception can be made for
prototypes only when at least one parameter or the return value has a
type different from those obtained by default widening conventions,
and also the linkage can differ for the ",..." style of prototype no
matter what the types of the fixed arguments.
More information about the Comp.lang.c
mailing list