Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh5/include De-lint.



details:   https://anonhg.NetBSD.org/src/rev/b5e06db35e45
branches:  trunk
changeset: 556112:b5e06db35e45
user:      scw <scw%NetBSD.org@localhost>
date:      Sun Dec 07 20:00:38 2003 +0000

description:
De-lint.
(hey, these have never been linted before anyway ;)

diffstat:

 sys/arch/sh5/include/ansi.h    |   8 ++++++--
 sys/arch/sh5/include/stdarg.h  |   4 ++--
 sys/arch/sh5/include/varargs.h |  10 +++++++++-
 3 files changed, 17 insertions(+), 5 deletions(-)

diffs (69 lines):

diff -r e5f51ca27938 -r b5e06db35e45 sys/arch/sh5/include/ansi.h
--- a/sys/arch/sh5/include/ansi.h       Sun Dec 07 19:58:25 2003 +0000
+++ b/sys/arch/sh5/include/ansi.h       Sun Dec 07 20:00:38 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ansi.h,v 1.6 2003/08/07 16:29:30 agc Exp $     */
+/*     $NetBSD: ansi.h,v 1.7 2003/12/07 20:00:38 scw Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -50,7 +50,11 @@
 #define        _BSD_SIZE_T_            unsigned long   /* sizeof() */
 #define        _BSD_SSIZE_T_           long            /* byte count or error */
 #define        _BSD_TIME_T_            int             /* time() */
-#define        _BSD_VA_LIST_           __builtin_va_list       /* va_list */
+#ifndef __lint__
+#define        _BSD_VA_LIST_           __builtin_va_list /* GCC built-in type */
+#else
+#define        _BSD_VA_LIST_           char *          /* va_list */
+#endif
 #define        _BSD_CLOCKID_T_         int             /* clockid_t */
 #define        _BSD_TIMER_T_           int             /* timer_t */
 #define        _BSD_SUSECONDS_T_       int             /* suseconds_t */
diff -r e5f51ca27938 -r b5e06db35e45 sys/arch/sh5/include/stdarg.h
--- a/sys/arch/sh5/include/stdarg.h     Sun Dec 07 19:58:25 2003 +0000
+++ b/sys/arch/sh5/include/stdarg.h     Sun Dec 07 20:00:38 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.3 2003/08/07 16:29:31 agc Exp $   */
+/*     $NetBSD: stdarg.h,v 1.4 2003/12/07 20:00:38 scw Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -44,7 +44,7 @@
 #define        __builtin_classify_type(t)      (0)
 #define        __builtin_next_arg(t)           ((t) ? 0 : 0)
 #define        __builtin_stdarg_start(a, l)    ((a) = ((l) ? 0 : 0))
-#define        __builtin_va_arg(a, t)          ((a) ? 0 : 0)
+#define        __builtin_va_arg(a, t)          ((t)((a) ? 0 : 0))
 #define        __builtin_va_end                /* nothing */
 #define        __builtin_va_copy(d, s)         ((d) = (s))
 #endif
diff -r e5f51ca27938 -r b5e06db35e45 sys/arch/sh5/include/varargs.h
--- a/sys/arch/sh5/include/varargs.h    Sun Dec 07 19:58:25 2003 +0000
+++ b/sys/arch/sh5/include/varargs.h    Sun Dec 07 20:00:38 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: varargs.h,v 1.2 2003/08/07 16:29:31 agc Exp $  */
+/*     $NetBSD: varargs.h,v 1.3 2003/12/07 20:00:38 scw Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -42,11 +42,19 @@
 #include <machine/stdarg.h>
 
 #define        __va_ellipsis   ...
+#ifndef __lint__
 #define        __va_alist_t    __builtin_va_alist_t
+#else
+#define        __va_alist_t    long
+#endif
 #define        va_alist        __builtin_va_alist
 #define        va_dcl          __va_alist_t __builtin_va_alist; __va_ellipsis
 
 #undef va_start
+#ifndef __lint__
 #define        va_start(ap)    __builtin_varargs_start((ap))
+#else
+#define        va_start(ap)    ((ap) = (va_list)&__builtin_va_alist)
+#endif
 
 #endif /* !_SH5_VARARGS_H_ */



Home | Main Index | Thread Index | Old Index