diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-21 18:03:34 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-21 18:03:34 +0000 |
commit | 3befc304b5a0297ca7a618cc4775beb71e5ce644 (patch) | |
tree | 41db95e6cc7c88e41ba2c250c75d597392683893 | |
parent | 2527936cfcbe042678883ee5a87bfb6984702deb (diff) |
Fix signature of rb_ensure and rb_rescue to match the implementation in README.EXT
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | README.EXT | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Jul 22 03:02:55 2010 Eric Hodel <drbrain@segment7.net> + + * README.EXT: fix signature of rb_ensure and rb_rescue to match + implementation. + Wed Jul 21 23:07:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * template/fake.rb.in: get rid of embeding an absolute path. diff --git a/README.EXT b/README.EXT index 025b035381..72dba58c5d 100644 --- a/README.EXT +++ b/README.EXT @@ -1188,14 +1188,14 @@ This function is obsolete since 1.9; use rb_block_call instead. Evaluates the block with value val. - VALUE rb_rescue(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2) + VALUE rb_rescue(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) Calls the function func1, with arg1 as the argument. If an exception occurs during func1, it calls func2 with arg2 as the argument. The return value of rb_rescue() is the return value from func1 if no exception occurs, from func2 otherwise. - VALUE rb_ensure(VALUE (*func1)(), void *arg1, void (*func2)(), void *arg2) + VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) Calls the function func1 with arg1 as the argument, then calls func2 with arg2 if execution terminated. The return value from |