* Rename _slice into _splice.

* Rename _move_back into _splice_back
to uniform the interface.
This commit is contained in:
Patrick Pelissier committed 2017-07-05 09:17:11 +02:00
1 parent 8e203fac5e
commit 76fc919ccb
4 files changed
+30 -28

No files matched your search

+2 -2
View File
@@ -238,7 +238,7 @@
assert( (hash & (new_size-1)) == (i + old_size)); \
M_C3(list_dict_pair_,name,_t) *new_list = \
M_C3(array_list_dict_pair_,name,_get)(map->table, i + old_size); \
M_C3(list_dict_pair_,name,_move_back)(*new_list, *list, it); \
M_C3(list_dict_pair_,name,_splice_back)(*new_list, *list, it); \
} else { \
M_C3(list_dict_pair_,name,_next)(it); \
} \
@@ -271,7 +271,7 @@
assert ((hash & (new_size -1)) == i - new_size); \
M_C3(list_dict_pair_,name,_t) *new_list = \
M_C3(array_list_dict_pair_,name,_get)(map->table, i - new_size); \
M_C3(list_dict_pair_,name,_move_back)(*new_list, *list, it); \
M_C3(list_dict_pair_,name,_splice_back)(*new_list, *list, it); \
} \
} \
/* Resize the dictionary */ \