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

ruby-changes:46983

From: nobu <ko1@a...>
Date: Fri, 16 Jun 2017 10:53:20 +0900 (JST)
Subject: [ruby-changes:46983] nobu:r59097 (trunk): removed ruby_error_print

nobu	2017-06-16 10:53:15 +0900 (Fri, 16 Jun 2017)

  New Revision: 59097

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

  Log:
    removed ruby_error_print

  Modified files:
    trunk/eval_error.c
    trunk/internal.h
    trunk/process.c
Index: eval_error.c
===================================================================
--- eval_error.c	(revision 59096)
+++ eval_error.c	(revision 59097)
@@ -206,12 +206,6 @@ rb_threadptr_error_print(rb_thread_t *vo https://github.com/ruby/ruby/blob/trunk/eval_error.c#L206
     rb_thread_raised_set(th, raised_flag);
 }
 
-void
-ruby_error_print(void)
-{
-    error_print(GET_THREAD());
-}
-
 #define undef_mesg_for(v, k) rb_fstring_cstr("undefined"v" method `%1$s' for "k" `%2$s'")
 #define undef_mesg(v) ( \
 	is_mod ? \
Index: process.c
===================================================================
--- process.c	(revision 59096)
+++ process.c	(revision 59097)
@@ -3857,8 +3857,10 @@ rb_f_abort(int argc, const VALUE *argv) https://github.com/ruby/ruby/blob/trunk/process.c#L3857
 {
     rb_check_arity(argc, 0, 1);
     if (argc == 0) {
-	if (!NIL_P(GET_THREAD()->errinfo)) {
-	    ruby_error_print();
+	rb_thread_t *th = GET_THREAD();
+	VALUE errinfo = th->errinfo;
+	if (!NIL_P(errinfo)) {
+	    rb_threadptr_error_print(th, errinfo);
 	}
 	rb_exit(EXIT_FAILURE);
     }
Index: internal.h
===================================================================
--- internal.h	(revision 59096)
+++ internal.h	(revision 59097)
@@ -1154,7 +1154,6 @@ VALUE rb_warning_string(const char *fmt, https://github.com/ruby/ruby/blob/trunk/internal.h#L1154
 VALUE rb_refinement_module_get_refined_class(VALUE module);
 
 /* eval_error.c */
-void ruby_error_print(void);
 VALUE rb_get_backtrace(VALUE info);
 
 /* eval_jump.c */

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

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