summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-16 14:48:12 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-16 14:48:12 (GMT)
commit14d61a94ff01f2d229b6a0c46a13456e72c3e42a (patch)
tree29e0df5443aa5d70fcbe5798cb26d5d765c0383d /variable.c
parentccc388d806b50999d1780b3aa7bce521644b8bf9 (diff)
variable.c: fatal rb_generic_ivar_table
* variable.c (rb_generic_ivar_table): raise fatal error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index c69764f..5318a94 100644
--- a/variable.c
+++ b/variable.c
@@ -942,6 +942,7 @@ rb_alias_variable(ID name1, ID name2)
entry1->var = entry2->var;
}
+#if 0
struct gen_ivar_compat_tbl {
struct gen_ivtbl *ivtbl;
st_table *tbl;
@@ -960,6 +961,7 @@ gen_ivar_compat_tbl_i(st_data_t id, st_data_t index, st_data_t arg)
}
return ST_CONTINUE;
}
+#endif
static int
gen_ivtbl_get(VALUE obj, struct gen_ivtbl **ivtbl)
@@ -977,6 +979,7 @@ gen_ivtbl_get(VALUE obj, struct gen_ivtbl **ivtbl)
st_table*
rb_generic_ivar_table(VALUE obj)
{
+#if 0
st_table *iv_index_tbl = RCLASS_IV_INDEX_TBL(rb_obj_class(obj));
struct gen_ivar_compat_tbl a;
st_data_t d;
@@ -1003,6 +1006,11 @@ rb_generic_ivar_table(VALUE obj)
st_foreach_safe(iv_index_tbl, gen_ivar_compat_tbl_i, (st_data_t)&a);
return a.tbl;
+#else
+ ONLY_FOR_INTERNAL_USE("rb_generic_ivar_table()");
+ UNREACHABLE;
+ return 0;
+#endif
}
static VALUE