aboutsummaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-22 15:37:28 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-27 16:42:06 +0900
commit5ca44076f47dce3a70b5f4755f5195f0f9093fc4 (patch)
treed812ed884ac93ee97b53ae114bc456f07a008ebb /class.c
parent2038cc6cab6ceeffef3ec3a765c70ae684f829ed (diff)
downloadruby-5ca44076f47dce3a70b5f4755f5195f0f9093fc4.tar.gz
include/ruby/backward/2/rmodule.h: deprecate
Only one function in only one file uses contents of this public header. That is not a wise idea. Let's just free the header's soul.
Diffstat (limited to 'class.c')
-rw-r--r--class.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/class.c b/class.c
index 9876e996c8..857d86311d 100644
--- a/class.c
+++ b/class.c
@@ -1027,7 +1027,7 @@ include_modules_at(const VALUE klass, VALUE c, VALUE module, int search_super)
VALUE super_class = RCLASS_SUPER(c);
// invalidate inline method cache
- tbl = RMODULE_M_TBL(module);
+ tbl = RCLASS_M_TBL(module);
if (tbl && rb_id_table_size(tbl)) {
if (search_super) { // include
if (super_class && !RB_TYPE_P(super_class, T_MODULE)) {
@@ -1070,11 +1070,11 @@ include_modules_at(const VALUE klass, VALUE c, VALUE module, int search_super)
VALUE refined_class =
rb_refinement_module_get_refined_class(klass);
- rb_id_table_foreach(RMODULE_M_TBL(module), add_refined_method_entry_i, (void *)refined_class);
+ rb_id_table_foreach(RCLASS_M_TBL(module), add_refined_method_entry_i, (void *)refined_class);
FL_SET(c, RMODULE_INCLUDED_INTO_REFINEMENT);
}
- tbl = RMODULE_CONST_TBL(module);
+ tbl = RCLASS_CONST_TBL(module);
if (tbl && rb_id_table_size(tbl)) constant_changed = 1;
skip:
module = RCLASS_SUPER(module);