1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

include/ruby/ruby.h (struct RObject): hide iv_index_tbl type

This is an implementation detail and should not be exposed to
C extension users.  We may change this to id_table soon; and
id_table should not be exposed as a public API.

It is highly unlikely any existing C extensions require this;
so the risk of breakage is very low.  Ideally, all of RObject
could be hidden.

[ruby-core:71306] [Feature #11647]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2015-11-03 21:16:48 +00:00
parent 3a67ca1ee5
commit 2f418fb363
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Nov 4 06:01:52 2015 Eric Wong <e@80x24.org>
* include/ruby/ruby.h (struct RObject): hide iv_index_tbl type
[ruby-core:71306] [Feature #11647]
Tue Nov 3 06:48:58 2015 Eric Wong <e@80x24.org>
* variable.c (find_class_path): remove cast for rb_class_ivar_set

View file

@ -903,7 +903,7 @@ struct RObject {
struct {
long numiv; /* only uses 32-bits */
VALUE *ivptr;
struct st_table *iv_index_tbl; /* shortcut for RCLASS_IV_INDEX_TBL(rb_obj_class(obj)) */
void *iv_index_tbl; /* shortcut for RCLASS_IV_INDEX_TBL(rb_obj_class(obj)) */
} heap;
VALUE ary[ROBJECT_EMBED_LEN_MAX];
} as;