summaryrefslogtreecommitdiff
path: root/ext/objspace
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-27 05:27:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-27 05:27:06 +0000
commit37a9da68a7a8d3d4a3836f193e40dfe7767de565 (patch)
tree2f1ba9d3a4ea4862cf88fc9045afad2e1c83f493 /ext/objspace
parent253fd5fe6b485eef92e36b46bd17ccbc11f2c397 (diff)
objspace_dump.c: remove unnecessary break
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace')
-rw-r--r--ext/objspace/objspace_dump.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c
index e235c58..f9dda1a 100644
--- a/ext/objspace/objspace_dump.c
+++ b/ext/objspace/objspace_dump.c
@@ -105,7 +105,7 @@ static inline const char *
obj_type(VALUE obj)
{
switch (BUILTIN_TYPE(obj)) {
-#define CASE_TYPE(type) case T_##type: return #type; break
+#define CASE_TYPE(type) case T_##type: return #type
CASE_TYPE(NONE);
CASE_TYPE(NIL);
CASE_TYPE(OBJECT);
@@ -196,17 +196,17 @@ static const char *
imemo_name(int imemo)
{
switch(imemo) {
-#define TYPE_STR(t) case(imemo_##t): return #t; break;
- TYPE_STR(env)
- TYPE_STR(cref)
- TYPE_STR(svar)
- TYPE_STR(throw_data)
- TYPE_STR(ifunc)
- TYPE_STR(memo)
- TYPE_STR(ment)
- TYPE_STR(iseq)
- default:
- return "unknown";
+#define TYPE_STR(t) case(imemo_##t): return #t
+ TYPE_STR(env);
+ TYPE_STR(cref);
+ TYPE_STR(svar);
+ TYPE_STR(throw_data);
+ TYPE_STR(ifunc);
+ TYPE_STR(memo);
+ TYPE_STR(ment);
+ TYPE_STR(iseq);
+ default:
+ return "unknown";
#undef TYPE_STR
}
}
@@ -241,8 +241,8 @@ dump_object(VALUE obj, struct dump_config *dc)
switch (BUILTIN_TYPE(obj)) {
case T_NONE:
- dump_append(dc, "}\n");
- return;
+ dump_append(dc, "}\n");
+ return;
case T_NODE:
dump_append(dc, ", \"node_type\":\"%s\"", ruby_node_name(nd_type(obj)));