aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.kazu2008-04-152-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el (ruby-encoding-map): added shift-jis for oldernobu2008-04-152-12/+34
| | | | | | | | | | | | | | | | versions. * misc/ruby-mode.el (ruby-mode-set-encoding): coding-system-to-mime-charset is not a standard function. [carbon-emacs:795] fix for the case that magic comment exists but coding system is absent. * misc/ruby-mode.el (ruby-mode): use write-contents-functions or write-contents-hooks for older versions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_take_while, rb_ary_drop_while): removed unusednobu2008-04-151-2/+0
| | | | | | | variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typotadf2008-04-141-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_div): [ruby-dev:34357]tadf2008-04-144-6/+33
| | | | | | | | | | | | * complex.c (nucomp_abs): use hypot. * complex.c (nucomp_quo): do not force convertion. * test/ruby/test_complex.rb: omitted some meaningless tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_search): make search reentrant. [ruby-dev:34223]matz2008-04-144-51/+74
| | | | | | | * test/ruby/test_parse.rb (TestParse::test_global_variable): should preserve $& variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_objectspace.rb: add a test formame2008-04-142-0/+20
| | | | | | | ObjectSpace.count_objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (SET_EXTERNAL_ENCODING): avoid call rb_enc_check() onmatz2008-04-142-2/+6
| | | | | | half-baked result string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_delete_if, rb_hash_reject_bang, env_delete_if,knu2008-04-142-3/+12
| | | | | | | env_reject_bang): Return an enumerator if no block is given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c, compile.h (compile_debug): made runtime option.nobu2008-04-147-88/+172
| | | | | | | | | | | | | | | | | * debug.c (ruby_debug_print_indent): returns if debug_level exceeds the threashold. * debug.c (ruby_debug_printf): printf to stderr. * iseq.c (make_compile_option, make_compile_option_value): added debug_level option. * vm_core.h (rb_compile_option_t): added debug_level. * vm_core.h (struct iseq_compile_data): added node_level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (ary_new): new integer overflow check condition.matz2008-04-142-2/+10
| | | | | | | | | suggested by TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:34156]. * array.c (rb_ary_initialize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (Init_stack): use ruby_init_stack. [ruby-dev:34350]nobu2008-04-143-64/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_objspace_t): packed globals. [ruby-dev:34348]nobu2008-04-142-26/+72
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (finalizers): removed. [ruby-dev:34349]nobu2008-04-142-67/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bootstraptest/test_knownbug.rb: wrong conditionmatz2008-04-141-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_parse.rb: add tests to achieve over 95% test coveragemame2008-04-133-3/+872
| | | | | | | of parse.y. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_cycle): Make Enumerable#cycle do a finite loop whenknu2008-04-133-19/+57
| | | | | | | | | the number of cycles is specified. * array.c (rb_ary_cycle): Ditto for Array#cycle. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (lock_func): should not check interrupts innobu2008-04-133-12/+21
| | | | | | | blocking region. [ruby-dev:34378] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bootstraptest/test_knownbug.rb: add testsmatz2008-04-121-0/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prelude.rb (require_relative): move require_relative frommatz2008-04-1212-20/+17
| | | | | | | | lib/require_relative.rb. [ruby-core:16356] * lib/require_relative.rb: removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_exec_node, ruby_run_node), ruby.c (process_options):nobu2008-04-128-97/+57
| | | | | | | | | | | | | | | | use iseq instead of NODE. * gc.c (source_filenames): removed. * include/ruby/intern.h, parse.y (yycompile, parser_mark, parser_free, ripper_initialize): rb_source_filename() is no longer used. * compile.c, compile.h (ERROR_ARGS), parse.y (node_newnode, fixpos, parser_warn, e_option_supplied, warn_unless_e_option, range_op, cond0): nd_file is no longer used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to RubyGems 1.1.1 r1701.drbrain2008-04-1131-888/+272
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): set external encoding.nobu2008-04-112-2/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_basename, rb_file_s_dirname, rb_file_s_extname):nobu2008-04-113-3/+11
| | | | | | | copy encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (count_i): modified to shut warning up.matz2008-04-112-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (count_i, count_iter_i, enum_count, enum_find_index):knu2008-04-112-33/+30
| | | | | | | Reduce code. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (find_index_i): modified to shut warning up.matz2008-04-112-2/+11
| | | | | | * enum.c (find_index_iter_i): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_find_index): Add support for find_index(obj);knu2008-04-114-15/+56
| | | | | | | | | [ruby-dev:34313]. * array.c (rb_ary_index): Define find_index as an alias to index. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_pstore.rb, test/yaml/test_yamlstore.rb: properties.nobu2008-04-110-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/yaml/store.rb (YAML::load): modified to support emptymatz2008-04-114-3/+103
| | | | | | database. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): add volatile to avoid potential GC bug. amatz2008-04-103-4/+10
| | | | | | | patch from Tomoyuki Chikanaga <chikanag at nippon-control-system.co.jp> in [ruby-dev:34311]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb (PStore::dump, PStore::load): allow subclassmatz2008-04-103-5/+26
| | | | | | | | | overriding. [ruby-dev:34305] * lib/yaml/store.rb (YAML::Store::marshal_dump_supports_canonical_option?): add a method to support faster PStore. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_generator.rb: removed as well. [ruby-dev:34306]matz2008-04-102-4/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add a bug#.knu2008-04-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/rdebug.el, misc/README: Remove rdebug.el as per requestknu2008-04-102-136/+6
| | | | | | | | from the maintainer and mention the ruby-debug project at RubyForge in README. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mention the ruby-debug project at RubyForge.knu2008-04-101-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_f_loop): Mention StopIteration in the document.knu2008-04-102-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix mistake in the previous commit.knu2008-04-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_pop_m, rb_ary_shift_m): Update documents forknu2008-04-102-9/+19
| | | | | | | | | | #pop() and #shift(). * array.c (rb_ary_slice_bang): Update document. Assigning array[*args]= nil no longer removes elements. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_object): TYPE_USERDEF assigns id for ivars first.akr2008-04-103-15/+28
| | | | | | | [ruby-dev:34159] by nagachika. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pstore.rb: replaced by Hongli Lai's faster version.matz2008-04-103-75/+279
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/generator.rb: removed obsolete library. [ruby-core:16233]matz2008-04-102-385/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (native_sleep): sleep_cond is initialized atnobu2008-04-103-4/+8
| | | | | | | creation. [ruby-Patches-19361]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (lock_func): optimized and checks for interrupt_flag.nobu2008-04-092-25/+17
| | | | | | | | based on a patch from Sylvain Joyeux in [ruby-Patches-19361] and [ruby-Patches-19362]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb: new tests from Sylvain Joyeux innobu2008-04-094-3/+133
| | | | | | | [ruby-Patches-19361]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (lock_func): optimized. based on a patch from Sylvainnobu2008-04-081-1/+4
| | | | | | | Joyeux in [ruby-Patches-19362]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_mutex_sleep): ensures to re-acquire at waking up.nobu2008-04-082-4/+23
| | | | | | | [ruby-Patches-19361] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/complex.rb: remove Math first before overwriting by CMath.matz2008-04-082-0/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_quote): should always copy the quoting string.matz2008-04-082-3/+6
| | | | | | [ruby-core:16235] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_require_safe): should check fname path after $SAFE ismatz2008-04-082-2/+7
| | | | | | properly set. [ruby-dev:34268] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e