1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (argf_each_line): pass args to each_line. [ruby-dev:34958]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2008-06-30 13:22:10 +00:00
parent ac388541c4
commit c93f203e53
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Jun 30 22:21:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
* io.c (argf_each_line): pass args to each_line. [ruby-dev:34958]
Mon Jun 30 22:12:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (chain_finalized_object): should not delete from finalizer

2
io.c
View file

@ -7327,7 +7327,7 @@ argf_each_line(int argc, VALUE *argv, VALUE argf)
RETURN_ENUMERATOR(argf, argc, argv);
for (;;) {
if (!next_argv()) return Qnil;
rb_block_call(current_file, rb_intern("each_line"), 0, 0, rb_yield, 0);
rb_block_call(current_file, rb_intern("each_line"), argc, argv, rb_yield, 0);
next_p = 1;
}
return argf;