mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb9f446ebf
commit
205e690646
3 changed files with 14 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu May 29 05:05:29 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* 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@fsij.org>
|
||||
|
||||
* ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket
|
||||
|
|
|
@ -952,12 +952,6 @@ struct RComplex {
|
|||
#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 {
|
|||
#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)
|
||||
|
|
|
@ -412,6 +412,14 @@ struct RRational {
|
|||
|
||||
#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);
|
||||
|
|
Loading…
Reference in a new issue