Article View: comp.std.c
Article #2708Re: Is va_list defined by <stdio.h>?
From: John Gilmore
Date: Tue, 09 Apr 1991 23:09
Date: Tue, 09 Apr 1991 23:09
31 lines
1949 bytes
1949 bytes
Thanks, Chris, for your useful response. My confusion lie in the fact
that __VA_LIST__ is not #undef'd after use in <stdarg.h>, like all the
other names defined in <machine/ansi.h>. I had a case where the user
had included
#include <stdarg.h>
#include <stdio.h>
and the compile was failing because __VA_LIST__ was undefined in stdio.h.
Either the conventions for the use of each name in <machine/ansi.h>
should be documented, or this unusual usage of __VA_LIST__ should be
changed to match all the rest, and perhaps a new __VA_LIST_STICKY__
introduced for <stdio.h> to depend on.
torek@elf.ee.lbl.gov (Chris Torek) wrote:
> This introduces two new problems: <stdio.h> is now machine dependent
> (an otherwise-unnecessary situation), and <stdarg.h> and <stdio.h> must
> somehow be kept in sync.
I believe that ANSI C should not have forced us to introduce these two
new problems. In other words, this is a botch in the standard, that
should be fixed in its next revision. Preferably the fix will simply
permit <stdio.h> to define va_list, or indeed, for it to include
<stdarg.h>, so that no backdoor monkeyshines at all would be needed.
--
John Gilmore {sun,uunet,pyramid}!hoptoad!gnu gnu@toad.com gnu@cygnus.com
* Truth : the most deadly weapon ever discovered by humanity. Capable of *
* destroying entire perceptual sets, cultures, and realities. Outlawed by *
* all governments everywhere. Possession is normally punishable by death. *
* ..{amdahl|decwrl|octopus|pyramid|ucbvax}!avsd!childers@tycho *
Technical Details
Message-ID:
<16965@hoptoad.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!hoptoad!gnuReferences:
<16863@hoptoad.uucp> <11852@dog.ee.lbl.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!hoptoad!gnu From: gnu@hoptoad.uucp (John Gilmore) Newsgroups: comp.std.c Subject: Re: Is va_list defined by <stdio.h>? Message-ID: <16965@hoptoad.uucp> Date: 9 Apr 91 23:09:25 GMT References: <16863@hoptoad.uucp> <11852@dog.ee.lbl.gov> Organization: Cygnus Support, Palo Alto Lines: 31