[前][次][番号順一覧][スレッド一覧]

ruby-changes:53196

From: ko1 <ko1@a...>
Date: Sun, 28 Oct 2018 14:10:03 +0900 (JST)
Subject: [ruby-changes:53196] ko1:r65411 (trunk): use a rb_ function instead of st_ directly.

ko1	2018-10-28 14:09:58 +0900 (Sun, 28 Oct 2018)

  New Revision: 65411

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

  Log:
    use a rb_ function instead of st_ directly.
    
    * compile.c (ibf_dump_object_hash): use `rb_hash_foreach()`
      instead of using `st_foreach()`.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 65410)
+++ compile.c	(revision 65411)
@@ -9422,7 +9422,7 @@ ibf_dump_object_hash(struct ibf_dump *du https://github.com/ruby/ruby/blob/trunk/compile.c#L9422
 {
     long len = RHASH_SIZE(obj);
     (void)IBF_W(&len, long, 1);
-    if (len > 0) st_foreach(RHASH(obj)->ntbl, ibf_dump_object_hash_i, (st_data_t)dump);
+    if (len > 0) rb_hash_foreach(obj, ibf_dump_object_hash_i, (st_data_t)dump);
 }
 
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]