summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-27 16:15:28 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-22 02:51:49 +0900
commitc30f03d32833f38fedf41ecb08f1ade9c6657fef (patch)
tree735949b112c79e5c0c78aa3509d1119e8884a006 /include
parent5c0abe2d94c545275079a862dc36bb163953010a (diff)
Data: delete
Has been deprecated since 684bdf6171b76f5bc5e4f05926a5ab01ec2b4fd5. Matz says in [ruby-core:83954] that Data should be an alias of Object. Because rb_cData has not been deprecated, let us deprecate the constant to make it a C-level synonym of rb_cObject.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3961
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/globals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/internal/globals.h b/include/ruby/internal/globals.h
index a6973764e9..6b4e8fd885 100644
--- a/include/ruby/internal/globals.h
+++ b/include/ruby/internal/globals.h
@@ -20,6 +20,7 @@
* extension libraries. They could be written in C++98.
* @brief Ruby-level global variables / constants, visible from C.
*/
+#include "ruby/internal/attr/deprecated.h"
#include "ruby/internal/attr/pure.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/fl_type.h"
@@ -48,6 +49,7 @@ RUBY_EXTERN VALUE rb_cArray;
RUBY_EXTERN VALUE rb_cBinding;
RUBY_EXTERN VALUE rb_cClass;
RUBY_EXTERN VALUE rb_cCont;
+RBIMPL_ATTR_DEPRECATED(("by: rb_cObject. Will be removed in 3.1."))
RUBY_EXTERN VALUE rb_cData;
RUBY_EXTERN VALUE rb_cDir;
RUBY_EXTERN VALUE rb_cEncoding;