Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Define __builtin_*() for lint



details:   https://anonhg.NetBSD.org/src/rev/46d8d419a50c
branches:  trunk
changeset: 472622:46d8d419a50c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 03 16:30:31 1999 +0000

description:
Define __builtin_*() for lint

diffstat:

 sys/arch/alpha/include/stdarg.h |  3 ++-
 sys/arch/arm32/include/stdarg.h |  5 ++++-
 sys/arch/i386/include/stdarg.h  |  6 +++++-
 sys/arch/m68k/include/stdarg.h  |  6 +++++-
 sys/arch/mips/include/stdarg.h  |  6 +++++-
 sys/arch/pc532/include/stdarg.h |  6 +++++-
 sys/arch/vax/include/stdarg.h   |  6 +++++-
 7 files changed, 31 insertions(+), 7 deletions(-)

diffs (136 lines):

diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/alpha/include/stdarg.h
--- a/sys/arch/alpha/include/stdarg.h   Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/alpha/include/stdarg.h   Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.8 1998/07/27 13:55:32 mycroft Exp $ */
+/* $NetBSD: stdarg.h,v 1.9 1999/05/03 16:30:31 christos Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -43,6 +43,7 @@
 #ifdef __lint__
 #define        __builtin_saveregs()            (0)
 #define        __builtin_classify_type(t)      (0)
+#define        __builtin_next_arg(t)           ((t) ? 0 : 0)
 #endif
 
 typedef _BSD_VA_LIST_  va_list;
diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/arm32/include/stdarg.h
--- a/sys/arch/arm32/include/stdarg.h   Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/arm32/include/stdarg.h   Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.4 1999/01/22 14:14:32 mycroft Exp $       */
+/*     $NetBSD: stdarg.h,v 1.5 1999/05/03 16:30:32 christos Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -41,6 +41,9 @@
 #include <machine/ansi.h>
 
 typedef _BSD_VA_LIST_  va_list;
+#ifdef __lint__
+#define __builtin_next_arg(t) ((t) ? 0 : 0)
+#endif
 
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/i386/include/stdarg.h
--- a/sys/arch/i386/include/stdarg.h    Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/i386/include/stdarg.h    Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.15 1999/01/22 14:14:32 mycroft Exp $      */
+/*     $NetBSD: stdarg.h,v 1.16 1999/05/03 16:30:32 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -42,6 +42,10 @@
 
 typedef _BSD_VA_LIST_  va_list;
 
+#ifdef __lint__
+#define __builtin_next_arg(t) ((t) ? 0 : 0)
+#endif
+
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 
diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/m68k/include/stdarg.h
--- a/sys/arch/m68k/include/stdarg.h    Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/m68k/include/stdarg.h    Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.16 1999/01/22 14:14:32 mycroft Exp $      */
+/*     $NetBSD: stdarg.h,v 1.17 1999/05/03 16:30:33 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -42,6 +42,10 @@
 
 typedef _BSD_VA_LIST_  va_list;
 
+#ifdef __lint__
+#define __builtin_next_arg(t)  (t ? 0 : 0)
+#endif
+
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 
diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/mips/include/stdarg.h
--- a/sys/arch/mips/include/stdarg.h    Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/mips/include/stdarg.h    Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.15 1999/04/24 08:10:37 simonb Exp $       */
+/*     $NetBSD: stdarg.h,v 1.16 1999/05/03 16:30:33 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -42,6 +42,10 @@
 
 typedef _BSD_VA_LIST_  va_list;
 
+#ifdef __lint__
+#define __builtin_next_arg(t) ((t) ? 0 : 0)
+#endif
+
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 
diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/pc532/include/stdarg.h
--- a/sys/arch/pc532/include/stdarg.h   Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/pc532/include/stdarg.h   Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.14 1999/01/22 14:14:32 mycroft Exp $      */
+/*     $NetBSD: stdarg.h,v 1.15 1999/05/03 16:30:34 christos Exp $     */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -42,6 +42,10 @@
 
 typedef _BSD_VA_LIST_  va_list;
 
+#ifdef __lint__
+#define __builtin_next_arg(t) ((t) ? 0 : 0)
+#endif
+
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 
diff -r 4d34894c1f17 -r 46d8d419a50c sys/arch/vax/include/stdarg.h
--- a/sys/arch/vax/include/stdarg.h     Mon May 03 16:21:28 1999 +0000
+++ b/sys/arch/vax/include/stdarg.h     Mon May 03 16:30:31 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.10 1999/01/22 14:14:32 mycroft Exp $      */
+/*     $NetBSD: stdarg.h,v 1.11 1999/05/03 16:30:34 christos Exp $     */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -42,6 +42,10 @@
 
 typedef _BSD_VA_LIST_  va_list;
 
+#ifdef __lint__
+#define __builtin_next_arg(t)          ((t) ? 0 : 0)
+#endif
+
 #define        __va_size(type) \
        (((sizeof(type) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
 



Home | Main Index | Thread Index | Old Index