Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/include Add some CONSTCONDs to make lint happier.
details: https://anonhg.NetBSD.org/src/rev/a032da54a653
branches: trunk
changeset: 482686:a032da54a653
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sat Feb 19 09:23:44 2000 +0000
description:
Add some CONSTCONDs to make lint happier.
diffstat:
sys/arch/mips/include/stdarg.h | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 054e06b73f04 -r a032da54a653 sys/arch/mips/include/stdarg.h
--- a/sys/arch/mips/include/stdarg.h Sat Feb 19 09:22:51 2000 +0000
+++ b/sys/arch/mips/include/stdarg.h Sat Feb 19 09:23:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.18 2000/02/03 16:16:07 kleink Exp $ */
+/* $NetBSD: stdarg.h,v 1.19 2000/02/19 09:23:44 mycroft Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -53,14 +53,15 @@
#if BYTE_ORDER == LITTLE_ENDIAN
#define va_arg(ap, T) \
(((T *)( \
- (ap) += (sizeof(T) <= sizeof(int) \
+ (ap) += (/*CONSTCOND*/ sizeof(T) <= sizeof(int) \
? sizeof(int) : ((long)(ap) & 4) + sizeof(T)), \
- (ap) - (sizeof(T) <= sizeof(int) ? sizeof(int) : sizeof(T)) \
+ (ap) - (/*CONSTCOND*/ sizeof(T) <= sizeof(int) \
+ ? sizeof(int) : sizeof(T)) \
))[0])
#else
#define va_arg(ap, T) \
(((T *)( \
- (ap) += (sizeof(T) <= sizeof(int) \
+ (ap) += (/*CONSTCOND*/ sizeof(T) <= sizeof(int) \
? sizeof(int) : ((long)(ap) & 4) + sizeof(T)) \
))[-1])
#endif
Home |
Main Index |
Thread Index |
Old Index