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

ruby-changes:73617

From: Peter <ko1@a...>
Date: Mon, 19 Sep 2022 23:41:05 +0900 (JST)
Subject: [ruby-changes:73617] 12889fad41 (master): [ruby/bigdecimal] Remove symbol defs in missing.h for old Rubies

https://git.ruby-lang.org/ruby.git/commit/?id=12889fad41

From 12889fad4100569c212c9813243db5ec5380b5fb Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Mon, 19 Sep 2022 10:23:29 -0400
Subject: [ruby/bigdecimal] Remove symbol defs in missing.h for old Rubies

Commit 2885514 added these to support Ruby 2.1. The rb_sym2str function
is defined since Ruby 2.2.

https://github.com/ruby/bigdecimal/commit/be366c9cf2
---
 ext/bigdecimal/extconf.rb |  1 -
 ext/bigdecimal/missing.h  | 10 ----------
 2 files changed, 11 deletions(-)

diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index e74196e18b..17e7905dd6 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -71,7 +71,6 @@ have_func("rb_rational_num", "ruby.h") https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/extconf.rb#L71
 have_func("rb_rational_den", "ruby.h")
 have_func("rb_complex_real", "ruby.h")
 have_func("rb_complex_imag", "ruby.h")
-have_func("rb_sym2str", "ruby.h")
 have_func("rb_opts_exception_p", "ruby.h")
 have_func("rb_category_warn", "ruby.h")
 have_const("RB_WARN_CATEGORY_DEPRECATED", "ruby.h")
diff --git a/ext/bigdecimal/missing.h b/ext/bigdecimal/missing.h
index 02d2348e4b..307147c0fd 100644
--- a/ext/bigdecimal/missing.h
+++ b/ext/bigdecimal/missing.h
@@ -172,16 +172,6 @@ rb_complex_imag(VALUE cmp) https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/missing.h#L172
 }
 #endif
 
-/* symbol */
-
-#ifndef HAVE_RB_SYM2STR
-static inline VALUE
-rb_sym2str(VALUE sym)
-{
-    return rb_id2str(SYM2ID(sym));
-}
-#endif
-
 /* st */
 
 #ifndef ST2FIX
-- 
cgit v1.2.1


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

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