Граф коммитов

18982 Коммитов

Автор SHA1 Сообщение Дата
naruse 676cf9b527 * test/dl/test_method.rb: sinf(3) is in libm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-17 00:19:29 +00:00
akr d1925e649f use assert_finish because the test hangs on FreeBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 16:45:22 +00:00
svn 17ecdd2ff8 * 2010-02-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 16:20:21 +00:00
mame 79afabe0c5 * hash.c (hash_update): always raise an exception when adding a new
key during iteration.  Traditionally, an exception was raised only
  when rehash occurs, but it may lead to difficult bug to reproduce.
  [ruby-core:23614]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 16:20:18 +00:00
akr 4651910af1 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 13:25:54 +00:00
mame a9f6a95530 * gc.c (chain_finalized_object): fix precedence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 13:10:39 +00:00
mame 2236f6a682 * gc.c (rb_objspace_call_finalizer): always run finalizer at exit,
before object is free'd.  [ruby-dev:40382]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 12:34:09 +00:00
akr 792b3efa62 * file.c (rb_group_member): renamed from group_member.
don't use group_member() in glibc because it's not valgrind clean.
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570047


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 12:00:24 +00:00
nobu 4d71618c38 * ext/dl/cfunc.c (rb_dlcfunc_call): convert signed value to
unsigned.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 10:19:24 +00:00
nobu da2497745e * test/dl/test_{base,handle}.rb: use more verbose assertions.
* test/dl/test_import.rb (DL::LIBC::BoundQsortCallback): renamed
  to get rid of overwriting warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 10:03:02 +00:00
nobu 53dddcf88e * ChangeLog: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 09:54:10 +00:00
tenderlove 8f8947a260 * ext/dl/method.c: Adding DL::Method as a superclass for DL::Function
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-16 02:05:46 +00:00
svn 1e7d74f39e * 2010-02-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 23:52:11 +00:00
tenderlove e5657a6584 * ext/dl/function.c: using ULONG2NUM to fix tests on i686.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 23:52:08 +00:00
akr 76678bb526 * io.c: check lseek error by errno. NetBSD 4.0.1 may return -1 as
a file position of tty.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 14:37:52 +00:00
akr 9dbffb49fa * lib/pstore.rb (PStore#initialize): initialize @thread_safe.
[ruby-core:27853]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 14:09:19 +00:00
akr 8fd5bf0758 * st.c (st_foreach): don't access ptr->hash after func call.
It may access freed area.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 13:45:52 +00:00
akr 8d532a8689 * ext/zlib/zlib.c (zlib_mem_alloc): suppress valgrind warnings.
http://www.zlib.net/zlib_faq.html#faq36


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 13:26:51 +00:00
akr 795b03c71c * time.c (time_add): propagate fixed time offset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 13:21:10 +00:00
naruse 3360a65ba7 fix previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 09:03:33 +00:00
naruse d9c31a6787 More generic regular exression for test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 09:00:34 +00:00
naruse c0eb5bb6f2 * signal.c (USE_SIGALTSTACK): NetBSD can't use sigaltstack(2)
with pthread.
  http://netbsd.gw.com/cgi-bin/man-cgi?sigaltstack++NetBSD-current

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 08:49:51 +00:00
svn c3a51e3ce1 * 2010-02-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 04:13:47 +00:00
naruse 6b6a41d1e7 * array.c (rb_ary_push_m): use rb_ary_modify instead of
rb_ary_modify_check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-15 04:13:43 +00:00
nobu 05270882ae * marshal.c (r_object0): removed duplicated entry for regexp.
[ruby-dev:40416]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14 03:54:47 +00:00
akr 47b8a0e7e4 avoid method redefinition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14 03:09:53 +00:00
akr 0fd75b46b7 add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-14 02:40:52 +00:00
nobu 27e492bec7 * marshal.c (r_object0): register regexp object before encoding
name.  [ruby-dev:40414]

* re.c (rb_reg_alloc, rb_reg_init_str): split from rb_reg_new_str.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 19:45:35 +00:00
nobu be0197054c * re.c (match_aref): fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 19:31:42 +00:00
matz 5d325e6a9e * array.c (rb_ary_delete): RDoc update. a patch from Hugh Sasse.
[ruby-core:28128]

* array.c (rb_ary_compact_bang): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 08:08:19 +00:00
matz c1ad9a5fd1 * marshal.c (id2encidx): duplicated entry for encoding name.
[ruby-dev:40388]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 06:03:06 +00:00
akr 2ce744032b add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 04:30:18 +00:00
akr d6fb854ecb * lib/tempfile.rb (Tempfile::Remover): new class to replace
Tempfile.callback.  port r24902 from Ruby 1.8.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-13 03:20:52 +00:00
svn 3f9bc1fd88 * 2010-02-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-12 16:18:54 +00:00
akr 3c529cf5f5 fix a test for Debian GNU/Linux squeeze (armel)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-12 16:18:52 +00:00
nobu 49f62d73b8 * vm.c (thread_free): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-12 08:55:24 +00:00
svn 0d10b77403 * 2010-02-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 17:38:09 +00:00
knu e1d9adcc84 Fri Feb 12 02:27:39 2010 Akinori MUSHA <knu@iDaemons.org>
* lib/set.rb (Set#initialize, Set#replace, Set#merge)
	  (Set#subtract, Set#&): Fix duck type tests. [ruby-core:28078]

	* lib/set.rb (Set#initialize, Set#replace, Set#merge)
	  (Set#subtract, Set#&): Try #each if #each_entry fails.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 17:38:05 +00:00
akr 36ff32040e fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 13:59:34 +00:00
akr 1ad8521d44 update rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 13:30:55 +00:00
akr c09bcd351a * io.c (rb_io_oflags_modestr): return "r" for O_RDONLY|O_APPEND.
[ruby-dev:40379]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 11:45:22 +00:00
kazu e95a439c6d * missing/alloca.c: s/RUBY_LIB/RUBY_LIB_PREFIX/ [ruby-dev:40395]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 10:20:43 +00:00
nobu 485c571bf1 * vm.c (vm_exec): reset thread state before restarting vm loop
from catch scope.  [ruby-core:28129], [ruby-core:28143]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 08:52:16 +00:00
akr aeed74a61a fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 07:31:03 +00:00
nobu 87fb6fbcc9 * marshal.c (r_object0): replace non-1.8 escapes directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 05:43:19 +00:00
nobu 50bf2e550a * marshal.c (r_object0): read sequentially since marshal source
may not be possible to rewind.  [ruby-dev:40386]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 05:37:43 +00:00
akr d61a305270 describe the reporter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 01:31:49 +00:00
akr d3004ccff3 * lib/resolv.rb: fix [ruby-core:28144].
(Resolv::DNS#make_requester): pass nameserver_port to
  UnconnectedUDP.new.
  (Resolv::DNS.bind_random_port): change the is_ipv6 argument to
  bind_host.
  (Resolv::DNS::Requester#initialize): change instance variable to
  store multiple sockets.
  (Resolv::DNS::Requester#request): pass readable sockets to
  recv_reply.
  (Resolv::DNS::Requester#close): close all sockets.
  (Resolv::DNS::Requester::UnconnectedUDP#initialize): allocate
  a socket for each address family of name servers.
  (Resolv::DNS::Requester::UnconnectedUDP#recv_reply): read from the
  passwd readable socket.
  (Resolv::DNS::Requester::UnconnectedUDP#sender): use appropriate
  socket for the target nameserver.
  (Resolv::DNS::Requester::ConnectedUDP): follow the instance variable
  change.
  (Resolv::DNS::Requester::TCP#sender): ditto.
  (Resolv::DNS::Config#nameserver_port): new method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-11 01:29:38 +00:00
svn 9f782768ab * 2010-02-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-10 16:46:43 +00:00
mame e79ad682da * vm.c (vm_exec): temporarily revert r26628, which causes SEGV when
executing rubyspec.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-02-10 16:46:39 +00:00