summaryrefslogtreecommitdiff
path: root/yarvcore.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-08 06:37:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-08 06:37:46 +0000
commit9c574383a430c815406fb343e9adba18e348b5a3 (patch)
tree4c4a826810bfa165017a86b763bc716e24195981 /yarvcore.c
parent522f948a0ce5caaf3a44c06045a439c190d8f861 (diff)
* blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h: fix typo (rb_thead_t -> rb_thread_t). * eval_intern.h: remove unused definitions. * common.mk: fix around vm_opts.h path and remove harmful argument passed to insns2vm.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
-rw-r--r--yarvcore.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/yarvcore.c b/yarvcore.c
index ca86919a63..3acbfab19b 100644
--- a/yarvcore.c
+++ b/yarvcore.c
@@ -74,7 +74,7 @@ unsigned long yarvGlobalStateVersion = 1;
/* YARVCore */
/************/
-rb_thead_t *yarvCurrentThread = 0;
+rb_thread_t *yarvCurrentThread = 0;
rb_vm_t *theYarvVM = 0;
static VALUE yarvVMArray = Qnil;
@@ -100,7 +100,7 @@ yarvcore_eval_iseq(VALUE iseq)
}
static VALUE
-th_compile_from_node(rb_thead_t *th, NODE * node, VALUE file)
+th_compile_from_node(rb_thread_t *th, NODE * node, VALUE file)
{
VALUE iseq;
if (th->base_block) {
@@ -118,7 +118,7 @@ th_compile_from_node(rb_thead_t *th, NODE * node, VALUE file)
}
VALUE
-th_compile(rb_thead_t *th, VALUE str, VALUE file, VALUE line)
+th_compile(rb_thread_t *th, VALUE str, VALUE file, VALUE line)
{
NODE *node = (NODE *) compile_string(str, file, line);
return th_compile_from_node(th, (NODE *) node, file);
@@ -211,7 +211,7 @@ vm_init2(rb_vm_t *vm)
static void
thread_free(void *ptr)
{
- rb_thead_t *th;
+ rb_thread_t *th;
FREE_REPORT_ENTER("thread");
if (ptr) {
@@ -245,12 +245,12 @@ thread_free(void *ptr)
FREE_REPORT_LEAVE("thread");
}
-void yarv_machine_stack_mark(rb_thead_t *th);
+void yarv_machine_stack_mark(rb_thread_t *th);
static void
thread_mark(void *ptr)
{
- rb_thead_t *th = NULL;
+ rb_thread_t *th = NULL;
MARK_REPORT_ENTER("thread");
if (ptr) {
th = ptr;
@@ -298,16 +298,16 @@ static VALUE
thread_alloc(VALUE klass)
{
VALUE volatile obj;
- rb_thead_t *th;
- obj = Data_Make_Struct(klass, rb_thead_t,
+ rb_thread_t *th;
+ obj = Data_Make_Struct(klass, rb_thread_t,
thread_mark, thread_free, th);
return obj;
}
static void
-th_init2(rb_thead_t *th)
+th_init2(rb_thread_t *th)
{
- MEMZERO(th, rb_thead_t, 1);
+ MEMZERO(th, rb_thread_t, 1);
/* allocate thread stack */
th->stack = ALLOC_N(VALUE, RUBY_VM_THREAD_STACK_SIZE);
@@ -336,7 +336,7 @@ th_init2(rb_thead_t *th)
}
static void
-th_init(rb_thead_t *th)
+th_init(rb_thread_t *th)
{
th_init2(th);
}
@@ -344,7 +344,7 @@ th_init(rb_thead_t *th)
static VALUE
thread_init(VALUE self)
{
- rb_thead_t *th;
+ rb_thread_t *th;
rb_vm_t *vm = GET_THREAD()->vm;
GetThreadPtr(self, th);
@@ -514,7 +514,7 @@ Init_VM(void)
VALUE thval;
rb_vm_t *vm;
- rb_thead_t *th;
+ rb_thread_t *th;
vm = theYarvVM;
xfree(RDATA(vmval)->data);
@@ -548,7 +548,7 @@ Init_yarv(void)
{
/* VM bootstrap: phase 1 */
rb_vm_t *vm = ALLOC(rb_vm_t);
- rb_thead_t *th = ALLOC(rb_thead_t);
+ rb_thread_t *th = ALLOC(rb_thread_t);
vm_init2(vm);
theYarvVM = vm;