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

ruby-changes:13276

From: nobu <ko1@a...>
Date: Tue, 22 Sep 2009 16:34:49 +0900 (JST)
Subject: [ruby-changes:13276] Ruby:r25038 (trunk): * st.c (st_table_entry, st_get_key): use st_index_t.

nobu	2009-09-22 16:34:35 +0900 (Tue, 22 Sep 2009)

  New Revision: 25038

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

  Log:
    * st.c (st_table_entry, st_get_key): use st_index_t.

  Modified files:
    trunk/ChangeLog
    trunk/st.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25037)
+++ ChangeLog	(revision 25038)
@@ -1,3 +1,7 @@
+Tue Sep 22 16:34:33 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* st.c (st_table_entry, st_get_key): use st_index_t.
+
 Tue Sep 22 16:28:41 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* regenc.h (PosixBracketEntryType): constified.
Index: st.c
===================================================================
--- st.c	(revision 25037)
+++ st.c	(revision 25038)
@@ -18,7 +18,7 @@
 typedef struct st_table_entry st_table_entry;
 
 struct st_table_entry {
-    unsigned int hash;
+    st_index_t hash;
     st_data_t key;
     st_data_t record;
     st_table_entry *next;
@@ -319,7 +319,7 @@
 int
 st_get_key(st_table *table, register st_data_t key, st_data_t *result)
 {
-    unsigned int hash_val, bin_pos;
+    st_index_t hash_val, bin_pos;
     register st_table_entry *ptr;
 
     if (table->entries_packed) {

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

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