[前][次][番号順一覧][スレッド一覧]

ruby-changes:41717

From: nobu <ko1@a...>
Date: Tue, 9 Feb 2016 16:42:10 +0900 (JST)
Subject: [ruby-changes:41717] nobu:r53791 (trunk): ruby.c: set feature bits only

nobu	2016-02-09 16:42:21 +0900 (Tue, 09 Feb 2016)

  New Revision: 53791

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53791

  Log:
    ruby.c: set feature bits only
    
    * ruby.c (DEFAULT_FEATURES): set feature bits only, excluding
      debug features.

  Modified files:
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 53790)
+++ ruby.c	(revision 53791)
@@ -78,6 +78,8 @@ char *getenv(); https://github.com/ruby/ruby/blob/trunk/ruby.c#L78
 #define DEFINE_DEBUG_FEATURE(bit) feature_debug_##bit,
 enum feature_flag_bits {
     EACH_FEATURES(DEFINE_FEATURE)
+    feature_debug_flag_first,
+    feature_debug_flag_begin = feature_debug_flag_first - 1,
     EACH_DEBUG_FEATURES(DEFINE_DEBUG_FEATURE)
     feature_flag_count
 };
@@ -133,7 +135,7 @@ enum { https://github.com/ruby/ruby/blob/trunk/ruby.c#L135
 	| FEATURE_BIT(debug_frozen_string_literal)
 	),
     DEFAULT_FEATURES = (
-	~0U
+	(FEATURE_BIT(debug_flag_first)-1)
 #if DISABLE_RUBYGEMS
 	& ~FEATURE_BIT(gems)
 #endif

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]