* io.c (argf_eof): should call next_argv() before testing.
[ruby-core:24561] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc13dbdcf5
commit
49991ff6f8
@ -16,6 +16,11 @@ Mon Jul 27 10:24:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||||||
* lib/rdoc/parser.rb (RDoc::Parser.binary?): fix for empty files.
|
* lib/rdoc/parser.rb (RDoc::Parser.binary?): fix for empty files.
|
||||||
[ruby-dev:38848]
|
[ruby-dev:38848]
|
||||||
|
|
||||||
|
Mon Jul 27 06:51:41 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (argf_eof): should call next_argv() before testing.
|
||||||
|
[ruby-core:24561]
|
||||||
|
|
||||||
Sun Jul 26 19:17:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sun Jul 26 19:17:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (argf_eof): go to the next file if called after ARGF.close
|
* io.c (argf_eof): go to the next file if called after ARGF.close
|
||||||
|
1
io.c
1
io.c
@ -8500,6 +8500,7 @@ argf_to_io(VALUE argf)
|
|||||||
static VALUE
|
static VALUE
|
||||||
argf_eof(VALUE argf)
|
argf_eof(VALUE argf)
|
||||||
{
|
{
|
||||||
|
next_argv();
|
||||||
if (RTEST(ARGF.current_file)) {
|
if (RTEST(ARGF.current_file)) {
|
||||||
if (ARGF.init_p == 0) return Qtrue;
|
if (ARGF.init_p == 0) return Qtrue;
|
||||||
next_argv();
|
next_argv();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user