mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_core.h (VM_ENV_LOCAL_P): return truthy (0 or not) value.
* vm.c (rb_vm_make_proc_lambda): use VM_ENV_ESCAPED_P() macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b35cf454a
commit
78c1041a82
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Jul 29 04:23:08 2016 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm_core.h (VM_ENV_LOCAL_P): return truthy (0 or not) value.
|
||||||
|
|
||||||
|
* vm.c (rb_vm_make_proc_lambda): use VM_ENV_ESCAPED_P() macro.
|
||||||
|
|
||||||
Fri Jul 29 03:49:04 2016 Koichi Sasada <ko1@atdot.net>
|
Fri Jul 29 03:49:04 2016 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm.c, internal.h: remove RubyVM::Env class and all of env objects
|
* vm.c, internal.h: remove RubyVM::Env class and all of env objects
|
||||||
|
|
2
vm.c
2
vm.c
|
@ -865,7 +865,7 @@ rb_vm_make_proc_lambda(rb_thread_t *th, const struct rb_captured_block *captured
|
||||||
{
|
{
|
||||||
VALUE procval;
|
VALUE procval;
|
||||||
|
|
||||||
if (!VM_ENV_FLAGS(captured->ep, VM_ENV_FLAG_ESCAPED)) {
|
if (!VM_ENV_ESCAPED_P(captured->ep)) {
|
||||||
rb_control_frame_t *cfp = VM_CAPTURED_BLOCK_TO_CFP(captured);
|
rb_control_frame_t *cfp = VM_CAPTURED_BLOCK_TO_CFP(captured);
|
||||||
vm_make_env_object(th, cfp);
|
vm_make_env_object(th, cfp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1039,7 +1039,7 @@ VM_FRAME_TYPE(const rb_control_frame_t *cfp)
|
||||||
static inline int
|
static inline int
|
||||||
VM_ENV_LOCAL_P(const VALUE *ep)
|
VM_ENV_LOCAL_P(const VALUE *ep)
|
||||||
{
|
{
|
||||||
return VM_ENV_FLAGS(ep, VM_ENV_FLAG_LOCAL) ? 1 : 0;
|
return VM_ENV_FLAGS(ep, VM_ENV_FLAG_LOCAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline const VALUE *
|
static inline const VALUE *
|
||||||
|
|
Loading…
Reference in a new issue