ruby-changes:45131
From: nobu <ko1@a...>
Date: Tue, 27 Dec 2016 16:39:33 +0900 (JST)
Subject: [ruby-changes:45131] nobu:r57204 (trunk): io.c: use io_close to close ARGF
nobu 2016-12-27 16:39:29 +0900 (Tue, 27 Dec 2016) New Revision: 57204 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57204 Log: io.c: use io_close to close ARGF Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 57203) +++ io.c (revision 57204) @@ -7986,7 +7986,7 @@ argf_close(VALUE argf) https://github.com/ruby/ruby/blob/trunk/io.c#L7986 if (RB_TYPE_P(file, T_FILE)) { rb_io_set_write_io(file, Qnil); } - rb_funcall3(file, rb_intern("close"), 0, 0); + io_close(file); ARGF.init_p = -1; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/