summaryrefslogtreecommitdiff
path: root/include/ruby/impl/core/rtypeddata.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-04 16:27:48 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-05-11 09:24:08 +0900
commit122f96c362c0391045d9b10d81d3681cb2455da5 (patch)
treee0980ddd5e6969b384728ef95e0a9536d41197c3 /include/ruby/impl/core/rtypeddata.h
parent97672f669af53c41b094772559030195787406be (diff)
sed -i s/ruby3/rbimpl/g
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3079
Diffstat (limited to 'include/ruby/impl/core/rtypeddata.h')
-rw-r--r--include/ruby/impl/core/rtypeddata.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ruby/impl/core/rtypeddata.h b/include/ruby/impl/core/rtypeddata.h
index 0532baad68..49e55dcf91 100644
--- a/include/ruby/impl/core/rtypeddata.h
+++ b/include/ruby/impl/core/rtypeddata.h
@@ -7,7 +7,7 @@
* Permission is hereby granted, to either redistribute and/or
* modify this file, provided that the conditions mentioned in the
* file COPYING are met. Consult the file for details.
- * @warning Symbols prefixed with either `RBIMPL` or `ruby3` are
+ * @warning Symbols prefixed with either `RBIMPL` or `rbimpl` are
* implementation details. Don't take them as canon. They could
* rapidly appear then vanish. The name (path) of this header file
* is also an implementation detail. Do not expect it to persist
@@ -57,7 +57,7 @@
/** @endcond */
/* bits for rb_data_type_struct::flags */
-enum ruby3_typeddata_flags {
+enum rbimpl_typeddata_flags {
RUBY_TYPED_FREE_IMMEDIATELY = 1,
RUBY_TYPED_WB_PROTECTED = RUBY_FL_WB_PROTECTED, /* THIS FLAG DEPENDS ON Ruby version */
RUBY_TYPED_PROMOTED1 = RUBY_FL_PROMOTED1 /* THIS FLAG DEPENDS ON Ruby version */
@@ -131,7 +131,7 @@ RBIMPL_SYMBOL_EXPORT_END()
RBIMPL_ATTR_PURE()
RBIMPL_ATTR_ARTIFICIAL()
static inline bool
-ruby3_rtypeddata_p(VALUE obj)
+rbimpl_rtypeddata_p(VALUE obj)
{
return RTYPEDDATA(obj)->typed_flag == 1;
}
@@ -148,7 +148,7 @@ RTYPEDDATA_P(VALUE obj)
}
#endif
- return ruby3_rtypeddata_p(obj);
+ return rbimpl_rtypeddata_p(obj);
}
RBIMPL_ATTR_PURE_ON_NDEBUG()