diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-27 14:52:00 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-27 14:52:00 +0000 |
commit | cd72ed32cc9b3b9a1fcb314d9d9c91edd11d0bfb (patch) | |
tree | 6fa1f7365b8b462bd91293529bd9bd7f45682148 | |
parent | 1aa54c6db6a10bf671a80eddf93630fbbea4f810 (diff) | |
download | ruby-cd72ed32cc9b3b9a1fcb314d9d9c91edd11d0bfb.tar.gz |
* win32/win32.c: remove unused functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win32/win32.c | 54 |
2 files changed, 4 insertions, 54 deletions
@@ -1,3 +1,7 @@ +Wed Jun 27 23:51:33 2007 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/win32.c: remove unused functions. + Wed Jun 27 20:46:05 2007 NAKAMURA Usaku <usa@ruby-lang.org> * include/ruby/win32.h, win32/Makefile.sub, win32/configure.bat, diff --git a/win32/win32.c b/win32/win32.c index 819f214d5f..4f85436810 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3608,60 +3608,6 @@ rb_w32_times(struct tms *tmbuf) #define yield_once() Sleep(0) #define yield_until(condition) do yield_once(); while (!(condition)) -struct handler_arg_t { - void (*handler)(int); - int arg; - int status; - int finished; - HANDLE handshake; -}; - -static void -rb_w32_call_handler(struct handler_arg_t* h) -{ - int status; - RUBY_CRITICAL(rb_protect((VALUE (*)(VALUE))h->handler, (VALUE)h->arg, &h->status); - status = h->status; - SetEvent(h->handshake)); - if (status) { - rb_jump_tag(status); - } - h->finished = 1; - yield_until(0); -} - -static struct handler_arg_t * -setup_handler(struct handler_arg_t *harg, int arg, void (*handler)(int), - HANDLE handshake) -{ - harg->handler = handler; - harg->arg = arg; - harg->status = 0; - harg->finished = 0; - harg->handshake = handshake; - return harg; -} - -static void -setup_call(CONTEXT* ctx, struct handler_arg_t *harg) -{ -#ifdef _M_IX86 - DWORD *esp = (DWORD *)ctx->Esp; - *--esp = (DWORD)harg; - *--esp = ctx->Eip; - ctx->Esp = (DWORD)esp; - ctx->Eip = (DWORD)rb_w32_call_handler; -#elif defined(_M_AMD64) - DWORD64 *rsp = (DWORD64 *)ctx->Rsp; - *--rsp = (DWORD64)harg; - *--rsp = ctx->Rip; - ctx->Rsp = (DWORD64)rsp; - ctx->Rip = (DWORD64)rb_w32_call_handler; -#else !defined(_WIN32_WCE) -#error unsupported processor -#endif -} - static void catch_interrupt(void) { |