Merge pull request #2433 from take-cheeze/mirb_bool_val

Use `TRUE` instead of `1` in mirb code.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-07-02 00:15:09 +09:00
+4 -4
View File
@@ -200,7 +200,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
switch (*item++) {
case 'v':
if (!args->verbose) mrb_show_version(mrb);
args->verbose = 1;
args->verbose = TRUE;
break;
case '-':
if (strcmp((*argv) + 2, "version") == 0) {
@@ -208,7 +208,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
exit(EXIT_SUCCESS);
}
else if (strcmp((*argv) + 2, "verbose") == 0) {
args->verbose = 1;
args->verbose = TRUE;
break;
}
else if (strcmp((*argv) + 2, "copyright") == 0) {
@@ -313,10 +313,10 @@ main(int argc, char **argv)
print_hint();
cxt = mrbc_context_new(mrb);
cxt->capture_errors = 1;
cxt->capture_errors = TRUE;
cxt->lineno = 1;
mrbc_filename(mrb, cxt, "(mirb)");
if (args.verbose) cxt->dump_result = 1;
if (args.verbose) cxt->dump_result = TRUE;
ai = mrb_gc_arena_save(mrb);