[ruby-cvs:51029] glass:r43885 (trunk): * st.c (st_keys): define st_keys(). it writes each key to buffer.

glass at ruby-lang.org glass at ruby-lang.org
Thu Nov 28 01:07:12 JST 2013


glass	2013-11-28 01:07:10 +0900 (Thu, 28 Nov 2013)

  New Revision: 43885

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

  Log:
    * st.c (st_keys): define st_keys(). it writes each key to buffer.
    
    * hash.c (rb_hash_keys): use st_keys() for performance improvement
      if st_data_t and VALUE are compatible.
    
    * st.h: define macro ST_DATA_COMPATIBLE_P() to predicate whether
      st_data_t and passed type are compatible.
    
    * configure.in: check existence of builtin function to use in
      ST_DATA_COMPATIBLE_P().

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/hash.c
    trunk/include/ruby/st.h
    trunk/st.c


More information about the ruby-cvs mailing list