mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
ccc388d806
commit
14d61a94ff
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue