summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-24 15:42:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-24 15:42:41 +0000
commit97ba019c9410ccb5ec76f6b54fd2e140b7583038 (patch)
treef3d3c428b2fa8b14e801896c25d5d78a4e4cd91d /eval_intern.h
parenta5c2d584284e2b137b1d4d06574470a971c9087e (diff)
* vm.c: some refactoring.
* rename th_* to vm_*. * remove unused variables functions. * add prototypes. * blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h, eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y, proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 5d9195d..a18fe59 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -196,18 +196,18 @@ NORETURN(void rb_fiber_start(void));
NORETURN(void rb_raise_jump _((VALUE)));
NORETURN(void print_undef _((VALUE, ID)));
-NORETURN(void th_localjump_error(const char *, VALUE, int));
-NORETURN(void th_jump_tag_but_local_jump(int, VALUE));
+NORETURN(void vm_localjump_error(const char *, VALUE, int));
+NORETURN(void vm_jump_tag_but_local_jump(int, VALUE));
-VALUE th_compile(rb_thread_t *th, VALUE str, VALUE file, VALUE line);
+VALUE vm_compile(rb_thread_t *th, VALUE str, VALUE file, VALUE line);
-NODE *th_get_cref(rb_thread_t *th, rb_iseq_t *iseq, rb_control_frame_t *cfp);
-NODE *th_cref_push(rb_thread_t *th, VALUE, int);
-NODE *th_set_special_cref(rb_thread_t *th, VALUE *lfp, NODE * cref_stack);
-VALUE th_make_jump_tag_but_local_jump(int state, VALUE val);
+NODE *vm_get_cref(rb_thread_t *th, rb_iseq_t *iseq, rb_control_frame_t *cfp);
+NODE *vm_cref_push(rb_thread_t *th, VALUE, int);
+NODE *vm_set_special_cref(rb_thread_t *th, VALUE *lfp, NODE * cref_stack);
+VALUE vm_make_jump_tag_but_local_jump(int state, VALUE val);
static rb_control_frame_t *
-th_get_ruby_level_cfp(rb_thread_t *th, rb_control_frame_t *cfp)
+vm_get_ruby_level_cfp(rb_thread_t *th, rb_control_frame_t *cfp)
{
while (!RUBY_VM_CONTROL_FRAME_STACK_OVERFLOW_P(th, cfp)) {
if (RUBY_VM_NORMAL_ISEQ_P(cfp->iseq)) {
@@ -222,17 +222,17 @@ static inline NODE *
ruby_cref()
{
rb_thread_t *th = GET_THREAD();
- rb_control_frame_t *cfp = th_get_ruby_level_cfp(th, th->cfp);
- return th_get_cref(th, cfp->iseq, cfp);
+ rb_control_frame_t *cfp = vm_get_ruby_level_cfp(th, th->cfp);
+ return vm_get_cref(th, cfp->iseq, cfp);
}
-VALUE th_get_cbase(rb_thread_t *th);
+VALUE vm_get_cbase(rb_thread_t *th);
VALUE rb_obj_is_proc(VALUE);
void rb_vm_check_redefinition_opt_method(NODE *node);
VALUE rb_vm_call_cfunc(VALUE recv, VALUE (*func)(VALUE), VALUE arg, rb_block_t *blockptr, VALUE filename);
void rb_thread_terminate_all(void);
-#define ruby_cbase() th_get_cbase(GET_THREAD())
+#define ruby_cbase() vm_get_cbase(GET_THREAD())
/* tracer */