Xref: utzoo comp.lang.c:33382 alt.religion.computers:1989 Path: utzoo!utgpu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!usc!apple!vsi1!octopus!stever From: stever@Octopus.COM (Steve Resnick ) Newsgroups: comp.lang.c,alt.religion.computers Subject: Re: ANSI C prototypes Message-ID: <1990Nov3.013908.2047@Octopus.COM> Date: 3 Nov 90 01:39:08 GMT References: <1005@christopher-robin.cs.bham.ac.uk> <1906@necisa.ho.necisa.oz> <1990Nov2.030556.27759@ccu.umanitoba.ca> Reply-To: stever@octopus.UUCP (Steve Resnick ) Organization: Octopus Enterprises, Cupertino CA Lines: 40 In article <1990Nov2.030556.27759@ccu.umanitoba.ca> salomon@ccu.umanitoba.ca (Dan Salomon) writes: >In article rjc@uk.ac.ed.cstr (Richard Caley) writes: >>In article <1906@necisa.ho.necisa.oz> boyd@necisa.ho.necisa.oz (Boyd Roberts) writes: >> >> > Right on! The function prototypes are just stupid. >> > I shouldn't have to type: >> > extern gore *good(const char *vomit); >> > to get the functionality of type checking of function arguments. >> > The compiler and loader should do it. >> >> I want my errors when I compile things, not when some poor guy tries >> to use it. >> > >You are both right. Repeatedly typing function prototypes is a tedious >waste of time, but we really would like type errors reported at compile >time. > >A possible solution would be to have a utility for building libraries >of function prototypes from source code. The compiler could check >source code usage against usage in this library. The linker would have >to repeat the check to make sure that the prototype library didn't get >out of synch with the object library. >-- > Some C compilers do this for you. Microsoft C 6.0 will, as an option generate declarations (prototypes) to stdout when asked to. This has saved me the tedium of typing all those prototypes in myself! :) Cheers! Steve -- ---------------------------------------------------------------------------- steve.resnick@f105.n143.z1.FIDONET.ORG - or - apple!camphq!105!steve.resnick Flames, grammar errors, spelling errrors >/dev/nul The Asylum OS/2 BBS - (408)263-8017 IFNA 1:143/105.0