From 47adf5709ac68d483a7ea159195a5265f164bfea Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 11 Jul 2014 14:10:50 +0000 Subject: 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 --- symbol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'symbol.h') diff --git a/symbol.h b/symbol.h index b801fbfea4..809ecac459 100644 --- a/symbol.h +++ b/symbol.h @@ -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)<