зеркало из https://github.com/github/ruby.git
DEPRECATED_INTERNAL_FEATURE
* error.c (ruby_deprecated_internal_feature): renamed, to explicitly represent deprecation. * internal.h (DEPRECATED_INTERNAL_FEATURE): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
14d61a94ff
Коммит
6877de73de
8
error.c
8
error.c
|
@ -132,23 +132,23 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column,
|
|||
void
|
||||
rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_compile_error_with_enc()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_compile_error_with_enc()");
|
||||
}
|
||||
|
||||
void
|
||||
rb_compile_error(const char *file, int line, const char *fmt, ...)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_compile_error()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_compile_error()");
|
||||
}
|
||||
|
||||
void
|
||||
rb_compile_error_append(const char *fmt, ...)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_compile_error_append()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_compile_error_append()");
|
||||
}
|
||||
|
||||
void
|
||||
ruby_only_for_internal_use(const char *func)
|
||||
ruby_deprecated_internal_feature(const char *func)
|
||||
{
|
||||
rb_print_backtrace();
|
||||
rb_fatal("%s is only for internal use and deprecated; do not use", func);
|
||||
|
|
|
@ -1083,8 +1083,9 @@ VALUE rb_name_err_new(VALUE mesg, VALUE recv, VALUE method);
|
|||
rb_exc_raise(rb_name_err_new(mesg, recv, name))
|
||||
#define rb_name_err_raise(mesg, recv, name) \
|
||||
rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name))
|
||||
NORETURN(void ruby_only_for_internal_use(const char *));
|
||||
#define ONLY_FOR_INTERNAL_USE(func) ruby_only_for_internal_use(func)
|
||||
NORETURN(void ruby_deprecated_internal_feature(const char *));
|
||||
#define DEPRECATED_INTERNAL_FEATURE(func) \
|
||||
(ruby_deprecated_internal_feature(func), UNREACHABLE)
|
||||
|
||||
/* eval.c */
|
||||
VALUE rb_refinement_module_get_refined_class(VALUE module);
|
||||
|
|
4
pack.c
4
pack.c
|
@ -129,13 +129,13 @@ str_associated(VALUE str)
|
|||
void
|
||||
rb_str_associate(VALUE str, VALUE add)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_str_associate()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_str_associate()");
|
||||
}
|
||||
|
||||
VALUE
|
||||
rb_str_associated(VALUE str)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_str_associated()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_str_associated()");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1007,8 +1007,7 @@ rb_generic_ivar_table(VALUE obj)
|
|||
|
||||
return a.tbl;
|
||||
#else
|
||||
ONLY_FOR_INTERNAL_USE("rb_generic_ivar_table()");
|
||||
UNREACHABLE;
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_generic_ivar_table()");
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
|
2
vm.c
2
vm.c
|
@ -548,7 +548,7 @@ rb_vm_rewind_cfp(rb_thread_t *th, rb_control_frame_t *cfp)
|
|||
void
|
||||
rb_frame_pop(void)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_frame_pop()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_frame_pop()");
|
||||
}
|
||||
|
||||
/* at exit */
|
||||
|
|
|
@ -83,7 +83,7 @@ rb_class_clear_method_cache(VALUE klass, VALUE arg)
|
|||
void
|
||||
rb_clear_cache(void)
|
||||
{
|
||||
ONLY_FOR_INTERNAL_USE("rb_clear_cache()");
|
||||
DEPRECATED_INTERNAL_FEATURE("rb_clear_cache()");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче