summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-03 07:44:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-03 07:44:19 +0000
commitb25979107286ed4fd9fc4c0fed52bb1d24cdadca (patch)
treedbf1fcee96128498bff431ad2a47a0c58e6b9109
parent3809c47d8d9dc884c393f144068deca27e522fb7 (diff)
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
-rw-r--r--gc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gc.c b/gc.c
index 8bfb84ef84..8ec03cd15a 100644
--- a/gc.c
+++ b/gc.c
@@ -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);