summaryrefslogtreecommitdiff
path: root/top/maint.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2015-10-17 19:18:01 -0700
committerJim Meyering <meyering@fb.com>2015-10-17 20:33:36 -0700
commit37c054af09357276eb560990eba1f20cdc489bfc (patch)
treef067bbd5d449d4c38ae1412ccad7172d1af14bf1 /top/maint.mk
parent3ef58f46faf45a574ffe583e206715787ab283f2 (diff)
downloadgnulib-37c054af09357276eb560990eba1f20cdc489bfc.tar.gz
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.
Diffstat (limited to 'top/maint.mk')
-rw-r--r--top/maint.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 6fb6d841f7..4887e5daee 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -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: