From 33163ad123a14488cf163c274d1af56c8e5e7bcb Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 19 Mar 2007 03:58:57 +0000 Subject: * regparse.c, etc.: K&R to ANSI code cleanup patch from Stefan Huehner . [ruby-core:10543] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index ab1863f1b1..8c689bd5d1 100644 --- a/thread.c +++ b/thread.c @@ -53,7 +53,6 @@ #define THREAD_DEBUG 0 #endif -static void sleep_for_polling(); 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); @@ -62,7 +61,7 @@ struct timeval rb_time_interval(VALUE); static int rb_thread_dead(rb_thread_t *th); void rb_signal_exec(rb_thread_t *th, int sig); -void rb_disable_interrupt(); +void rb_disable_interrupt(void); static VALUE eKillSignal = INT2FIX(0); static VALUE eTerminateSignal = INT2FIX(1); @@ -595,7 +594,7 @@ rb_thread_sleep(int sec) } void -rb_thread_schedule() +rb_thread_schedule(void) { thread_debug("rb_thread_schedule\n"); if (!rb_thread_alone()) { @@ -722,7 +721,7 @@ rb_thread_execute_interrupts(rb_thread_t *th) void -rb_gc_mark_threads() +rb_gc_mark_threads(void) { /* TODO: remove */ } @@ -905,7 +904,7 @@ rb_thread_s_kill(VALUE obj, VALUE th) */ static VALUE -rb_thread_exit() +rb_thread_exit(void) { return rb_thread_kill(GET_THREAD()->self); } @@ -1094,7 +1093,7 @@ rb_thread_s_main(VALUE klass) */ static VALUE -rb_thread_s_abort_exc() +rb_thread_s_abort_exc(void) { return GET_THREAD()->vm->thread_abort_on_exception ? Qtrue : Qfalse; } @@ -1980,8 +1979,7 @@ thgroup_list(VALUE group) */ VALUE -thgroup_enclose(group) - VALUE group; +thgroup_enclose(VALUE group) { struct thgroup *data; @@ -2501,7 +2499,7 @@ Init_Thread(void) } VALUE -is_ruby_native_thread() +is_ruby_native_thread(void) { return Qtrue; } -- cgit v1.2.3