diff options
author | bde <bde@FreeBSD.org> | 1998-07-14 05:09:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-14 05:09:48 +0000 |
commit | 55ddae5a80992ccb5383ea0c6f2f7055694716b7 (patch) | |
tree | 7658bd93d378ee99a6ee447cba3e12c7e55ab765 /sys/i386/include/types.h | |
parent | 95415c676d9622fd2a2dda4dea047790c204c1eb (diff) | |
download | FreeBSD-src-55ddae5a80992ccb5383ea0c6f2f7055694716b7.zip FreeBSD-src-55ddae5a80992ccb5383ea0c6f2f7055694716b7.tar.gz |
Changed to the C9x draft spelling of the (unsigned) integral type
suitable for holding object pointers (ptrint_t -> uintptr_t).
Added corresponding signed type (intptr_t). Changed/added
corresponding non-C9x types for function pointers to match. Don't
use nonstandard types to implement these types, and don't comment
on them in <machine/types.h>.
Diffstat (limited to 'sys/i386/include/types.h')
-rw-r--r-- | sys/i386/include/types.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/i386/include/types.h b/sys/i386/include/types.h index 45be306..fa4d88f 100644 --- a/sys/i386/include/types.h +++ b/sys/i386/include/types.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)types.h 8.3 (Berkeley) 1/5/94 - * $Id: types.h,v 1.13 1998/06/18 15:32:05 bde Exp $ + * $Id: types.h,v 1.14 1998/07/10 02:27:15 bde Exp $ */ #ifndef _MACHINE_TYPES_H_ @@ -70,13 +70,11 @@ typedef int32_t register_t; typedef int32_t ufs_daddr_t; #ifdef KERNEL -/* An unsigned integral type that can hold object pointers. */ -typedef u_int32_t ptrint_t; - -/* An unsigned integral type that can hold function pointers. */ -typedef u_int32_t fptrint_t; - -typedef __uint64_t uoff_t; /* unsigned file offset */ +typedef int intfptr_t; +typedef unsigned int uintfptr_t; +typedef int intptr_t; +typedef unsigned int uintptr_t; +typedef __uint64_t uoff_t; #endif /* Interrupt mask (spl, xxx_imask, etc) */ |