diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-31 02:58:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-31 02:58:33 +0000 |
commit | 5a75d3f43c4f3e2957bf229bdbcb805dbc405bbc (patch) | |
tree | 7adeaf5b057fda886e81607060f6923fd6358169 | |
parent | 5eb54ecce618a721ebb88c7b506da861adc3d5b4 (diff) | |
download | ruby-5a75d3f43c4f3e2957bf229bdbcb805dbc405bbc.tar.gz |
io.c: constify
* io.c (rb_file_open_generic, pipe_open, pipe_open_s): constify
convconfig parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | io.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -5565,7 +5565,8 @@ io_set_encoding_by_bom(VALUE io) } 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) } 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) } 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; |