summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * bootstraptest/runner.rb (get_result_string): check $?.coredump? nobu2007-07-203-5/+19
| | | | | | | | | | first. * bootstraptest/runner.rb (cleanup_coredump, check_coredump): see stackdump file too. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine tests for shift.akr2007-07-192-7/+56
| | | | | | | more tests for string to integer conversion. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval_error.ci (get_backtrace): check the result more.nobu2007-07-193-7/+14
| | | | | | | [ruby-dev:31261] [ruby-bugs-12398] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_lshift, rb_big_rshift): separated functionsnobu2007-07-196-26/+147
| | | | | | | | | | to get rid of infinite recursion. fixed calculation in edge cases. [ruby-dev:31244] * numeric.c (rb_fix_lshift, rb_fix_rshift): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242]nobu2007-07-182-1/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_parser_append_print, rb_parser_while_loop): moved checknobu2007-07-183-4/+16
| | | | | | | | | | for node to the head. * ruby.c (proc_options): do nothing for -p/-n options if tree is null. submitted by Yusuke ENDOH <mame AT tsg.ne.jp> at [ruby-dev:31243]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_succ): Time#succ should return a time object in thematz2007-07-173-4/+14
| | | | | | same timezone mode to the original. [ruby-talk:260256] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): make %u behave like %d for negativematz2007-07-162-9/+9
| | | | | | | values, since decimal format does not work with preceding dots. [ruby-core:11575] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/base64.rb (Base64::b64encode): should not specify /o optionmatz2007-07-163-4/+9
| | | | | | for regular expression. [ruby-dev:31221] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_rindex_m): accept string-like object convertiblenobu2007-07-162-39/+50
| | | | | | | with #to_str method, as well as rb_str_index_m. [ruby-core:11692] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (getspecial): lfp_svar_get() requires int for specialnobu2007-07-152-0/+6
| | | | | | | global variables. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_f_sprintf): more checks for format argument.nobu2007-07-153-26/+74
| | | | | | | | [ruby-core:11569], [ruby-core:11570], [ruby-core:11571], [ruby-core:11573] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big_pow): removed invariant variable. [ruby-dev:31236]nobu2007-07-153-18/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]nobu2007-07-1510-9/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/digest/digest.c (rb_digest_instance_update, rb_digest_instance_finish, rb_digest_instance_reset, rb_digest_instance_block_length): %s in rb_raise() expects char*. [ruby-dev:31222] * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231] * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231] * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise() instead of rb_raise(). [ruby-dev:31222] * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232] * ext/syck/syck.h: include stdlib.h for malloc() and free(). [ruby-dev:31232] * ext/syck/syck.h (syck_parser_set_input_type): prototype added. [ruby-dev:31231] * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232] * include/ruby/win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine failure messages.akr2007-07-151-6/+16
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bigtrunc): do not empty Bignum. [ruby-dev:31229]nobu2007-07-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]nobu2007-07-152-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr_to_inum): check leading non-digits.nobu2007-07-153-15/+33
| | | | | | | [ruby-core:11691] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add reference.akr2007-07-151-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refined.akr2007-07-151-5/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous change.akr2007-07-151-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add comment.akr2007-07-151-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]nobu2007-07-143-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (fix_pow): integer power calculation: 0**n => 0, matz2007-07-143-5/+28
| | | | | | | | | 1**n => 1, -1**n => 1 (n: even) / -1 (n: odd). * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rename mark_current_thread to mark_current_machine_context.akr2007-07-142-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make mark_current_thread static.akr2007-07-141-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* change --enable-valgrind to --with-valgrind.akr2007-07-142-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: add --enable-valgrind.akr2007-07-146-28/+108
| | | | | | | | | | | | | | | | | * gc.h (SET_MACHINE_STACK_END): new macro to replace rb_gc_set_stack_end. it find out accurate stack boundary by asm using gcc on x86. * thread.c (rb_gc_set_stack_end): don't define if asm-version SET_MACHINE_STACK_END is available. * gc.c (mark_current_thread): extracted from garbage_collect. it use SET_MACHINE_STACK_END to not scan out of stack area. it notify conservative GC information to valgrind if --enable-valgrind. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enum.c (sort_by_cmp): check if reentered. [ruby-dev:24291]nobu2007-07-142-1/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more assertions.akr2007-07-141-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/ext/generator/generator.c (check_max_nesting): wrongmatz2007-07-142-1/+7
| | | | | | | format specifier. a patch from pegacorn <subscriber.jp AT gmail.com>. [ruby-dev:31217] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_pow): overflow detection using FIT_SQRT_LONG().matz2007-07-132-6/+11
| | | | | | [ruby-dev:31215] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update ChangeLog entrymatz2007-07-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_div): FIX2NUM may not work for corner cases.matz2007-07-132-1/+6
| | | | | | [ruby-dev:31210] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refined.akr2007-07-131-16/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (int_round): should not return false, but self.matz2007-07-133-4/+9
| | | | | | [ruby-dev:31212] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check values around 16bit.akr2007-07-131-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests.akr2007-07-131-0/+30
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add assertions using equations taken from Hacker's Delight.akr2007-07-131-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* new file.akr2007-07-131-0/+302
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* more tests.akr2007-07-131-0/+52
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: remove unused function declarations.ko12007-07-133-16/+6
| | | | | | | | * include/ruby/ruby.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check (-0x4000000000000000)/(-1) too.akr2007-07-131-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:31210].akr2007-07-131-0/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (opt_succ): use cast to shut a warning up.matz2007-07-132-1/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sentence generator updated.akr2007-07-132-1/+195
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_free): clear free'ed living_threads field.matz2007-07-132-0/+6
| | | | | | [ruby-dev:31163] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to accessakr2007-07-132-1/+7
| | | | | | | | http_proxy environment variable to avoid case insensitive environment search. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fill ChangeLog entry.ko12007-07-131-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (CreateChild): enclose command line except fornobu2007-07-132-10/+24
| | | | | | | command.com which can not handle quotes. [ruby-talk:258939] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e