Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: new style declarations OK for old style definitions? Message-ID: <15703@smoke.brl.mil> Date: 4 Apr 91 17:48:22 GMT References: <14590@life.ai.mit.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 13 In article <14590@life.ai.mit.edu> tmb@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.