bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint.mk: update sc_prohibit_intprops_without_use


From: Eric Blake
Subject: [PATCH] maint.mk: update sc_prohibit_intprops_without_use
Date: Fri, 24 Jun 2011 11:54:19 -0600

This syntax check needs to reflect commit 8cc0fee and following.

* top/maint.mk (_intprops_names): Match recent changes.

Signed-off-by: Eric Blake <address@hidden>
---

I found this by accident when 'make syntax-check' started failing
on libvirt due to a single use of INT_MULTIPLY_OVERFLOW.

 ChangeLog    |    5 +++++
 top/maint.mk |   10 ++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 86cde24..2ce487c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-24  Eric Blake  <address@hidden>
+
+       maint.mk: update sc_prohibit_intprops_without_use
+       * top/maint.mk (_intprops_names): Match recent changes.
+
 2011-06-24  Bruno Haible  <address@hidden>

        strerror-override: No-op tweak.
diff --git a/top/maint.mk b/top/maint.mk
index 766d9c9..ed598e0 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:
-- 
1.7.4.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]