diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-29 18:02:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-29 18:55:30 +0900 |
commit | 68ab4a5e35d30a8f1c4620dfa8f5132f4996f2fc (patch) | |
tree | bcdca6988e289fb28dd75746b14b3da9cbb3d484 /ext/stringio | |
parent | ef795f9abdb1db1bfa061dbc97d294db4f87756f (diff) |
[ruby/stringio] Replaced rb_funcall2 with rb_funcallv
https://github.com/ruby/stringio/commit/a37ab7c419
Diffstat (limited to 'ext/stringio')
-rw-r--r-- | ext/stringio/stringio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index ab533a03fb..6e75406fb2 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) 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) 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) 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) 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(); } |