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

ruby-changes:23139

From: nobu <ko1@a...>
Date: Sat, 31 Mar 2012 10:13:37 +0900 (JST)
Subject: [ruby-changes:23139] nobu:r35189 (trunk): * st.c (st_foreach_check, st_foreach): remove ancient check. This

nobu	2012-03-31 10:13:26 +0900 (Sat, 31 Mar 2012)

  New Revision: 35189

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

  Log:
    * st.c (st_foreach_check, st_foreach): remove ancient check.  This
      check are from initial ordered hash commit when first entry were
      created with entry->fore = entry->back = entry.

  Modified files:
    trunk/ChangeLog
    trunk/st.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35188)
+++ ChangeLog	(revision 35189)
@@ -1,5 +1,9 @@
-Sat Mar 31 10:01:39 2012  Sokolov Yura  <funny-falcon <funny.falcon@g...>>
+Sat Mar 31 10:13:24 2012  Sokolov Yura (funny-falcon)  <funny.falcon@g...>
 
+	* st.c (st_foreach_check, st_foreach): remove ancient check.  This
+	  check are from initial ordered hash commit when first entry were
+	  created with entry->fore = entry->back = entry.
+
 	* st.c (st_delete): use real_entries in st_delete for packed tables
 
 Sat Mar 31 07:53:23 2012  Nobuyoshi Nakada  <nobu@r...>
Index: st.c
===================================================================
--- st.c	(revision 35188)
+++ st.c	(revision 35189)
@@ -984,7 +984,6 @@
 			remove_entry(table, ptr);
 			ptr->key = ptr->record = never;
 			ptr->hash = 0;
-			if (ptr == tmp) return 0;
 			ptr = tmp;
 			break;
 		    }
@@ -1052,7 +1051,6 @@
 			*last = ptr->next;
 			remove_entry(table, ptr);
 			st_free_entry(ptr);
-			if (ptr == tmp) return 0;
 			ptr = tmp;
 			break;
 		    }

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

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