diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 06:09:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-28 06:09:06 +0000 |
commit | 957d1ccdf91941e57a62eeb695cf79e1af87876a (patch) | |
tree | ca82878bbdd5d4bedb58bf7102b3513eb2d53f8d /eval.c | |
parent | 7c7d74365deaa41f3df5d7bb1969b477a3d937f4 (diff) | |
download | ruby-957d1ccdf91941e57a62eeb695cf79e1af87876a.tar.gz |
move fields to ec.
* vm_core.h (rb_thread_t): move root_lep, root_svar and ensure_list
to rb_execution_context_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -895,8 +895,8 @@ rb_ensure(VALUE (*b_proc)(ANYARGS), VALUE data1, VALUE (*e_proc)(ANYARGS), VALUE ensure_list.entry.marker = 0; ensure_list.entry.e_proc = e_proc; ensure_list.entry.data2 = data2; - ensure_list.next = th->ensure_list; - th->ensure_list = &ensure_list; + ensure_list.next = th->ec.ensure_list; + th->ec.ensure_list = &ensure_list; TH_PUSH_TAG(th); if ((state = EXEC_TAG()) == TAG_NONE) { result = (*b_proc) (data1); @@ -906,7 +906,7 @@ rb_ensure(VALUE (*b_proc)(ANYARGS), VALUE data1, VALUE (*e_proc)(ANYARGS), VALUE if (!NIL_P(errinfo) && !RB_TYPE_P(errinfo, T_OBJECT)) { th->errinfo = Qnil; } - th->ensure_list=ensure_list.next; + th->ec.ensure_list=ensure_list.next; (*ensure_list.entry.e_proc)(ensure_list.entry.data2); th->errinfo = errinfo; if (state) |