🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1977

Re: Reality check

#1977
From: Karl Heuer
Date: Wed, 14 Nov 1990 19:39
17 lines
1464 bytes
In <108329@convex.convex.com> gargulak@mozart.convex.com (Tom Gargulak) writes:
>karl@ima.isc.com (Karl Heuer) writes:
>>[My <stdarg.h>] even works on pre-ANSI compilers, so I can take code written
>>with ANSI prototypes and <stdarg.h> and simply deprotoize it without having
>>to worry about converting <stdarg.h> to <varargs.h>.
>
>[What about ellipsis?]

The ellipsis is part of the function prototype, and so is removed by the
deprotoizer:
	int printf(char const *fmt, ...) {  /* as stored in source file */
	int printf(fmt) char *fmt; {        /* after deproto and -Dconst="" */
which is acceptable to the Classic C compiler.  <stdarg.h> says
	#define va_start(ap, parmN) (ap = (char *)&parmN + sizeof(parmN))
in the typical implementation.

Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint
Technical Details
Message-ID: <1990Nov14.193930.19718@dirtydog.ima.isc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!ima!dirtydog!karl
References: <1990Nov05.233623.11491@dirtydog.ima.isc.com> <1171@dms.UUCP> <14199@smoke.BRL.MIL> <MEISSNER.90Oct22135944@osf.osf.org> <27820@usc> <108329@convex.convex.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!mintaka!spdcc!ima!dirtydog!karl
From: karl@ima.isc.com (Karl Heuer)
Newsgroups: comp.std.c
Subject: Re: Reality check
Message-ID: <1990Nov14.193930.19718@dirtydog.ima.isc.com>
Date: 14 Nov 90 19:39:30 GMT
References: <1990Nov05.233623.11491@dirtydog.ima.isc.com> <1171@dms.UUCP> <14199@smoke.BRL.MIL> <MEISSNER.90Oct22135944@osf.osf.org> <27820@usc> <108329@convex.convex.com>
Sender: news@dirtydog.ima.isc.com (NEWS ADMIN)
Reply-To: karl@ima.isc.com (Karl Heuer)
Organization: Interactive Systems
Lines: 17