home *** CD-ROM | disk | FTP | other *** search
- #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__
-
- typedef char *va_list;
-
- /* 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 __VARARGS__
-
- #endif _ANSI_M68K_STDARG_H_
-