diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-05 01:06:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-05 01:06:49 +0000 |
commit | ba563e4a410eb8f01709cc2f37a42361f5998311 (patch) | |
tree | a254794a8cd36c4f85f6aca7a555455cecc85203 /parse.y | |
parent | 151d11b5b12b0dc9222e93c8e1c668ccd15d931d (diff) | |
download | ruby-ba563e4a410eb8f01709cc2f37a42361f5998311.tar.gz |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, }; |