mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Drop any and all support for varargs. There's no history to worry
about because we're still tier 2 and our current compiler, as well as future compilers will not support varargs. This is mostly a no-op in practice, because <sys/varargs.h> should already cause compile failures.
This commit is contained in:
parent
4880db4afd
commit
c0e56dc2c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120540
@ -43,19 +43,6 @@
|
||||
#ifndef _MACHINE_VARARGS_H_
|
||||
#define _MACHINE_VARARGS_H_
|
||||
|
||||
#include <sys/_types.h>
|
||||
|
||||
#ifndef _VA_LIST_DECLARED
|
||||
#define _VA_LIST_DECLARED
|
||||
typedef __va_list va_list;
|
||||
#endif
|
||||
|
||||
typedef int __builtin_va_alist_t __attribute__((__mode__(__word__)));
|
||||
|
||||
#define va_alist __builtin_va_alist
|
||||
#define va_dcl __builtin_va_alist_t __builtin_va_alist; ...
|
||||
#define va_start(ap) __builtin_varargs_start(ap)
|
||||
#define va_arg(ap, type) __builtin_va_arg((ap), type)
|
||||
#define va_end(ap) __builtin_va_end(ap)
|
||||
#error "<varargs.h> is obsolete on ia64. Use <stdarg.h> instead."
|
||||
|
||||
#endif /* !_MACHINE_VARARGS_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user