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

ruby-changes:63280

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 6 Oct 2020 14:20:26 +0900 (JST)
Subject: [ruby-changes:63280] 56a45456ac (master): include/ruby/random.h: eliminate extern "C"

https://git.ruby-lang.org/ruby.git/commit/?id=56a45456ac

From 56a45456ac6bc39d8a0a4ca25816255338181e11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Tue, 6 Oct 2020 10:44:55 +0900
Subject: include/ruby/random.h: eliminate extern "C"

cf: https://github.com/ruby/ruby/pull/2991/commits/99add258571bf103c6d942bf0e4d510763b73918

diff --git a/include/ruby/random.h b/include/ruby/random.h
index 2e7ac75..5b024b0 100644
--- a/include/ruby/random.h
+++ b/include/ruby/random.h
@@ -12,14 +12,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/random.h#L12
 
 #include "ruby/ruby.h"
 
-#if defined(__cplusplus)
-extern "C" {
-#if 0
-} /* satisfy cc-mode */
-#endif
-#endif
-
-RUBY_SYMBOL_EXPORT_BEGIN
+RBIMPL_SYMBOL_EXPORT_BEGIN()
 
 typedef struct {
     VALUE seed;
@@ -76,13 +69,5 @@ double rb_int_pair_to_real(uint32_t a, uint32_t b, int excl); https://github.com/ruby/ruby/blob/trunk/include/ruby/random.h#L69
 void rb_rand_bytes_int32(rb_random_get_int32_func *, rb_random_t *, void *, size_t);
 RUBY_EXTERN const rb_data_type_t rb_random_data_type;
 
-RUBY_SYMBOL_EXPORT_END
-
-#if defined(__cplusplus)
-#if 0
-{ /* satisfy cc-mode */
-#endif
-}  /* extern "C" { */
-#endif
-
+RBIMPL_SYMBOL_EXPORT_END()
 #endif /* RUBY_RANDOM_H */
-- 
cgit v0.10.2


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

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