Tabs were expanded because the file did not have any tab indentation in unedited lines.
Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
This commit is contained in:
git 2022-09-29 00:27:12 +09:00
Родитель d594a5a8bd
Коммит 414f1066b1
1 изменённых файлов: 18 добавлений и 18 удалений

Просмотреть файл

@ -1044,7 +1044,7 @@ rb_mark_generic_ivar(VALUE obj)
struct gen_ivtbl *ivtbl; struct gen_ivtbl *ivtbl;
if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) { if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) {
gen_ivtbl_mark(ivtbl); gen_ivtbl_mark(ivtbl);
} }
} }
@ -1073,7 +1073,7 @@ rb_generic_ivar_memsize(VALUE obj)
struct gen_ivtbl *ivtbl; struct gen_ivtbl *ivtbl;
if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) if (rb_gen_ivtbl_get(obj, 0, &ivtbl))
return gen_ivtbl_bytes(ivtbl->numiv); return gen_ivtbl_bytes(ivtbl->numiv);
return 0; return 0;
} }
@ -1766,17 +1766,17 @@ rb_ivar_count(VALUE obj)
switch (BUILTIN_TYPE(obj)) { switch (BUILTIN_TYPE(obj)) {
case T_OBJECT: case T_OBJECT:
if (rb_shape_get_shape(obj)->iv_count > 0) { if (rb_shape_get_shape(obj)->iv_count > 0) {
st_index_t i, count, num = ROBJECT_NUMIV(obj); st_index_t i, count, num = ROBJECT_NUMIV(obj);
const VALUE *const ivptr = ROBJECT_IVPTR(obj); const VALUE *const ivptr = ROBJECT_IVPTR(obj);
for (i = count = 0; i < num; ++i) { for (i = count = 0; i < num; ++i) {
if (ivptr[i] != Qundef) { if (ivptr[i] != Qundef) {
count++; count++;
} }
} }
return count; return count;
} }
break; break;
case T_CLASS: case T_CLASS:
case T_MODULE: case T_MODULE:
if ((tbl = RCLASS_IV_TBL(obj)) != 0) { if ((tbl = RCLASS_IV_TBL(obj)) != 0) {
@ -1787,11 +1787,11 @@ rb_ivar_count(VALUE obj)
if (FL_TEST(obj, FL_EXIVAR)) { if (FL_TEST(obj, FL_EXIVAR)) {
struct gen_ivtbl *ivtbl; struct gen_ivtbl *ivtbl;
if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) { if (rb_gen_ivtbl_get(obj, 0, &ivtbl)) {
return gen_ivtbl_count(ivtbl); return gen_ivtbl_count(ivtbl);
} }
} }
break; break;
} }
return 0; return 0;
} }