From e4f891ce8d4833fea1e1f9abd69c2896d429a948 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 16 Jun 2021 22:07:05 +0900 Subject: Adjust styles [ci skip] * --braces-after-func-def-line * --dont-cuddle-else * --procnames-start-lines * --space-after-for * --space-after-if * --space-after-while --- st.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'st.c') diff --git a/st.c b/st.c index 9919f0a734..53e9dc8320 100644 --- a/st.c +++ b/st.c @@ -841,7 +841,8 @@ find_table_entry_ind(st_table *tab, st_hash_t hash_value, st_data_t key) return REBUILT_TABLE_ENTRY_IND; if (eq_p) break; - } else if (EMPTY_BIN_P(bin)) + } + else if (EMPTY_BIN_P(bin)) return UNDEFINED_ENTRY_IND; #ifdef QUADRATIC_PROBE ind = hash_bin(ind + d, tab); @@ -886,7 +887,8 @@ find_table_bin_ind(st_table *tab, st_hash_t hash_value, st_data_t key) return REBUILT_TABLE_BIN_IND; if (eq_p) break; - } else if (EMPTY_BIN_P(bin)) + } + else if (EMPTY_BIN_P(bin)) return UNDEFINED_BIN_IND; #ifdef QUADRATIC_PROBE ind = hash_bin(ind + d, tab); @@ -2120,7 +2122,7 @@ st_rehash_indexed(st_table *tab) continue; ind = hash_bin(p->hash, tab); - for(;;) { + for (;;) { st_index_t bin = get_bin(bins, size_ind, ind); if (EMPTY_OR_DELETED_BIN_P(bin)) { /* ok, new room */ -- cgit v1.2.3