]> Savannah Git Hosting - gnulib.git/commitdiff
maint.mk: exempt ENODATA from a syntax-check rule
authorJim Meyering <meyering@redhat.com>
Tue, 25 Oct 2011 10:26:49 +0000 (12:26 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 25 Oct 2011 10:26:49 +0000 (12:26 +0200)
* top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
from the sc_prohibit_always-defined_macros syntax-check rule.
Add a comment.  See this for more details:
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795

ChangeLog
top/maint.mk

index a4ac818eb4483e93ef009853c946c4adbcdbe722..337cd03e64251262f0373b91f880d0f49c8a4d6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-10-25  Jim Meyering  <meyering@redhat.com>
+
+       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.
+       Add a comment.  See this for more details:
+       http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
+
 2011-10-23  Jim Meyering  <meyering@redhat.com>
 
        fts: close parent dir FD before returning from post-traversal fts_read
index d51fec6638361880f8843af493a6be29619ed3e1..be348dd9e1e36d5968deb277b6696ba210c229dd 100644 (file)
@@ -749,10 +749,12 @@ gl_other_headers_ ?= \
 
 # Perl -lne code to extract "significant" cpp-defined symbols from a
 # gnulib header file, eliminating a few common false-positives.
+# The exempted names below are defined only conditionally in gnulib,
+# and hence sometimes must/may be defined in application code.
 gl_extract_significant_defines_ = \
   /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
     && $$2 !~ /(?:rpl_|_used_without_)/\
-    && $$1 !~ /^(?:NSIG)$$/\
+    && $$1 !~ /^(?:NSIG|ENODATA)$$/\
     && $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\
     and print $$1