rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit b84c143526658c6bff97daec5dae1f3edc08cf40
parent 5f5bc133f3d6f2cd3bcab9b859bfc3e2459afdf0
Author: vaplv <vaplv@free.fr>
Date:   Sun,  6 Apr 2014 17:48:56 +0200

Minor changes in hash_table comments

Diffstat:
Msrc/hash_table.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/hash_table.h b/src/hash_table.h @@ -284,7 +284,7 @@ HTABLE_FUNC__(clear)(struct HTABLE__* htbl) darray_char_data_get(&htbl->table_slot_is_used)[islot] = 0; pair = HTABLE_DATA_FUNC__(data_get)(&htbl->table) + islot; - /* Release the pair data and re-init it since it must keep valid for + /* Release the pair data and re-init it since it must stay valid for * subsequent uses */ HTABLE_FUNC__(pair_release__)(pair); HTABLE_FUNC__(pair_init__)(htbl->allocator, pair); @@ -353,7 +353,7 @@ HTABLE_FUNC__(reserve)(struct HTABLE__* htbl, const size_t size_submitted) } /* Transfer ownership of old_pairs[islot] data to new_pairs[islot_new]. - * Re-init the old_pairs[islot] structure since it must keep valid */ + * Re-init the old_pairs[islot] structure since it must stay valid */ HTABLE_FUNC__(pair_copy_and_release__) (&new_pairs[islot_new], &old_pairs[islot]); HTABLE_FUNC__(pair_init__)(htbl->allocator, &old_pairs[islot]); @@ -444,7 +444,7 @@ HTABLE_FUNC__(erase)(struct HTABLE__* htbl, HTABLE_KEY const* key) continue; /* Transfer ownership of pairs[j] data to pairs[i]. Re-init pairs[j] since - * it must keep valid for subsequent uses */ + * it must stay valid for subsequent uses */ HTABLE_FUNC__(pair_copy_and_release__)(&pairs[i], &pairs[j]); HTABLE_FUNC__(pair_init__)(htbl->allocator, &pairs[j]); used_pairs[i] = 1;