diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-18 14:28:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-18 14:28:58 +0000 |
commit | 12c497dcf68ea7e1f75b2ba100e09b9f133eafe2 (patch) | |
tree | 78df96b7ea808609bb03d65f7c5363d7565fc559 /hash.c | |
parent | eb21db77c06f82f9b0e6c878fad5e2e3a591886e (diff) | |
download | ruby-12c497dcf68ea7e1f75b2ba100e09b9f133eafe2.tar.gz |
* hash.c (identhash): share with type_numhash.
* st.c (st_hashtype_num): rename from type_numhash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -106,10 +106,8 @@ static const struct st_hash_type objhash = { rb_any_hash, }; -static const struct st_hash_type identhash = { - st_numcmp, - st_numhash, -}; +extern const struct st_hash_type st_hashtype_num; +#define identhash st_hashtype_num typedef int st_foreach_func(st_data_t, st_data_t, st_data_t); |