🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2150

Re: why is va_start(p, char/short/float) illegal?

#2150
From: Norman Diamond
Date: Tue, 29 Sep 1992 00:01
19 lines
1515 bytes
In article <spuler.717666010@coral> spuler@coral.cs.jcu.edu.au (David Spuler) writes:
>The ANSI standard says in Section 7.8.1.1 with regard to the macro:
>va_start(ap,parmN)

That's ISO section 7.8.1.1  :-)   (ANSI section 4.8.1.1)

>"If the parameter parmN is declared .... with a type that is not compatible
>with the type that results after the application of the default argument
>promotions,the behavior is undefined."
>Sorry if this is discussed in the "rationale", but I haven't a copy of it.

Yeah, why is ISO so "irrationale" about this  :-)
The rationale says that it's for the convenience of older implementations,
so that the implementation of va_start can itself be coded in standard C,
hacked in and understood by the rest of the older implementation.
--
Norman Diamond       diamond@jit081.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
"Yeah -- bad wiring.  That was probably it.  Very bad."
Technical Details
Message-ID: <1992Sep29.000132.21039@nntpd.lkg.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!jit345.bad.jit.dec.com!diamond
References: <spuler.717666010@coral>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!jit345.bad.jit.dec.com!diamond
From: diamond@jit345.bad.jit.dec.com (Norman Diamond)
Subject: Re: why is va_start(p, char/short/float) illegal?
Message-ID: <1992Sep29.000132.21039@nntpd.lkg.dec.com>
Sender: usenet@nntpd.lkg.dec.com (USENET News System)
Reply-To: diamond@jit.dec.com (Norman Diamond)
Organization: Digital Equipment Corporation Japan , Tokyo
References: <spuler.717666010@coral>
Date: Tue, 29 Sep 1992 00:01:32 GMT
Lines: 19