2 Note that the type used in va_arg is supposed to match the
3 actual type **after default promotions**.
4 Thus, va_arg (..., short) is not valid. */
10 /* Use the system's macros with the system's compiler. */
32 #ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */
36 /* The macro _VA_LIST_ is the same thing used by this file in Ultrix. */
38 /* The macro _VA_LIST is used in SCO Unix 3.2. */
42 typedef char *va_list;
44 #endif /* _VA_LIST_ */
46 /* Amount of space required in an argument list for an arg of type TYPE.
47 TYPE may alternatively be an expression whose type is used. */
49 #define __va_rounded_size(TYPE) \
50 (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
52 #define va_start(AP, LASTARG) \
53 (AP = ((char *) __builtin_next_arg ()))
55 void va_end (va_list); /* Defined in libgcc.a */
58 #define va_arg(AP, TYPE) \
59 (AP += __va_rounded_size (TYPE), \
60 *((TYPE *) (AP - __va_rounded_size (TYPE))))
63 #endif /* not sparc */
65 #endif /* not hp9000s800 */
69 #endif /* _STDARG_H */