[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:23462

From: akr ruby-lang.org
Date: Mon, 28 Apr 2008 09:11:47 +0900 (JST)
Subject: [ruby-cvs:23462] Ruby:r16222 (trunk): * include/ruby/intern.h (rb_exec_arg_init): declared.

akr	2008-04-28 09:11:46 +0900 (Mon, 28 Apr 2008)

  New Revision: 16222

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/intern.h
    trunk/io.c
    trunk/process.c

  Log:
    * include/ruby/intern.h (rb_exec_arg_init): declared.
      (rb_exec_arg_addopt): delared.
      (rb_exec_arg_fix): declared.
      (rb_exec_initarg): removed.
      (rb_exec_getargs): removed.
      (rb_exec_initarg2): removed.
    
    * io.c (struct popen_arg): make execarg as a pointer.
      (popen_exec): follow popen_arg change.
      (pipe_open): add eargp argument.  extract argc and argv from eargp.
      use rb_exec_arg_addopt to add redirect options.
      (pipe_open_v): set up struct rb_exec_arg.
      (pipe_open_s): set up struct rb_exec_arg.
    
    * process.c (rb_exec_arg_addopt): new function extracted from
      check_exec_options_i.
      (check_exec_options_i): use rb_exec_arg_addopt.
      (rb_check_exec_options): opthash is always a hash now.
      (rb_exec_getargs): make it static.
      (rb_exec_fillarg): renamed from rb_exec_initarg2.  don't set up
      redirect_fds.
      (rb_exec_arg_init): new function.
      (rb_exec_arg_fix): new function.
      (rb_f_exec): use rb_exec_arg_init and rb_exec_arg_fix.  use
      rb_exec_arg_addopt to set close_others option.
      (run_exec_options): make close_others by default.
      (rb_spawn_internal): use rb_exec_arg_init and rb_exec_arg_fix.  use
      rb_exec_arg_addopt to set close_others option.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16222&r2=16221&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/io.c?r1=16222&r2=16221&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=16222&r2=16221&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/intern.h?r1=16222&r2=16221&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]