aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-10 07:06:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-10 07:06:39 +0000
commit46ac76b6edf7d480ccd791e3391bedf437c671e8 (patch)
treeb44670e4bcc3df481d665dc37f22a8d860bb0ffd /iseq.h
parenta944bdd5fa7c7c2ddeae063eb567a4a9baceae5e (diff)
downloadruby-46ac76b6edf7d480ccd791e3391bedf437c671e8.tar.gz
iseq.h: bit flags
* iseq.h (rb_compile_option_struct): turn boolean flags to bit fields. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/iseq.h b/iseq.h
index 945e7cb58d..11e67352f8 100644
--- a/iseq.h
+++ b/iseq.h
@@ -124,16 +124,16 @@ const rb_iseq_t *rb_method_iseq(VALUE body);
const rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
struct rb_compile_option_struct {
- int inline_const_cache;
- int peephole_optimization;
- int tailcall_optimization;
- int specialized_instruction;
- int operands_unification;
- int instructions_unification;
- int stack_caching;
- int trace_instruction;
- int frozen_string_literal;
- int debug_frozen_string_literal;
+ unsigned int inline_const_cache: 1;
+ unsigned int peephole_optimization: 1;
+ unsigned int tailcall_optimization: 1;
+ unsigned int specialized_instruction: 1;
+ unsigned int operands_unification: 1;
+ unsigned int instructions_unification: 1;
+ unsigned int stack_caching: 1;
+ unsigned int trace_instruction: 1;
+ unsigned int frozen_string_literal: 1;
+ unsigned int debug_frozen_string_literal: 1;
int debug_level;
};