maint.mk: prohibit inclusion of "hash-pjw.h" without_use
authorJim Meyering <meyering@redhat.com>
Sun, 14 Feb 2010 18:28:39 +0000 (19:28 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 14 Feb 2010 18:28:39 +0000 (19:28 +0100)
* top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
(sc_prohibit_hash_pjw_without_use): New rule.

ChangeLog
top/maint.mk

index 8fdabc25641f0fdc1fc50db63d242aa2fac099c2..ce8a8df775487b33cbcf0e83cce732b7e1a1e008 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-02-14  Jim Meyering  <meyering@redhat.com>
 
+       maint.mk: prohibit inclusion of "hash-pjw.h" without_use
+       * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
+       (sc_prohibit_hash_pjw_without_use): New rule.
+
        maint.mk: allow the default upload destination dir to be overridden
        * top/maint.mk (upload_dest_dir_): Define with a default that
        preserves the status quo.
index cfe0fd75b21ecf3f382712fa3c6ec2e31abb65b9..128de8b0f8f3cd6b41b63b30ece55c9353db48dc 100644 (file)
@@ -374,10 +374,15 @@ clear|delete|free|get_(first|next)|insert|lookup|print_statistics|reset_tuning
 _hash_fn = \<($(_hash_re)) *\(
 _hash_struct = (struct )?\<[Hh]ash_(table|tuning)\>
 sc_prohibit_hash_without_use:
-       h='"hash.h"' \
+       @h='"hash.h"' \
        re='$(_hash_fn)|$(_hash_struct)'\
          $(_header_without_use)
 
+sc_prohibit_hash_pjw_without_use:
+       @h='"hash-pjw.h"' \
+       re='\<hash_pjw *\(' \
+         $(_header_without_use)
+
 sc_prohibit_safe_read_without_use:
        @h='"safe-read.h"' re='(\<SAFE_READ_ERROR\>|\<safe_read *\()' \
          $(_header_without_use)