mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
insns.def: adjust indent
* insns.def (getlocal, defined): adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
69b716111f
commit
a00b29a67f
1 changed files with 3 additions and 4 deletions
|
@ -61,7 +61,7 @@ getlocal
|
||||||
VALUE *ep = GET_EP();
|
VALUE *ep = GET_EP();
|
||||||
|
|
||||||
for (i = 0; i < lev; i++) {
|
for (i = 0; i < lev; i++) {
|
||||||
ep = GET_PREV_EP(ep);
|
ep = GET_PREV_EP(ep);
|
||||||
}
|
}
|
||||||
val = *(ep - idx);
|
val = *(ep - idx);
|
||||||
}
|
}
|
||||||
|
@ -714,15 +714,14 @@ defined
|
||||||
expr_type = DEFINED_GVAR;
|
expr_type = DEFINED_GVAR;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DEFINED_CVAR:
|
case DEFINED_CVAR: {
|
||||||
{
|
|
||||||
NODE *cref = rb_vm_get_cref(GET_ISEQ(), GET_EP());
|
NODE *cref = rb_vm_get_cref(GET_ISEQ(), GET_EP());
|
||||||
klass = vm_get_cvar_base(cref, GET_CFP());
|
klass = vm_get_cvar_base(cref, GET_CFP());
|
||||||
if (rb_cvar_defined(klass, SYM2ID(obj))) {
|
if (rb_cvar_defined(klass, SYM2ID(obj))) {
|
||||||
expr_type = DEFINED_CVAR;
|
expr_type = DEFINED_CVAR;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DEFINED_CONST:
|
case DEFINED_CONST:
|
||||||
klass = v;
|
klass = v;
|
||||||
if (vm_get_ev_const(th, GET_ISEQ(), klass, SYM2ID(obj), 1)) {
|
if (vm_get_ev_const(th, GET_ISEQ(), klass, SYM2ID(obj), 1)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue