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

ruby-changes:49813

From: shyouhei <ko1@a...>
Date: Thu, 18 Jan 2018 23:31:44 +0900 (JST)
Subject: [ruby-changes:49813] shyouhei:r61911 (trunk): merge extern declarations into internal.h

shyouhei	2018-01-18 18:44:36 +0900 (Thu, 18 Jan 2018)

  New Revision: 61911

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

  Log:
    merge extern declarations into internal.h

  Modified files:
    trunk/error.c
    trunk/eval.c
    trunk/internal.h
    trunk/process.c
    trunk/signal.c
Index: internal.h
===================================================================
--- internal.h	(revision 61910)
+++ internal.h	(revision 61911)
@@ -1209,6 +1209,9 @@ VALUE rb_warning_string(const char *fmt, https://github.com/ruby/ruby/blob/trunk/internal.h#L1209
 
 /* eval.c */
 VALUE rb_refinement_module_get_refined_class(VALUE module);
+extern ID ruby_static_id_signo, ruby_static_id_status;
+#define id_signo ruby_static_id_signo
+#define id_status ruby_static_id_status
 
 /* eval_error.c */
 VALUE rb_get_backtrace(VALUE info);
Index: signal.c
===================================================================
--- signal.c	(revision 61910)
+++ signal.c	(revision 61911)
@@ -41,9 +41,6 @@ https://github.com/ruby/ruby/blob/trunk/signal.c#L41
 # define VALGRIND_MAKE_MEM_UNDEFINED(p, n) 0
 #endif
 
-extern ID ruby_static_id_signo;
-#define id_signo ruby_static_id_signo
-
 #ifdef NEED_RUBY_ATOMIC_OPS
 rb_atomic_t
 ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val)
Index: process.c
===================================================================
--- process.c	(revision 61910)
+++ process.c	(revision 61911)
@@ -273,8 +273,6 @@ static ID id_CLOCK_BASED_CLOCK_PROCESS_C https://github.com/ruby/ruby/blob/trunk/process.c#L273
 static ID id_MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC;
 #endif
 static ID id_hertz;
-extern ID ruby_static_id_status;
-#define id_status ruby_static_id_status
 
 /* execv and execl are async-signal-safe since SUSv4 (POSIX.1-2008, XPG7) */
 #if defined(__sun) && !defined(_XPG7) /* Solaris 10, 9, ... */
Index: error.c
===================================================================
--- error.c	(revision 61910)
+++ error.c	(revision 61911)
@@ -867,11 +867,9 @@ static ID id_new, id_cause, id_message, https://github.com/ruby/ruby/blob/trunk/error.c#L867
 static ID id_name, id_key, id_args, id_Errno, id_errno, id_i_path;
 static ID id_receiver, id_iseq, id_local_variables;
 static ID id_private_call_p;
-extern ID ruby_static_id_status;
 #define id_bt idBt
 #define id_bt_locations idBt_locations
 #define id_mesg idMesg
-#define id_status ruby_static_id_status
 
 #undef rb_exc_new_cstr
 
Index: eval.c
===================================================================
--- eval.c	(revision 61910)
+++ eval.c	(revision 61911)
@@ -26,8 +26,6 @@ VALUE rb_eSysStackError; https://github.com/ruby/ruby/blob/trunk/eval.c#L26
 
 ID ruby_static_id_signo, ruby_static_id_status;
 static ID id_cause;
-#define id_signo ruby_static_id_signo
-#define id_status ruby_static_id_status
 
 #define exception_error GET_VM()->special_exceptions[ruby_error_reenter]
 

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

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