mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
14d61a94ff
commit
6877de73de
6 changed files with 12 additions and 12 deletions
8
error.c
8
error.c
|
@ -132,23 +132,23 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column,
|
||||||
void
|
void
|
||||||
rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...)
|
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
|
void
|
||||||
rb_compile_error(const char *file, int line, const char *fmt, ...)
|
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
|
void
|
||||||
rb_compile_error_append(const char *fmt, ...)
|
rb_compile_error_append(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
ONLY_FOR_INTERNAL_USE("rb_compile_error_append()");
|
DEPRECATED_INTERNAL_FEATURE("rb_compile_error_append()");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ruby_only_for_internal_use(const char *func)
|
ruby_deprecated_internal_feature(const char *func)
|
||||||
{
|
{
|
||||||
rb_print_backtrace();
|
rb_print_backtrace();
|
||||||
rb_fatal("%s is only for internal use and deprecated; do not use", func);
|
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))
|
rb_exc_raise(rb_name_err_new(mesg, recv, name))
|
||||||
#define rb_name_err_raise(mesg, recv, name) \
|
#define rb_name_err_raise(mesg, recv, name) \
|
||||||
rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name))
|
rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name))
|
||||||
NORETURN(void ruby_only_for_internal_use(const char *));
|
NORETURN(void ruby_deprecated_internal_feature(const char *));
|
||||||
#define ONLY_FOR_INTERNAL_USE(func) ruby_only_for_internal_use(func)
|
#define DEPRECATED_INTERNAL_FEATURE(func) \
|
||||||
|
(ruby_deprecated_internal_feature(func), UNREACHABLE)
|
||||||
|
|
||||||
/* eval.c */
|
/* eval.c */
|
||||||
VALUE rb_refinement_module_get_refined_class(VALUE module);
|
VALUE rb_refinement_module_get_refined_class(VALUE module);
|
||||||
|
|
4
pack.c
4
pack.c
|
@ -129,13 +129,13 @@ str_associated(VALUE str)
|
||||||
void
|
void
|
||||||
rb_str_associate(VALUE str, VALUE add)
|
rb_str_associate(VALUE str, VALUE add)
|
||||||
{
|
{
|
||||||
ONLY_FOR_INTERNAL_USE("rb_str_associate()");
|
DEPRECATED_INTERNAL_FEATURE("rb_str_associate()");
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_str_associated(VALUE str)
|
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;
|
return a.tbl;
|
||||||
#else
|
#else
|
||||||
ONLY_FOR_INTERNAL_USE("rb_generic_ivar_table()");
|
DEPRECATED_INTERNAL_FEATURE("rb_generic_ivar_table()");
|
||||||
UNREACHABLE;
|
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#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
|
void
|
||||||
rb_frame_pop(void)
|
rb_frame_pop(void)
|
||||||
{
|
{
|
||||||
ONLY_FOR_INTERNAL_USE("rb_frame_pop()");
|
DEPRECATED_INTERNAL_FEATURE("rb_frame_pop()");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* at exit */
|
/* at exit */
|
||||||
|
|
|
@ -83,7 +83,7 @@ rb_class_clear_method_cache(VALUE klass, VALUE arg)
|
||||||
void
|
void
|
||||||
rb_clear_cache(void)
|
rb_clear_cache(void)
|
||||||
{
|
{
|
||||||
ONLY_FOR_INTERNAL_USE("rb_clear_cache()");
|
DEPRECATED_INTERNAL_FEATURE("rb_clear_cache()");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue