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

ruby-changes:54313

From: ko1 <ko1@a...>
Date: Mon, 24 Dec 2018 11:02:51 +0900 (JST)
Subject: [ruby-changes:54313] ko1:r66522 (trunk): remove "deprecated" for rb_frame_method_id_and_class [Bug #15300]

ko1	2018-12-24 11:02:47 +0900 (Mon, 24 Dec 2018)

  New Revision: 66522

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

  Log:
    remove "deprecated" for rb_frame_method_id_and_class [Bug #15300]
    
    * include/ruby/backward.h (rb_frame_method_id_and_class): we had labeled
      `rb_frame_method_id_and_class()` as deprecated because MRI internal
      doesn't use it, but we found there are user of this API in external
      C-extensions. Now we don't have proper alternative API and no time
      to make alternative API, so I remove "deprecated" label.
      [Bug #15300]

  Modified files:
    trunk/include/ruby/backward.h
    trunk/include/ruby/intern.h
    trunk/vm.c
Index: include/ruby/backward.h
===================================================================
--- include/ruby/backward.h	(revision 66521)
+++ include/ruby/backward.h	(revision 66522)
@@ -49,9 +49,6 @@ DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_s https://github.com/ruby/ruby/blob/trunk/include/ruby/backward.h#L49
 DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_generic_ivar_table);
 NORETURN(ERRORFUNC(("internal function"), VALUE rb_mod_const_missing(VALUE, VALUE)));
 
-/* vm.c */
-DEPRECATED(int rb_frame_method_id_and_class(ID *idp, VALUE *klassp));
-
 /* from version.c */
 #ifndef RUBY_SHOW_COPYRIGHT_TO_DIE
 # define RUBY_SHOW_COPYRIGHT_TO_DIE 1
Index: include/ruby/intern.h
===================================================================
--- include/ruby/intern.h	(revision 66521)
+++ include/ruby/intern.h	(revision 66522)
@@ -986,6 +986,7 @@ VALUE rb_mod_class_variables(int, const https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L986
 VALUE rb_mod_remove_cvar(VALUE, VALUE);
 
 ID rb_frame_callee(void);
+int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
 VALUE rb_str_succ(VALUE);
 VALUE rb_time_succ(VALUE);
 VALUE rb_make_backtrace(void);
Index: vm.c
===================================================================
--- vm.c	(revision 66521)
+++ vm.c	(revision 66522)
@@ -2167,7 +2167,7 @@ rb_ec_frame_method_id_and_class(const rb https://github.com/ruby/ruby/blob/trunk/vm.c#L2167
     return rb_vm_control_frame_id_and_class(ec->cfp, idp, called_idp, klassp);
 }
 
-RUBY_FUNC_EXPORTED int
+int
 rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
 {
     return rb_ec_frame_method_id_and_class(GET_EC(), idp, 0, klassp);

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

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