зеркало из https://github.com/github/ruby.git
* 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:
Родитель
ac388541c4
Коммит
c93f203e53
|
@ -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
2
io.c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче