summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 12:06:59 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 12:06:59 +0000
commitb9cf1033aab2f2622aadd8093bd897590da028d0 (patch)
treeb9140ab738b1e84155b81524973236559cf0f752 /gc.c
parentb28f0f1ed2193c85d3f3057f5b1ed2540dd81869 (diff)
* gc.c (gc_info_decode): fix to avoid syntax error on VS2012.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/gc.c b/gc.c
index 43498613fb..46ac9be2dc 100644
--- a/gc.c
+++ b/gc.c
@@ -5063,6 +5063,7 @@ gc_info_decode(int flags, VALUE hash_or_key)
static VALUE sym_nofree, sym_oldgen, sym_shady, sym_rescan, sym_stress, sym_oldmalloc;
static VALUE sym_newobj, sym_malloc, sym_method, sym_capi;
VALUE hash = Qnil, key = Qnil;
+ VALUE major_by;
if (SYMBOL_P(hash_or_key))
key = hash_or_key;
@@ -5096,17 +5097,17 @@ gc_info_decode(int flags, VALUE hash_or_key)
else if (hash != Qnil) \
rb_hash_aset(hash, sym_##name, (attr));
- SET(major_by,
- (flags & GPR_FLAG_MAJOR_BY_NOFREE) ? sym_nofree :
- (flags & GPR_FLAG_MAJOR_BY_OLDGEN) ? sym_oldgen :
- (flags & GPR_FLAG_MAJOR_BY_SHADY) ? sym_shady :
- (flags & GPR_FLAG_MAJOR_BY_RESCAN) ? sym_rescan :
- (flags & GPR_FLAG_MAJOR_BY_STRESS) ? sym_stress :
+ major_by =
+ (flags & GPR_FLAG_MAJOR_BY_NOFREE) ? sym_nofree :
+ (flags & GPR_FLAG_MAJOR_BY_OLDGEN) ? sym_oldgen :
+ (flags & GPR_FLAG_MAJOR_BY_SHADY) ? sym_shady :
+ (flags & GPR_FLAG_MAJOR_BY_RESCAN) ? sym_rescan :
+ (flags & GPR_FLAG_MAJOR_BY_STRESS) ? sym_stress :
#if RGENGC_ESTIMATE_OLDMALLOC
- (flags & GPR_FLAG_MAJOR_BY_OLDMALLOC) ? sym_oldmalloc :
+ (flags & GPR_FLAG_MAJOR_BY_OLDMALLOC) ? sym_oldmalloc :
#endif
- Qnil
- );
+ Qnil;
+ SET(major_by, major_by);
SET(gc_by,
(flags & GPR_FLAG_NEWOBJ) ? sym_newobj :