summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-30 02:29:35 +0000
committerJim Meyering <jim@meyering.net>1998-08-30 02:29:35 +0000
commit6f7507be505709bc0551bf13ade36a89db179cc8 (patch)
treefb3569c3a2981e44c005bba4405af6461d22e6d0
parent33df2fe237b1e73f298d2f9578aae74d29de57d5 (diff)
downloadcoreutils-6f7507be505709bc0551bf13ade36a89db179cc8.tar.xz
(CHAR_MIN, CHAR_MAX):
Renamed from SCHAR_MIN, SCHAR_MAX, since these macros apply to char, not signed char.
-rw-r--r--src/system.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/system.h b/src/system.h
index 73739e56a..9e196748f 100644
--- a/src/system.h
+++ b/src/system.h
@@ -129,20 +129,19 @@
# define CHAR_BIT 8
#endif
-/* The extra casts work around common compiler bugs. */
+/* 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))
-/* 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)))
-#ifndef SCHAR_MIN
-# define SCHAR_MIN TYPE_MINIMUM (char)
+#ifndef CHAR_MIN
+# define CHAR_MIN TYPE_MINIMUM (char)
#endif
-#ifndef SCHAR_MAX
-# define SCHAR_MAX TYPE_MAXIMUM (char)
+#ifndef CHAR_MAX
+# define CHAR_MAX TYPE_MAXIMUM (char)
#endif
#ifndef UCHAR_MAX