Skip to content

Commit

Permalink
* hash.c (identhash): share with type_numhash.
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Oct 18, 2011
1 parent eb21db7 commit 12c497d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Tue Oct 18 23:28:53 2011 Nobuyoshi Nakada <[email protected]>

* 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 <[email protected]>

* vm_core.h (ruby_current_thread): probeprofiler has been removed
Expand Down
6 changes: 2 additions & 4 deletions hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 2 additions & 1 deletion st.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 12c497d

Please sign in to comment.