home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sdrc!thor!scjones
- From: scjones@thor.sdrc.com (Larry Jones)
- Newsgroups: comp.std.c
- Subject: Re: A different question about va_start & va_end.
- Message-ID: <2230@sdrc.COM>
- Date: 8 Nov 92 18:33:15 GMT
- References: <1992Nov6.014500.1353@netcom.com>
- Sender: news@sdrc.COM
- Lines: 30
-
- In article <1992Nov6.014500.1353@netcom.com>, rfg@netcom.com (Ronald F. Guilmette) writes:
- < Must a standard conforming implementation accept:
- <
- < #include <stdarg.h>
- <
- < int i;
- < int j;
- < va_list ap;
- <
- < void foo (int bar, ...)
- < {
- < i = (va_start (ap, bar), 99);
- < j = (va_end (ap), 88);
- < }
- <
- < The function declarations shown in 4.8.1.1 and 4.8.1.2 seem to suggest
- < that the answer is yes.
-
- Indeed they do, but I distinctly remember discussions involving current
- implementations of <varargs.h> that include unbalanced braces in
- va_start and va_end, and I thought the intent was to allow that kind of
- implementation. I think this is deserving of a formal request for
- interpretation. And, while you're at it, you ought to ask about whether
- the intent was to require the va_list to be a local variable or not as
- Norman Diamond pointed out.
- ----
- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070
- larry.jones@sdrc.com or ...uunet!sdrc!larry.jones
- I don't NEED to compromise my principles, because they don't have
- the slightest bearing on what happens to me anyway. -- Calvin
-