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

ruby-changes:51224

From: nobu <ko1@a...>
Date: Tue, 15 May 2018 16:45:30 +0900 (JST)
Subject: [ruby-changes:51224] nobu:r63431 (trunk): share :cause variable

nobu	2018-05-15 16:45:24 +0900 (Tue, 15 May 2018)

  New Revision: 63431

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

  Log:
    share :cause variable

  Modified files:
    trunk/error.c
    trunk/eval.c
Index: eval.c
===================================================================
--- eval.c	(revision 63430)
+++ eval.c	(revision 63431)
@@ -30,7 +30,8 @@ VALUE rb_eLocalJumpError; https://github.com/ruby/ruby/blob/trunk/eval.c#L30
 VALUE rb_eSysStackError;
 
 ID ruby_static_id_signo, ruby_static_id_status;
-static ID id_cause;
+extern ID ruby_static_id_cause;
+#define id_cause ruby_static_id_cause
 
 #define exception_error GET_VM()->special_exceptions[ruby_error_reenter]
 
@@ -1950,5 +1951,4 @@ Init_eval(void) https://github.com/ruby/ruby/blob/trunk/eval.c#L1951
 
     id_signo = rb_intern_const("signo");
     id_status = rb_intern_const("status");
-    id_cause = rb_intern_const("cause");
 }
Index: error.c
===================================================================
--- error.c	(revision 63430)
+++ error.c	(revision 63431)
@@ -886,7 +886,9 @@ VALUE rb_eSystemCallError; https://github.com/ruby/ruby/blob/trunk/error.c#L886
 VALUE rb_mErrno;
 static VALUE rb_eNOERROR;
 
-static ID id_cause, id_message, id_backtrace;
+ID ruby_static_id_cause;
+#define id_cause ruby_static_id_cause
+static ID id_message, id_backtrace;
 static ID id_name, id_key, id_args, id_Errno, id_errno, id_i_path;
 static ID id_receiver, id_recv, id_iseq, id_local_variables;
 static ID id_private_call_p, id_top, id_bottom;

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

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