From 37c054af09357276eb560990eba1f20cdc489bfc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 17 Oct 2015 19:18:01 -0700 Subject: 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. --- top/maint.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'top/maint.mk') 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: -- cgit v1.2.1