mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fixup! vm_insnhelper.c: adjust indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5cc56f0d9b
commit
0013fdaaa5
1 changed files with 12 additions and 12 deletions
|
@ -3136,19 +3136,19 @@ vm_find_or_create_class_by_id(ID id,
|
||||||
rb_vm_defineclass_type_t type = VM_DEFINECLASS_TYPE(flags);
|
rb_vm_defineclass_type_t type = VM_DEFINECLASS_TYPE(flags);
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case VM_DEFINECLASS_TYPE_CLASS:
|
case VM_DEFINECLASS_TYPE_CLASS:
|
||||||
/* classdef returns class scope value */
|
/* classdef returns class scope value */
|
||||||
return vm_define_class(id, flags, cbase, super);
|
return vm_define_class(id, flags, cbase, super);
|
||||||
|
|
||||||
case VM_DEFINECLASS_TYPE_SINGLETON_CLASS:
|
case VM_DEFINECLASS_TYPE_SINGLETON_CLASS:
|
||||||
/* classdef returns class scope value */
|
/* classdef returns class scope value */
|
||||||
return rb_singleton_class(cbase);
|
return rb_singleton_class(cbase);
|
||||||
|
|
||||||
case VM_DEFINECLASS_TYPE_MODULE:
|
case VM_DEFINECLASS_TYPE_MODULE:
|
||||||
/* classdef returns class scope value */
|
/* classdef returns class scope value */
|
||||||
return vm_define_module(id, flags, cbase);
|
return vm_define_module(id, flags, cbase);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
rb_bug("unknown defineclass type: %d", (int)type);
|
rb_bug("unknown defineclass type: %d", (int)type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3268,11 +3268,11 @@ static OFFSET
|
||||||
vm_case_dispatch(CDHASH hash, OFFSET else_offset, VALUE key)
|
vm_case_dispatch(CDHASH hash, OFFSET else_offset, VALUE key)
|
||||||
{
|
{
|
||||||
switch (OBJ_BUILTIN_TYPE(key)) {
|
switch (OBJ_BUILTIN_TYPE(key)) {
|
||||||
case -1:
|
case -1:
|
||||||
case T_FLOAT:
|
case T_FLOAT:
|
||||||
case T_SYMBOL:
|
case T_SYMBOL:
|
||||||
case T_BIGNUM:
|
case T_BIGNUM:
|
||||||
case T_STRING:
|
case T_STRING:
|
||||||
if (BASIC_OP_UNREDEFINED_P(BOP_EQQ,
|
if (BASIC_OP_UNREDEFINED_P(BOP_EQQ,
|
||||||
SYMBOL_REDEFINED_OP_FLAG |
|
SYMBOL_REDEFINED_OP_FLAG |
|
||||||
INTEGER_REDEFINED_OP_FLAG |
|
INTEGER_REDEFINED_OP_FLAG |
|
||||||
|
@ -3677,9 +3677,9 @@ static VALUE
|
||||||
vm_opt_empty_p(VALUE recv)
|
vm_opt_empty_p(VALUE recv)
|
||||||
{
|
{
|
||||||
switch (vm_opt_length(recv, BOP_EMPTY_P)) {
|
switch (vm_opt_length(recv, BOP_EMPTY_P)) {
|
||||||
case Qundef: return Qundef;
|
case Qundef: return Qundef;
|
||||||
case INT2FIX(0): return Qtrue;
|
case INT2FIX(0): return Qtrue;
|
||||||
default: return Qfalse;
|
default: return Qfalse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue