summaryrefslogtreecommitdiff
path: root/include/ruby/internal/intern/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/internal/intern/object.h')
-rw-r--r--include/ruby/internal/intern/object.h72
1 files changed, 70 insertions, 2 deletions
diff --git a/include/ruby/internal/intern/object.h b/include/ruby/internal/intern/object.h
index b9ffa57c06..6bb4ccb2fe 100644
--- a/include/ruby/internal/intern/object.h
+++ b/include/ruby/internal/intern/object.h
@@ -92,8 +92,8 @@ VALUE rb_class_new_instance_kw(int argc, const VALUE *argv, VALUE klass, int kw_
*
* @param[in] lhs Comparison left hand side.
* @param[in] rhs Comparison right hand side.
- * @retval non-zero They are equal.
- * @retval 0 Otherwise.
+ * @retval RUBY_Qtrue They are equal.
+ * @retval RUBY_Qfalse Otherwise.
* @note This function actually calls `lhs.eql?(rhs)` so you cannot
* implement your class' `#eql?` method using it.
*/
@@ -202,6 +202,74 @@ VALUE rb_obj_dup(VALUE obj);
*/
VALUE rb_obj_init_copy(VALUE src, VALUE dst);
+RBIMPL_ATTR_DEPRECATED_EXT(("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 Verbatim `obj`.
+ */
+VALUE rb_obj_taint(VALUE obj);
+
+RBIMPL_ATTR_PURE()
+RBIMPL_ATTR_DEPRECATED_EXT(("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 Always returns ::RUBY_Qfalse.
+ */
+VALUE rb_obj_tainted(VALUE obj);
+
+RBIMPL_ATTR_DEPRECATED_EXT(("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 Verbatim `obj`.
+ */
+VALUE rb_obj_untaint(VALUE obj);
+
+RBIMPL_ATTR_DEPRECATED_EXT(("trustedness 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 Verbatim `obj`.
+ */
+VALUE rb_obj_untrust(VALUE obj);
+
+RBIMPL_ATTR_PURE()
+RBIMPL_ATTR_DEPRECATED_EXT(("trustedness 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 Always returns ::RUBY_Qfalse.
+ */
+VALUE rb_obj_untrusted(VALUE obj);
+
+RBIMPL_ATTR_DEPRECATED_EXT(("trustedness 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 Verbatim `obj`.
+ */
+VALUE rb_obj_trust(VALUE obj);
+
/**
* Just calls rb_obj_freeze_inline() inside. Does this make any sens to
* extension libraries?