diff options
| author | take_cheeze <[email protected]> | 2014-06-30 23:26:23 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-06-30 23:26:23 +0900 |
| commit | a656daf4c51532f208e3efcb6471352a41b80822 (patch) | |
| tree | 44de67ce975e48e2d360136568353367f13a1974 /mrbgems/mruby-bin-mirb/tools | |
| parent | 618ef17c8c5a623f4da006954c5e9e21dacd9144 (diff) | |
| download | mruby-a656daf4c51532f208e3efcb6471352a41b80822.tar.gz mruby-a656daf4c51532f208e3efcb6471352a41b80822.zip | |
Use `TRUE` instead of `1` in mirb code.
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index dece361a5..f96508d55 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -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); |
