From 7c4306e6e9c3c4a255f4ad20134c1832dbe45ba2 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Dec 2017 14:42:43 +0000 Subject: gperf.sed: static declarations * tool/gperf.sed: comment out arguments part only, to keep the following declarations static. [Feature #13883] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- defs/keywords | 2 +- defs/lex.c.src | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'defs') diff --git a/defs/keywords b/defs/keywords index cc5622e056..7f5422faef 100644 --- a/defs/keywords +++ b/defs/keywords @@ -2,7 +2,7 @@ struct kwtable {int name, id[2], state;}; const struct kwtable *rb_reserved_word(const char *, unsigned int); #ifndef RIPPER -/*!ANSI*/static const struct kwtable *reserved_word(const char *, unsigned int); +static const struct kwtable *reserved_word(/*!ANSI{*/const char *, unsigned int/*}!ANSI*/); #define rb_reserved_word(str, len) reserved_word(str, len) %} diff --git a/defs/lex.c.src b/defs/lex.c.src index cc5622e056..7f5422faef 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 -/*!ANSI*/static const struct kwtable *reserved_word(const char *, unsigned int); +static const struct kwtable *reserved_word(/*!ANSI{*/const char *, unsigned int/*}!ANSI*/); #define rb_reserved_word(str, len) reserved_word(str, len) %} -- cgit v1.2.3