feat: pour l'utilisation des listes d'arguments a taille variable

This commit is contained in:
Nicolas Hordé 2007-04-02 14:00:33 +00:00
parent 9d6216ed90
commit 237bba6e56
1 changed files with 21 additions and 0 deletions

21
include/stdarg.h Normal file
View File

@ -0,0 +1,21 @@
#ifndef _VA_LIST_T_H
#define _VA_LIST_T_H
#define __GNUC_VA_LIST
typedef void *__gnuc_va_list;
#define __va_rounded_size(TYPE) (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
#define va_start(AP, LASTARG) (AP = ((__gnuc_va_list) __builtin_next_arg (LASTARG)))
void va_end (__gnuc_va_list);
#define va_end(AP) ((void)0)
#define va_arg(AP, TYPE) (AP = (__gnuc_va_list) ((char *) (AP) + __va_rounded_size (TYPE)), *((TYPE *) (void *) ((char *) (AP) - __va_rounded_size (TYPE))))
#define __va_copy(dest, src) (dest) = (src)
typedef __gnuc_va_list va_list;
#endif