summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc
diff options
context:
space:
mode:
authorMasaki Muranaka <[email protected]>2013-03-13 13:30:40 +0900
committerMasaki Muranaka <[email protected]>2013-03-14 15:13:12 +0900
commit1ffc9ba3255f8b63164c42ea8304115f5a6b2464 (patch)
tree696cc7a62568dd72974e5a20c7fa8486cb5b58e2 /tools/mrbc
parent0739960b7fab2ce61bbeaedef7680cd4805a03f4 (diff)
downloadmruby-1ffc9ba3255f8b63164c42ea8304115f5a6b2464.tar.gz
mruby-1ffc9ba3255f8b63164c42ea8304115f5a6b2464.zip
Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.
It is safer than applying 1bit bit-fields to signed int. For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
Diffstat (limited to 'tools/mrbc')
-rw-r--r--tools/mrbc/mrbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c
index 698586ec0..09ab2ca1d 100644
--- a/tools/mrbc/mrbc.c
+++ b/tools/mrbc/mrbc.c
@@ -19,8 +19,8 @@ struct _args {
char *filename;
char *initname;
char *ext;
- int check_syntax : 1;
- int verbose : 1;
+ mrb_bool check_syntax : 1;
+ mrb_bool verbose : 1;
};
static void