summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-22 06:22:41 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-22 06:22:41 +0000
commit477c0db2bdca336b498e92708d7c99479860f16e (patch)
tree5199f84f251ddb6064c9af898356313fb21dcd3c /eval_intern.h
parent00e28c26a77b2141df351f646fa4de5e6cca1864 (diff)
* eval_intern.h, vm_core.h, include/ruby/intern.h, include/ruby/ruby.h,
vm.c: need to add const to prototypes, of course. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/eval_intern.h b/eval_intern.h
index d494982..0b4592b 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -222,12 +222,12 @@ NORETURN(void rb_fiber_start(void));
NORETURN(void rb_raise_jump(VALUE));
NORETURN(void rb_print_undef(VALUE, ID, int));
-NORETURN(void vm_localjump_error(const char *, VALUE, int));
-NORETURN(void vm_jump_tag_but_local_jump(int, VALUE));
+NORETURN(void vm_localjump_error(const char * const, const VALUE, const int));
+NORETURN(void vm_jump_tag_but_local_jump(const int, const VALUE));
-NODE *vm_cref_push(rb_thread_t *th, VALUE, int);
+NODE *vm_cref_push(rb_thread_t * const th, const VALUE, const 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);
+VALUE vm_make_jump_tag_but_local_jump(const int state, VALUE val);
NODE *ruby_cref(void);
@@ -244,10 +244,12 @@ vm_get_ruby_level_cfp(rb_thread_t *th, rb_control_frame_t *cfp)
}
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_vm_check_redefinition_opt_method(NODE * const node);
+VALUE rb_vm_call_cfunc(const VALUE recv, VALUE (* const func)(VALUE),
+ const VALUE arg, rb_block_t * const blockptr,
+ const VALUE filename);
void rb_thread_terminate_all(void);
-void rb_vm_set_eval_stack(rb_thread_t *, VALUE iseq, NODE *cref);
+void rb_vm_set_eval_stack(rb_thread_t * const, const VALUE iseq, NODE * const cref);
VALUE rb_vm_top_self();
VALUE rb_vm_cbase(void);