🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1908

Re: Reality check (Was Re: prototypes required ?)

#1908
From: Doug Gwyn
Date: Thu, 01 Nov 1990 02:15
19 lines
1672 bytes
In article <MEISSNER.90Oct22135944@osf.osf.org> meissner@osf.org (Michael Meissner) writes:
>The one thing that varargs can do which stdarg can't, is vary the type
>of the first parameter, since stdarg requires at least one
>non-varardic argument to hook into.  In the ANSI meetings this was
>brought up and dismissed due to thinking the case was artifical, and
>that no real code actually dependend on it.  Well we just found that
>one OS test suite does in fact depend on this, and only passes one
>argument to a varardic function, using other means to tell what type
>the argument is.  In a similar vein, you can't have a stdarg function
>which takes zero or more arguments....

I don't think the sole argument was that no real code would attempt that,
but rather that the hook may well be necessary for some implementations.
Obvious it would have been nicer if we could have required support for
"function(...)", but there were counterexamples so we ended up needing to
require a fixed "anchor" for the va_start() macro to grab hold of.

What OS test suite is that?  If it's the NIST one for 1003.1, no wonder.
I've heard nothing good about that suite.
Technical Details
Message-ID: <14300@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
References: <1171@dms.UUCP> <14199@smoke.BRL.MIL> <MEISSNER.90Oct22135944@osf.osf.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: Reality check (Was Re: prototypes required ?)
Message-ID: <14300@smoke.brl.mil>
Date: 1 Nov 90 02:15:55 GMT
References: <1171@dms.UUCP> <14199@smoke.BRL.MIL> <MEISSNER.90Oct22135944@osf.osf.org>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 19