summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-12 01:19:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-12 01:19:18 +0000
commit0fcf8e17aaea1b5562a89c3aed24c2e722b38a66 (patch)
tree57d520f3becfea770d960e0a26eda60b3db104a5 /thread.c
parent2e4f2aaaf0e9e245db7f5d2596b4aef4ec0406f8 (diff)
* thread_pthread.ci (thread_start_func_2): not use a directive inside
a macro argument. [ruby-talk:258763] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/thread.c b/thread.c
index 9174b533eb..72039827f9 100644
--- a/thread.c
+++ b/thread.c
@@ -137,6 +137,12 @@ rb_thread_s_debug_set(VALUE self, VALUE val)
#define thread_debug if(0)printf
#endif
+#ifndef __ia64
+#define thread_start_func_2(th, st, rst) thread_start_func_2(th, st)
+#endif
+NOINLINE(static int thread_start_func_2(rb_thread_t *th, VALUE *stack_start,
+ VALUE *register_stack_start));
+
#if defined(_WIN32)
#include "thread_win32.ci"
@@ -272,11 +278,7 @@ thread_cleanup_func(void *th_ptr)
}
static int
-thread_start_func_2(rb_thread_t *th, VALUE *stack_start
-#ifdef __ia64
- , VALUE *register_stack_start
-#endif
-)
+thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_start)
{
int state;
VALUE args = th->first_args;