summaryrefslogtreecommitdiff
path: root/symbol.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-17 18:20:22 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-17 18:20:22 (GMT)
commit4e48b6428034b92c4eb23e1d50889979f8a38dfb (patch)
tree1728c1e18387a97577452e46fe8eb24119eb2b9d /symbol.h
parentaed7a09aea58ea20e4c2ff785416b756bc2a88c6 (diff)
symbol.c: symbol type predicate functions
* symbol.h (is_{local,global,instance,attrset,const,class,junk}_sym): fix ID type names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/symbol.h b/symbol.h
index 3e14e02..549eabd 100644
--- a/symbol.h
+++ b/symbol.h
@@ -65,13 +65,13 @@ sym_type(VALUE sym)
return (int)(id&ID_SCOPE_MASK);
}
-#define is_local_sym(sym) (sym_type(sym)==SYM_LOCAL)
-#define is_global_sym(sym) (sym_type(sym)==SYM_GLOBAL)
-#define is_instance_sym(sym) (sym_type(sym)==SYM_INSTANCE)
-#define is_attrset_sym(sym) (sym_type(sym)==SYM_ATTRSET)
-#define is_const_sym(sym) (sym_type(sym)==SYM_CONST)
-#define is_class_sym(sym) (sym_type(sym)==SYM_CLASS)
-#define is_junk_sym(sym) (sym_type(sym)==SYM_JUNK)
+#define is_local_sym(sym) (sym_type(sym)==ID_LOCAL)
+#define is_global_sym(sym) (sym_type(sym)==ID_GLOBAL)
+#define is_instance_sym(sym) (sym_type(sym)==ID_INSTANCE)
+#define is_attrset_sym(sym) (sym_type(sym)==ID_ATTRSET)
+#define is_const_sym(sym) (sym_type(sym)==ID_CONST)
+#define is_class_sym(sym) (sym_type(sym)==ID_CLASS)
+#define is_junk_sym(sym) (sym_type(sym)==ID_JUNK)
RUBY_FUNC_EXPORTED const unsigned int ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32];