Source-Changes-HG archive

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

[src/trunk]: src/sys/arch - Normalize inclusion protection (remove)



details:   https://anonhg.NetBSD.org/src/rev/ccc1b7ed0808
branches:  trunk
changeset: 778472:ccc1b7ed0808
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 28 17:03:27 2012 +0000

description:
- Normalize inclusion protection (remove)
- Move CHAR_{MIN,MAX} to a common file.
- Fix broken comments

diffstat:

 sys/arch/alpha/include/limits.h     |  7 ++-----
 sys/arch/amd64/include/limits.h     |  7 ++-----
 sys/arch/amiga/include/limits.h     |  7 +------
 sys/arch/arm/include/limits.h       |  9 +++------
 sys/arch/atari/include/limits.h     |  7 +------
 sys/arch/dreamcast/include/limits.h |  6 +-----
 sys/arch/evbsh3/include/limits.h    |  6 +-----
 sys/arch/hp300/include/limits.h     |  3 +--
 sys/arch/hpcsh/include/limits.h     |  6 +-----
 sys/arch/hppa/include/limits.h      |  7 ++-----
 sys/arch/i386/include/limits.h      |  7 ++-----
 sys/arch/ia64/include/limits.h      |  9 +++------
 sys/arch/landisk/include/limits.h   |  7 +------
 sys/arch/luna68k/include/limits.h   |  8 +-------
 sys/arch/m68k/include/limits.h      |  9 +++------
 sys/arch/mac68k/include/limits.h    |  7 +------
 sys/arch/mips/include/limits.h      |  9 +++------
 sys/arch/mvme68k/include/limits.h   |  8 +-------
 sys/arch/news68k/include/limits.h   |  3 +--
 sys/arch/powerpc/include/limits.h   |  9 +++------
 sys/arch/sh3/include/limits.h       |  7 ++-----
 sys/arch/sparc/include/limits.h     |  9 +++------
 sys/arch/vax/include/limits.h       |  9 +++------
 sys/arch/x68k/include/limits.h      |  8 +-------
 24 files changed, 43 insertions(+), 131 deletions(-)

diffs (truncated from 438 to 300 lines):

diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/alpha/include/limits.h
--- a/sys/arch/alpha/include/limits.h   Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/alpha/include/limits.h   Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: limits.h,v 1.13 2010/06/07 13:52:30 tnozaki Exp $ */
+/* $NetBSD: limits.h,v 1.14 2012/03/28 17:03:27 christos Exp $ */
 
 /*
  * Copyright (c) 1988, 1993
@@ -48,13 +48,10 @@
  * These numbers work for pcc as well.  The UINT_MAX and ULONG_MAX values
  * are written as hex so that GCC will be quiet about large integer constants.
  */
+#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
 #define        SCHAR_MAX       0x7f            /* max value for a signed char */
 #define        SCHAR_MIN       (-0x7f-1)       /* min value for a signed char */
 
-#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
-
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
 #define        SHRT_MIN        (-0x7fff-1)     /* min value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/amd64/include/limits.h
--- a/sys/arch/amd64/include/limits.h   Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/amd64/include/limits.h   Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.11 2010/06/07 13:52:30 tnozaki Exp $      */
+/*     $NetBSD: limits.h,v 1.12 2012/03/28 17:03:28 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -40,13 +40,10 @@
 
 #define        CHAR_BIT        8               /* number of bits in a char */
 
+#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
 #define        SCHAR_MAX       0x7f            /* max value for a signed char */
 #define SCHAR_MIN      (-0x7f-1)       /* min value for a signed char */
 
-#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
-
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
 #define SHRT_MIN        (-0x7fff-1)     /* min value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/amiga/include/limits.h
--- a/sys/arch/amiga/include/limits.h   Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/amiga/include/limits.h   Wed Mar 28 17:03:27 2012 +0000
@@ -1,8 +1,3 @@
-/*     $NetBSD: limits.h,v 1.8 1994/10/26 02:06:16 cgd Exp $   */
-
-#ifndef _MACHINE_LIMITS_H_
-#define _MACHINE_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.9 2012/03/28 17:03:28 christos Exp $      */
 
 #include <m68k/limits.h>
-
-#endif
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/arm/include/limits.h
--- a/sys/arch/arm/include/limits.h     Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/arm/include/limits.h     Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.11 2012/03/22 08:39:43 he Exp $   */
+/*     $NetBSD: limits.h,v 1.12 2012/03/28 17:03:28 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -38,12 +38,9 @@
 
 #define        CHAR_BIT        8               /* number of bits in a char */
 
-#define SCHAR_MIN      (-0x7f-1)       /* max value for a signed char */
-#define        SCHAR_MAX       0x7f            /* min value for a signed char */
-
 #define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0xff            /* max value for a char */
-#define        CHAR_MIN        0               /* min value for a char */
+#define        SCHAR_MAX       0x7f            /* max value for a signed char */
+#define SCHAR_MIN      (-0x7f-1)       /* min value for a signed char */
 
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/atari/include/limits.h
--- a/sys/arch/atari/include/limits.h   Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/atari/include/limits.h   Wed Mar 28 17:03:27 2012 +0000
@@ -1,8 +1,3 @@
-/*     $NetBSD: limits.h,v 1.1.1.1 1995/03/26 07:12:05 leo Exp $       */
-
-#ifndef _MACHINE_LIMITS_H_
-#define _MACHINE_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.2 2012/03/28 17:03:28 christos Exp $      */
 
 #include <m68k/limits.h>
-
-#endif
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/dreamcast/include/limits.h
--- a/sys/arch/dreamcast/include/limits.h       Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/dreamcast/include/limits.h       Wed Mar 28 17:03:27 2012 +0000
@@ -1,7 +1,3 @@
-/*     $NetBSD: limits.h,v 1.1 2000/12/11 18:19:15 marcus Exp $        */
-#ifndef _DREAMCAST_LIMITS_H_
-#define _DREAMCAST_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.2 2012/03/28 17:03:28 christos Exp $      */
 
 #include <sh3/limits.h>
-
-#endif /* _DREAMCAST_LIMITS_H_ */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/evbsh3/include/limits.h
--- a/sys/arch/evbsh3/include/limits.h  Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/evbsh3/include/limits.h  Wed Mar 28 17:03:27 2012 +0000
@@ -1,7 +1,3 @@
-/*     $NetBSD: limits.h,v 1.1 1999/09/13 10:30:34 itojun Exp $        */
-#ifndef _EVBSH3_LIMITS_H_
-#define _EVBSH3_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.2 2012/03/28 17:03:29 christos Exp $      */
 
 #include <sh3/limits.h>
-
-#endif /* _EVBSH3_LIMITS_H_ */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/hp300/include/limits.h
--- a/sys/arch/hp300/include/limits.h   Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/hp300/include/limits.h   Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,3 @@
-/*     $NetBSD: limits.h,v 1.9 2005/12/06 17:02:53 tsutsui Exp $       */
+/*     $NetBSD: limits.h,v 1.10 2012/03/28 17:03:29 christos Exp $     */
 
-/* Just use the common m68k definition */
 #include <m68k/limits.h>
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/hpcsh/include/limits.h
--- a/sys/arch/hpcsh/include/limits.h   Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/hpcsh/include/limits.h   Wed Mar 28 17:03:27 2012 +0000
@@ -1,7 +1,3 @@
-/*     $NetBSD: limits.h,v 1.2 2001/01/28 03:31:31 uch Exp $   */
-#ifndef _HPCSH_LIMITS_H_
-#define _HPCSH_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.3 2012/03/28 17:03:29 christos Exp $      */
 
 #include <sh3/limits.h>
-
-#endif /* _HPCSH_LIMITS_H_ */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/hppa/include/limits.h
--- a/sys/arch/hppa/include/limits.h    Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/hppa/include/limits.h    Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.13 2011/07/11 02:54:04 matt Exp $ */
+/*     $NetBSD: limits.h,v 1.14 2012/03/28 17:03:29 christos Exp $     */
 
 /*     $OpenBSD: limits.h,v 1.2 2000/07/31 20:06:02 millert Exp $      */
 
@@ -73,13 +73,10 @@
  * These numbers work for pcc as well.  The UINT_MAX and ULONG_MAX values
  * are written as hex so that GCC will be quiet about large integer constants.
  */
+#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
 #define        SCHAR_MAX       0x7f            /* max value for a signed char */
 #define        SCHAR_MIN       (-0x7f-1)       /* min value for a signed char */
 
-#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
-
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
 #define        SHRT_MIN        (-0x7fff-1)     /* min value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/i386/include/limits.h
--- a/sys/arch/i386/include/limits.h    Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/i386/include/limits.h    Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.22 2010/06/07 13:52:30 tnozaki Exp $      */
+/*     $NetBSD: limits.h,v 1.23 2012/03/28 17:03:29 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -38,13 +38,10 @@
 
 #define        CHAR_BIT        8               /* number of bits in a char */
 
+#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
 #define        SCHAR_MAX       0x7f            /* max value for a signed char */
 #define SCHAR_MIN      (-0x7f-1)       /* min value for a signed char */
 
-#define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
-
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
 #define SHRT_MIN        (-0x7fff-1)     /* min value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/ia64/include/limits.h
--- a/sys/arch/ia64/include/limits.h    Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/ia64/include/limits.h    Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.5 2010/06/07 13:52:31 tnozaki Exp $       */
+/*     $NetBSD: limits.h,v 1.6 2012/03/28 17:03:29 christos Exp $      */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -36,12 +36,9 @@
 
 #define        CHAR_BIT        8               /* number of bits in a char */
 
-#define        SCHAR_MIN       (-0x7f-1)       /* max value for a signed char */
-#define        SCHAR_MAX       0x7f            /* min value for a signed char */
-
 #define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
+#define        SCHAR_MAX       0x7f            /* max value for a signed char */
+#define        SCHAR_MIN       (-0x7f-1)       /* min value for a signed char */
 
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/landisk/include/limits.h
--- a/sys/arch/landisk/include/limits.h Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/landisk/include/limits.h Wed Mar 28 17:03:27 2012 +0000
@@ -1,8 +1,3 @@
-/*     $NetBSD: limits.h,v 1.1 2006/09/01 21:26:18 uwe Exp $   */
-
-#ifndef _LANDISK_LIMITS_H_
-#define _LANDISK_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.2 2012/03/28 17:03:30 christos Exp $      */
 
 #include <sh3/limits.h>
-
-#endif /* _LANDISK_LIMITS_H_ */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/luna68k/include/limits.h
--- a/sys/arch/luna68k/include/limits.h Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/luna68k/include/limits.h Wed Mar 28 17:03:27 2012 +0000
@@ -1,9 +1,3 @@
-/*     $NetBSD: limits.h,v 1.1 2000/01/05 08:48:58 nisimura Exp $      */
-
-#ifndef _MACHINE_LIMITS_H_
-#define _MACHINE_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.2 2012/03/28 17:03:30 christos Exp $      */
 
-/* Just use the common m68k definition */
 #include <m68k/limits.h>
-
-#endif /* _MACHINE_LIMITS_H_ */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/m68k/include/limits.h
--- a/sys/arch/m68k/include/limits.h    Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/m68k/include/limits.h    Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.20 2010/06/07 13:52:31 tnozaki Exp $      */
+/*     $NetBSD: limits.h,v 1.21 2012/03/28 17:03:30 christos Exp $     */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -38,12 +38,9 @@
 
 #define        CHAR_BIT        8               /* number of bits in a char */
 
-#define        SCHAR_MIN       (-0x7f-1)       /* max value for a signed char */
-#define        SCHAR_MAX       0x7f            /* min value for a signed char */
-
 #define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
+#define        SCHAR_MAX       0x7f            /* max value for a signed char */
+#define        SCHAR_MIN       (-0x7f-1)       /* min value for a signed char */
 
 #define        USHRT_MAX       0xffff          /* max value for an unsigned short */
 #define        SHRT_MAX        0x7fff          /* max value for a short */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/mac68k/include/limits.h
--- a/sys/arch/mac68k/include/limits.h  Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/mac68k/include/limits.h  Wed Mar 28 17:03:27 2012 +0000
@@ -1,8 +1,3 @@
-/*     $NetBSD: limits.h,v 1.7 1998/01/09 22:23:53 perry Exp $ */
-
-#ifndef        _MACHINE_LIMITS_H_
-#define        _MACHINE_LIMITS_H_
+/*     $NetBSD: limits.h,v 1.8 2012/03/28 17:03:30 christos Exp $      */
 
 #include <m68k/limits.h>
-
-#endif /* _MACHINE_LIMITS_H_ */
diff -r 0f66544138ba -r ccc1b7ed0808 sys/arch/mips/include/limits.h
--- a/sys/arch/mips/include/limits.h    Wed Mar 28 15:21:11 2012 +0000
+++ b/sys/arch/mips/include/limits.h    Wed Mar 28 17:03:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.23 2010/06/07 13:52:31 tnozaki Exp $      */
+/*     $NetBSD: limits.h,v 1.24 2012/03/28 17:03:30 christos Exp $     */
 
 /*
  * Copyright (c) 1988, 1993
@@ -48,12 +48,9 @@
  * These numbers work for pcc as well.  The UINT_MAX and ULONG_MAX values
  * are written as hex so that GCC will be quiet about large integer constants.
  */
-#define        SCHAR_MAX       0x7f            /* min value for a signed char */
-#define        SCHAR_MIN       (-0x7f-1)       /* max value for a signed char */
-
 #define        UCHAR_MAX       0xff            /* max value for an unsigned char */
-#define        CHAR_MAX        0x7f            /* max value for a char */
-#define        CHAR_MIN        (-0x7f-1)       /* min value for a char */
+#define        SCHAR_MAX       0x7f            /* max value for a signed char */
+#define        SCHAR_MIN       (-0x7f-1)       /* min value for a signed char */



Home | Main Index | Thread Index | Old Index