summaryrefslogtreecommitdiff
path: root/mjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-09-03 20:01:50 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2022-09-03 20:01:51 -0700
commitcfa40e225adb30b777ef50d9d8dc15a51e3d2797 (patch)
tree747558d38a1b47f00e4c069731584ba06ec1c5c6 /mjit.h
parent13a59747c83dbaf52787ef45d24ed2ebd6c12d68 (diff)
Prefer stdbool for MJIT options
same motivation as d6f21b308bcff03e82f8b3dbf11a852ce111b3b3
Diffstat (limited to 'mjit.h')
-rw-r--r--mjit.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/mjit.h b/mjit.h
index 045612d7be..66db417daf 100644
--- a/mjit.h
+++ b/mjit.h
@@ -37,20 +37,20 @@ enum rb_mjit_iseq_func {
struct mjit_options {
// Converted from "jit" feature flag to tell the enablement
// information to ruby_show_version().
- char on;
+ bool on;
// Save temporary files after MRI finish. The temporary files
// include the pre-compiled header, C code file generated for ISEQ,
// and the corresponding object file.
- char save_temps;
+ bool save_temps;
// Print MJIT warnings to stderr.
- char warnings;
+ bool warnings;
// Disable compiler optimization and add debug symbols. It can be
// very slow.
- char debug;
+ bool debug;
// Add arbitrary cflags.
char* debug_flags;
// If not 0, all ISeqs are synchronously compiled. For testing.
- unsigned int wait;
+ bool wait;
// Number of calls to trigger JIT compilation. For testing.
unsigned int min_calls;
// Force printing info about MJIT work of level VERBOSE or