From 2e480d34aaabcd405e72ff80866451e8c3b08c08 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 10 Jul 1998 02:27:16 +0000 Subject: Added a kernel-only typedef (ptrint_t) giving an integral type that is least unsuitable for holding an object pointer. This should have been used to fix warnings about casts between pointers and ints on alphas. Moved corresponding existing general typedef (fptrint_t) for function pointers from the i386 to a kernel-only typedef in . Kludged libc/gmon/mcount.c so that it can still see this typedef. --- sys/alpha/include/types.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/alpha/include') diff --git a/sys/alpha/include/types.h b/sys/alpha/include/types.h index 87926d40e0ef..fd8f6b45e63f 100644 --- a/sys/alpha/include/types.h +++ b/sys/alpha/include/types.h @@ -1,4 +1,4 @@ -/* $Id: types.h,v 1.4 1998/06/14 15:26:03 bde Exp $ */ +/* $Id: types.h,v 1.5 1998/06/27 15:35:00 dfr Exp $ */ /* From: NetBSD: types.h,v 1.8 1997/04/06 08:47:45 cgd Exp */ /*- @@ -75,6 +75,12 @@ typedef int64_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 u_int64_t uoff_t; /* unsigned file offset */ #endif -- cgit v1.3