[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] [PATCH 13/15] maint: remove now-unneeded macro definitions
From: |
Jim Meyering |
Subject: |
[bug-patch] [PATCH 13/15] maint: remove now-unneeded macro definitions |
Date: |
Sat, 26 Mar 2011 14:32:08 +0100 |
From: Jim Meyering <address@hidden>
* bootstrap.conf (gnulib_modules): Include gnulib's signal module,
so that signal.h guarantees definition of certain macros.
* src/util.c (SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK): Remove definition.
Now, gnulib guarantees that these are defined.
* src/common.h (SIZE_MAX): Likewise.
* cfg.mk (local-checks-to-skip): Enable the
sc_prohibit_always-defined_macros check, now that it passes.
---
bootstrap.conf | 1 +
cfg.mk | 2 --
src/common.h | 3 ---
src/util.c | 9 ---------
4 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/bootstrap.conf b/bootstrap.conf
index a42d485..607ad1a 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -49,6 +49,7 @@ realloc
rename
rmdir
setenv
+signal
ssize_t
stat-time
stdbool
diff --git a/cfg.mk b/cfg.mk
index 853f763..11f335b 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -26,8 +26,6 @@ local-checks-to-skip = \
sc_file_system \
sc_immutable_NEWS \
sc_obsolete_symbols \
- sc_prohibit_always-defined_macros \
- sc_prohibit_always-defined_macros \
sc_prohibit_always_true_header_tests \
sc_prohibit_magic_number_exit \
sc_prohibit_strcmp \
diff --git a/src/common.h b/src/common.h
index 5597540..43919b8 100644
--- a/src/common.h
+++ b/src/common.h
@@ -39,9 +39,6 @@
#elif HAVE_STDINT_H
# include <stdint.h>
#endif
-#ifndef SIZE_MAX
-#define SIZE_MAX ((size_t) -1)
-#endif
#include <ctype.h>
/* CTYPE_DOMAIN (C) is nonzero if the unsigned char C can safely be given
diff --git a/src/util.c b/src/util.c
index f1187ff..6950842 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1094,15 +1094,6 @@ static int const sigs[] = {
#endif
#define sigaddset(s, sig) (*(s) |= sigmask (sig))
#define sigismember(s, sig) ((*(s) & sigmask (sig)) != 0)
-#ifndef SIG_BLOCK
-#define SIG_BLOCK 0
-#endif
-#ifndef SIG_UNBLOCK
-#define SIG_UNBLOCK (SIG_BLOCK + 1)
-#endif
-#ifndef SIG_SETMASK
-#define SIG_SETMASK (SIG_BLOCK + 2)
-#endif
#define sigprocmask(how, n, o) \
((how) == SIG_BLOCK \
? ((o) ? *(o) = sigblock (*(n)) : sigblock (*(n))) \
--
1.7.1.354.ge64bd
- [bug-patch] [PATCH 00/15] *** SUBJECT HERE ***, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 03/15] maint: add some m4 quoting, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 08/15] tests: temporarily disable failing syntax-check rules, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 01/15] maint: use gnulib's maintainer-makefile module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 02/15] maint: arrange for the sc_require_config_h_first test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 04/15] maint: remove trailing blanks, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 09/15] build: avoid three gcc warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 15/15] build: don't turn off -Wmissing-declarations, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 13/15] maint: remove now-unneeded macro definitions,
Jim Meyering <=
- [bug-patch] [PATCH 14/15] build: don't turn off -Wmissing-prototypes, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 05/15] maint: allow the sc_prohibit_empty_lines_at_EOF test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 07/15] build: accept new configure-time option --enable-gcc-warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 06/15] maint: avoid non-portable use of test -a, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 11/15] maint: update bootstrap and gnulib submodule, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 12/15] maint: use gnulib's progname module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 10/15] maint: update copyright date year ranges to include 2011, Jim Meyering, 2011/03/26
- Re: [bug-patch] [PATCH 00/15] *** SUBJECT HERE ***, Andreas Gruenbacher, 2011/03/26