Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Resolve some formatting nits; add __intptr_t and __...



details:   https://anonhg.NetBSD.org/src/rev/0c00db8bb4ec
branches:  trunk
changeset: 493917:0c00db8bb4ec
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Jun 27 04:58:51 2000 +0000

description:
Resolve some formatting nits; add __intptr_t and __uintptr_t.

diffstat:

 sys/arch/alpha/include/int_types.h   |  20 ++++++++++++++------
 sys/arch/arm26/include/int_types.h   |  20 ++++++++++++++------
 sys/arch/arm32/include/int_types.h   |  20 ++++++++++++++------
 sys/arch/i386/include/int_types.h    |  20 ++++++++++++++------
 sys/arch/m68k/include/int_types.h    |  20 ++++++++++++++------
 sys/arch/mips/include/int_types.h    |  20 ++++++++++++++------
 sys/arch/pc532/include/int_types.h   |  20 ++++++++++++++------
 sys/arch/powerpc/include/int_types.h |  20 ++++++++++++++------
 sys/arch/sh3/include/int_types.h     |  20 ++++++++++++++------
 sys/arch/sparc/include/int_types.h   |  29 +++++++++++++++++++++--------
 sys/arch/sparc64/include/int_types.h |  29 +++++++++++++++++++++--------
 sys/arch/vax/include/int_types.h     |  28 ++++++++++++++++++----------
 12 files changed, 186 insertions(+), 80 deletions(-)

diffs (truncated from 512 to 300 lines):

diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/alpha/include/int_types.h
--- a/sys/arch/alpha/include/int_types.h        Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/alpha/include/int_types.h        Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: int_types.h,v 1.1 2000/06/26 15:42:17 kleink Exp $ */
+/* $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:51 kleink Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -39,15 +39,23 @@
 #define        _ALPHA_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
-typedef        long                    __int64_t;
-typedef        unsigned long          __uint64_t;
+typedef        long int                __int64_t;
+typedef        unsigned long int      __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        long int               __intptr_t;
+typedef        unsigned long int     __uintptr_t;
 
 #endif /* !_ALPHA_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/arm26/include/int_types.h
--- a/sys/arch/arm26/include/int_types.h        Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/arm26/include/int_types.h        Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: int_types.h,v 1.1 2000/06/26 15:42:24 kleink Exp $ */
+/* $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:52 kleink Exp $ */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -39,17 +39,25 @@
 #define        _ARM26_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
 /* LONGLONG */
-typedef        long long               __int64_t;
+typedef        long long int           __int64_t;
 /* LONGLONG */
-typedef        unsigned long long     __uint64_t;
+typedef        unsigned long long int __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        int                    __intptr_t;
+typedef        unsigned int          __uintptr_t;
 
 #endif /* !_ARM26_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/arm32/include/int_types.h
--- a/sys/arch/arm32/include/int_types.h        Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/arm32/include/int_types.h        Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.1 2000/06/26 15:42:25 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:52 kleink Exp $     */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -39,17 +39,25 @@
 #define        _ARM32_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
 /* LONGLONG */
-typedef        long long               __int64_t;
+typedef        long long int           __int64_t;
 /* LONGLONG */
-typedef        unsigned long long     __uint64_t;
+typedef        unsigned long long int __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        int                    __intptr_t;
+typedef        unsigned int          __uintptr_t;
 
 #endif /* !_ARM32_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/i386/include/int_types.h
--- a/sys/arch/i386/include/int_types.h Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/i386/include/int_types.h Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.1 2000/06/26 15:42:37 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:52 kleink Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -39,17 +39,25 @@
 #define        _I386_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
 /* LONGLONG */
-typedef        long long               __int64_t;
+typedef        long long int           __int64_t;
 /* LONGLONG */
-typedef        unsigned long long     __uint64_t;
+typedef        unsigned long long int __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        int                    __intptr_t;
+typedef        unsigned int          __uintptr_t;
 
 #endif /* !_I386_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/m68k/include/int_types.h
--- a/sys/arch/m68k/include/int_types.h Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/m68k/include/int_types.h Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.1 2000/06/26 15:42:40 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:53 kleink Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -39,17 +39,25 @@
 #define        _M68K_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        signed char              __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
 /* LONGLONG */
-typedef        long long               __int64_t;
+typedef        long long int           __int64_t;
 /* LONGLONG */
-typedef        unsigned long long     __uint64_t;
+typedef        unsigned long long int __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        int                    __intptr_t;
+typedef        unsigned int          __uintptr_t;
 
 #endif /* !_M68K_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/mips/include/int_types.h
--- a/sys/arch/mips/include/int_types.h Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/mips/include/int_types.h Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.1 2000/06/26 15:42:47 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:53 kleink Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -42,17 +42,25 @@
 #define        _MIPS_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
 /* LONGLONG */
-typedef        long long               __int64_t;
+typedef        long long int           __int64_t;
 /* LONGLONG */
-typedef        unsigned long long     __uint64_t;
+typedef        unsigned long long int __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        int                    __intptr_t;
+typedef        unsigned int          __uintptr_t;
 
 #endif /* !_MIPS_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/pc532/include/int_types.h
--- a/sys/arch/pc532/include/int_types.h        Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/pc532/include/int_types.h        Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.1 2000/06/26 15:43:02 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:53 kleink Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -39,17 +39,25 @@
 #define        _NS32K_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;
-typedef        unsigned short         __uint16_t;
+typedef        short int               __int16_t;
+typedef        unsigned short int     __uint16_t;
 typedef        int                     __int32_t;
 typedef        unsigned int           __uint32_t;
 /* LONGLONG */
-typedef        long long               __int64_t;
+typedef        long long int           __int64_t;
 /* LONGLONG */
-typedef        unsigned long long     __uint64_t;
+typedef        unsigned long long int __uint64_t;
+
+/* 7.18.1.4 Integer types capable of holding object pointers */
+
+typedef        int                    __intptr_t;
+typedef        unsigned int          __uintptr_t;
 
 #endif /* !_NS32K_INT_TYPES_H_ */
diff -r 5f211c91eb82 -r 0c00db8bb4ec sys/arch/powerpc/include/int_types.h
--- a/sys/arch/powerpc/include/int_types.h      Tue Jun 27 04:18:48 2000 +0000
+++ b/sys/arch/powerpc/include/int_types.h      Tue Jun 27 04:58:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.1 2000/06/26 15:43:06 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.2 2000/06/27 04:58:53 kleink Exp $     */
 
 /*-
  * Copyright (C) 1995 Wolfgang Solfrank.
@@ -35,17 +35,25 @@
 #define        _POWERPC_INT_TYPES_H_
 
 /*
- * 7.18.1.1 Exact-width integer types
+ * 7.18.1 Integer types
  */
+
+/* 7.18.1.1 Exact-width integer types */
+
 typedef        __signed char            __int8_t;
 typedef        unsigned char           __uint8_t;
-typedef        short                   __int16_t;



Home | Main Index | Thread Index | Old Index