summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 22:43:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 22:43:38 +0000
commite7996eb3cc1687d1f70ea8f78befddf821ad3ff0 (patch)
treeec56eb86d91238755b2cfc180342fa495cc402e1 /vm.c
parentaba879a3f08cebd78ddd76aefceb6bafb8dbf907 (diff)
downloadruby-e7996eb3cc1687d1f70ea8f78befddf821ad3ff0.tar.gz
* internal.h: declare internal functions here.
* node.h: declare NODE dependent internal functions here. * iseq.h: declare rb_iseq_t dependent internal functions here. * vm_core.h: declare rb_thread_t dependent internal functions here. * bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c, enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c, iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y, proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c, thread.c, time.c, transcode.c, variable.c, vm.c, tool/compile_prelude.rb: don't declare internal functions declared in above headers. include above headers if required. Note that rb_thread_mark() was declared as void rb_thread_mark(rb_thread_t *th) in cont.c but defined as void rb_thread_mark(void *ptr) in vm.c. Now it is declared as the later in internal.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/vm.c b/vm.c
index f6a21c8b83..eacc6740e3 100644
--- a/vm.c
+++ b/vm.c
@@ -12,6 +12,7 @@
#include "ruby/vm.h"
#include "ruby/st.h"
#include "ruby/encoding.h"
+#include "internal.h"
#include "gc.h"
#include "vm_core.h"
@@ -1662,8 +1663,6 @@ thread_recycle_struct(void)
}
#endif
-void rb_gc_mark_machine_stack(rb_thread_t *th);
-
void
rb_thread_mark(void *ptr)
{
@@ -1866,8 +1865,6 @@ rb_thread_alloc(VALUE klass)
return self;
}
-VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
-
static void
vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval,
rb_num_t is_singleton, NODE *cref)
@@ -2151,9 +2148,6 @@ rb_vm_set_progname(VALUE filename)
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace *rb_objspace_alloc(void);
#endif
-void ruby_thread_init_stack(rb_thread_t *th);
-
-extern void Init_native_thread(void);
void
Init_BareVM(void)