From 3453b2bd0e186788bb81deff5d723cf48e10881f Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 20 Nov 2007 10:47:53 +0000 Subject: * gc.h, vm_core.h: decl of rb_gc_save_machine_context() should be at vm_core.h. * include/ruby/ruby.h, intern.h: remove type rb_thread_t. * include/ruby/intern.h: change rb_unblock_function_t, rb_unblock_function_t. * file.c, process.c: apply above changes. * thread.c, thread_pthread.ci, thread_win32.ci: ditto. * io.c: support blocking open (2). [ruby-core:13614] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index a605cadb98..4cf4e365a2 100644 --- a/vm_core.h +++ b/vm_core.h @@ -360,6 +360,8 @@ struct rb_vm_trap_tag { #define RUBY_VM_VALUE_CACHE_SIZE 0x1000 #define USE_VALUE_CACHE 0 +typedef struct rb_thread_struct rb_thread_t; + struct rb_thread_struct { VALUE self; @@ -605,6 +607,8 @@ VALUE vm_call0(rb_thread_t *th, VALUE klass, VALUE recv, VALUE id, ID oid, int vm_get_sourceline(rb_control_frame_t *); +NOINLINE(void rb_gc_save_machine_context(rb_thread_t *)); + RUBY_EXTERN VALUE sysstack_error; /* for thread */ -- cgit v1.2.3