ruby-changes:41623
From: nobu <ko1@a...>
Date: Sun, 31 Jan 2016 11:57:42 +0900 (JST)
Subject: [ruby-changes:41623] nobu:r53696 (trunk): io.c: constify
nobu 2016-01-31 11:58:33 +0900 (Sun, 31 Jan 2016) New Revision: 53696 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53696 Log: io.c: constify * io.c (rb_file_open_generic, pipe_open, pipe_open_s): constify convconfig parameter. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 53695) +++ io.c (revision 53696) @@ -5565,7 +5565,8 @@ io_set_encoding_by_bom(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L5565 } static VALUE -rb_file_open_generic(VALUE io, VALUE filename, int oflags, int fmode, convconfig_t *convconfig, mode_t perm) +rb_file_open_generic(VALUE io, VALUE filename, int oflags, int fmode, + const convconfig_t *convconfig, mode_t perm) { rb_io_t *fptr; convconfig_t cc; @@ -5876,7 +5877,8 @@ rb_execarg_fixup_v(VALUE execarg_obj) https://github.com/ruby/ruby/blob/trunk/io.c#L5877 } static VALUE -pipe_open(VALUE execarg_obj, const char *modestr, int fmode, convconfig_t *convconfig) +pipe_open(VALUE execarg_obj, const char *modestr, int fmode, + const convconfig_t *convconfig) { struct rb_execarg *eargp = NIL_P(execarg_obj) ? NULL : rb_execarg_get(execarg_obj); VALUE prog = eargp ? (eargp->use_shell ? eargp->invoke.sh.shell_script : eargp->invoke.cmd.command_name) : Qfalse ; @@ -6126,7 +6128,8 @@ is_popen_fork(VALUE prog) https://github.com/ruby/ruby/blob/trunk/io.c#L6128 } static VALUE -pipe_open_s(VALUE prog, const char *modestr, int fmode, convconfig_t *convconfig) +pipe_open_s(VALUE prog, const char *modestr, int fmode, + const convconfig_t *convconfig) { int argc = 1; VALUE *argv = &prog; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/