From ba563e4a410eb8f01709cc2f37a42361f5998311 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 Jul 2007 01:06:49 +0000 Subject: * include/ruby/st.h, st.c (st_init_table, st_init_table_with_size): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 328c7c604c..c9cd631254 100644 --- a/parse.y +++ b/parse.y @@ -8239,7 +8239,7 @@ static struct symbols { VALUE op_sym[tLAST_TOKEN]; } global_symbols = {tLAST_TOKEN}; -static struct st_hash_type symhash = { +static const struct st_hash_type symhash = { rb_str_cmp, rb_str_hash, }; @@ -8264,7 +8264,7 @@ ivar2_hash(struct ivar2_key *key) return (key->id << 8) ^ (key->klass >> 2); } -static struct st_hash_type ivar2_hash_type = { +static const struct st_hash_type ivar2_hash_type = { ivar2_cmp, ivar2_hash, }; -- cgit v1.2.3