Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE

use mrb_bool, FALSE and TRUE more
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-02-09 18:35:20 +09:00
16 changed files with 49 additions and 49 deletions
+4 -4
View File
@@ -981,7 +981,7 @@ gen_send_intern(codegen_scope *s)
push();
}
static void
gen_literal_array(codegen_scope *s, node *tree, int sym, int val)
gen_literal_array(codegen_scope *s, node *tree, mrb_bool sym, int val)
{
if (val) {
int i = 0, j = 0;
@@ -1069,7 +1069,7 @@ readint_float(codegen_scope *s, const char *p, int base)
}
static mrb_int
readint_mrb_int(codegen_scope *s, const char *p, int base, int neg, int *overflow)
readint_mrb_int(codegen_scope *s, const char *p, int base, mrb_bool neg, mrb_bool *overflow)
{
const char *e = p + strlen(p);
mrb_int result = 0;
@@ -1926,7 +1926,7 @@ codegen(codegen_scope *s, node *tree, int val)
int base = (intptr_t)tree->cdr->car;
mrb_int i;
mrb_code co;
int overflow;
mrb_bool overflow;
i = readint_mrb_int(s, p, base, FALSE, &overflow);
if (overflow) {
@@ -1982,7 +1982,7 @@ codegen(codegen_scope *s, node *tree, int val)
int base = (intptr_t)tree->cdr->car;
mrb_int i;
mrb_code co;
int overflow;
mrb_bool overflow;
i = readint_mrb_int(s, p, base, TRUE, &overflow);
if (overflow) {