From 87d42256b3230af5edc57925dc035120ba96e52e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 9 Mar 2005 19:27:02 +0000 Subject: [PATCH] Include intprops.h. (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove; they are now defined in intprops.h. --- src/system.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/system.h b/src/system.h index 1a48893..43b9e08 100644 --- a/src/system.h +++ b/src/system.h @@ -634,18 +634,7 @@ enum # define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif -/* The extra casts work around common compiler bugs. */ -#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) -/* The outer cast is needed to work around a bug in Cray C 5.0.3.0. - It is necessary at least when t == time_t. */ -#define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \ - ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0)) -#define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t))) - -/* Upper bound on the string length of an integer converted to string. - 302 / 1000 is ceil (log10 (2.0)). Subtract 1 for the sign bit; - add 1 for integer division truncation; add 1 more for a minus sign. */ -#define INT_STRLEN_BOUND(t) ((sizeof (t) * CHAR_BIT - 1) * 302 / 1000 + 2) +#include "intprops.h" #ifndef CHAR_MIN # define CHAR_MIN TYPE_MINIMUM (char) -- 2.7.4