va_dcl
Andreas Schwab
schwab@issan.informatik.uni-dortmund.de
Mon Nov 9 01:35:00 GMT 1998
"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
More information about the Libc-alpha
mailing list