summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-19 05:30:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-19 05:30:02 +0000
commit1e27eda2fa313865bda1246175b3d6ebfe8cc533 (patch)
tree94fbb607c2b3c5ef62552d6c35606aa54bb70a10 /include
parent92cd831366482bd0737bbd32ea3752e41050de88 (diff)
* include/ruby/ruby.h: make Symbol objects frozen.
[Feature #8906] I want to freeze this good day, too. * test/ruby/test_eval.rb: catch up this change. * test/ruby/test_symbol.rb: add a test to check frozen symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 30033023bb..cb432538b1 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -1247,7 +1247,7 @@ struct RBignum {
RBASIC(x)->flags |= RBASIC(s)->flags & FL_TAINT; \
} while (0)
-#define OBJ_FROZEN(x) (!!(FL_ABLE(x)?(RBASIC(x)->flags&(FL_FREEZE)):(FIXNUM_P(x)||FLONUM_P(x))))
+#define OBJ_FROZEN(x) (!!(FL_ABLE(x)?(RBASIC(x)->flags&(FL_FREEZE)):(FIXNUM_P(x)||FLONUM_P(x)||SYMBOL_P(x))))
#define OBJ_FREEZE(x) FL_SET((x), FL_FREEZE)
#if USE_RGENGC