[前][次][番号順一覧][スレッド一覧]

ruby-changes:31123

From: nobu <ko1@a...>
Date: Wed, 9 Oct 2013 00:34:48 +0900 (JST)
Subject: [ruby-changes:31123] nobu:r43202 (trunk): io.c: use rb_funcallv

nobu	2013-10-09 00:34:40 +0900 (Wed, 09 Oct 2013)

  New Revision: 43202

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43202

  Log:
    io.c: use rb_funcallv
    
    * io.c (rb_io_write): use rb_funcallv() instead of rb_funcall() to get
      rid of unnecessary alloca.

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 43201)
+++ io.c	(revision 43202)
@@ -1428,7 +1428,7 @@ io_write_m(VALUE io, VALUE str) https://github.com/ruby/ruby/blob/trunk/io.c#L1428
 VALUE
 rb_io_write(VALUE io, VALUE str)
 {
-    return rb_funcall(io, id_write, 1, str);
+    return rb_funcallv(io, id_write, 1, &str);
 }
 
 /*

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]