summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-18 07:59:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-18 07:59:03 +0000
commit001212b901a7c41e5d6bea6055913e2dac9ce18b (patch)
treec236c0a9a78ab7b05c200efca309444973977f5d /vm_eval.c
parent440a6476f2405bd30e1148ceaba082427de5bd83 (diff)
vm_eval.c: for auto-indent
* vm_eval.c (rb_type_str): moved `case`s and semicolons so auto indentation works. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/vm_eval.c b/vm_eval.c
index ee17ef6..98acbb7 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -443,34 +443,34 @@ rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv,
const char *
rb_type_str(enum ruby_value_type type)
{
-#define type_case(t) case t: return #t;
+#define type_case(t) t: return #t
switch (type) {
- type_case(T_NONE)
- type_case(T_OBJECT)
- type_case(T_CLASS)
- type_case(T_MODULE)
- type_case(T_FLOAT)
- type_case(T_STRING)
- type_case(T_REGEXP)
- type_case(T_ARRAY)
- type_case(T_HASH)
- type_case(T_STRUCT)
- type_case(T_BIGNUM)
- type_case(T_FILE)
- type_case(T_DATA)
- type_case(T_MATCH)
- type_case(T_COMPLEX)
- type_case(T_RATIONAL)
- type_case(T_NIL)
- type_case(T_TRUE)
- type_case(T_FALSE)
- type_case(T_SYMBOL)
- type_case(T_FIXNUM)
- type_case(T_IMEMO)
- type_case(T_UNDEF)
- type_case(T_NODE)
- type_case(T_ICLASS)
- type_case(T_ZOMBIE)
+ case type_case(T_NONE);
+ case type_case(T_OBJECT);
+ case type_case(T_CLASS);
+ case type_case(T_MODULE);
+ case type_case(T_FLOAT);
+ case type_case(T_STRING);
+ case type_case(T_REGEXP);
+ case type_case(T_ARRAY);
+ case type_case(T_HASH);
+ case type_case(T_STRUCT);
+ case type_case(T_BIGNUM);
+ case type_case(T_FILE);
+ case type_case(T_DATA);
+ case type_case(T_MATCH);
+ case type_case(T_COMPLEX);
+ case type_case(T_RATIONAL);
+ case type_case(T_NIL);
+ case type_case(T_TRUE);
+ case type_case(T_FALSE);
+ case type_case(T_SYMBOL);
+ case type_case(T_FIXNUM);
+ case type_case(T_IMEMO);
+ case type_case(T_UNDEF);
+ case type_case(T_NODE);
+ case type_case(T_ICLASS);
+ case type_case(T_ZOMBIE);
case T_MASK: break;
}
#undef type_case