Make the names of the member of struct __va_list namespace-clean.

This commit is contained in:
mycroft 1997-04-04 04:17:06 +00:00
parent ce54b19fd3
commit c50b8e4fa8
3 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ansi.h,v 1.6 1996/11/15 22:38:45 jtc Exp $ */
/* $NetBSD: ansi.h,v 1.7 1997/04/04 04:17:06 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -53,9 +53,9 @@
#define _BSD_SSIZE_T_ long /* byte count or error */
#define _BSD_TIME_T_ int /* time() */
typedef struct {
char *base;
int offset;
int pad;
char *__base;
int __offset;
int __pad;
} __va_list;
#define _BSD_VA_LIST_ __va_list /* va_list */
#define _BSD_CLOCKID_T_ int

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdarg.h,v 1.5 1996/12/22 08:57:23 cgd Exp $ */
/* $NetBSD: stdarg.h,v 1.6 1997/04/04 04:17:07 mycroft Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -51,16 +51,16 @@ typedef _BSD_VA_LIST_ va_list;
(((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
#define va_start(ap, last) \
(__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0)
(__builtin_next_arg(last), (ap) = *(va_list *)__builtin_saveregs(), (ap).__pad = 0)
#define __REAL_TYPE_CLASS 8
#define __va_arg_offset(ap, type) \
((__builtin_classify_type(*(type *)0) == __REAL_TYPE_CLASS && \
(ap).offset <= (6 * 8) ? -(6 * 8) : 0) - __va_size(type))
(ap).__offset <= (6 * 8) ? -(6 * 8) : 0) - __va_size(type))
#define va_arg(ap, type) \
(*(type *)((ap).offset += __va_size(type), \
(ap).base + (ap).offset + __va_arg_offset(ap, type)))
(*(type *)((ap).__offset += __va_size(type), \
(ap).__base + (ap).__offset + __va_arg_offset(ap, type)))
#define va_end(ap) ((void)0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: varargs.h,v 1.5 1996/10/09 21:13:05 cgd Exp $ */
/* $NetBSD: varargs.h,v 1.6 1997/04/04 04:17:08 mycroft Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -56,6 +56,6 @@
#undef va_start
#define va_start(ap) \
((ap) = *(va_list *)__builtin_saveregs(), (ap).pad = 0)
((ap) = *(va_list *)__builtin_saveregs(), (ap).__pad = 0)
#endif /* !_ALPHA_VARARGS_H_ */