??? (was Re: STDARG.H (va_arg stuff) ineffective)

Chris Torek chris at mimsy.UUCP
Tue Apr 11 18:10:42 AEST 1989


In article <1079 at ptolemy.arc.nasa.gov> raymond at 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 <stdio.h> 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 at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list