This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: va_dcl


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]