From e8fc29990fa4042dc38757e3e10013aba2c4f388 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 6 Jul 2007 05:57:14 +0000 Subject: * 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 --- ext/ripper/eventids2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/ripper/eventids2.c') diff --git a/ext/ripper/eventids2.c b/ext/ripper/eventids2.c index 0c04583b98..629381448a 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) -- cgit v1.2.3