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

ruby-changes:34138

From: normal <ko1@a...>
Date: Thu, 29 May 2014 05:09:04 +0900 (JST)
Subject: [ruby-changes:34138] normal:r46219 (trunk): include/ruby/ruby.h: hide Symbol internals

normal	2014-05-29 05:08:56 +0900 (Thu, 29 May 2014)

  New Revision: 46219

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

  Log:
    include/ruby/ruby.h: hide Symbol internals
    
    This is too new to be a compatibility problem.
    
    * include/ruby/ruby.h: Hide Symbol internals.
      (struct RSymbol): moved to internal.h
      (RSYMBOL): ditto

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
    trunk/internal.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 46218)
+++ include/ruby/ruby.h	(revision 46219)
@@ -952,12 +952,6 @@ struct RComplex { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L952
 #define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r))
 #define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i))
 
-struct RSymbol {
-    struct RBasic basic;
-    VALUE fstr;
-    ID type;
-};
-
 struct RData {
     struct RBasic basic;
     void (*dmark)(void*);
@@ -1093,7 +1087,6 @@ struct RStruct { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1087
 #define RSTRUCT(obj) (R_CAST(RStruct)(obj))
 #define RFILE(obj)   (R_CAST(RFile)(obj))
 #define RCOMPLEX(obj) (R_CAST(RComplex)(obj))
-#define RSYMBOL(obj) (R_CAST(RSymbol)(obj))
 
 #define FL_SINGLETON FL_USER0
 #define FL_WB_PROTECTED (((VALUE)1)<<5)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46218)
+++ ChangeLog	(revision 46219)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu May 29 05:05:29 2014  Eric Wong  <e@8...>
+
+	* include/ruby/ruby.h: Hide Symbol internals.
+	  (struct RSymbol): moved to internal.h
+	  (RSYMBOL): ditto
+
 Thu May 29 00:28:56 2014  Tanaka Akira  <akr@f...>
 
 	* ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket
Index: internal.h
===================================================================
--- internal.h	(revision 46218)
+++ internal.h	(revision 46219)
@@ -412,6 +412,14 @@ struct RRational { https://github.com/ruby/ruby/blob/trunk/internal.h#L412
 
 #define RRATIONAL(obj) (R_CAST(RRational)(obj))
 
+struct RSymbol {
+    struct RBasic basic;
+    VALUE fstr;
+    ID type;
+};
+
+#define RSYMBOL(obj) (R_CAST(RSymbol)(obj))
+
 /* class.c */
 void rb_class_subclass_add(VALUE super, VALUE klass);
 void rb_class_remove_from_super_subclasses(VALUE);

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

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