ruby-changes:60325
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Sat, 7 Mar 2020 19:11:10 +0900 (JST)
Subject: [ruby-changes:60325] ada2f71c70 (master): rb_check_safe_obj no longer exists
https://git.ruby-lang.org/ruby.git/commit/?id=ada2f71c70 From ada2f71c70bb11f1d71485e2090ce36872608217 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: Sat, 7 Mar 2020 18:58:58 +0900 Subject: rb_check_safe_obj no longer exists Commit e91c39f1c0f7d5e670266d9593d533fd444957f6 deleted definition of it. Though I'm not sure if we can delete public API like this, it no longer works nontheless. Having declaration without definiton is worse than having nothing at all. Just delete the declartion too. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index b6d1e54..b835bd6 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -603,7 +603,6 @@ char *rb_string_value_cstr(volatile VALUE*); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L603 #define StringValuePtr(v) rb_string_value_ptr(&(v)) #define StringValueCStr(v) rb_string_value_cstr(&(v)) -void rb_check_safe_obj(VALUE); #define SafeStringValue(v) StringValue(v) #if GCC_VERSION_SINCE(4,4,0) void rb_check_safe_str(VALUE) __attribute__((error("rb_check_safe_str() and Check_SafeStr() are obsolete; use StringValue() instead"))); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/