aboutsummaryrefslogtreecommitdiffstats
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:41:08 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:41:08 +0000
commitbd33705b0676a42bfd1434bf2560af36ce446ed8 (patch)
treebd940fa0bbfcb5b81bdd943ae9792a15617ee0fa /eval_intern.h
parent6aac53de0c83437190ca17bd4aa129056f508f12 (diff)
downloadruby-bd33705b0676a42bfd1434bf2560af36ce446ed8.tar.gz
`th` -> `ec` for rb_longjmp() and related functions.
* eval.c: `th` -> `ec` for the following functions: * rb_longjmp * exc_setup_message * setup_exception * errinfo_place * eval.c (get_thread_errinfo): rename to get_ec_errinfo() and accepts `ec`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 1569bfc01a..ef82c0fe2d 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -183,9 +183,9 @@ rb_threadptr_tag_state(const rb_execution_context_t *ec)
return state;
}
-NORETURN(static inline void rb_ec_tag_jump(rb_execution_context_t *ec, enum ruby_tag_type st));
+NORETURN(static inline void rb_ec_tag_jump(const rb_execution_context_t *ec, enum ruby_tag_type st));
static inline void
-rb_ec_tag_jump(rb_execution_context_t *ec, enum ruby_tag_type st)
+rb_ec_tag_jump(const rb_execution_context_t *ec, enum ruby_tag_type st)
{
ec->tag->state = st;
ruby_longjmp(ec->tag->buf, 1);