[前][次][番号順一覧][スレッド一覧]

ruby-changes:48580

From: ko1 <ko1@a...>
Date: Tue, 7 Nov 2017 17:01:31 +0900 (JST)
Subject: [ruby-changes:48580] ko1:r60695 (trunk): `rb_execution_context_t *` should not be `th`

ko1	2017-11-07 17:01:26 +0900 (Tue, 07 Nov 2017)

  New Revision: 60695

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60695

  Log:
    `rb_execution_context_t *` should not be `th`

  Modified files:
    trunk/eval_intern.h
    trunk/vm_core.h
    trunk/vm_insnhelper.c
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 60694)
+++ vm_insnhelper.c	(revision 60695)
@@ -2771,7 +2771,7 @@ FUNC_FASTCALL(rb_vm_opt_struct_aref)(rb_ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2771
 }
 
 rb_control_frame_t *
-FUNC_FASTCALL(rb_vm_opt_struct_aset)(rb_execution_context_t *th, rb_control_frame_t *reg_cfp)
+FUNC_FASTCALL(rb_vm_opt_struct_aset)(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp)
 {
     rb_struct_aset(GET_SELF(), TOPN(0), TOPN(1));
     return reg_cfp;
Index: eval_intern.h
===================================================================
--- eval_intern.h	(revision 60694)
+++ eval_intern.h	(revision 60695)
@@ -285,7 +285,7 @@ enum { https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L285
 #define rb_ec_raised_p(ec, f)    (((ec)->raised_flag & (f)) != 0)
 #define rb_ec_raised_clear(ec)    ((ec)->raised_flag = 0)
 int rb_ec_set_raised(rb_execution_context_t *ec);
-int rb_ec_reset_raised(rb_execution_context_t *th);
+int rb_ec_reset_raised(rb_execution_context_t *ec);
 int rb_ec_stack_check(rb_execution_context_t *ec);
 
 VALUE rb_f_eval(int argc, const VALUE *argv, VALUE self);
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 60694)
+++ vm_core.h	(revision 60695)
@@ -1503,7 +1503,7 @@ void rb_ec_setup_exception(const rb_exec https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1503
 VALUE rb_vm_invoke_proc(rb_execution_context_t *ec, rb_proc_t *proc, int argc, const VALUE *argv, VALUE block_handler);
 VALUE rb_vm_make_proc_lambda(const rb_execution_context_t *ec, const struct rb_captured_block *captured, VALUE klass, int8_t is_lambda);
 VALUE rb_vm_make_proc(const rb_execution_context_t *ec, const struct rb_captured_block *captured, VALUE klass);
-VALUE rb_vm_make_binding(const rb_execution_context_t *th, const rb_control_frame_t *src_cfp);
+VALUE rb_vm_make_binding(const rb_execution_context_t *ec, const rb_control_frame_t *src_cfp);
 VALUE rb_vm_env_local_variables(const rb_env_t *env);
 const rb_env_t *rb_vm_env_prev_env(const rb_env_t *env);
 const VALUE *rb_binding_add_dynavars(VALUE bindval, rb_binding_t *bind, int dyncount, const ID *dynvars);
@@ -1542,7 +1542,7 @@ rb_vm_living_threads_remove(rb_vm_t *vm, https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1542
 
 typedef int rb_backtrace_iter_func(void *, VALUE, int, VALUE);
 rb_control_frame_t *rb_vm_get_ruby_level_next_cfp(const rb_execution_context_t *ec, const rb_control_frame_t *cfp);
-rb_control_frame_t *rb_vm_get_binding_creatable_next_cfp(const rb_execution_context_t *th, const rb_control_frame_t *cfp);
+rb_control_frame_t *rb_vm_get_binding_creatable_next_cfp(const rb_execution_context_t *ec, const rb_control_frame_t *cfp);
 int rb_vm_get_sourceline(const rb_control_frame_t *);
 VALUE rb_name_err_mesg_new(VALUE mesg, VALUE recv, VALUE method);
 void rb_vm_stack_to_heap(rb_execution_context_t *ec);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]