diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-04-16 06:03:36 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-04-16 06:03:36 +0000 |
commit | bcab5ca9d1b50cc940d3c2cf190c6ef18a20f3d0 (patch) | |
tree | fbb231b10c7092bef845762c8ea4434e851088a6 /io.c | |
parent | f96faa860bfaf119ed379db160c24bd815376fd1 (diff) |
prepare to alpha
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1607,6 +1607,7 @@ rb_io_reopen(io, nfile) nfile = rb_io_get_io(nfile); GetOpenFile(nfile, orig); + if (fptr == orig) return io; if (orig->f2) { fflush(orig->f2); } @@ -1999,6 +2000,9 @@ rb_io_stdio_set(val, id, var) if (TYPE(val) != T_FILE) { rb_raise(rb_eTypeError, "%s must be IO object", rb_id2name(id)); } + if (ruby_verbose) { + rb_warn("assignment for %s is done by reopen", rb_id2name(id)); + } GetOpenFile(*var, fptr); fd = fileno(fptr->f); GetOpenFile(val, fptr); |