diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-08 05:51:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-08 05:51:19 +0000 |
commit | a4804fbdf503a9c2b550b877120ca4029c65cdb3 (patch) | |
tree | 2a354e79dbe773294347b7123701720a9b1bbb60 /defs | |
parent | f8659dfd94d3f05f365996c68f2f1a78b1e7cbe3 (diff) | |
download | bundler-a4804fbdf503a9c2b550b877120ca4029c65cdb3.tar.gz |
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
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 e0d931cd1f..cc5622e056 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 -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) %} 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) %} |