Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: ??? (was Re: STDARG.H (va_arg stuff) ineffective) Message-ID: <16841@mimsy.UUCP> Date: 11 Apr 89 08:10:42 GMT References: <1077@ptolemy.arc.nasa.gov> <16828@mimsy.UUCP> <1079@ptolemy.arc.nasa.gov> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 In article <1079@ptolemy.arc.nasa.gov> raymond@ptolemy.arc.nasa.gov (Eric A. Raymond) writes: >... You define the function (with a full prototype), right? So now >why do I have to copy that same info over to another file. You must >admit, it gets to be tedious. I need not admit it. :-) (For that matter, it is trivial to do this in Emacs, and not at all hard in vi.) >I don't see any info gain here. (Both header declarations AND source >definitions have full function prototypes - those in .H are preceded >by extern and followed by a ";") The gain appears because you may not have access to the source definition. People with El Stinko C Version 17.34 for the MiniMega Model M probably do not *have* the source to fopen() or putc(), but they *do* have a readable containing the types (and, if they are lucky, some suggestive names) for the arguments thereto. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris