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

ruby-changes:58007

From: Nobuyoshi <ko1@a...>
Date: Sun, 29 Sep 2019 18:59:50 +0900 (JST)
Subject: [ruby-changes:58007] 68ab4a5e35 (master): [ruby/stringio] Replaced rb_funcall2 with rb_funcallv

https://git.ruby-lang.org/ruby.git/commit/?id=68ab4a5e35

From 68ab4a5e35d30a8f1c4620dfa8f5132f4996f2fc Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 29 Sep 2019 18:02:00 +0900
Subject: [ruby/stringio] Replaced rb_funcall2 with rb_funcallv

https://github.com/ruby/stringio/commit/a37ab7c419

diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index ab533a0..6e75406 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -1002,7 +1002,7 @@ strio_unget_bytes(struct StringIO *ptr, const char *cp, long cl) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1002
 static VALUE
 strio_readchar(VALUE self)
 {
-    VALUE c = rb_funcall2(self, rb_intern("getc"), 0, 0);
+    VALUE c = rb_funcallv(self, rb_intern("getc"), 0, 0);
     if (NIL_P(c)) rb_eof_error();
     return c;
 }
@@ -1016,7 +1016,7 @@ strio_readchar(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1016
 static VALUE
 strio_readbyte(VALUE self)
 {
-    VALUE c = rb_funcall2(self, rb_intern("getbyte"), 0, 0);
+    VALUE c = rb_funcallv(self, rb_intern("getbyte"), 0, 0);
     if (NIL_P(c)) rb_eof_error();
     return c;
 }
@@ -1309,7 +1309,7 @@ strio_gets(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1309
 static VALUE
 strio_readline(int argc, VALUE *argv, VALUE self)
 {
-    VALUE line = rb_funcall2(self, rb_intern("gets"), argc, argv);
+    VALUE line = rb_funcallv(self, rb_intern("gets"), argc, argv);
     if (NIL_P(line)) rb_eof_error();
     return line;
 }
@@ -1589,7 +1589,7 @@ strio_read(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/stringio/stringio.c#L1589
 static VALUE
 strio_sysread(int argc, VALUE *argv, VALUE self)
 {
-    VALUE val = rb_funcall2(self, rb_intern("read"), argc, argv);
+    VALUE val = rb_funcallv(self, rb_intern("read"), argc, argv);
     if (NIL_P(val)) {
 	rb_eof_error();
     }
-- 
cgit v0.10.2


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

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