summaryrefslogtreecommitdiffstats
path: root/include/ruby/ruby.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-07 10:18:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-07 10:18:09 +0000
commitd248344788d6fa0c3b844a612fa5d7f3559d6b2f (patch)
treeeccb5551cd944cc424d729c969fd96d82e057d7f /include/ruby/ruby.h
parentca152130a162d10d449bbd7a4cc8cb876d9b5233 (diff)
downloadruby-d248344788d6fa0c3b844a612fa5d7f3559d6b2f.tar.gz
ruby-d248344788d6fa0c3b844a612fa5d7f3559d6b2f.tar.xz
ruby-d248344788d6fa0c3b844a612fa5d7f3559d6b2f.zip
refine previous change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r--include/ruby/ruby.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 4311eb289..6493a0c50 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -624,18 +624,16 @@ struct RBignum {
#define RFILE(obj) (R_CAST(RFile)(obj))
#define RVALUES(obj) (R_CAST(RValues)(obj))
+#define FL_SINGLETON FL_USER0
#define FL_MARK ((VALUE)(1<<5))
-
-/* will be used in the future GC */
-#define FL_RESERVED ((VALUE)(1<<6))
-
+#define FL_RESERVED ((VALUE)(1<<6)) /* will be used in the future GC */
#define FL_FINALIZE ((VALUE)(1<<7))
#define FL_TAINT ((VALUE)(1<<8))
#define FL_EXIVAR ((VALUE)(1<<9))
#define FL_FREEZE ((VALUE)(1<<10))
-#define FL_SINGLETON ((VALUE)(1<<11))
#define FL_USHIFT 11
+
#define FL_USER0 ((VALUE)(1<<(FL_USHIFT+0)))
#define FL_USER1 ((VALUE)(1<<(FL_USHIFT+1)))
#define FL_USER2 ((VALUE)(1<<(FL_USHIFT+2)))