Mercurial > gnulib
diff top/maint.mk @ 12863:8fd1fe5e9683
maint.mk: prohibit inclusion of "hash.h" without_use
* top/maint.mk (sc_prohibit_hash_without_use): New rule.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 14 Feb 2010 11:22:29 +0100 |
parents | 2afdfba76c99 |
children | 9ab78f8f0368 |
line wrap: on
line diff
--- a/top/maint.mk Sat Feb 13 09:17:17 2010 -0800 +++ b/top/maint.mk Sun Feb 14 11:22:29 2010 +0100 @@ -367,6 +367,17 @@ re='\<($(_xa1)|$(_xa2)) *\('\ $(_header_without_use) +# Extract function names: +# perl -lne '/^(?:extern )?(?:void|char) \*?(\w+) \(/ and print $1' lib/hash.h +_hash_re = \ +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"' \ + re='$(_hash_fn)|$(_hash_struct)'\ + $(_header_without_use) + sc_prohibit_safe_read_without_use: @h='"safe-read.h"' re='(\<SAFE_READ_ERROR\>|\<safe_read *\()' \ $(_header_without_use)