summaryrefslogtreecommitdiffstats
path: root/README.EXT
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 16:07:43 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 16:07:43 +0000
commitef171f8b2bcf0751ec93ac89137316895f02213f (patch)
tree5b8c48f01a0237ca4181490db4708944f3ca9127 /README.EXT
parent332a8ef72facb1e38f0de8647aa9e1cca7c8dcc4 (diff)
downloadruby-ef171f8b2bcf0751ec93ac89137316895f02213f.tar.gz
ruby-ef171f8b2bcf0751ec93ac89137316895f02213f.tar.xz
ruby-ef171f8b2bcf0751ec93ac89137316895f02213f.zip
* enumerator.c (yielder_yield_i): use rb_proc_new instead of
rb_iterate. [ruby-dev:38518] * README.EXT: rb_iterate is obsolete since 1.9; use rb_block_call instead. * README.EXT.ja: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r--README.EXT13
1 files changed, 12 insertions, 1 deletions
diff --git a/README.EXT b/README.EXT
index 667d55166..da0f6148f 100644
--- a/README.EXT
+++ b/README.EXT
@@ -1159,12 +1159,23 @@ Sets the value of the instance variable.
** Control Structure
- VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
+ VALUE rb_block_call(VALUE recv, ID mid, int argc, VALUE * argv,
+ VALUE (*func) (ANYARGS), VALUE data2)
+
+Calls a method on the recv, with the method name specified by the
+symbol mid, supplying func as the block. func will receive the
+value from yield as the first argument, data2 as the second, and
+argc/argv as the third/fourth arguments.
+
+ [OBSOLETE] VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
Calls the function func1, supplying func2 as the block. func1 will be
called with the argument arg1. func2 receives the value from yield as
the first argument, arg2 as the second argument.
+When rb_iterate is used in 1.9, func1 has to call some Ruby-level method.
+This function is obsolete since 1.9; use rb_block_call instead.
+
VALUE rb_yield(VALUE val)
Evaluates the block with value val.