ruby-changes:34935
From: nobu <ko1@a...>
Date: Thu, 31 Jul 2014 18:58:15 +0900 (JST)
Subject: [ruby-changes:34935] nobu:r47018 (trunk): symbol.h: move macros
nobu 2014-07-31 18:58:01 +0900 (Thu, 31 Jul 2014) New Revision: 47018 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47018 Log: symbol.h: move macros * symbol.h (RSYMBOL): move macros for Symbol from internal.h. Modified files: trunk/internal.h trunk/symbol.h Index: symbol.h =================================================================== --- symbol.h (revision 47017) +++ symbol.h (revision 47018) @@ -14,6 +14,10 @@ https://github.com/ruby/ruby/blob/trunk/symbol.h#L14 #include "id.h" +#define RSYMBOL(obj) (R_CAST(RSymbol)(obj)) +#define SYMBOL_PINNED FL_USER1 +#define SYMBOL_PINNED_P(sym) FL_TEST((sym), SYMBOL_PINNED) + #define ID_DYNAMIC_SYM_P(id) (!(id&ID_STATIC_SYM)&&id>tLAST_OP_ID) #define STATIC_SYM2ID(sym) RSHIFT((unsigned long)(sym), RUBY_SPECIAL_SHIFT) #define STATIC_ID2SYM(id) (((VALUE)(id)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG) Index: internal.h =================================================================== --- internal.h (revision 47017) +++ internal.h (revision 47018) @@ -418,10 +418,6 @@ struct RSymbol { https://github.com/ruby/ruby/blob/trunk/internal.h#L418 ID type; }; -#define RSYMBOL(obj) (R_CAST(RSymbol)(obj)) -#define SYMBOL_PINNED FL_USER1 -#define SYMBOL_PINNED_P(sym) FL_TEST((sym), SYMBOL_PINNED) - struct RFloat { struct RBasic basic; double float_value; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/