diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-10 14:31:18 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-10 14:31:18 +0000 |
commit | 56bf732aaf5a109964b0297b2158372de2e3ae97 (patch) | |
tree | 464da0736c6857af72c7a0f7c352d5bd35ffbec4 /internal.h | |
parent | efd99b533177d429dbc64ababfe342ebbd3f6502 (diff) | |
download | ruby-56bf732aaf5a109964b0297b2158372de2e3ae97.tar.gz |
mjit.c: use boolean type for boolean variables
and functions to clarify the intention and make sure it's not used in a
surprising way (like using 2, 3, ... other than 0, 1 even while it seems
to be a boolean).
This is a retry of r66775. It included some typos...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal.h b/internal.h index 867beceb02..36e03ff9df 100644 --- a/internal.h +++ b/internal.h @@ -1595,15 +1595,15 @@ VALUE rb_math_sqrt(VALUE); /* mjit.c */ #if USE_MJIT -extern int mjit_enabled; -VALUE mjit_pause(int wait_p); +extern bool mjit_enabled; +VALUE mjit_pause(bool wait_p); VALUE mjit_resume(void); -void mjit_finish(int close_handle_p); +void mjit_finish(bool close_handle_p); #else #define mjit_enabled 0 -static inline VALUE mjit_pause(int wait_p){ return Qnil; } /* unreachable */ -static inline VALUE mjit_resume(void){ return Qnil; } /* unreachable */ -static inline void mjit_finish(int close_handle_p){} +static inline VALUE mjit_pause(bool wait_p){ return Qnil; } // unreachable +static inline VALUE mjit_resume(void){ return Qnil; } // unreachable +static inline void mjit_finish(bool close_handle_p){} #endif /* newline.c */ |