dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] include/ruby/ruby.h (struct RObject): hide iv_index_tbl type
@ 2015-11-03  3:49 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-11-03  3:49 UTC (permalink / raw)
  To: spew

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.
---
 include/ruby/ruby.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 52f27a7..6486344 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -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;
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-03  3:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03  3:49 [PATCH] include/ruby/ruby.h (struct RObject): hide iv_index_tbl type Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).