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 | 327b3ae1054c9f092661ad81fb815466007ca6a0 (patch) | |
| tree | ef0dc6ebf31c6c375d05eeba53b179eaa8b1af7c /ext/ripper | |
| parent | b2215d37a1b20323490d7e6c873f320ad223b5d7 (diff) | |
| download | ruby-327b3ae1054c9f092661ad81fb815466007ca6a0.tar.gz ruby-327b3ae1054c9f092661ad81fb815466007ca6a0.tar.xz ruby-327b3ae1054c9f092661ad81fb815466007ca6a0.zip | |
* parse.y (keyword_to_name): constified.
* ext/ripper/eventids2.c (token_to_eventid): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper')
| -rw-r--r-- | ext/ripper/eventids2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ripper/eventids2.c b/ext/ripper/eventids2.c index 0c04583b9..629381448 100644 --- a/ext/ripper/eventids2.c +++ b/ext/ripper/eventids2.c @@ -112,7 +112,7 @@ ripper_init_eventids2(VALUE self) ripper_init_eventids2_table(self); } -static struct token_assoc { +static const struct token_assoc { int token; ID *id; } token_to_eventid[] = { @@ -264,7 +264,7 @@ static struct token_assoc { static ID ripper_token2eventid(int tok) { - struct token_assoc *a; + const struct token_assoc *a; for (a = token_to_eventid; a->id != NULL; a++) { if (a->token == tok) |
