1 /* GNU C varargs support for the TMS320C[34]x */
3 /* C[34]x arguments grow in weird ways (downwards) that the standard
4 varargs stuff can't handle. */
9 typedef void *__gnuc_va_list;
11 #endif /* not __GNUC_VA_LIST */
13 /* If this is for internal libc use, don't define anything but
15 #if defined (_STDARG_H) || defined (_VARARGS_H)
17 #ifdef _STDARG_H /* stdarg.h support */
19 #define va_start(AP,LASTARG) AP=(__gnuc_va_list) __builtin_next_arg (LASTARG)
21 #else /* varargs.h support */
23 #define __va_ellipsis ...
24 #define va_alist __builtin_va_alist
25 #define va_dcl int __builtin_va_alist; __va_ellipsis
26 #define va_start(AP) AP=(__gnuc_va_list) ((int *)&__builtin_va_alist + 1)
28 #endif /* _STDARG_H */
30 #define va_end(AP) ((void) 0)
31 #define va_arg(AP,TYPE) (AP = (__gnuc_va_list) ((char *) (AP) - sizeof(TYPE)), \
32 *((TYPE *) ((char *) (AP))))
34 #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */