mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adjust indents [ci skip]
This commit is contained in:
parent
c4089e6524
commit
c3e37f74ae
1 changed files with 13 additions and 13 deletions
26
hash.c
26
hash.c
|
@ -963,7 +963,7 @@ ar_foreach(VALUE hash, st_foreach_callback_func *func, st_data_t arg)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg,
|
ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg,
|
||||||
st_data_t never)
|
st_data_t never)
|
||||||
{
|
{
|
||||||
if (RHASH_AR_TABLE_SIZE(hash) > 0) {
|
if (RHASH_AR_TABLE_SIZE(hash) > 0) {
|
||||||
unsigned i, ret = 0, bound = RHASH_AR_TABLE_BOUND(hash);
|
unsigned i, ret = 0, bound = RHASH_AR_TABLE_BOUND(hash);
|
||||||
|
@ -984,13 +984,13 @@ ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg
|
||||||
|
|
||||||
switch (retval) {
|
switch (retval) {
|
||||||
case ST_CHECK: {
|
case ST_CHECK: {
|
||||||
pair = RHASH_AR_TABLE_REF(hash, i);
|
pair = RHASH_AR_TABLE_REF(hash, i);
|
||||||
if (pair->key == never) break;
|
if (pair->key == never) break;
|
||||||
ret = ar_find_entry_hint(hash, hint, key);
|
ret = ar_find_entry_hint(hash, hint, key);
|
||||||
if (ret == RHASH_AR_TABLE_MAX_BOUND) {
|
if (ret == RHASH_AR_TABLE_MAX_BOUND) {
|
||||||
retval = (*func)(0, 0, arg, 1);
|
retval = (*func)(0, 0, arg, 1);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case ST_CONTINUE:
|
case ST_CONTINUE:
|
||||||
break;
|
break;
|
||||||
|
@ -998,11 +998,11 @@ ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg
|
||||||
case ST_REPLACE:
|
case ST_REPLACE:
|
||||||
return 0;
|
return 0;
|
||||||
case ST_DELETE: {
|
case ST_DELETE: {
|
||||||
if (!ar_cleared_entry(hash, i)) {
|
if (!ar_cleared_entry(hash, i)) {
|
||||||
ar_clear_entry(hash, i);
|
ar_clear_entry(hash, i);
|
||||||
RHASH_AR_TABLE_SIZE_DEC(hash);
|
RHASH_AR_TABLE_SIZE_DEC(hash);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue