зеркало из https://github.com/github/ruby.git
Adjust indents [ci skip]
This commit is contained in:
Родитель
c6734edc34
Коммит
92c7417d73
|
@ -62,9 +62,9 @@ total_i(VALUE v, void *ptr)
|
|||
struct total_data *data = (struct total_data *)ptr;
|
||||
|
||||
if (!rb_objspace_internal_object_p(v)) {
|
||||
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
|
||||
data->total += rb_obj_memsize_of(v);
|
||||
}
|
||||
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
|
||||
data->total += rb_obj_memsize_of(v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,8 @@ buffer_ensure_capa(struct dump_config *dc, unsigned long requested)
|
|||
}
|
||||
}
|
||||
|
||||
static void buffer_append(struct dump_config *dc, const char *cstr, unsigned long len)
|
||||
static void
|
||||
buffer_append(struct dump_config *dc, const char *cstr, unsigned long len)
|
||||
{
|
||||
if (LIKELY(len > 0)) {
|
||||
buffer_ensure_capa(dc, len);
|
||||
|
@ -525,8 +526,8 @@ dump_object(VALUE obj, struct dump_config *dc)
|
|||
break;
|
||||
|
||||
case T_ZOMBIE:
|
||||
dump_append(dc, "}\n");
|
||||
return;
|
||||
dump_append(dc, "}\n");
|
||||
return;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче