ruby-changes:23949
From: akr <ko1@a...>
Date: Sun, 10 Jun 2012 10:18:04 +0900 (JST)
Subject: [ruby-changes:23949] akr:r36000 (trunk): * process.c (rb_f_exec): use rb_exec_arg_prepare.
akr 2012-06-10 10:17:53 +0900 (Sun, 10 Jun 2012) New Revision: 36000 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36000 Log: * process.c (rb_f_exec): use rb_exec_arg_prepare. Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35999) +++ ChangeLog (revision 36000) @@ -1,3 +1,7 @@ +Sun Jun 10 10:14:26 2012 Tanaka Akira <akr@f...> + + * process.c (rb_f_exec): use rb_exec_arg_prepare. + Sun Jun 10 06:43:51 2012 Tanaka Akira <akr@f...> * process.c: split after_exec into async-signal-safe part and rest. Index: process.c =================================================================== --- process.c (revision 35999) +++ process.c (revision 36000) @@ -1968,6 +1968,13 @@ } } +static void +rb_exec_arg_prepare(struct rb_exec_arg *earg, int argc, VALUE *argv) +{ + rb_exec_arg_init(argc, argv, TRUE, earg); + rb_exec_arg_fixup(earg); +} + /* * call-seq: * exec([env,] command... [,options]) @@ -2019,8 +2026,7 @@ #define CHILD_ERRMSG_BUFLEN 80 char errmsg[CHILD_ERRMSG_BUFLEN] = { '\0' }; - rb_exec_arg_init(argc, argv, TRUE, &earg); - rb_exec_arg_fixup(&earg); + rb_exec_arg_prepare(&earg, argc, argv); rb_exec_err(&earg, errmsg, sizeof(errmsg)); if (errmsg[0]) @@ -3224,13 +3230,6 @@ rb_waitpid(pid, &status, 0); } -static void -rb_exec_arg_prepare(struct rb_exec_arg *earg, int argc, VALUE *argv) -{ - rb_exec_arg_init(argc, argv, TRUE, earg); - rb_exec_arg_fixup(earg); -} - static rb_pid_t rb_spawn_process(struct rb_exec_arg *earg, char *errmsg, size_t errmsg_buflen) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/