From 6971464f8a50485d73690b0edcb0bce59ad1b470 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 --- defs/lex.c.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'defs/lex.c.src') diff --git a/defs/lex.c.src b/defs/lex.c.src index e0d931cd1f..cc5622e056 100644 --- a/defs/lex.c.src +++ b/defs/lex.c.src @@ -2,7 +2,7 @@ struct kwtable {int name, id[2], state;}; const struct kwtable *rb_reserved_word(const char *, unsigned int); #ifndef RIPPER -static const struct kwtable *reserved_word(const char *, unsigned int); +/*!ANSI*/static const struct kwtable *reserved_word(const char *, unsigned int); #define rb_reserved_word(str, len) reserved_word(str, len) %} -- cgit v1.2.3