maint.mk: relax the default _gl_TS_function_match regexp
authorJim Meyering <meyering@redhat.com>
Tue, 2 Aug 2011 12:54:34 +0000 (14:54 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 2 Aug 2011 12:54:34 +0000 (14:54 +0200)
* top/maint.mk (_gl_TS_function_match): Don't require at least one
space between function name and "(" in an "extern" declaration.
That would fail to match a decl with no space there: extern void foo();

ChangeLog
top/maint.mk

index 6bcf68a..8133867 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-08-02  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: relax the default _gl_TS_function_match regexp
+       * top/maint.mk (_gl_TS_function_match): Don't require at least one
+       space between function name and "(" in an "extern" declaration.
+       That would fail to match a decl with no space there: extern void foo();
+
 2011-07-31  Iain Nicol  <iain@thenicols.net>
 
        git-version-gen: document that EXTRA_DIST must include .version
index 6c1bf44..d364934 100644 (file)
@@ -1427,7 +1427,7 @@ ifeq (a,b)
 # do not need to be marked.  Symbols matching `__.*' are
 # reserved by the compiler, so are automatically excluded below.
 _gl_TS_unmarked_extern_functions ?= main usage
-_gl_TS_function_match ?= /^(?:$(_gl_TS_extern)) +.*?(\S+) +\(/
+_gl_TS_function_match ?= /^(?:$(_gl_TS_extern)) +.*?(\S+) *\(/
 
 # If your project uses a macro like "XTERN", then put
 # the following in cfg.mk to override this default: