From e7996eb3cc1687d1f70ea8f78befddf821ad3ff0 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 17 Jun 2011 22:43:38 +0000 Subject: * 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 --- cont.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 81bad6acee..f5e6698751 100644 --- a/cont.c +++ b/cont.c @@ -10,6 +10,7 @@ **********************************************************************/ #include "ruby/ruby.h" +#include "internal.h" #include "vm_core.h" #include "gc.h" #include "eval_intern.h" @@ -126,7 +127,6 @@ static VALUE rb_eFiberError; NOINLINE(static VALUE cont_capture(volatile int *stat)); -void rb_thread_mark(rb_thread_t *th); #define THREAD_MUST_BE_RUNNING(th) do { \ if (!(th)->tag) rb_raise(rb_eThreadError, "not running thread"); \ } while (0) @@ -409,8 +409,6 @@ cont_new(VALUE klass) return cont; } -void rb_vm_stack_to_heap(rb_thread_t *th); - static VALUE cont_capture(volatile int *stat) { -- cgit v1.2.3