mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cont.c (rb_fiber_m_yield): added. use this function
for Fiber#yield instead of rb_fiber_yield. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5aa850d260
commit
3efcb087a3
3 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 16 02:47:39 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* cont.c (rb_fiber_m_yield): added. use this function
|
||||
for Fiber#yield instead of rb_fiber_yield.
|
||||
|
||||
Thu Aug 16 00:36:52 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/tmpdir.rb (Dir.mktmpdir): new method. [ruby-dev:31416]
|
||||
|
|
8
cont.c
8
cont.c
|
@ -630,6 +630,12 @@ rb_fiber_yield(VALUE fib, int argc, VALUE *argv)
|
|||
return value;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
rb_fiber_m_yield(int argc, VALUE *argv, VALUE fib)
|
||||
{
|
||||
return rb_fiber_yield(fib, argc, argv);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
rb_fiber_prev(VALUE fib)
|
||||
{
|
||||
|
@ -676,7 +682,7 @@ Init_Cont(void)
|
|||
|
||||
rb_cFiber = rb_define_class("Fiber", rb_cObject);
|
||||
rb_undef_alloc_func(rb_cFiber);
|
||||
rb_define_method(rb_cFiber, "yield", rb_fiber_yield, -1);
|
||||
rb_define_method(rb_cFiber, "yield", rb_fiber_m_yield, -1);
|
||||
rb_define_method(rb_cFiber, "prev", rb_fiber_prev, 0);
|
||||
rb_define_method(rb_cFiber, "alive?", rb_fiber_alive_p, 0);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2007-08-15"
|
||||
#define RUBY_RELEASE_DATE "2007-08-16"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20070815
|
||||
#define RUBY_RELEASE_CODE 20070816
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2007
|
||||
#define RUBY_RELEASE_MONTH 8
|
||||
#define RUBY_RELEASE_DAY 15
|
||||
#define RUBY_RELEASE_DAY 16
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Reference in a new issue