From 775eece15a55815473f20229c23866b32439c907 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 7 Oct 2007 10:41:23 +0000 Subject: [PATCH] refined again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 54 ++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 6493a0c501..e37aa7e5f4 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -625,36 +625,36 @@ struct RBignum { #define RVALUES(obj) (R_CAST(RValues)(obj)) #define FL_SINGLETON FL_USER0 -#define FL_MARK ((VALUE)(1<<5)) -#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_MARK (((VALUE)1)<<5) +#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_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))) -#define FL_USER3 ((VALUE)(1<<(FL_USHIFT+3))) -#define FL_USER4 ((VALUE)(1<<(FL_USHIFT+4))) -#define FL_USER5 ((VALUE)(1<<(FL_USHIFT+5))) -#define FL_USER6 ((VALUE)(1<<(FL_USHIFT+6))) -#define FL_USER7 ((VALUE)(1<<(FL_USHIFT+7))) -#define FL_USER8 ((VALUE)(1<<(FL_USHIFT+8))) -#define FL_USER9 ((VALUE)(1<<(FL_USHIFT+9))) -#define FL_USER10 ((VALUE)(1<<(FL_USHIFT+10))) -#define FL_USER11 ((VALUE)(1<<(FL_USHIFT+11))) -#define FL_USER12 ((VALUE)(1<<(FL_USHIFT+12))) -#define FL_USER13 ((VALUE)(1<<(FL_USHIFT+13))) -#define FL_USER14 ((VALUE)(1<<(FL_USHIFT+14))) -#define FL_USER15 ((VALUE)(1<<(FL_USHIFT+15))) -#define FL_USER16 ((VALUE)(1<<(FL_USHIFT+16))) -#define FL_USER17 ((VALUE)(1<<(FL_USHIFT+17))) -#define FL_USER18 ((VALUE)(1<<(FL_USHIFT+18))) -#define FL_USER19 ((VALUE)(1<<(FL_USHIFT+19))) -#define FL_USER20 ((VALUE)(1<<(FL_USHIFT+20))) +#define FL_USER0 (((VALUE)1)<<(FL_USHIFT+0)) +#define FL_USER1 (((VALUE)1)<<(FL_USHIFT+1)) +#define FL_USER2 (((VALUE)1)<<(FL_USHIFT+2)) +#define FL_USER3 (((VALUE)1)<<(FL_USHIFT+3)) +#define FL_USER4 (((VALUE)1)<<(FL_USHIFT+4)) +#define FL_USER5 (((VALUE)1)<<(FL_USHIFT+5)) +#define FL_USER6 (((VALUE)1)<<(FL_USHIFT+6)) +#define FL_USER7 (((VALUE)1)<<(FL_USHIFT+7)) +#define FL_USER8 (((VALUE)1)<<(FL_USHIFT+8)) +#define FL_USER9 (((VALUE)1)<<(FL_USHIFT+9)) +#define FL_USER10 (((VALUE)1)<<(FL_USHIFT+10)) +#define FL_USER11 (((VALUE)1)<<(FL_USHIFT+11)) +#define FL_USER12 (((VALUE)1)<<(FL_USHIFT+12)) +#define FL_USER13 (((VALUE)1)<<(FL_USHIFT+13)) +#define FL_USER14 (((VALUE)1)<<(FL_USHIFT+14)) +#define FL_USER15 (((VALUE)1)<<(FL_USHIFT+15)) +#define FL_USER16 (((VALUE)1)<<(FL_USHIFT+16)) +#define FL_USER17 (((VALUE)1)<<(FL_USHIFT+17)) +#define FL_USER18 (((VALUE)1)<<(FL_USHIFT+18)) +#define FL_USER19 (((VALUE)1)<<(FL_USHIFT+19)) +#define FL_USER20 (((VALUE)1)<<(FL_USHIFT+20)) #define SPECIAL_CONST_P(x) (IMMEDIATE_P(x) || !RTEST(x))