[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] maint.mk: add three prohibit-header-without-use rules
From: |
Jim Meyering |
Subject: |
[PATCH] maint.mk: add three prohibit-header-without-use rules |
Date: |
Sat, 04 Jun 2011 09:39:55 +0200 |
This was prompted by Pádraig's coreutils patch:
http://thread.gmane.org/gmane.comp.gnu.coreutils.general/1282
>From 1b20f727196f5f3361c2edf5ca28ac0032425706 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 3 Jun 2011 17:35:07 +0200
Subject: [PATCH] maint.mk: add three prohibit-header-without-use rules
Prohibit use of cloexec.h, posixver.h, same.h without use.
* top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
(sc_prohibit_posixver_without_use): Likewise.
(sc_prohibit_same_without_use): Likewise.
---
ChangeLog | 8 ++++++++
top/maint.mk | 10 ++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 561ff83..fbd5ccd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-06-03 Jim Meyering <address@hidden>
+
+ maint: three new prohibit-header-without-use rules
+ Prohibit use of cloexec.h, posixver.h, same.h without use.
+ * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
+ (sc_prohibit_posixver_without_use): Likewise.
+ (sc_prohibit_same_without_use): Likewise.
+
2011-06-02 Paul Eggert <address@hidden>
allocator: 'die' routine is now given requested size
diff --git a/top/maint.mk b/top/maint.mk
index 9f20900..c55571c 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -495,6 +495,16 @@ sc_prohibit_hash_without_use:
re='$(_hash_fn)|$(_hash_struct)'\
$(_sc_header_without_use)
+sc_prohibit_cloexec_without_use:
+ @h='"cloexec.h"' re='\<(set_cloexec_flag|dup_cloexec) *\(' \
+ $(_sc_header_without_use)
+
+sc_prohibit_posixver_without_use:
+ @h='"posixver.h"' re='\<posix2_version *\(' $(_sc_header_without_use)
+
+sc_prohibit_same_without_use:
+ @h='"same.h"' re='\<same_name *\(' $(_sc_header_without_use)
+
sc_prohibit_hash_pjw_without_use:
@h='"hash-pjw.h"' \
re='\<hash_pjw *\(' \
--
1.7.6.rc0.254.gf37de
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] maint.mk: add three prohibit-header-without-use rules,
Jim Meyering <=