diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-03 07:44:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-03 07:44:19 +0000 |
commit | b25979107286ed4fd9fc4c0fed52bb1d24cdadca (patch) | |
tree | dbf1fcee96128498bff431ad2a47a0c58e6b9109 /gc.c | |
parent | 3809c47d8d9dc884c393f144068deca27e522fb7 (diff) | |
download | ruby-b25979107286ed4fd9fc4c0fed52bb1d24cdadca.tar.gz |
gc.c: int for simple predicates
* gc.c: use int for simple predicate functions instead of VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -766,21 +766,21 @@ check_gen_consistency(VALUE obj) return obj; } -static inline VALUE +static inline int RVALUE_INFANT_P(VALUE obj) { check_gen_consistency(obj); return !FL_TEST2(obj, FL_PROMOTED); } -static inline VALUE +static inline int RVALUE_OLD_BITMAP_P(VALUE obj) { check_gen_consistency(obj); return (RVALUE_OLDGEN_BITMAP(obj) != 0); } -static inline VALUE +static inline int RVALUE_OLD_P(VALUE obj) { check_gen_consistency(obj); @@ -791,7 +791,7 @@ RVALUE_OLD_P(VALUE obj) #endif } -static inline VALUE +static inline int RVALUE_PROMOTED_P(VALUE obj) { check_gen_consistency(obj); @@ -837,7 +837,7 @@ RVALUE_PROMOTE_INFANT(rb_objspace_t *objspace, VALUE obj) * Age1 promotion: Infant (0) -> Old (1 and later). * Age2 promotion: Infant (0) -> Young (1) -> Old (2 and later). */ -static inline VALUE +static inline int RVALUE_YOUNG_P(VALUE obj) { check_gen_consistency(obj); |