This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: va_dcl
- To: "Jack Howarth" <howarth@bromo.med.uc.edu>
- Subject: Re: va_dcl
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
- Date: 09 Nov 1998 10:34:09 +0100
- Cc: Zack Weinberg <zack@rabi.columbia.edu>, libc-alpha@cygnus.com
- References: <199811082055.PAA04286@blastula.phys.columbia.edu> <9811081651.ZM18968@bromo.med.uc.edu>
"Jack Howarth" <howarth@bromo.med.uc.edu> writes:
|> Zack,
|> Well the following code fragment compiles on my sgi at work (sgi compiler)
|> but not under linuxppc with glibc 2.0.100 and egcs_1_1_branch from last week.
|>
|> #include <varargs.h>
|>
|> main()
|> {
|> va_dcl
|> {
|> }
|> }
This is clearly invalid use of va_dcl. The only valid use of va_dcl is
like this:
int foo(va_alist)
va_dcl
{
va_list args;
va_start(args);
....
}
Of course, this is all superceded by <stdarg.h>.
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org
- References:
- Re: va_dcl
- From: "Jack Howarth" <howarth@bromo.med.uc.edu>