aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* infinite loop seems to be fixed, so I can uncomment this assertion.tenderlove2011-11-171-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-11-17svn2011-11-171-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych.rb (load_file): make sure opened yaml files aretenderlove2011-11-172-1/+6
| | | | | | also closed. [ruby-core:41088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (LIBRUBY_A): check if generated linked library isnobu2011-11-162-0/+7
| | | | | | valid for extconf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2ulong): need to calc in unsigned long, becauseusa2011-11-162-2/+8
| | | | | | | | the range of VALUE is larger than it on LLP64 platform, such as Win64. this change fixes the failures of test/-ext-/num2int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/webrick/test_cgi.rb (TestWEBrickCGI#start_cgi_server): there areusa2011-11-163-2/+11
| | | | | | | | | | | no guarantee of existance of RbConfig::CONFIG['LIBPATHENV']. it only exists in Unix-like environments. * test/webrick/test_filehandler.rb (WEBrick::TestFileHandler#test_script_disclosure): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Refix r33766.naruse2011-11-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_next_argv): wrong timing of setting ecflags.usa2011-11-162-3/+8
| | | | | | | fixed the failure of TestArgf#test_textmode introduced at r33662. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix r33766.naruse2011-11-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/num2int/num2int.c: remove an unnecessary and wrong declusa2011-11-162-2/+5
| | | | | | | of rb_stdout. it's declared in ruby.h correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2ull): add a cast to get rid of a VC++ warning.usa2011-11-162-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/minitest/unit.rb (assert_raises): experimental fix to runnaruse2011-11-162-3/+11
| | | | | | | | correctly on chkbuild over 64bit linux. call exception_details only when the detail is really needed to avoid create needless inspect under ulimit-ed environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-11-16svn2011-11-151-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb (test_condvar_timed_wait): useakr2011-11-152-1/+7
| | | | | | | | assert_operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_asn1.c: get rid of potential overflow.nobu2011-11-151-11/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_sleep.rb (test_sleep_5sec): 0.1sec tolerance is tooakr2011-11-152-1/+7
| | | | | | | | small for busy environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c, thread.c, ext/pty/pty.c, ext/fiddle/closure.c: useakr2011-11-155-6/+11
| | | | | | | | __linux__ macro for consistency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sparc.c: property.nobu2011-11-150-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h(NUM2LONG, NUM2INT, NUM2SHORT, NUM2LL,kosaki2011-11-152-14/+30
| | | | | | | | | INT2NUM, UINT2NUM, LONG2NUM, ULONG2NUM, NUM2CHR): wrap by macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * fix ANSI C compliance of r33757ngoto2011-11-152-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/defines.h (FLUSH_REGISTER_WINDOWS): move sparc asm codengoto2011-11-154-16/+42
| | | | | | | | | | to a separete file sparc.c for preventing inlining optimization. Patched by Jurij Smakov. [Bug #5244] [ruby-core:40685] * sparc.c (rb_sparc_flush_register_windows): ditto. * configure.in: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: get rid of gcc specific rb_long2int(),kosaki2011-11-152-68/+55
| | | | | | | | | | | | | NUM2LONG(), NUM2INT(), NUM2SHORT(), NUM2LL(), INT2NUM(), UINT2NUM(), LONG2NUM(), ULONG2NUM() and NUM2CHR() implementation. Because 1) They don't make any better code at all. 2) Inline function have a better debugger supoort. 3) If they become to make better code in the future, they might make cross compiler ABI compatibility issue. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (TestIO#test_fcntl_dupfd): fix OpenBSD testkosaki2011-11-152-2/+7
| | | | | | | | failure. [ruby-dev:44872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regcomp.c (print_indent_tree): fix double printing of ENCLOSE_OPTIONnaruse2011-11-152-1/+5
| | | | | | children bug. patched by Suraj Kurapati. [ruby-core:40964] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r33752 and fix test case based [ruby-dev:44866].ayumin2011-11-142-6/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_fcntl_dupfd): fix test error onayumin2011-11-142-1/+7
| | | | | | SnowLeopard. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-11-15svn2011-11-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added a description of NUM2SHORT() to NEWSkosaki2011-11-141-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkey.c (ossl_pkey_new_from_file): set close-on-execakr2011-11-143-0/+9
| | | | | | | | | | flag. * ext/openssl/ossl_x509cert.c (rb_fd_fix_cloexec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add comment.akr2011-11-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/num2int/num2int.c: should return valid values.nobu2011-11-141-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2ull): fix 32bit platform breakage. we mustkosaki2011-11-143-8/+13
| | | | | | | | | | not assume sizeof(VALUE) == sizeof(LONG_LONG). * test/-ext-/num2int/test_num2int.rb (class TestNum2int): fix false assumption on 32bit platform. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (rb_fix2ushort): fix typo. use num rb_num2ushort()kosaki2011-11-142-1/+6
| | | | | | | | instead of num2uint(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: add #ifdef comment.kosaki2011-11-142-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: add NUM2SHORT(), NUM2USHORT() macros.kosaki2011-11-145-0/+166
| | | | | | | | | | | * numeric.c: ditto. * test/-ext-/num2int/test_num2int.rb: add testcases for NUM2SHORT(). * ext/-test-/num2int/num2int.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_big2ull): fix off-by-twice bug of NUM2ULL.kosaki2011-11-143-14/+17
| | | | | | | | | * test/-ext-/num2int/test_num2int.rb (class TestNum2int): fix a testcase too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/-ext-/num2int/test_num2int.rb (class TestNum2int):kosaki2011-11-142-0/+58
| | | | | | | | add FIXNUM tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-11-14svn2011-11-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (check_uint): fix off-by-one bug of NUM2UINT.kosaki2011-11-147-4/+249
| | | | | | | | | | | | | | * bignum.c (rb_big2ulong): fix off-by-one bug of NUM2ULONG. * test/-ext-/num2int/test_num2int.rb: add a testcase for NUM2INT() NUM2UINT(), NUM2LONG(), NUM2ULONG(), NUM2LL and NUM2ULL(). * ext/-test-/num2int/depend: ditto. * ext/-test-/num2int/extconf.rb: ditto. * ext/-test-/num2int/num2int.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: use convertible_int.nobu2011-11-133-10/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/mkmf.rb (checking_for): should not modify the result.nobu2011-11-133-20/+56
| | | | | | | | * lib/mkmf.rb (have_struct_member): accept compiler opttions. * lib/mkmf.rb (convertible_int): add restricted support of struct member, and TYPEOF_ macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/gdbm/gdbm.c (fgdbm_reorganize): set close-on-exec flag afterakr2011-11-132-0/+6
| | | | | | | | gdbm_reorganize(). gdbm_reorganize() opens a new database internally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update comments.akr2011-11-132-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: rollback for each headers for each libraries.akr2011-11-132-7/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: treat libc as a choice for a library whichakr2011-11-132-2/+9
| | | | | | | | provide ndbm API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: duplicate $libs and $defs when save them.akr2011-11-132-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/extconf.rb: rollback $libs and $defs when db detection isakr2011-11-132-0/+17
| | | | | | | | | failed. It fixes -lgdbm -lqdbm when the system has qdbm and gdbm without gdbm_compat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/webrick/test_cgi.rb (class TestWEBrickCGI): respectkosaki2011-11-123-0/+8
| | | | | | | | | RbConfig::CONFIG["LIBPATHENV"]. [Bug #5135] [ruby-core:38653] * test/webrick/test_filehandler.rb (class WEBrick): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2011-11-13svn2011-11-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_fcntl_dupfd): skip if Fcntl::DUPFDkosaki2011-11-122-1/+6
| | | | | | | | is not defined. Pointed out by CHIKANAGA Tomoyuki. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e