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 | e7cf2031034119576a16616875948457d8467886 (patch) | |
tree | 7adeaf5b057fda886e81607060f6923fd6358169 /io.c | |
parent | 6ee8ec70696260fb0ac2ab4bf13f40ff003a8995 (diff) |
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
Diffstat (limited to 'io.c')
-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; |