maint.mk: Prohibit inclusion of "close-stream.h" without use.
authorJim Meyering <meyering@redhat.com>
Thu, 5 Nov 2009 17:26:32 +0000 (18:26 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 5 Nov 2009 17:26:32 +0000 (18:26 +0100)
* top/maint.mk (sc_prohibit_close_stream_without_use): New rule.

ChangeLog
top/maint.mk

index ccde1b8..7e9d945 100644 (file)
--- 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.
index 996344a..73ea8ea 100644 (file)
@@ -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)