[ruby-cvs:62871] nobu:r55707 (trunk): hash.c: rb_hash_add_new_element

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Jul 20 17:35:25 JST 2016


nobu	2016-07-20 17:35:25 +0900 (Wed, 20 Jul 2016)

  New Revision: 55707

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

  Log:
    hash.c: rb_hash_add_new_element
    
    * hash.c (rb_hash_add_new_element): add new element or do nothing
      if it is contained already.
    * array.c (ary_add_hash, ary_add_hash_by): use
      rb_hash_add_new_element.

  Modified files:
    trunk/ChangeLog
    trunk/array.c
    trunk/hash.c
    trunk/internal.h


More information about the ruby-cvs mailing list