aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* NotImplementError is not exist.kazu2012-06-273-5/+7
| | | | | | | * lib/racc/parser.rb: NotImplementError is not exist. * lib/irb/output-method.rb (IRB::OutputMethod#print): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove from original m_tblnobu2012-06-272-0/+10
| | | | | | | * vm_method.c (remove_method): remove the method from the original m_tbl on a prepended module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix null m_tblnobu2012-06-272-2/+10
| | | | | | | * class.c (rb_obj_singleton_methods): m_tbl in prepended class/module is NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ancestor modulesnobu2012-06-273-6/+36
| | | | | | | * class.c (rb_prepend_module): ancestors of prepending module also should be included. [ruby-core:45914][Bug #6654] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix null m_tblnobu2012-06-273-1/+11
| | | | | | | * class.c (class_instance_method_list): m_tbl in prepended class/module is NULL. [ruby-core:45915][Bug #6655] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix null m_tblnobu2012-06-271-1/+3
| | | | | | | * ext/objspace/objspace.c (memsize_of): m_tbl in prepended class/module is NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Module#prependnobu2012-06-279-2/+148
| | | | | | | * class.c (rb_prepend_module): prepend module into another module. * eval.c (rb_mod_prepend): new method Module#prepend. [Feature #1102] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* name of klassnobu2012-06-271-1/+1
| | | | | | * vm_method.c (rb_method_entry_make): use name of klass explicitly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* adjust style.nobu2012-06-274-22/+42
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* NOEX_NOREDEFnobu2012-06-271-2/+6
| | | | | | | * vm_method.c (rb_method_entry_make): use NOEX_NOREDEF itself for the condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-06-27svn2012-06-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* popen: shell commands with envvars and execoptsnobu2012-06-275-33/+152
| | | | | | | | | | | | | * io.c (is_popen_fork): check if fork and raise NotImplementedError if unavailable. * io.c (rb_io_s_popen): allow environment variables hash and exec options as flat parameters, not in an array arguments. [Feature#6651] [EXPERIMENTAL] * process.c (rb_execarg_extract_options): extract exec options, but no exceptions on non-exec options and returns them as a Hash. * process.c (rb_execarg_setenv): set environment variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: scan ARGVnobu2012-06-261-6/+8
| | | | | | * sample/test.rb: scan ARGV all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (register_cached_thread_and_wait):ko12012-06-262-2/+16
| | | | | | | | | | return immediately if malloc() failed. [ruby-core:43960] [ruby-trunk - Bug #6235] * thread_pthread.c (USE_THREAD_CACHE): check already defined or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test: reduce output if succedednobu2012-06-262-3/+10
| | | | | | | * bootstraptest/runner.rb (exec_test): reduce output if succeded. * sample/test.rb (PROGRESS.finish): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use rb_check_hash_typenobu2012-06-264-6/+6
| | | | | | | | | * class.c (rb_scan_args): use rb_check_hash_type. * process.c (rb_exec_getargs): ditto. * sprintf.c (get_hash): ditto. * string.c (rb_str_sub_bang, str_gsub): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-06-26svn2012-06-261-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r36213 "popen: shell commands with envvar"nobu2012-06-263-63/+43
| | | | | | | * io.c (rb_io_s_popen): revert r36213 "popen: shell commands with envvar" because it disabled to let single command bypass shell. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for IO#seek.akr2012-06-251-1/+34
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r31873 Module#mixnobu2012-06-255-253/+6
| | | | | | * class.c (rb_mix_module): revert Module#mix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* method transplantingnobu2012-06-251-0/+4
| | | | | | | * proc.c (rb_mod_define_method): allow method transplanting from a module to either class or module. [ruby-core:34267][Feature #4254] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* method transplantingnobu2012-06-253-5/+13
| | | | | | | * proc.c (rb_mod_define_method): allow method transplanting from a module to either class or module. [ruby-core:34267][Feature #4254] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* popen: shell commands with envvarnobu2012-06-253-38/+63
| | | | | | | | | * io.c (is_popen_fork): check if fork and raise NotImplementedError if unavailable. * io.c (rb_io_s_popen): allow shell commands with modified environment variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h: use rb_pid_t instead of pid_t because of there is nousa2012-06-252-1/+6
| | | | | | | definition of pid_t here on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-06-25svn2012-06-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (for stack end address): remove human68k specifickosaki2012-06-242-5/+9
| | | | | | check. It is no longer supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: spawnvnobu2012-06-242-95/+66
| | | | | | * io.c (pipe_open): merge win32 code using spawnv(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* process.c: separate check_exec_fds_1nobu2012-06-242-17/+24
| | | | | | | * process.c (check_exec_fds): separate check_exec_fds_1() since nonstatic initializer of an aggregate type is not allowed by C89. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* trailing spacesnobu2012-06-241-5/+5
| | | | | | * ChangeLog: remove trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update async-signal-safe comments.akr2012-06-241-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-06-24svn2012-06-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): options field removed.akr2012-06-233-10/+6
| | | | | | | | * process.c: follow the rb_execarg change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_spawn_cmd): unused variable removed to suppress aakr2012-06-232-3/+10
| | | | | | | | | | | warning. (save_env): ditto. [ruby-core:45797] reported by Luis Lavena. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add new_pgroup_given and new_pgroup_flagakr2012-06-233-10/+20
| | | | | | | | | | | | | | fields. * process.c (EXEC_OPTION_NEW_PGROUP): removed. (proc_spawn_cmd): take a struct rb_execarg argument. use the new fields. (rb_execarg_addopt): use the new fields. (rb_spawn_process): follow the proc_spawn_cmd change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add fd_dup2, fd_close, fd_open,akr2012-06-233-52/+73
| | | | | | | | | | | | | | | | | | | | fd_dup2_child fields. * process.c (EXEC_OPTION_DUP2): removed. (EXEC_OPTION_CLOSE): removed. (EXEC_OPTION_OPEN): removed. (EXEC_OPTION_DUP2_CHILD): removed. (mark_exec_arg): mark the new fields. (check_exec_redirect1): change condition for default option. (check_exec_redirect): take a struct rb_execarg argument. use the new fields. (rb_execarg_addopt): follow the check_exec_redirect change. (check_exec_fds): use the new fields. (save_redirect_fd): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_execarg_fixup): fix envopts condition.akr2012-06-232-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_redirect1): extracted fromakr2012-06-232-17/+29
| | | | | | | | check_exec_redirect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (save_env): don't use EXEC_OPTION_UNSETENV_OTHERS.akr2012-06-232-3/+8
| | | | | | | | (rb_execarg_run_options): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add env_modification field.akr2012-06-233-8/+20
| | | | | | | | | | | | | * process.c (EXEC_OPTION_ENV): removed. (mark_exec_arg): mark env_modification field. (rb_exec_fillarg): update the new field, instead of options array. (rb_execarg_fixup): use the new field. (save_env): ditto. (rb_execarg_run_options): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add rlimit_limits field.akr2012-06-233-15/+25
| | | | | | | | | | | | | * process.c (EXEC_OPTION_RLIMIT): removed. (mark_exec_arg): mark rlimit_limits field. (rb_execarg_addopt): update the new fields, instead of options array. (run_exec_rlimit): use the new field. (rb_execarg_run_options): clear sarg using MEMZERO. use the new field. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add chdir_given and chdir_dir fields.akr2012-06-233-9/+19
| | | | | | | | | | | * process.c (EXEC_OPTION_CHDIR): removed. (mark_exec_arg): mark chdir_dir field. (rb_execarg_addopt): update the new fields, instead of options array. (rb_execarg_run_options): use the new fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add close_others_given, close_others_do andakr2012-06-233-12/+24
| | | | | | | | | | | | | | | close_others_maxhint fields. * process.c (EXEC_OPTION_CLOSE_OTHERS): removed. (rb_execarg_addopt): update the new fields, instead of options array. (check_exec_fds): take eargp as an argument. update the close_others_maxhint field. (rb_execarg_fixup): follow the argument change of check_exec_fds. (rb_execarg_run_options): use the new fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h (rb_execarg): add unsetenv_others_given andakr2012-06-233-8/+19
| | | | | | | | | | | | unsetenv_others_do fields. * process.c (EXEC_OPTION_UNSETENV_OTHERS): removed. (rb_execarg_addopt): update the new fields, instead of options array. (rb_execarg_fixup): use the new fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: use the variable name "soptions" for sargp->options.akr2012-06-232-13/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: use the name "sargp" for struct rb_execarg variablesakr2012-06-233-48/+55
| | | | | | | | | | consistently for saving process attributes. * io.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert some teststadf2012-06-222-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: use the name "eargp" for struct rb_execarg variablesakr2012-06-224-108/+117
| | | | | | | | | | | | consistently except for saving process attributes. * io.c: ditto. * ext/pty/pty.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix a typonagachika2012-06-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2012-06-23svn2012-06-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* .gdbinit: improve rp for classnobu2012-06-221-0/+6
| | | | | | | * .gdbinit (rp): improve for class/iclass/module so print content of RClass. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e