summaryrefslogtreecommitdiffstats
path: root/include/ruby/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 16:41:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-06 16:41:17 +0000
commit02a8c4dd0ef51e60dd4a17db4ebcc56560fb273d (patch)
treefe08b0c4a91dd1cdfd4b4b3cecc0be24b2a2b59d /include/ruby/ruby.h
parent0453dc68e4694830d1a34d65f8ff8dcc4321f453 (diff)
downloadruby-02a8c4dd0ef51e60dd4a17db4ebcc56560fb273d.tar.gz
ruby-02a8c4dd0ef51e60dd4a17db4ebcc56560fb273d.tar.xz
ruby-02a8c4dd0ef51e60dd4a17db4ebcc56560fb273d.zip
* 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. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r--include/ruby/ruby.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index ecf9088c7..893142167 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -760,6 +760,7 @@ RUBY_EXTERN VALUE rb_cCont;
RUBY_EXTERN VALUE rb_cDir;
RUBY_EXTERN VALUE rb_cData;
RUBY_EXTERN VALUE rb_cFalseClass;
+RUBY_EXTERN VALUE rb_cFiber;
RUBY_EXTERN VALUE rb_cFile;
RUBY_EXTERN VALUE rb_cFixnum;
RUBY_EXTERN VALUE rb_cFloat;