Commit aa441c2a authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2433 from take-cheeze/mirb_bool_val

Use `TRUE` instead of `1` in mirb code.
parents 618ef17c a656daf4
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment