[ruby-cvs:73493] ko1:r66392 (trunk): separte NULL and EMPTY check.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Dec 14 11:27:23 JST 2018

ko1	2018-12-14 11:27:23 +0900 (Fri, 14 Dec 2018)

  New Revision: 66392


    separte NULL and EMPTY check.
    * hash.c: separate NULL and EMPTY check functions.
      `RHASH_TABLE_EMPTY` function checks NULL table or not,
      but it should be named "NULL_P".
      Introduce `RHASH_TABLE_EMPTY_P` function to check size == 0.
      There are cases that hash has table data even if data is not NULL
      (in case removed after inserted elements).

  Modified files:

More information about the ruby-cvs mailing list