Xref: utzoo comp.lang.c:15736 comp.sys.ibm.pc:23645 Path: utzoo!attcan!uunet!lll-winken!ncis.llnl.gov!helios.ee.lbl.gov!pasteur!ucbvax!husc6!mit-eddie!fenchurch!jbs From: jbs@fenchurch.mit.edu (Jeff Siegal) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: using floats in functional prototypes Message-ID: <10898@eddie.MIT.EDU> Date: 23 Jan 89 19:57:05 GMT References: <23d5d581@ralf> Sender: uucp@eddie.MIT.EDU Reply-To: jbs@fenchurch.UUCP (Jeff Siegal) Organization: MIT, EE/CS Computer Facilities, Cambridge, MA Lines: 13 In article <23d5d581@ralf> Ralf.Brown@B.GP.CS.CMU.EDU writes: >If you're going to use prototypes, you're pretty much going to have to use >new-style declarations when defining functions. I don't see any reason that this is true. You just need to know about the promotion rules. If you mix prototypes and old-style definitions, you can get code which compiles on both old and new C compilers (assuming you use some sort of conditional compilation to turn the prototypes into old-style declarations). You still get most of the advantages of prototypes. Jeff Siegal