diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-16 22:07:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-17 10:13:40 +0900 |
commit | e4f891ce8d4833fea1e1f9abd69c2896d429a948 (patch) | |
tree | 81fb457e6485236fb55ab52628fdd8af9e0fcd64 /st.c | |
parent | 4e097226370ec93bd25823d6a0dd34963619b1b9 (diff) |
Adjust styles [ci skip]
* --braces-after-func-def-line
* --dont-cuddle-else
* --procnames-start-lines
* --space-after-for
* --space-after-if
* --space-after-while
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 */ |