Mercurial > gnulib
changeset 37815:6fac7194a714
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.
author | Jim Meyering <meyering@fb.com> |
---|---|
date | Sat, 17 Oct 2015 19:18:01 -0700 |
parents | 1f4f1bb86701 |
children | 4821de9a049f |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Oct 17 20:12:48 2015 -0700 +++ b/ChangeLog Sat Oct 17 19:18:01 2015 -0700 @@ -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
--- a/top/maint.mk Sat Oct 17 20:12:48 2015 -0700 +++ b/top/maint.mk Sat Oct 17 19:18:01 2015 -0700 @@ -1600,7 +1600,7 @@ # 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: