use mrb_bool, FALSE and TRUE more

It doesn't matter to me if one is using FALSE/TRUE instead of 1/0
but I prefer a type (alias) which emphasizes boolean vars to int.
I changed 1/0 to FALSE/TRUE anyway.
This commit is contained in:
cremno
2014-01-31 16:06:45 +01:00
parent 7c9a1accff
commit 4507985c3e
16 changed files with 49 additions and 49 deletions
+3 -3
View File
@@ -2005,7 +2005,7 @@ mrb_string_value_cstr(mrb_state *mrb, mrb_value *ptr)
}
mrb_value
mrb_str_to_inum(mrb_state *mrb, mrb_value str, int base, int badcheck)
mrb_str_to_inum(mrb_state *mrb, mrb_value str, int base, mrb_bool badcheck)
{
char *s;
int len;
@@ -2068,7 +2068,7 @@ mrb_str_to_i(mrb_state *mrb, mrb_value self)
}
double
mrb_cstr_to_dbl(mrb_state *mrb, const char * p, int badcheck)
mrb_cstr_to_dbl(mrb_state *mrb, const char * p, mrb_bool badcheck)
{
char *end;
double d;
@@ -2137,7 +2137,7 @@ bad:
}
double
mrb_str_to_dbl(mrb_state *mrb, mrb_value str, int badcheck)
mrb_str_to_dbl(mrb_state *mrb, mrb_value str, mrb_bool badcheck)
{
char *s;
int len;