]> Savannah Git Hosting - gnulib.git/commitdiff
maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
authorJim Meyering <meyering@fb.com>
Sun, 18 Oct 2015 02:18:01 +0000 (19:18 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 18 Oct 2015 03:33:36 +0000 (20:33 -0700)
* top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
name-extraction regexp mistakenly used \S+, and would mistakenly
extract "*F" from "extern int *F()" rather than the desired "F".
Use \w+ instead.

ChangeLog
top/maint.mk

index 7dafb8b7f2ce03de5d5f075c0cc162c90018c950..81f8cd2cc8b1013e0f507afaf1a1ebb12c15ade1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-10-17  Jim Meyering  <meyering@fb.com>
+
+       maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
+       * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
+       name-extraction regexp mistakenly used \S+, and would mistakenly
+       extract "*F" from "extern int *F()" rather than the desired "F".
+       Use \w+ instead.
+
 2015-10-17  Jim Meyering  <meyering@fb.com>
 
        maint.mk: sc_tight_scope: factor and support OS X
index 6fb6d841f7b71841db76f68210a3488f62a097e8..4887e5daeeda11eff2455e252209989be88719fd 100644 (file)
@@ -1600,7 +1600,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)) +.*?(\w+) *\(/
 
 # If your project uses a macro like "XTERN", then put
 # the following in cfg.mk to override this default: