aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* * thread.c: rename functions which require a parameterko12009-06-081-0/+15
| | | | | | | | | | | | | | | "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-081-0/+13
| | | | | | | | | | | | | | [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-071-0/+7
| | | | | | | | | 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-071-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (#link_command): should dup CONFTEST_C which ismatz2009-06-041-0/+5
| | | | | | 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
* * lib/base64.rb: typo fixed. a patch from okkez. [ruby-dev:38564]matz2009-06-031-0/+4
| | | | 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-031-0/+4
| | | | 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-031-0/+8
| | | | | | | | | 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
* * string.c (rb_str_gsub_bang): modify check at the beginning.matz2009-06-021-0/+13
| | | | | | | | | | | | | | [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
* * test/ripper/test_filter.rb: add tests. see [ruby-dev:37856]kazu2009-06-021-0/+4
| | | | 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-011-0/+7
| | | | | | | | * 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-011-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): returns Inf ifmatz2009-05-311-0/+5
| | | | | | 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-311-0/+5
| | | | | | | 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-311-0/+4
| | | | 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-291-1/+7
| | | | | | | | 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-291-3/+4
| | | | | | | | 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-291-0/+5
| | | | | | | 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-291-0/+4
| | | | 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-271-0/+5
| | | | | | | 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-271-0/+4
| | | | 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-271-0/+5
| | | | | | 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-271-0/+6
| | | | | | | | | 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-271-0/+7
| | | | | | | | 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-271-0/+11
| | | | | | | | | | | | 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
* * st.c (st_insert2): new function with processing new key,matz2009-05-271-0/+8
| | | | | | | | | 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-271-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_getc): the function fornaruse2009-05-261-0/+6
| | | | | | | 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-261-1/+3
| | | | 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-261-0/+10
| | | | | | | | | | | * 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-261-0/+8
| | | | | | | | * 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-261-0/+4
| | | | | | | | * 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
* * include/ruby/ruby.h (FilePathValue): prevent from GC.nobu2009-05-251-1/+3
| | | | 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-251-0/+4
| | | | 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-251-0/+5
| | | | | | | 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-251-0/+5
| | | | | | | 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-251-0/+4
| | | | | | | | * 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-251-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_hash): avoid calling rb_enc_str_asciionly_p().matz2009-05-251-0/+10
| | | | | | | | | | * string.c (rb_str_replace): avoid redundant calling rb_str_new4(). * string.c (str_replace): factor out replacement from rb_str_replace() without type check nor discarding the destination contents. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rpartition): ditto.nobu2009-05-241-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashesmatz2009-05-241-0/+7
| | | | | | | | are handled properly now. ref: [ruby-core:23402] * test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_partition): should use the converted result. anobu2009-05-241-0/+5
| | | | | | | patch from Marc-Andre Lafortune at [ruby-core:23540]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb (CGI::HTTP_STATUS): typo fixed. a patch frommatz2009-05-241-0/+5
| | | | | | Nobuhiro IMAI. [ruby-dev:38538] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_exec_recursive_paired): new function for propernobu2009-05-241-0/+9
| | | | | | | | | | | handling of recursive arrays. [EXPERIMENTAL] [ruby-core:23402] * array.c (rb_ary_equal, rb_ary_eql, rb_ary_cmp): use above. * hash.c (hash_equal): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (syserr_initialize): errno is int.nobu2009-05-241-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in ($ridir): new configuration. [ruby-core:23520].yugui2009-05-231-0/+19
| | | | | | | | | | | | | | | | | | | | c.f. [ruby-core:23519]. (--with-ridir): new configure option. * tool/instruby.rb (:doc, :rdoc): uses $ridir instead of a fixed path. * lib/rdoc/ri/paths.rb: follows $ridir. * Makefile.in: removes RIDATADIR which is no longer used. * bcc32/Makefile.sub: generates the 'ridir' entry for RbConfig. removes RIDATADIR which is no longer used. * win32/Makefile.sub: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_char): return original string.matz2009-05-231-0/+8
| | | | | | | | | [ruby-core:23499] * string.c (rb_str_each_codepoint): protect string from modification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_s_sym): added a method to accessnobu2009-05-231-0/+8
| | | | | | | | | | using RTLD_NEXT. [ruby-dev:38152] * ext/dl/handle.c (Init_dlhandle): added constants DEFAULT and NEXT which correspond to RTLD_DEFAULT and RTLD_NEXT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature):nobu2009-05-231-1/+5
| | | | | | | | splitting with regexp source string is obsolete. a patch from Minwoo Lee at [ruby-core:23494]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_cmp): return signed value, and restrictnobu2009-05-231-0/+5
| | | | | | | to Fixnum. [ruby-dev:38533] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e