mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04994454fd
commit
a976acd603
3 changed files with 2 additions and 4 deletions
|
@ -49,9 +49,6 @@ DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr);
|
|||
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
|
||||
|
|
|
@ -986,6 +986,7 @@ VALUE rb_mod_class_variables(int, const VALUE*, VALUE);
|
|||
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);
|
||||
|
|
2
vm.c
2
vm.c
|
@ -2167,7 +2167,7 @@ rb_ec_frame_method_id_and_class(const rb_execution_context_t *ec, ID *idp, ID *c
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue