diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | hash.c | 6 | ||||
-rw-r--r-- | st.c | 3 |
3 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,9 @@ +Tue Oct 18 23:28:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * hash.c (identhash): share with type_numhash. + + * st.c (st_hashtype_num): rename from type_numhash. + Tue Oct 18 23:07:30 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * vm_core.h (ruby_current_thread): probeprofiler has been removed @@ -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); @@ -38,7 +38,8 @@ struct st_table_entry { * */ -static const struct st_hash_type type_numhash = { +#define type_numhash st_hashtype_num +const struct st_hash_type st_hashtype_num = { st_numcmp, st_numhash, }; |