[ruby-cvs:56108] ko1:r48958 (trunk): * hash.c (rb_hash_delete): return Qnil if there are no corresponding

ko1 at ruby-lang.org ko1 at ruby-lang.org
Wed Dec 24 11:53:40 JST 2014


ko1	2014-12-24 11:53:37 +0900 (Wed, 24 Dec 2014)

  New Revision: 48958

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48958

  Log:
    * hash.c (rb_hash_delete): return Qnil if there are no corresponding
      entry. [Bug #10623]
    * hash.c (rb_hash_delete_entry): try delete and return Qundef if there
      are no corresponding entry.
    * internal.h: add rb_hash_delete_entry()'s declaration.
    * symbol.c: use rb_hash_delete_entry().
    * thread.c: use rb_hash_delete_entry().
    * ext/-test-/hash/delete.c: use rb_hash_delete_entry().

  Modified files:
    trunk/ChangeLog
    trunk/ext/-test-/hash/delete.c
    trunk/hash.c
    trunk/internal.h
    trunk/symbol.c
    trunk/thread.c


More information about the ruby-cvs mailing list