diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-15 14:42:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-15 14:42:43 +0000 |
commit | 7c4306e6e9c3c4a255f4ad20134c1832dbe45ba2 (patch) | |
tree | 9dc0a268704c41c9ce7bd4fe7ce90b45321e4135 /defs | |
parent | a9419fbd4fe597a9ef41621d16664a659544ed76 (diff) | |
download | ruby-7c4306e6e9c3c4a255f4ad20134c1832dbe45ba2.tar.gz |
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
Diffstat (limited to 'defs')
-rw-r--r-- | defs/keywords | 2 | ||||
-rw-r--r-- | defs/lex.c.src | 2 |
2 files changed, 2 insertions, 2 deletions
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) %} |