aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* * eval_intern.h: speficy the values of the enumeration constantsmame2008-04-301-0/+5
| | | | | | | explicitly. [ruby-dev:34489] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (check_exec_redirect_fd): prohibit duplex IO.akr2008-04-301-0/+7
| | | | | | | | | (check_exec_fds): record maxhint even if close_others is not specified. (rb_exec_arg_fixup): renamed from rb_exec_arg_fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typotadf2008-04-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational (nurat_marshal_load): checks the giventadf2008-04-281-0/+5
| | | | | | | | denominator. [ruby-dev:34536] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_each): use INT2FIX() for fixnum values.matz2008-04-281-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bit more explanation.akr2008-04-281-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead ofakr2008-04-281-0/+7
| | | | | | | | | FIXNUM_MAX to make it possible to convert to double accurately. It assumes FLT_RADIX is 2. fix RubyForge bug #14102. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_exec_arg_addopt, rb_exec_arg_addopt): now can specifyusa2008-04-281-0/+5
| | | | | | | | close_exec on having no fork environment (but still meaningless). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (run_exec_options): don't call FIX2INT for nil.akr2008-04-281-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (method_name): should return symbols instead of strings.matz2008-04-281-0/+5
| | | | | | [ruby-dev:34531] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_exec_arg_init): declared.akr2008-04-281-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (nurat_expt): use f_rational_new2. [ruby-dev:34524]tadf2008-04-271-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (gc_count): add a GC.count method. This method returnsko12008-04-271-0/+5
| | | | | | | | a GC invoking count. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (rb_vm_t), gc.c (rb_objspace, rb_newobj), vm.cnobu2008-04-271-0/+11
| | | | | | | | | | | | | (Init_BareVM): per-VM object space support, which is disabled now. * gc.c (rb_objspace_alloc), vm.c (Init_BareVM): should not use ruby malloc here. * gc.c (garbage_collect, etc): performance improvement by passing the reference instead of refering the global variable in each functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (ruby_set_argv): ARGV should be locale encoding.naruse2008-04-261-0/+5
| | | | | | [ruby-list:44861] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb (Open3.popen3w): removed.akr2008-04-261-0/+5
| | | | | | | (Open3.popen3): notice wait_thr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc 2.0.0 r56.drbrain2008-04-261-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_hash_dup): declared.akr2008-04-261-0/+8
| | | | | | | | | | * hash.c (rb_hash_dup): new function. * process.c (rb_spawn_internal): don't modify option hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:nobu2008-04-261-0/+5
| | | | | | | suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (builtin_types), gc.c (count_objects): added Complex andnobu2008-04-261-0/+5
| | | | | | | Rational. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (rb_eNOERROR): renamed.nobu2008-04-261-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h, gc.c: remove T_BLOCK.ko12008-04-261-0/+6
| | | | | | | | * include/ruby/ruby.h: re-number T_xxx. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_cProcessTms, rb_cProcessStatus): renamed.nobu2008-04-261-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (builtin_types), signal.c (siglist), st.c (primes),nobu2008-04-261-0/+5
| | | | | | | struct.c (ref_func), time.c (months): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open3.rb: double fork is replaced by spawn with Process.detach.akr2008-04-261-0/+6
| | | | | | | | (Open3.popen3w): new method to access the thread returned by Process.detach. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_spawn_internal): new function to specifyakr2008-04-251-0/+8
| | | | | | | | | | default_close_others. (rb_spawn): specify default_close_others true. (rb_f_system): call rb_spawn_internal with default_close_others as false. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (free_unused_heaps): preserve last used heap segment tomatz2008-04-251-0/+12
| | | | | | | | | | | reduce malloc() call. * gc.c (HEAP_SIZE): use smaller heap segment (2K) for more chance to be freed. based on patch from authorNari <authornari at gmail.com>. * gc.c (rb_newobj_from_heap): eventually allocate heap segments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_spawn): rb_exec_initarg() returns new argc and argv innobu2008-04-251-0/+5
| | | | | | | earg. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (flatten): returns an instance of same class.nobu2008-04-251-0/+5
| | | | | | | [ruby-core:16554] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/win32.h: define mode_t for umask.usa2008-04-251-0/+7
| | | | | | | | | * process.c (check_exec_options_i, check_exec_fds, run_exec_options): support "close_others" only when fork(2) is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c: include sys/stat.h for umask.akr2008-04-241-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_env_clear): declared.akr2008-04-241-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_io_mode_modenum): declared. (rb_close_before_exec): declared. (struct rb_exec_arg): add options and redirect_fds field. (rb_check_argv): removed. (rb_exec_initarg): declared. (rb_exec_getargs): declared. (rb_exec_initarg2): declared. (rb_fork): add third argument: fds. * io.c (max_file_descriptor): new static variable to record maximum file descriptor ruby used. (UPDATE_MAXFD): new macro. (UPDATE_MAXFD_PIPE): new macro. (rb_io_mode_modenum): externed. (rb_sysopen): update max_file_descriptor. (rb_close_before_exec): new function. (popen_exec): redirection removed because it is done by extended spawn mechanism. (pipe_open): generate a hash for spawn options to specify redirections. (pipe_open_v): use rb_exec_getargs. (pipe_open_s): use rb_exec_getargs. (rb_io_initialize): update max_file_descriptor.. * process.c (hide_obj): new function. (check_exec_redirect_fd): new function. (check_exec_redirect): new function. (check_exec_options_i): new function. (check_exec_fds): new function. (rb_check_exec_options): new function. (check_exec_env_i): new function. (rb_check_exec_env): new function. (rb_exec_getargs): new function. (rb_exec_initarg2): new function. (rb_exec_initarg): new function. (rb_f_exec): use rb_exec_initarg. (intcmp): new function. (run_exec_dup2): new function. (run_exec_close): new function. (run_exec_open): new function. (run_exec_pgroup): new function. (run_exec_rlimit): new function. (run_exec_options): new function. (rb_exec): call run_exec_options. (move_fds_to_avoid_crash): new function. (pipe_nocrash): new function. (rb_fork): use pipe_nocrash to avoid file descriptor conflicts. (rb_spawn): use rb_exec_initarg. (rlimit_resource_name2int): extracted from rlimit_resource_type. (rlimit_type_by_hname): new function. (rlimit_type_by_lname): new function. (rlimit_resource_type): use rlimit_type_by_hname. (proc_daemon): add fds argument for rb_fork. * hash.c (rb_env_clear): renamed from env_clear and externed. [ruby-dev:34086] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb: fix typos.mame2008-04-241-0/+7
| | | | | | | | * test/ruby/envutil.rb (rubyexec): move Open3.popen3 call into timeout block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_comparable.rb: new tests for Comparable, to achievemame2008-04-241-0/+5
| | | | | | | 100% test coverage of compar.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): set safe_level before loading script.matz2008-04-241-0/+5
| | | | | | [ruby-dev:34421] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): prior files with extensions to files sansnobu2008-04-241-0/+5
| | | | | | | extensions. [ruby-core:16517] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/ri/descriptions.rb: fixed wrong class nestings.usa2008-04-231-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_settracefunc.rb: add a test for set_trace_func.mame2008-04-231-0/+11
| | | | | | | | | | | | * test/ruby/envutil.rb: move "rubyexec" method from test_rubyoptions.rb. * test/ruby/test_rubyoptions.rb: use rubyexec in envutil.rb. * test/ruby/test_thread.rb: add tests to achieve over 90% test coverage of thread.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failedkazu2008-04-231-0/+5
| | | | | | | notice moved from comment to assertion message. [ruby-dev:29127] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (Set#each, SortedSet#each, TC_Set#test_each): Returnknu2008-04-231-0/+5
| | | | | | | an enumerator if no block is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_ssl.rb (start_server): add timeout to server.join.mame2008-04-221-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): Improve tests of ↵kazu2008-04-221-1/+6
| | | | | | Symbol#to_proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): shouldmatz2008-04-221-0/+6
| | | | | | | check method names by symbols, not by strings. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-style.el (ruby-style-{case,label}-indent): up list fromnobu2008-04-221-0/+5
| | | | | | | indentation point. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (score_table_A0, score_table_F0):naruse2008-04-221-0/+11
| | | | | | | | | | | | type of content is unsigned char. * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): 'c' is nkf_char. * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): enc is 0 or pointer. * ext/nkf//nkf.c (options): type of option is unsigned char. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (z_conv): characters must be nkf_char.naruse2008-04-221-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enumerator.c (enumerator_initialize): Remove an undocumentedknu2008-04-221-0/+6
| | | | | | | | feature (passing a block to the constructor) that's broken. This is not what I intended. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_core.h (exec_event_hooks): ``inline'' is a type modifier, not a type ↵shyouhei2008-04-221-0/+5
| | | | | | itself. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_evalbody.c (DECL_SC_REG): use __asm__ instead.shyouhei2008-04-221-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_evalbody.c (DECL_SC_REG): typo fixed.nobu2008-04-221-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e