Adjust indents [ci skip]
This commit is contained in:
parent
c6734edc34
commit
92c7417d73
@ -62,9 +62,9 @@ total_i(VALUE v, void *ptr)
|
|||||||
struct total_data *data = (struct total_data *)ptr;
|
struct total_data *data = (struct total_data *)ptr;
|
||||||
|
|
||||||
if (!rb_objspace_internal_object_p(v)) {
|
if (!rb_objspace_internal_object_p(v)) {
|
||||||
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
|
if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
|
||||||
data->total += rb_obj_memsize_of(v);
|
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)) {
|
if (LIKELY(len > 0)) {
|
||||||
buffer_ensure_capa(dc, len);
|
buffer_ensure_capa(dc, len);
|
||||||
@ -525,8 +526,8 @@ dump_object(VALUE obj, struct dump_config *dc)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case T_ZOMBIE:
|
case T_ZOMBIE:
|
||||||
dump_append(dc, "}\n");
|
dump_append(dc, "}\n");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user