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

ruby-changes:37846

From: ko1 <ko1@a...>
Date: Wed, 11 Mar 2015 06:29:33 +0900 (JST)
Subject: [ruby-changes:37846] ko1:r49927 (trunk): * vm_insnhelper.h (THROW_DATA_STATE): return int, not VALUE.

ko1	2015-03-11 06:28:09 +0900 (Wed, 11 Mar 2015)

  New Revision: 49927

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

  Log:
    * vm_insnhelper.h (THROW_DATA_STATE): return int, not VALUE.
    * vm_insnhelper.h (THROW_DATA_STATE_SET): accept int value.

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49926)
+++ ChangeLog	(revision 49927)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 11 06:26:21 2015  Koichi Sasada  <ko1@a...>
+
+	* vm_insnhelper.h (THROW_DATA_STATE): return int, not VALUE.
+
+	* vm_insnhelper.h (THROW_DATA_STATE_SET): accept int value.
+
 Wed Mar 11 05:06:46 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_eval.c (rb_catch_protect): use THROW_DATA_VAL().
Index: vm_insnhelper.h
===================================================================
--- vm_insnhelper.h	(revision 49926)
+++ vm_insnhelper.h	(revision 49927)
@@ -260,9 +260,9 @@ THROW_DATA_CATCH_FRAME_SET(struct THROW_ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L260
 }
 
 static inline void
-THROW_DATA_STATE_SET(struct THROW_DATA *obj, VALUE st)
+THROW_DATA_STATE_SET(struct THROW_DATA *obj, int st)
 {
-    obj->throw_state = st;
+    obj->throw_state = (VALUE)st;
 }
 
 static inline VALUE
@@ -277,10 +277,10 @@ THROW_DATA_CATCH_FRAME(const struct THRO https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L277
     return obj->catch_frame;
 }
 
-static VALUE
+static int
 THROW_DATA_STATE(const struct THROW_DATA *obj)
 {
-    return obj->throw_state;
+    return (int)obj->throw_state;
 }
 
 struct IFUNC {

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

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