diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-11 14:10:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-11 14:10:50 +0000 |
commit | 47adf5709ac68d483a7ea159195a5265f164bfea (patch) | |
tree | 16a90283a551c4ba24c231969d5949608a229d0f /symbol.h | |
parent | f063a0b535e7f875c7fd134c8bd6ea4ac7e49196 (diff) | |
download | ruby-47adf5709ac68d483a7ea159195a5265f164bfea.tar.gz |
symbol.c: remove dependency on parse.h
* symbol.c (op_tbl): remove non-regular symbols.
* symbol.c (global_symbols): start from the next of the preserved
ID.
* symbol.c: (rb_id2str): op_tbl does not exceed tLAST_OP_ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.h')
-rw-r--r-- | symbol.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ #include "id.h" -#define ID_DYNAMIC_SYM_P(id) (!(id&ID_STATIC_SYM)&&id>tLAST_TOKEN) +#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) |