diff options
author | Jim Meyering <jim@meyering.net> | 1999-05-08 23:29:47 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-05-08 23:29:47 +0000 |
commit | 02d760e23277c3f147b8d8f342ce1bea49870dcb (patch) | |
tree | 1deb63eb744348b92baa275df7c675cdc57fbbf6 /src/system.h | |
parent | 4905751e2f5bbc6d412f221151ab58f938697a2c (diff) | |
download | coreutils-02d760e23277c3f147b8d8f342ce1bea49870dcb.tar.xz |
* src/system.h (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM,
and all the *_MIN and *_MAX symbols): Remove definitions.
* src/sys2.h: Put the definitions here instead (this file is shared
between all three *utils packages, while system.h is not).
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/system.h b/src/system.h index 201f989a0..e9ad4c994 100644 --- a/src/system.h +++ b/src/system.h @@ -173,53 +173,6 @@ # include <limits.h> #endif -#ifndef CHAR_BIT -# define CHAR_BIT 8 -#endif - -/* The extra casts work around common compiler bugs, - e.g. Cray C 5.0.3.0 when t == time_t. */ -#define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) -#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))) - -#ifndef CHAR_MIN -# define CHAR_MIN TYPE_MINIMUM (char) -#endif - -#ifndef CHAR_MAX -# define CHAR_MAX TYPE_MAXIMUM (char) -#endif - -#ifndef UCHAR_MAX -# define UCHAR_MAX TYPE_MAXIMUM (unsigned char) -#endif - -#ifndef SHRT_MIN -# define SHRT_MIN TYPE_MINIMUM (short int) -#endif - -#ifndef SHRT_MAX -# define SHRT_MAX TYPE_MAXIMUM (short int) -#endif - -#ifndef INT_MAX -# define INT_MAX TYPE_MAXIMUM (int) -#endif - -#ifndef UINT_MAX -# define UINT_MAX TYPE_MAXIMUM (unsigned int) -#endif - -#ifndef LONG_MAX -# define LONG_MAX TYPE_MAXIMUM (long) -#endif - -#ifndef ULONG_MAX -# define ULONG_MAX TYPE_MAXIMUM (unsigned long) -#endif - #include "pathmax.h" #if TIME_WITH_SYS_TIME |