ruby-changes:24113
From: akr <ko1@a...>
Date: Thu, 21 Jun 2012 19:03:33 +0900 (JST)
Subject: [ruby-changes:24113] akr:r36164 (trunk): * process.c (rb_exec_fillarg): take a VALUE argument instead of
akr 2012-06-21 19:03:23 +0900 (Thu, 21 Jun 2012) New Revision: 36164 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36164 Log: * process.c (rb_exec_fillarg): take a VALUE argument instead of struct rb_execarg. (rb_execarg_init): follow the rb_exec_fillarg change. Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 36163) +++ ChangeLog (revision 36164) @@ -1,3 +1,9 @@ +Thu Jun 21 19:02:43 2012 Tanaka Akira <akr@f...> + + * process.c (rb_exec_fillarg): take a VALUE argument instead of + struct rb_execarg. + (rb_execarg_init): follow the rb_exec_fillarg change. + Thu Jun 21 18:36:43 2012 Tanaka Akira <akr@f...> * process.c (rb_execarg_init): take a VALUE argument instead of Index: process.c =================================================================== --- process.c (revision 36163) +++ process.c (revision 36164) @@ -1881,8 +1881,9 @@ #endif static void -rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, struct rb_execarg *e) +rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, VALUE execarg_obj) { + struct rb_execarg *e = rb_execarg_get(execarg_obj); VALUE options; char fbuf[MAXPATHLEN]; @@ -2050,6 +2051,7 @@ rb_str_buf_cat(argv_str, (char *)&null, sizeof(null)); /* terminator for execve. */ e->invoke.cmd.argv_str = argv_str; } + RB_GC_GUARD(execarg_obj); } VALUE @@ -2077,7 +2079,7 @@ VALUE prog, ret; VALUE env = Qnil, opthash = Qnil; prog = rb_exec_getargs(&argc, &argv, accept_shell, &env, &opthash); - rb_exec_fillarg(prog, argc, argv, env, opthash, e); + rb_exec_fillarg(prog, argc, argv, env, opthash, execarg_obj); ret = e->use_shell ? e->invoke.sh.shell_script : e->invoke.cmd.command_name; RB_GC_GUARD(execarg_obj); return ret; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/