зеркало из https://github.com/github/ruby.git
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
44e6f5a1bb
Коммит
94d0221df4
|
@ -1,4 +1,8 @@
|
|||
Sat Mar 31 10:01:39 2012 Sokolov Yura <funny-falcon <funny.falcon@gmail.com>>
|
||||
Sat Mar 31 10:13:24 2012 Sokolov Yura (funny-falcon) <funny.falcon@gmail.com>
|
||||
|
||||
* 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
|
||||
|
||||
|
|
2
st.c
2
st.c
|
@ -984,7 +984,6 @@ st_foreach_check(st_table *table, int (*func)(ANYARGS), st_data_t arg, st_data_t
|
|||
remove_entry(table, ptr);
|
||||
ptr->key = ptr->record = never;
|
||||
ptr->hash = 0;
|
||||
if (ptr == tmp) return 0;
|
||||
ptr = tmp;
|
||||
break;
|
||||
}
|
||||
|
@ -1052,7 +1051,6 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
|
|||
*last = ptr->next;
|
||||
remove_entry(table, ptr);
|
||||
st_free_entry(ptr);
|
||||
if (ptr == tmp) return 0;
|
||||
ptr = tmp;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче