This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add a va_copy() to our fall-back stdarg implementation for use with l…

…int(1)

Approved by:	re@ (glebius@)
  • Loading branch information...
bsdphk committed Oct 7, 2013
1 parent c727c7b commit ce42421e8d6b4bfcbbeba7c690da0f025e45fafe
Showing with 2 additions and 0 deletions.
  1. +2 −0 sys/x86/include/stdarg.h
View
@@ -64,6 +64,8 @@ typedef __va_list va_list;
(((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
#define va_start(ap, last) \
((ap) = (va_list)&(last) + __va_size(last))
+#define va_copy(dst, src) \
+ ((dst) = (src))
#define va_arg(ap, type) \
(*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
#define va_end(ap)

0 comments on commit ce42421

Please sign in to comment.