summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-03-21 14:40:36 +0100
committerJim Meyering <meyering@redhat.com>2010-03-21 15:03:49 +0100
commit745922cf506b73fef140c4638777a5a9aa40c61c (patch)
tree0a8607e64141342b1886b7cc141ba6bbe011347e
parent3ed4e064845af85aa0de661dbe7d1369f4c965b6 (diff)
downloadgrep-745922cf506b73fef140c4638777a5a9aa40c61c.tar.gz
maint: remove TYPE_* definitions from src/system.h
* src/system.h (TYPE_MAXIMUM, TYPE_MINIMUM, TYPE_SIGNED): Remove definitions. They are provided by intprops.h. * src/grep.c: Include "intprops.h" * bootstrap.conf (gnulib_modules): Add intprops.
-rw-r--r--bootstrap.conf1
-rw-r--r--src/grep.c1
-rw-r--r--src/system.h7
3 files changed, 2 insertions, 7 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index 5d73b685..28794ec7 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -39,6 +39,7 @@ gnu-web-doc-update
gnupload
hard-locale
ignore-value
+intprops
isdir
locale
malloc
diff --git a/src/grep.c b/src/grep.c
index 1baf3b2f..591f801b 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -42,6 +42,7 @@
#include "exitfail.h"
#include "getopt.h"
#include "grep.h"
+#include "intprops.h"
#include "isdir.h"
#include "progname.h"
#include "savedir.h"
diff --git a/src/system.h b/src/system.h
index 3595832b..4398a5f8 100644
--- a/src/system.h
+++ b/src/system.h
@@ -41,13 +41,6 @@
enum { EXIT_TROUBLE = 2 };
-/* The extra casts work around common compiler bugs. */
-#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 isgraph
# define isgraph(C) (isprint(C) && !isspace(C))
#endif