diff top/maint.mk @ 13337:23825f79a03a

maint.mk: gnulib doesn't guarantee NSIG Gnulib conditionally defines NSIG to 32 for some platforms. But since NSIG is not mandated by standards, and there are platforms with 64 signals, we should not promise that NSIG is guaranteed. * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 11 May 2010 08:52:39 -0600
parents dd75a1afe536
children 43bae0ee08b9
line wrap: on
line diff
--- a/top/maint.mk	Tue May 11 00:54:27 2010 +0200
+++ b/top/maint.mk	Tue May 11 08:52:39 2010 -0600
@@ -674,7 +674,9 @@
 # Perl -lne code to extract "significant" cpp-defined symbols from a
 # gnulib header file, eliminating a few common false-positives.
 gl_extract_significant_defines_ = \
-  /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/ && $$2 !~ /(?:rpl_|_used_without_)/\
+  /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
+    && $$2 !~ /(?:rpl_|_used_without_)/\
+    && $$1 !~ /^(NSIG|ATTRIBUTE_NORETURN)/\
     and print $$1
 
 # Create a list of regular expressions matching the names
@@ -686,7 +688,6 @@
 	    perl -lne '$(gl_extract_significant_defines_)' $$f;		\
 	  done;								\
 	) | sort -u							\
-	  | grep -Ev '^ATTRIBUTE_NORETURN'				\
 	  | sed 's/^/^ *# *define /;s/$$/\\>/'
 endef