From 25e4c2ec96602d132ad4429d6eaebaea1a8f504b Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 24 Jun 2011 11:51:56 -0600 Subject: [PATCH] maint.mk: update sc_prohibit_intprops_without_use This syntax check needs to reflect commit 8cc0fee and following. * top/maint.mk (_intprops_names): Match recent changes. Signed-off-by: Eric Blake --- ChangeLog | 5 +++++ top/maint.mk | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86cde248e..2ce487c2e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-24 Eric Blake + + maint.mk: update sc_prohibit_intprops_without_use + * top/maint.mk (_intprops_names): Match recent changes. + 2011-06-24 Bruno Haible strerror-override: No-op tweak. diff --git a/top/maint.mk b/top/maint.mk index 766d9c9c8..ed598e0d5 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -596,11 +596,17 @@ sc_prohibit_strings_without_use: $(_sc_header_without_use) # Get the list of symbol names with this: -# perl -lne '/^# *define (\w+)\(/ and print $1' lib/intprops.h|grep -v '^s'|fmt +# perl -lne '/^# *define ([A-Z]\w+)\(/ and print $1' lib/intprops.h|fmt _intprops_names = \ TYPE_IS_INTEGER TYPE_TWOS_COMPLEMENT TYPE_ONES_COMPLEMENT \ TYPE_SIGNED_MAGNITUDE TYPE_SIGNED TYPE_MINIMUM TYPE_MAXIMUM \ - INT_STRLEN_BOUND INT_BUFSIZE_BOUND + INT_BITS_STRLEN_BOUND INT_STRLEN_BOUND INT_BUFSIZE_BOUND \ + INT_ADD_RANGE_OVERFLOW INT_SUBTRACT_RANGE_OVERFLOW \ + INT_NEGATE_RANGE_OVERFLOW INT_MULTIPLY_RANGE_OVERFLOW \ + INT_DIVIDE_RANGE_OVERFLOW INT_REMAINDER_RANGE_OVERFLOW \ + INT_LEFT_SHIFT_RANGE_OVERFLOW INT_ADD_OVERFLOW INT_SUBTRACT_OVERFLOW \ + INT_NEGATE_OVERFLOW INT_MULTIPLY_OVERFLOW INT_DIVIDE_OVERFLOW \ + INT_REMAINDER_OVERFLOW INT_LEFT_SHIFT_OVERFLOW _intprops_syms_re = $(subst $(_sp),|,$(strip $(_intprops_names))) # Prohibit the inclusion of intprops.h without an actual use. sc_prohibit_intprops_without_use: -- 2.11.0