From: Jim Meyering <meyering@redhat.com>
Date: Thu, 5 Nov 2009 17:26:32 +0000 (+0100)
Subject: maint.mk: Prohibit inclusion of "close-stream.h" without use.
X-Git-Tag: v0.1~5242
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=46b36899e091f58a96df1d64c145d6ccf392718d;p=gnulib.git

maint.mk: Prohibit inclusion of "close-stream.h" without use.

* top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
---

diff --git a/ChangeLog b/ChangeLog
index ccde1b8583..7e9d945fa3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-05  Jim Meyering  <meyering@redhat.com>
+
+	maint.mk: Prohibit inclusion of "close-stream.h" without use.
+	* top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
+
 2009-11-05  Simon Josefsson  <simon@josefsson.org>
 
 	* modules/pmccabe2html (configure.ac): Check for pmccabe tool.
diff --git a/top/maint.mk b/top/maint.mk
index 996344a93d..73ea8eaec1 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -257,6 +257,10 @@ endef
 sc_prohibit_assert_without_use:
 	@h='<assert.h>' re='\<assert *\(' $(_header_without_use)
 
+# Prohibit the inclusion of close-stream.h without an actual use.
+sc_prohibit_close_stream_without_use:
+	@h='"close-stream.h"' re='\<close_stream *\(' $(_header_without_use)
+
 # Prohibit the inclusion of getopt.h without an actual use.
 sc_prohibit_getopt_without_use:
 	@h='<getopt.h>' re='\<getopt(_long)? *\(' $(_header_without_use)