mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 21:13:11 +01:00
Add a va_copy() to our fall-back stdarg implementation for use with lint(1)
Approved by: re@ (glebius@)
This commit is contained in:
parent
3cf98c19e8
commit
eafc73a8a9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256105
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user