Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/include * Make this lint'able.
details: https://anonhg.NetBSD.org/src/rev/ae4edec47ceb
branches: trunk
changeset: 521724:ae4edec47ceb
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Feb 04 08:34:27 2002 +0000
description:
* Make this lint'able.
* Reduce some code duplication.
diffstat:
sys/arch/sh3/include/stdarg.h | 23 ++++++++++++++++++++---
sys/arch/sh3/include/varargs.h | 14 ++------------
2 files changed, 22 insertions(+), 15 deletions(-)
diffs (64 lines):
diff -r 2ca5ff94ada9 -r ae4edec47ceb sys/arch/sh3/include/stdarg.h
--- a/sys/arch/sh3/include/stdarg.h Mon Feb 04 08:33:34 2002 +0000
+++ b/sys/arch/sh3/include/stdarg.h Mon Feb 04 08:34:27 2002 +0000
@@ -1,15 +1,32 @@
-/* $NetBSD: stdarg.h,v 1.3 2000/02/03 16:16:10 kleink Exp $ */
+/* $NetBSD: stdarg.h,v 1.4 2002/02/04 08:34:27 thorpej Exp $ */
#ifndef _SH3_STDARG_H_
#define _SH3_STDARG_H_
-#define _STDARG_H
+#ifdef __lint__
+
+#include <machine/ansi.h>
+
+typedef _BSD_VA_LIST_ va_list; /* XXX */
-#include "sh3/va-sh.h"
+#define va_start(a, l) ((a) = ((l) ? 0 : 0))
+#define va_arg(a, t) ((a) ? (t)0 : (t)0)
+#define va_end(a) /* nothing */
+#define __va_copy(d, s) ((d) = (s))
+
+#else /* ! __lint__ */
+
+#ifndef _VARARGS_H
+#define _STDARG_H
+#endif
+
+#include <sh3/va-sh.h>
#include <sys/featuretest.h>
typedef __gnuc_va_list va_list;
+#endif /* __lint__ */
+
#if !defined(_ANSI_SOURCE) && \
(!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
diff -r 2ca5ff94ada9 -r ae4edec47ceb sys/arch/sh3/include/varargs.h
--- a/sys/arch/sh3/include/varargs.h Mon Feb 04 08:33:34 2002 +0000
+++ b/sys/arch/sh3/include/varargs.h Mon Feb 04 08:34:27 2002 +0000
@@ -1,19 +1,9 @@
-/* $NetBSD: varargs.h,v 1.3 2000/02/03 16:16:10 kleink Exp $ */
+/* $NetBSD: varargs.h,v 1.4 2002/02/04 08:34:27 thorpej Exp $ */
#ifndef _SH3_VARARGS_H_
#define _SH3_VARARGS_H_
#define _VARARGS_H
-
-#include "sh3/va-sh.h"
-#include <sys/featuretest.h>
-
-typedef __gnuc_va_list va_list;
-
-#if !defined(_ANSI_SOURCE) && \
- (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
- defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L)
-#define va_copy __va_copy
-#endif
+#include <sh3/stdarg.h>
#endif /* _SH3_VARARGS_H_ */
Home |
Main Index |
Thread Index |
Old Index