]> Zhao Yanbai Git Server - minix.git/commitdiff
add va_copy()
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:10:56 +0000 (14:10 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:10:56 +0000 (14:10 +0000)
include/stdarg.h

index 2dcc745177fcf0aa9b167c69ce0d3af9f69bc4d0..c5ea6b9f4621e909fbdb202d41fe8ca2147af848 100755 (executable)
@@ -80,6 +80,7 @@ typedef char *va_list;
 #define va_arg(ap, type)      \
   (*((type *)((va_list)((ap) = (void *)((va_list)(ap) + __vasz(type))) \
                                                    - __vasz(type))))
+#define va_copy(ap2, ap) (ap2) = (ap)
 #define va_end(ap)
 
 #endif /* __GNUC__ */