summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-18 14:28:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-18 14:28:58 +0000
commit12c497dcf68ea7e1f75b2ba100e09b9f133eafe2 (patch)
tree78df96b7ea808609bb03d65f7c5363d7565fc559
parenteb21db77c06f82f9b0e6c878fad5e2e3a591886e (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--hash.c6
-rw-r--r--st.c3
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index a262869758..41c6079b22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/hash.c b/hash.c
index a3a4d787c6..e61f70393c 100644
--- a/hash.c
+++ b/hash.c
@@ -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);
diff --git a/st.c b/st.c
index 8394cc6b72..0186667ef1 100644
--- a/st.c
+++ b/st.c
@@ -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,
};