Mercurial > gnulib
diff top/maint.mk @ 18135:a2239167f5f7
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 | 4c7844c2aa58 |
children | 1393742e21f0 |
line wrap: on
line diff
--- 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: