diff options
author | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-27 14:36:38 +0000 |
---|---|---|
committer | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-27 14:36:38 +0000 |
commit | e341e9b035294d1acf5347620fbd2fcb9245d382 (patch) | |
tree | 3ffe4864ddfcd053b876b924ae30a5b9adb38729 /io.c | |
parent | 74eb575c8d06ea64efb6c817e8cbed976e5e863a (diff) |
Backport #1818 [ruby-core:24561]; (argf_eof): go to the next file if called after ARGF.close or ARGF.skip.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@26451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5430,6 +5430,7 @@ argf_eof() { if (current_file) { if (init_p == 0) return Qtrue; + next_argv(); ARGF_FORWARD(0, 0); if (rb_io_eof(current_file)) { return Qtrue; |