diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 15:26:28 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-24 15:26:28 +0000 |
commit | 6bf7d3d8c08dbd96ec485bb856cb739139e720bc (patch) | |
tree | 25b681e65b65ea04b8748ba31cb8afb6e2f56d32 /thread.c | |
parent | b285d26a16c90f8e2d491592e793c3b40545aaf1 (diff) | |
download | ruby-6bf7d3d8c08dbd96ec485bb856cb739139e720bc.tar.gz |
* prelude.rb: added. run this script on startup.
* tool/compile_prelude.rb: compile prelude.rb to C string.
(prelude.rb -> prelude.c)
* common.mk: fix to build with prelude.c.
* inits.c (rb_call_inits): ditto.
* thread.c (Init_Thread): move definition of Mutex#synchronize
to prelude.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -2968,12 +2968,6 @@ Init_Thread(void) rb_define_method(rb_cMutex, "unlock", rb_mutex_unlock, 0); rb_define_method(rb_cMutex, "sleep", mutex_sleep, -1); - rb_iseq_eval(rb_iseq_compile( - rb_str_new2("class Mutex;" - " def synchronize; self.lock; yield; ensure; self.unlock; end;" - "end;"), - rb_str_new2(__FILE__), INT2FIX(__LINE__))); - recursive_key = rb_intern("__recursive_key__"); rb_eThreadError = rb_define_class("ThreadError", rb_eStandardError); |