[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:20172

From: nobu ruby-lang.org
Date: Wed, 15 Aug 2007 13:50:14 +0900 (JST)
Subject: [ruby-cvs:20172] Ruby:r12936 (trunk, ruby_1_8): * hash.c (rb_hash_delete_key): delete the entry without calling block.

nobu	2007-08-15 13:50:12 +0900 (Wed, 15 Aug 2007)

  New Revision: 12936

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/hash.c
    branches/ruby_1_8/test/ruby/test_hash.rb
    branches/ruby_1_8/version.h
    trunk/ChangeLog
    trunk/hash.c
    trunk/test/ruby/test_hash.rb

  Log:
    * hash.c (rb_hash_delete_key): delete the entry without calling block.
    
    * hash.c (rb_hash_shift): should consider iter_lev too.
    
    * hash.c (delete_if_i): use rb_hash_delete_key() so that the block
      isn't called twice.  [ruby-core:11556]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_hash.rb?r1=12936&r2=12935
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/hash.c?r1=12936&r2=12935
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=12936&r2=12935
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=12936&r2=12935
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/test/ruby/test_hash.rb?r1=12936&r2=12935
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?r1=12936&r2=12935
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/hash.c?r1=12936&r2=12935


[前][次][番号順一覧][スレッド一覧][生データ]