summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * bignum.c (rb_big_fdiv): checks whether the given second argumenttadf2009-06-175-47/+91
| | | | | | | | | | | | | | can be converted to float properly. * numeric.c (fix_fdiv): calls rb_big_fdiv when the given second argument is a bignum. * rational.c (nurat_fdiv): should calculate Float(x/y), not Float(x)/Float(y). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_mod_autoload): ditto. [ruby-core:23835]matz2009-06-171-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_f_require): RDoc updated. a patch from Run Paint Runmatz2009-06-172-5/+10
| | | | | | Run in [ruby-core:23833]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): should not capture BOM.nobu2009-06-172-2/+2
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]nobu2009-06-173-5/+13
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/strscan/strscan.c (Init_strscan): remove obsoletematz2009-06-173-14/+6
| | | | | | matchedsize method, use matched_size instead. [ruby-dev:38591] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (ruby_thread_stack_overflow): call rb_exc_raise() onmatz2009-06-172-1/+18
| | | | | | | | | stack overflows in the signal handler, if sigaltstack is available. On stack overflow (and with sigaltstack), the signal handler is more likely to have room to create an exception object. [ruby-core:23813] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/objspace: added. objspace library extends some methods toko12009-06-163-0/+563
| | | | | | | | ObjectSpace module. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_coerce): accepts Complex instances.tadf2009-06-165-0/+25
| | | | | | | | | * rational.c (nurat_coerce): accepts Rational instances. [ruby-core:23859] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httputils.rb (parse_form_data): escape boundary ofnaruse2009-06-162-1/+6
| | | | | | multipart/form-data when embed in regexp. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_memsize): added.ko12009-06-167-0/+113
| | | | | | | | | | | | * io.c (rb_io_memsize): added. * regcomp.c (onig_memsize): added. * string.c (rb_str_memsize): added. * transcode.c (rb_transcoding_memsize, rb_econv_memsize): added. * variable.c (rb_geneic_ivar_memsize): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (iseq_memsize): added. Use RTypedData instead of RDatako12009-06-163-85/+196
| | | | | | | | | | for ISeq. * vm.c (env_memsize, vm_memsize, thread_memsize): added. Use RTypedData instead of RData for Env, VM, Thread. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c, include/ruby/st.h (st_memsize): added. This function returnsko12009-06-163-0/+17
| | | | | | | | the memory usage of st_talbe. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix indent.ko12009-06-161-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: New structure RTypedData, added.ko12009-06-163-2/+103
| | | | | | | | | | | | | | | | | | | This structure incldues more explicit type information for T_DATA objects. If RData(obj)->dfree is immediate value `1' on T_DATA object obj, obj is needed to be accessed with RTYPEDDATA(obj) instead of RDATA(obj). A RTypedData structure points the structure rb_typed_data_t. rb_typed_data_t includes information such as the type name of this data, mark and free function what RData includes, and memsize function show how data consuming the memory size. Note that you do not need any change existing T_DATA objects. If you use RDataType instead of RData on T_DATA object, you can specify explicit type information. * gc.c (rb_data_typed_object_alloc, rb_objspace_data_type_memsize, rb_objspace_data_type_name): added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: fix indent.ko12009-06-162-21/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_objspace_each_objects): New C API, added.ko12009-06-162-12/+94
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-17svn2009-06-161-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb (TestArgf#test_skip): updated testmatz2009-06-162-6/+7
| | | | | | according to clarified behavior. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): revert last change. [ruby-dev:38648]matz2009-06-162-3/+9
| | | | | | * io.c (fptr_finalize): skip close(2) for fd 0,1,2. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_restartable0): refix can't build with VC9.naruse2009-06-162-9/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Tue Jun 16 16:09:59 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322009-06-162-2/+7
| | | | | | | | | * parse.y (parser_read_escape, parser_tokadd_escape): replace scan_oct as ruby_scan_oct. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): should close stdin/stdout/stderr whenmatz2009-06-162-2/+9
| | | | | | | | closed explicitly. [ruby-core:23853] * io.c (argf_skip): should close only when current_file is available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid signbit() and adjust indentation.tadf2009-06-151-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-16svn2009-06-151-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_call0): refine exception message for hidden objects.akr2009-06-152-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2db): (-Float::MAX.to_i*2).to_f should returntadf2009-06-152-1/+9
| | | | | | | | -HUGE_VAL (-Infinity). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_each_line): should return self. [ruby-core:23852]matz2009-06-152-4/+9
| | | | | | * io.c (argf_each_byte, argf_each_char): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (os_obj_of): invoke garbage collection before iteration, tomatz2009-06-152-1/+8
| | | | | | avoid accessing half recycled object references. [ruby-dev:38613] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (rp, iseq): load dummy_gdb_enums on demand.nobu2009-06-153-5/+11
| | | | | | | [ruby-dev:38606] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c, vm_eval.c: add Thread.backtrace.ko12009-06-144-0/+44
| | | | | | | | * test/ruby/test_thread.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_restartable0): revert last commit becauseko12009-06-142-10/+14
| | | | | | | | this change cause SEGV at test-all. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file_ext, rb_find_file): canonicalize absolutenobu2009-06-142-4/+6
| | | | | | | paths. [ruby-core:23845] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_size): added rdoc. a patch from Run Paint Runnobu2009-06-142-0/+15
| | | | | | | Run at [ruby-core:23839]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_fdiv): use fdiv recursively.tadf2009-06-133-41/+44
| | | | | | | | * complex.c (nucomp_expt): reduced code. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/trans/utf8_mac.trans: remove wrong optimization.naruse2009-06-132-9/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (transcode_restartable0): can't build with VC9.naruse2009-06-132-9/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-14svn2009-06-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (nurat_to_f): use fdiv.tadf2009-06-132-81/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix rdoc.naruse2009-06-131-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (load_lock): show backtrace at circular require.nobu2009-06-132-2/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_provide): assumes us-ascii only.nobu2009-06-132-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_require_safe): FilePathValue() implies rb_str_new4().nobu2009-06-132-3/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_mod_autoload): try conversion to path like asnobu2009-06-132-1/+6
| | | | | | | require. [ruby-core:23834] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (r_ivar): should not set internal encoding ivar as annobu2009-06-133-3/+16
| | | | | | | ordinary ivar. [ruby-dev:38596] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_f_local_variables): now returns symbols. a patch fromnobu2009-06-122-1/+6
| | | | | | | Run Paint Run Run at [ruby-core:23828]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_f_catch): updated rdoc about generalized argument,nobu2009-06-122-5/+16
| | | | | | | and the case without arguments. [ruby-core:23827] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): TimeoutError isnobu2009-06-122-2/+7
| | | | | | | obsolete, use Timeout::Error instead. [ruby-core:23821] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_eval.c (rb_f_throw): fixed rdoc about execption.nobu2009-06-123-3/+8
| | | | | | | [ruby-core:23824] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): associate the input encoding whennobu2009-06-122-0/+6
| | | | | | | copying an absolute path. [ruby-dev:38594] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e