added va_copy()

This commit is contained in:
bellard 2006-10-28 19:45:50 +00:00
parent 8b0c4c6582
commit 84f4e99635

View File

@ -6,6 +6,7 @@ typedef char *va_list;
/* only correct for i386 */ /* only correct for i386 */
#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3) #define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3))) #define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
#define va_copy(dest, src) (dest) = (src)
#define va_end(ap) #define va_end(ap)
/* fix a buggy dependency on GCC in libio.h */ /* fix a buggy dependency on GCC in libio.h */