ruby-cvs:20127
From: matz ruby-lang.org
Date: Tue, 7 Aug 2007 01:41:18 +0900 (JST)
Subject: [ruby-cvs:20127] Ruby:r12891 (trunk): * cont.c (rb_fiber_yield): change argument ordering. export.
matz 2007-08-07 01:41:17 +0900 (Tue, 07 Aug 2007)
New Revision: 12891
Modified files:
trunk/ChangeLog
trunk/cont.c
trunk/enumerator.c
trunk/include/ruby/intern.h
trunk/include/ruby/ruby.h
Log:
* cont.c (rb_fiber_yield): change argument ordering. export.
* cont.c (rb_fiber_current): export
* include/ruby/intern.h: export several functions from cont.c.
* enumerator.c (enumerator_next): new method to implement external
iterator (generator) using fiber.
* enumerator.c (enumerator_next_p): new method to check whether
any element is left in the generator sequence.
* enumerator.c (enumerator_rewind): a new method to rewind the
generator sequence.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/ruby.h?r1=12891&r2=12890
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/cont.c?r1=12891&r2=12890
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=12891&r2=12890
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=12891&r2=12890
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enumerator.c?r1=12891&r2=12890