aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * thread.c: rename functions which require a parameterko12009-06-089-52/+86
| | | | | | | | | | | | | | | "rb_thread_t *", the prefix to be rb_threadptr_ instead of rb_thread_. * thread.c (rb_thread_add_event_hook(), rb_thread_remove_event_hook): change the parameter type from rb_thread_t * to VALUE. * eval.c, eval_error.c, eval_intern.h, signal.c, vm_core.h, vm_eval.c: ditto. * include/ruby/intern.h: remove decl of rb_thread_signal_raise() and rb_thread_signal_exit(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_reject_bang): always check frozen status.matz2009-06-082-3/+18
| | | | | | | | | | | | | | [ruby-core:23715] * hash.c (rb_hash_update): ditto. * hash.c (rb_hash_reject_bang): call rb_hash_foreach() directly. * hash.c (rb_hash_update_i): call st_insert() directly. * hash.c (rb_hash_update_block_i): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (rb_thread_create_timer_thread): print fatal errorko12009-06-075-9/+17
| | | | | | | | | message to stderr instead of using rb_bug(). * KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb (log): avoided redundant expression.tadf2009-06-072-2/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-07svn2009-06-071-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* removed extra spaces.tadf2009-06-072-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-05svn2009-06-041-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (#link_command): should dup CONFTEST_C which ismatz2009-06-042-1/+6
| | | | | | frozen. ref [ruby-core:23675]. [ruby-core:23702] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README.EXT: typo fixed.nobu2009-06-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-04svn2009-06-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/base64.rb: typo fixed. a patch from okkez. [ruby-dev:38564]matz2009-06-032-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (enum_first): should check negative length.matz2009-06-032-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (first_i): Enumerator#first should consume only what ismatz2009-06-032-6/+18
| | | | | | | | | needed. a patch from Marc-Andre Lafortune. [ruby-core:23661] * enum.c (enum_first): call to_int once for an argument. based on a patch from Marc-Andre Lafortune. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-03svn2009-06-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_gsub_bang): modify check at the beginning.matz2009-06-022-6/+23
| | | | | | | | | | | | | | [ruby-core:23662] ref [ruby-core:23657] * string.c (rb_str_rstrip_bang): ditto. [ruby-core:23657] * string.c (rb_str_chop_bang): ditto. * string.c (rb_str_chomp_bang): ditto. * string.c (rb_str_reverse_bang): modify check added. [ruby-core:23671] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-02svn2009-06-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_filter.rb: add tests. see [ruby-dev:37856]kazu2009-06-022-0/+58
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (cont_capture, fiber_store): reraise transferred error.nobu2009-06-013-2/+24
| | | | | | | | * cont.c (fiber_switch): transfers dead fiber error to the previouse or root fiber if the current fiber is dead. [ruby-core:23651] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_exc_new2): optimization for literal.nobu2009-06-013-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: fixed types.nobu2009-06-011-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-06-01svn2009-05-311-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): returns Inf ifmatz2009-05-312-3/+10
| | | | | | exp is bigger than DBL_MANT_DIG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (create_makefile): checks for duplication of sourcenobu2009-05-312-10/+17
| | | | | | | files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (istrailinggarbage): fixed typo.nobu2009-05-313-10/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * struct.c (Init_Struct): made #to_s an alias to #inspect tonobu2009-05-292-2/+8
| | | | | | | | reduce the result of recursive struct. a patch from ujihisa at [ruby-dev:38554]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (Init_Hash): made #to_s an alias to #inspect to reducenobu2009-05-292-16/+13
| | | | | | | | the result of recursive array. a patch from ujihisa at [ruby-core:23601]. [ruby-dev:38555] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_inspect): rescurses with defined ID to get ridnobu2009-05-292-8/+17
| | | | | | | of extra call. [ruby-core:23601] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (collect_all): checks interrupts. [ruby-core:23594]nobu2009-05-293-2/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (THREAD_MODEL): reject unknown value and checksnobu2009-05-272-1/+17
| | | | | | | pthread.h only when pthread. [ruby-core:23577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/optparse/opttest.rb: typo fixed. [ruby-dev:38544]matz2009-05-272-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_strftime): update RDoc according to info frommatz2009-05-272-0/+20
| | | | | | Marc-Andre Lafortune in [ruby-core:23575]. [ruby-core:23564] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/uri: don't set @parser if it is DEFAULT_PARSER for marshalingakr2009-05-273-30/+43
| | | | | | | | | URI objects between Ruby 1.8 and Ruby 1.9. [ruby-dev:38377] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (w_encoding): more compact encoding information formatz2009-05-272-0/+26
| | | | | | | | US-ASCII and UTF-8. [incompatible] [experimental] * marshal.c (r_ivar): restore :E encoding information. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigand_int): new function to calculate bignum andmatz2009-05-272-19/+144
| | | | | | | | | | | | fixnum without allocating internal bignum. * bignum.c (bigor_int): ditto. * bignum.c (bigxor_int): ditto. * bignum.c (bigand_int): even less object allocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2009-05-28svn2009-05-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (st_insert2): new function with processing new key,matz2009-05-274-3/+51
| | | | | | | | | e.g. copy. * hash.c (rb_hash_aset): use st_insert2() to reduce redundant st_lookup calls. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (struct parser_params): lex_gets_ptr should be long.nobu2009-05-272-13/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_dump.c (rb_vm_bugreport): no empty lines.nobu2009-05-271-6/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_getc): the function fornaruse2009-05-263-5/+11
| | | | | | | rl_getc_function must be a byte function. so use getbyte method. [ruby-dev:38535] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: fixed types.nobu2009-05-262-7/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (bignum.o, numeric.o): depend on util.h.nobu2009-05-267-64/+87
| | | | | | | | | | | * bignum.c, marshal.c: fixed types. * numeric.c (infinite_value): use ruby_div0. * include/ruby/util.h (ruby_div0): moved from marshal.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bignew_1): inline memory allocation.matz2009-05-262-6/+20
| | | | | | | | * bignum.c (bigtrunc): call rb_big_resize() only when needed. * bignum.c (bigfixize): declare inline. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Tue May 26 11:01:41 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322009-05-262-2/+6
| | | | | | | | * lib/mkmf.rb: use map! to replace strings in $objs array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yyerror): get rid of possible overflow.nobu2009-05-261-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (FilePathValue): prevent from GC.nobu2009-05-252-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (NUM2LONG): added GCC specific optimization.nobu2009-05-252-2/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_gmtime, rb_localtime): gmtime and localtime returnnobu2009-05-253-3/+24
| | | | | | | NULL on error. [ruby-core:23551] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_char, rb_str_each_codepoint): stringnobu2009-05-253-4/+10
| | | | | | | length must be long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Mon May 25 13:27:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322009-05-252-1/+5
| | | | | | | | * lib/mkmf.rb: dont use gsub! method for frozen string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/mkconfig.rb, tool/instruby.rb: removed redundant code.nobu2009-05-253-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e