From a4804fbdf503a9c2b550b877120ca4029c65cdb3 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 8 Dec 2017 05:51:19 +0000 Subject: support gperf 3.1 * tool/gperf.sed: extracted sed commands to a script. ANSI-C code produced by gperf 3.1 declares length arguments as `size_t`. it causes conflict with existing declarations, and needs casts for a local variable and return statements. [Feature #13883] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/io/console/depend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/io/console/depend') diff --git a/ext/io/console/depend b/ext/io/console/depend index d69a0b3aef..821b28d3fc 100644 --- a/ext/io/console/depend +++ b/ext/io/console/depend @@ -26,7 +26,7 @@ win32_vk.inc: win32_vk.list -e 'puts(%[#ifndef #{n}\n# define #{n} UNDEFINED_VK\n#endif])' \ $< && \ gperf --ignore-case -E -C -P -p -j1 -i 1 -g -o -t -K ofs -N console_win32_vk -k* $< \ - | sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \ + | sed -f $(top_srcdir)/tool/gperf.sed \ ) > $(@F) .SUFFIXES: .chksum .list .inc -- cgit v1.2.3