зеркало из https://github.com/github/ruby.git
* st.c (st_table_entry, st_get_key): use st_index_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
46970b2d1d
Коммит
fe92b9a75b
|
@ -1,3 +1,7 @@
|
|||
Tue Sep 22 16:34:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* st.c (st_table_entry, st_get_key): use st_index_t.
|
||||
|
||||
Tue Sep 22 16:28:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* regenc.h (PosixBracketEntryType): constified.
|
||||
|
|
4
st.c
4
st.c
|
@ -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 @@ st_lookup(st_table *table, register st_data_t key, st_data_t *value)
|
|||
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче