summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-05-31 20:01:18 +0000
committerjhb <jhb@FreeBSD.org>2005-05-31 20:01:18 +0000
commit6e02a9d126bc759762d46fa9aaf9c986eb57cd35 (patch)
treee4de41ee0f519009c05a5efd4a3ebc99b280ec01 /lib/libstand
parente73616b51f1144a999049a5ff3288fc4c68d383c (diff)
downloadFreeBSD-src-6e02a9d126bc759762d46fa9aaf9c986eb57cd35.zip
FreeBSD-src-6e02a9d126bc759762d46fa9aaf9c986eb57cd35.tar.gz
Just use uintptr_t and intptr_t rather than requiring each arch to provide
explicit int/long typedefs.
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/zalloc_defs.h26
1 files changed, 2 insertions, 24 deletions
diff --git a/lib/libstand/zalloc_defs.h b/lib/libstand/zalloc_defs.h
index 668f785..2544f59 100644
--- a/lib/libstand/zalloc_defs.h
+++ b/lib/libstand/zalloc_defs.h
@@ -41,30 +41,8 @@
#include <string.h>
#include "stand.h"
-#ifdef __i386__
-typedef unsigned int iaddr_t; /* unsigned int same size as pointer */
-typedef int saddr_t; /* signed int same size as pointer */
-#endif
-#ifdef __alpha__
-typedef unsigned long iaddr_t; /* unsigned long same size as pointer */
-typedef long saddr_t; /* signed long same size as pointer */
-#endif
-#ifdef __powerpc__
-typedef unsigned int iaddr_t; /* unsigned int same size as pointer */
-typedef int saddr_t; /* signed int same size as pointer */
-#endif
-#ifdef __ia64__
-typedef unsigned long iaddr_t; /* unsigned long same size as pointer */
-typedef long saddr_t; /* signed long same size as pointer */
-#endif
-#ifdef __sparc64__
-typedef unsigned long iaddr_t; /* unsigned long same size as pointer */
-typedef long saddr_t; /* signed long same size as pointer */
-#endif
-#ifdef __arm__
-typedef unsigned long iaddr_t; /* unsigned int same size as pointer */
-typedef int saddr_t; /* signed int same size as pointer */
-#endif
+typedef uintptr_t iaddr_t; /* unsigned int same size as pointer */
+typedef intptr_t saddr_t; /* signed int same size as pointer */
#include "zalloc_mem.h"
#define Prototype extern
OpenPOWER on IntegriCloud