[前][次][番号順一覧][スレッド一覧]

ruby-changes:40354

From: normal <ko1@a...>
Date: Wed, 4 Nov 2015 06:17:08 +0900 (JST)
Subject: [ruby-changes:40354] normal:r52435 (trunk): include/ruby/ruby.h (struct RObject): hide iv_index_tbl type

normal	2015-11-04 06:16:48 +0900 (Wed, 04 Nov 2015)

  New Revision: 52435

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52435

  Log:
    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]

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 52434)
+++ include/ruby/ruby.h	(revision 52435)
@@ -903,7 +903,7 @@ struct RObject { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L903
 	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;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52434)
+++ ChangeLog	(revision 52435)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov  4 06:01:52 2015  Eric Wong  <e@8...>
+
+	* 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@8...>
 
 	* variable.c (find_class_path): remove cast for rb_class_ivar_set

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]