fix indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d1a3f716e9
commit
c722f8ad1d
10
proc.c
10
proc.c
@ -371,12 +371,12 @@ get_local_variable_ptr(VALUE envval, ID lid)
|
|||||||
iseq = env->block.iseq;
|
iseq = env->block.iseq;
|
||||||
|
|
||||||
if (RUBY_VM_NORMAL_ISEQ_P(iseq)) {
|
if (RUBY_VM_NORMAL_ISEQ_P(iseq)) {
|
||||||
for (i=0; i<iseq->local_table_size; i++) {
|
for (i=0; i<iseq->local_table_size; i++) {
|
||||||
if (iseq->local_table[i] == lid) {
|
if (iseq->local_table[i] == lid) {
|
||||||
return &env->env[i];
|
return &env->env[i];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -2531,7 +2531,7 @@ proc_binding(VALUE self)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rb_raise(rb_eArgError, "Can't create Binding from C level Proc");
|
rb_raise(rb_eArgError, "Can't create Binding from C level Proc");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bindval = rb_binding_alloc(rb_cBinding);
|
bindval = rb_binding_alloc(rb_cBinding);
|
||||||
|
4
vm.c
4
vm.c
@ -779,8 +779,8 @@ rb_binding_add_dynavars(rb_binding_t *bind, int dyncount, const ID *dynvars)
|
|||||||
node = NEW_NODE(NODE_SCOPE, dyns, 0, 0);
|
node = NEW_NODE(NODE_SCOPE, dyns, 0, 0);
|
||||||
|
|
||||||
if (base_iseq) {
|
if (base_iseq) {
|
||||||
iseqval = rb_iseq_new(node, base_iseq->location.label, path, path,
|
iseqval = rb_iseq_new(node, base_iseq->location.label, path, path,
|
||||||
base_iseq->self, ISEQ_TYPE_EVAL);
|
base_iseq->self, ISEQ_TYPE_EVAL);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
VALUE tempstr = rb_str_new2("<temp>");
|
VALUE tempstr = rb_str_new2("<temp>");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user