diff options
author | phk <phk@FreeBSD.org> | 2013-10-07 10:01:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2013-10-07 10:01:23 +0000 |
commit | ce42421e8d6b4bfcbbeba7c690da0f025e45fafe (patch) | |
tree | 6386b136809a0c54509f8af13e913af8150ca58e /sys/x86/include | |
parent | c727c7bc75686fd3fee7311166f10da453d815ec (diff) | |
download | FreeBSD-src-ce42421e8d6b4bfcbbeba7c690da0f025e45fafe.zip FreeBSD-src-ce42421e8d6b4bfcbbeba7c690da0f025e45fafe.tar.gz |
Add a va_copy() to our fall-back stdarg implementation for use with lint(1)
Approved by: re@ (glebius@)
Diffstat (limited to 'sys/x86/include')
-rw-r--r-- | sys/x86/include/stdarg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/x86/include/stdarg.h b/sys/x86/include/stdarg.h index c315dfc..95bd02a 100644 --- a/sys/x86/include/stdarg.h +++ b/sys/x86/include/stdarg.h @@ -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) |