[前][次][番号順一覧][スレッド一覧]

ruby-changes:21427

From: nobu <ko1@a...>
Date: Tue, 18 Oct 2011 23:29:08 +0900 (JST)
Subject: [ruby-changes:21427] nobu:r33476 (trunk): * hash.c (identhash): share with type_numhash.

nobu	2011-10-18 23:28:58 +0900 (Tue, 18 Oct 2011)

  New Revision: 33476

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33476

  Log:
    * hash.c (identhash): share with type_numhash.
    * st.c (st_hashtype_num): rename from type_numhash.

  Modified files:
    trunk/ChangeLog
    trunk/hash.c
    trunk/st.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33475)
+++ ChangeLog	(revision 33476)
@@ -1,3 +1,9 @@
+Tue Oct 18 23:28:53 2011  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* vm_core.h (ruby_current_thread): probeprofiler has been removed
Index: st.c
===================================================================
--- st.c	(revision 33475)
+++ st.c	(revision 33476)
@@ -38,7 +38,8 @@
      *
      */
 
-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,
 };
Index: hash.c
===================================================================
--- hash.c	(revision 33475)
+++ hash.c	(revision 33476)
@@ -106,10 +106,8 @@
     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);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]