mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
Remove taintedness/trustedness enums/macros deprecated for 4 years
This commit is contained in:
parent
a447d39da2
commit
a3ac83b7b8
Notes:
git
2025-12-26 10:05:04 +00:00
@ -59,7 +59,6 @@
|
||||
#define FL_WB_PROTECTED RBIMPL_CAST((VALUE)RUBY_FL_WB_PROTECTED) /**< @old{RUBY_FL_WB_PROTECTED} */
|
||||
#define FL_PROMOTED RBIMPL_CAST((VALUE)RUBY_FL_PROMOTED) /**< @old{RUBY_FL_PROMOTED} */
|
||||
#define FL_FINALIZE RBIMPL_CAST((VALUE)RUBY_FL_FINALIZE) /**< @old{RUBY_FL_FINALIZE} */
|
||||
#define FL_TAINT RBIMPL_CAST((VALUE)RUBY_FL_TAINT) /**< @old{RUBY_FL_TAINT} */
|
||||
#define FL_SHAREABLE RBIMPL_CAST((VALUE)RUBY_FL_SHAREABLE) /**< @old{RUBY_FL_SHAREABLE} */
|
||||
#define FL_UNTRUSTED RBIMPL_CAST((VALUE)RUBY_FL_UNTRUSTED) /**< @old{RUBY_FL_UNTRUSTED} */
|
||||
#define FL_EXIVAR RBIMPL_CAST((VALUE)RUBY_FL_EXIVAR) /**< @old{RUBY_FL_EXIVAR} */
|
||||
@ -237,21 +236,6 @@ ruby_fl_type {
|
||||
*/
|
||||
RUBY_FL_FINALIZE = (1<<7),
|
||||
|
||||
/**
|
||||
* @deprecated This flag once was a thing back in the old days, but makes
|
||||
* no sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*/
|
||||
RUBY_FL_TAINT
|
||||
|
||||
#if defined(RBIMPL_HAVE_ENUM_ATTRIBUTE)
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
#elif defined(_MSC_VER)
|
||||
# pragma deprecated(RUBY_FL_TAINT)
|
||||
#endif
|
||||
|
||||
= 0,
|
||||
|
||||
/**
|
||||
* @deprecated This flag was an implementation detail that should never have
|
||||
* no been exposed. Exists here for backwards
|
||||
@ -279,21 +263,6 @@ ruby_fl_type {
|
||||
*/
|
||||
RUBY_FL_SHAREABLE = (1<<8),
|
||||
|
||||
/**
|
||||
* @deprecated This flag once was a thing back in the old days, but makes
|
||||
* no sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*/
|
||||
RUBY_FL_UNTRUSTED
|
||||
|
||||
#if defined(RBIMPL_HAVE_ENUM_ATTRIBUTE)
|
||||
RBIMPL_ATTR_DEPRECATED(("trustedness turned out to be a wrong idea."))
|
||||
#elif defined(_MSC_VER)
|
||||
# pragma deprecated(RUBY_FL_UNTRUSTED)
|
||||
#endif
|
||||
|
||||
= 0,
|
||||
|
||||
/**
|
||||
* This object weakly refers to other objects.
|
||||
*
|
||||
@ -735,128 +704,6 @@ RB_FL_REVERSE(VALUE obj, VALUE flags)
|
||||
}
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_PURE_UNLESS_DEBUG()
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] obj Object in question.
|
||||
* @return false always.
|
||||
*/
|
||||
static inline bool
|
||||
RB_OBJ_TAINTABLE(VALUE obj)
|
||||
{
|
||||
(void)obj;
|
||||
return false;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_PURE_UNLESS_DEBUG()
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] obj Object in question.
|
||||
* @return false always.
|
||||
*/
|
||||
static inline VALUE
|
||||
RB_OBJ_TAINTED_RAW(VALUE obj)
|
||||
{
|
||||
(void)obj;
|
||||
return false;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_PURE_UNLESS_DEBUG()
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] obj Object in question.
|
||||
* @return false always.
|
||||
*/
|
||||
static inline bool
|
||||
RB_OBJ_TAINTED(VALUE obj)
|
||||
{
|
||||
(void)obj;
|
||||
return false;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] obj Object in question.
|
||||
*/
|
||||
static inline void
|
||||
RB_OBJ_TAINT_RAW(VALUE obj)
|
||||
{
|
||||
(void)obj;
|
||||
return;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] obj Object in question.
|
||||
*/
|
||||
static inline void
|
||||
RB_OBJ_TAINT(VALUE obj)
|
||||
{
|
||||
(void)obj;
|
||||
return;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] dst Victim object.
|
||||
* @param[in] src Infectant object.
|
||||
*/
|
||||
static inline void
|
||||
RB_OBJ_INFECT_RAW(VALUE dst, VALUE src)
|
||||
{
|
||||
(void)dst;
|
||||
(void)src;
|
||||
return;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
RBIMPL_ATTR_DEPRECATED(("taintedness turned out to be a wrong idea."))
|
||||
/**
|
||||
* @deprecated This function once was a thing in the old days, but makes no
|
||||
* sense any longer today. Exists here for backwards
|
||||
* compatibility only. You can safely forget about it.
|
||||
*
|
||||
* @param[in] dst Victim object.
|
||||
* @param[in] src Infectant object.
|
||||
*/
|
||||
static inline void
|
||||
RB_OBJ_INFECT(VALUE dst, VALUE src)
|
||||
{
|
||||
(void)dst;
|
||||
(void)src;
|
||||
return;
|
||||
}
|
||||
|
||||
RBIMPL_ATTR_PURE_UNLESS_DEBUG()
|
||||
RBIMPL_ATTR_ARTIFICIAL()
|
||||
/**
|
||||
|
||||
2
yjit/src/cruby_bindings.inc.rs
generated
2
yjit/src/cruby_bindings.inc.rs
generated
@ -225,10 +225,8 @@ pub const RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
|
||||
pub const RUBY_FL_PROMOTED: ruby_fl_type = 32;
|
||||
pub const RUBY_FL_USERPRIV0: ruby_fl_type = 64;
|
||||
pub const RUBY_FL_FINALIZE: ruby_fl_type = 128;
|
||||
pub const RUBY_FL_TAINT: ruby_fl_type = 0;
|
||||
pub const RUBY_FL_EXIVAR: ruby_fl_type = 0;
|
||||
pub const RUBY_FL_SHAREABLE: ruby_fl_type = 256;
|
||||
pub const RUBY_FL_UNTRUSTED: ruby_fl_type = 0;
|
||||
pub const RUBY_FL_WEAK_REFERENCE: ruby_fl_type = 512;
|
||||
pub const RUBY_FL_UNUSED10: ruby_fl_type = 1024;
|
||||
pub const RUBY_FL_FREEZE: ruby_fl_type = 2048;
|
||||
|
||||
2
zjit/src/cruby_bindings.inc.rs
generated
2
zjit/src/cruby_bindings.inc.rs
generated
@ -286,10 +286,8 @@ pub const RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
|
||||
pub const RUBY_FL_PROMOTED: ruby_fl_type = 32;
|
||||
pub const RUBY_FL_USERPRIV0: ruby_fl_type = 64;
|
||||
pub const RUBY_FL_FINALIZE: ruby_fl_type = 128;
|
||||
pub const RUBY_FL_TAINT: ruby_fl_type = 0;
|
||||
pub const RUBY_FL_EXIVAR: ruby_fl_type = 0;
|
||||
pub const RUBY_FL_SHAREABLE: ruby_fl_type = 256;
|
||||
pub const RUBY_FL_UNTRUSTED: ruby_fl_type = 0;
|
||||
pub const RUBY_FL_WEAK_REFERENCE: ruby_fl_type = 512;
|
||||
pub const RUBY_FL_UNUSED10: ruby_fl_type = 1024;
|
||||
pub const RUBY_FL_FREEZE: ruby_fl_type = 2048;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user