diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-06 05:57:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-06 05:57:14 +0000 |
commit | e8fc29990fa4042dc38757e3e10013aba2c4f388 (patch) | |
tree | ef0dc6ebf31c6c375d05eeba53b179eaa8b1af7c /parse.y | |
parent | 7990a473eb5e50304a276d4fce920d0da1f994d9 (diff) | |
download | ruby-e8fc29990fa4042dc38757e3e10013aba2c4f388.tar.gz |
* parse.y (keyword_to_name): constified.
* ext/ripper/eventids2.c (token_to_eventid): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8873,7 +8873,7 @@ ripper_dispatch5(struct parser_params *parser, ID mid, VALUE a, VALUE b, VALUE c return rb_funcall(parser->value, mid, 5, a, b, c, d, e); } -static struct kw_assoc { +static const struct kw_assoc { ID id; const char *name; } keyword_to_name[] = { @@ -8930,7 +8930,7 @@ static struct kw_assoc { static const char* keyword_id_to_str(ID id) { - struct kw_assoc *a; + const struct kw_assoc *a; for (a = keyword_to_name; a->id; a++) { if (a->id == id) |