ruby-changes:60715
From: Nobuyoshi <ko1@a...>
Date: Fri, 10 Apr 2020 10:38:37 +0900 (JST)
Subject: [ruby-changes:60715] 614d816a1f (master): Constified writev function family
https://git.ruby-lang.org/ruby.git/commit/?id=614d816a1f From 614d816a1fab911ae29d8741526475d1f21484df Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 10 Apr 2020 10:37:15 +0900 Subject: Constified writev function family diff --git a/io.c b/io.c index e10bf2d..2ba983c 100644 --- a/io.c +++ b/io.c @@ -1716,7 +1716,7 @@ io_binwritev(struct iovec *iov, int iovcnt, rb_io_t *fptr) https://github.com/ruby/ruby/blob/trunk/io.c#L1716 } static long -io_fwritev(int argc, VALUE *argv, rb_io_t *fptr) +io_fwritev(int argc, const VALUE *argv, rb_io_t *fptr) { int i, converted, iovcnt = argc + 1; long n; @@ -1764,7 +1764,7 @@ iovcnt_ok(int iovcnt) https://github.com/ruby/ruby/blob/trunk/io.c#L1764 #endif /* HAVE_WRITEV */ static VALUE -io_writev(int argc, VALUE *argv, VALUE io) +io_writev(int argc, const VALUE *argv, VALUE io) { rb_io_t *fptr; long n; @@ -1838,7 +1838,7 @@ rb_io_write(VALUE io, VALUE str) https://github.com/ruby/ruby/blob/trunk/io.c#L1838 } static VALUE -rb_io_writev(VALUE io, int argc, VALUE *argv) +rb_io_writev(VALUE io, int argc, const VALUE *argv) { if (argc > 1 && rb_obj_method_arity(io, id_write) == 1) { if (io != rb_stderr && RTEST(ruby_verbose)) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/