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

ruby-changes:39463

From: ko1 <ko1@a...>
Date: Wed, 12 Aug 2015 17:59:40 +0900 (JST)
Subject: [ruby-changes:39463] ko1:r51544 (trunk): * class.c, gc.c vm.c: use ID_TABLE_* instead of ST_*

ko1	2015-08-12 17:59:27 +0900 (Wed, 12 Aug 2015)

  New Revision: 51544

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

  Log:
    * class.c, gc.c vm.c: use ID_TABLE_* instead of ST_*
      (such as ST_CONTINUE) for enum rb_id_table_iterator_result.

  Modified files:
    trunk/ChangeLog
    trunk/class.c
    trunk/gc.c
    trunk/vm.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51543)
+++ ChangeLog	(revision 51544)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Aug 12 17:57:53 2015  Koichi Sasada  <ko1@a...>
+
+	* class.c, gc.c vm.c: use ID_TABLE_* instead of ST_*
+	  (such as ST_CONTINUE) for enum rb_id_table_iterator_result.
+
 Wed Aug 12 17:05:36 2015  Koichi Sasada  <ko1@a...>
 
 	* id_table.h: introduce ID key table.
Index: gc.c
===================================================================
--- gc.c	(revision 51543)
+++ gc.c	(revision 51544)
@@ -3967,7 +3967,7 @@ mark_method_entry_i(VALUE me, void *data https://github.com/ruby/ruby/blob/trunk/gc.c#L3967
     rb_objspace_t *objspace = (rb_objspace_t *)data;
 
     gc_mark(objspace, me);
-    return ST_CONTINUE;
+    return ID_TABLE_CONTINUE;
 }
 
 static void
Index: class.c
===================================================================
--- class.c	(revision 51543)
+++ class.c	(revision 51544)
@@ -269,7 +269,7 @@ clone_method_i(ID key, VALUE value, void https://github.com/ruby/ruby/blob/trunk/class.c#L269
 {
     const struct clone_method_arg *arg = (struct clone_method_arg *)data;
     clone_method(arg->old_klass, arg->new_klass, key, (const rb_method_entry_t *)value);
-    return ST_CONTINUE;
+    return ID_TABLE_CONTINUE;
 }
 
 struct clone_const_arg {
@@ -846,7 +846,7 @@ static enum rb_id_table_iterator_result https://github.com/ruby/ruby/blob/trunk/class.c#L846
 add_refined_method_entry_i(ID key, VALUE value, void *data)
 {
     rb_add_refined_method_entry((VALUE)data, key);
-    return ST_CONTINUE;
+    return ID_TABLE_CONTINUE;
 }
 
 static int
@@ -924,11 +924,11 @@ move_refined_method(ID key, VALUE value, https://github.com/ruby/ruby/blob/trunk/class.c#L924
 	}
 	else {
 	    rb_id_table_insert(tbl, key, (VALUE)me);
-	    return ST_DELETE;
+	    return ID_TABLE_DELETE;
 	}
     }
     else {
-	return ST_CONTINUE;
+	return ID_TABLE_CONTINUE;
     }
 }
 
@@ -1121,8 +1121,8 @@ method_entry_i(ID key, VALUE value, void https://github.com/ruby/ruby/blob/trunk/class.c#L1121
     if (me->def->type == VM_METHOD_TYPE_REFINED) {
 	VALUE owner = me->owner;
 	me = rb_resolve_refined_method(Qnil, me);
-	if (!me) return ST_CONTINUE;
-	if (!arg->recur && me->owner != owner) return ST_CONTINUE;
+	if (!me) return ID_TABLE_CONTINUE;
+	if (!arg->recur && me->owner != owner) return ID_TABLE_CONTINUE;
     }
     if (!st_lookup(arg->list, key, 0)) {
 	if (UNDEFINED_METHOD_ENTRY_P(me)) {
@@ -1133,7 +1133,7 @@ method_entry_i(ID key, VALUE value, void https://github.com/ruby/ruby/blob/trunk/class.c#L1133
 	}
 	st_add_direct(arg->list, key, (st_data_t)type);
     }
-    return ST_CONTINUE;
+    return ID_TABLE_CONTINUE;
 }
 
 static VALUE
Index: vm.c
===================================================================
--- vm.c	(revision 51543)
+++ vm.c	(revision 51544)
@@ -1251,7 +1251,7 @@ check_redefined_method(ID mid, VALUE val https://github.com/ruby/ruby/blob/trunk/vm.c#L1251
 
     if (newme != me) rb_vm_check_redefinition_opt_method(me, me->owner);
 
-    return ST_CONTINUE;
+    return ID_TABLE_CONTINUE;
 }
 
 void

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

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