summaryrefslogtreecommitdiff
path: root/thread.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 /thread.c
parentaba879a3f08cebd78ddd76aefceb6bafb8dbf907 (diff)
* 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 'thread.c')
-rw-r--r--thread.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/thread.c b/thread.c
index 34068b0300..4ea9f7e09c 100644
--- a/thread.c
+++ b/thread.c
@@ -66,7 +66,6 @@ static void sleep_timeval(rb_thread_t *th, struct timeval time);
static void sleep_wait_for_interrupt(rb_thread_t *th, double sleepsec);
static void sleep_forever(rb_thread_t *th, int nodeadlock);
static double timeofday(void);
-struct timeval rb_time_interval(VALUE);
static int rb_threadptr_dead(rb_thread_t *th);
static void rb_check_deadlock(rb_vm_t *vm);
@@ -409,7 +408,6 @@ thread_cleanup_func(void *th_ptr, int atfork)
extern void ruby_error_print(void);
static VALUE rb_threadptr_raise(rb_thread_t *, int, VALUE *);
-void rb_thread_recycle_stack_release(VALUE *);
void
ruby_thread_init_stack(rb_thread_t *th)
@@ -997,8 +995,6 @@ rb_thread_interrupted(VALUE thval)
return RUBY_VM_INTERRUPTED(th);
}
-struct timeval rb_time_timeval(VALUE);
-
void
rb_thread_sleep(int sec)
{
@@ -2951,8 +2947,6 @@ rb_gc_save_machine_context(rb_thread_t *th)
*
*/
-int rb_get_next_signal(void);
-
void
rb_threadptr_check_signal(rb_thread_t *mth)
{
@@ -4024,7 +4018,6 @@ enum {
};
static VALUE thread_suppress_tracing(rb_thread_t *th, int ev, VALUE (*func)(VALUE, int), VALUE arg, int always);
-VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always);
struct event_call_args {
rb_thread_t *th;
@@ -4562,8 +4555,6 @@ thread_suppress_tracing(rb_thread_t *th, int ev, VALUE (*func)(VALUE, int), VALU
return result;
}
-VALUE rb_thread_backtrace(VALUE thval);
-
/*
* call-seq:
* thr.backtrace -> array