maint.mk: fix a bug in sc_prohibit_stddef_without_use
authorJim Meyering <meyering@redhat.com>
Tue, 25 Oct 2011 13:49:18 +0000 (15:49 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 25 Oct 2011 13:49:18 +0000 (15:49 +0200)
* top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
after symbols like NULL, size_t, etc.
Reported by Alfred M. Szmidt.

ChangeLog
top/maint.mk

index 337cd03..546005e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-10-25  Jim Meyering  <meyering@redhat.com>
 
+       maint.mk: fix a bug in sc_prohibit_stddef_without_use
+       * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
+       after symbols like NULL, size_t, etc.
+       Reported by Alfred M. Szmidt.
+
        maint.mk: exempt ENODATA from a syntax-check rule
        * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
        from the sc_prohibit_always-defined_macros syntax-check rule.
index be348dd..4c71187 100644 (file)
@@ -618,7 +618,7 @@ _stddef_syms_re = NULL|offsetof|ptrdiff_t|size_t|wchar_t
 # Prohibit the inclusion of stddef.h without an actual use.
 sc_prohibit_stddef_without_use:
        @h='stddef.h'                                                   \
-       re='\<($(_stddef_syms_re)) *\('                                 \
+       re='\<($(_stddef_syms_re))\>'                                   \
          $(_sc_header_without_use)
 
 # Prohibit the inclusion of verify.h without an actual use.