summaryrefslogtreecommitdiff
path: root/vm_core.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 /vm_core.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 'vm_core.h')
-rw-r--r--vm_core.h36
1 files changed, 21 insertions, 15 deletions
diff --git a/vm_core.h b/vm_core.h
index a33a298b3e..df8038ff27 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -586,7 +586,7 @@ typedef rb_control_frame_t *
/* VM related object allocate functions */
/* TODO: should be static functions */
-VALUE rb_thread_alloc(VALUE klass);
+VALUE rb_thread_alloc(const VALUE klass);
VALUE rb_proc_alloc(VALUE klass);
/* for debug */
@@ -598,22 +598,28 @@ void rb_vm_bugreport(void);
/* functions about thread/vm execution */
-VALUE rb_iseq_eval(VALUE iseqval);
+VALUE rb_iseq_eval(const VALUE iseqval);
void rb_enable_interrupt(void);
void rb_disable_interrupt(void);
-int rb_thread_method_id_and_class(rb_thread_t *th, ID *idp, VALUE *klassp);
-
-VALUE vm_eval_body(rb_thread_t *th);
-VALUE vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self,
- int argc, const VALUE *argv, rb_block_t *blockptr);
-VALUE vm_make_proc(rb_thread_t *th, rb_control_frame_t *cfp, rb_block_t *block);
-VALUE vm_make_env_object(rb_thread_t *th, rb_control_frame_t *cfp);
-VALUE vm_backtrace(rb_thread_t *, int);
-
-VALUE vm_yield(rb_thread_t *th, int argc, const VALUE *argv);
-VALUE vm_yield_with_cref(rb_thread_t *th, int argc, const VALUE *argv, NODE *cref);
-VALUE vm_call0(rb_thread_t *th, VALUE klass, VALUE recv, VALUE id, ID oid,
- int argc, const VALUE *argv, NODE *body, int nosuper);
+int rb_thread_method_id_and_class(rb_thread_t * const th, ID * const idp,
+ VALUE * const klassp);
+
+VALUE vm_eval_body(rb_thread_t * const th);
+VALUE vm_invoke_proc(rb_thread_t *const th, rb_proc_t * const proc,
+ const VALUE self, const int argc, const VALUE * const argv,
+ rb_block_t * const blockptr);
+VALUE vm_make_proc(rb_thread_t * const th, rb_control_frame_t *const cfp,
+ rb_block_t * const block);
+VALUE vm_make_env_object(rb_thread_t * const th, rb_control_frame_t *cfp);
+VALUE vm_backtrace(rb_thread_t * const, int);
+
+VALUE vm_yield(rb_thread_t * const th, const int argc,
+ const VALUE * const argv);
+VALUE vm_yield_with_cref(rb_thread_t * const th, const int argc,
+ const VALUE * const argv, NODE * const cref);
+VALUE vm_call0(rb_thread_t * const th, const VALUE klass, const VALUE recv,
+ const VALUE id, const ID oid, const int argc,
+ const VALUE * const argv, NODE *const body, const int nosuper);
int vm_get_sourceline(rb_control_frame_t *);