svn commit: r256105 - head/sys/x86/include
Poul-Henning Kamp
phk at FreeBSD.org
Mon Oct 7 10:01:24 UTC 2013
Author: phk
Date: Mon Oct 7 10:01:23 2013
New Revision: 256105
URL: http://svnweb.freebsd.org/changeset/base/256105
Log:
Add a va_copy() to our fall-back stdarg implementation for use with lint(1)
Approved by: re@ (glebius@)
Modified:
head/sys/x86/include/stdarg.h
Modified: head/sys/x86/include/stdarg.h
==============================================================================
--- head/sys/x86/include/stdarg.h Mon Oct 7 08:39:54 2013 (r256104)
+++ head/sys/x86/include/stdarg.h Mon Oct 7 10:01:23 2013 (r256105)
@@ -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)
More information about the svn-src-all
mailing list