ftp.nice.ch/pub/next/developer/languages/c/gcc.2.7.2.2.I.b.tar.gz#/lib/gcc-lib/m68k-next-nextstep3/2.7.2.2.f.2/include/ansi/m68k/stdarg.h

This is stdarg.h in view mode; [Download] [Up]

#ifndef _ANSI_M68K_STDARG_H_
#define _ANSI_M68K_STDARG_H_

/* BSD compatibility: if #include <varargs.h> seen, don't redefine per ANSI */
#ifndef __VARARGS__

/* Indicate that this program uses <stdarg.h> */
#define	__STDARG__

#define _DEFINE_VA_LIST
#include <ansi/m68k/stdtypes.h>

/* Amount of space required in an argument list for an arg of type TYPE.
   TYPE may alternatively be an expression whose type is used.  */

#define __va_rounded_size(TYPE)  \
  (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))

#define va_start(AP, LASTARG) 						\
 (AP = ((char *) __builtin_next_arg ()))

void va_end (va_list);
#define va_end(AP)

#define va_arg(AP, TYPE)						\
 (AP += __va_rounded_size (TYPE),					\
  *((TYPE *) (AP - __va_rounded_size (TYPE))))

#endif

#endif

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.