summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-10 13:21:58 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-10 13:21:58 +0000
commitbb1a1aeab0f2a5fe437c89b841a887ba56653453 (patch)
tree16818aeb66a9f256eb8e3912c230ff99e0247318 /internal.h
parent5da9bd0ee5b9a4faf503942b803b8b54b70c98ee (diff)
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). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal.h b/internal.h
index 867beceb02..a230767c5d 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_pause(bool 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 void mjit_finish(bool close_handle_p){}
#endif
/* newline.c */