summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mirb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-09 18:35:20 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-09 18:35:20 +0900
commit19a08b8455c02eaef06d11cdc07b8011df6acd6d (patch)
tree5159549c6965c6ef10e4db7c6862999bdadcf7a5 /mrbgems/mruby-bin-mirb
parentd8a5f1205338f8ed664745ef74c825b74b9bb081 (diff)
parent4507985c3ea2b3a7d14745f1f432e544ddeafe93 (diff)
downloadmruby-19a08b8455c02eaef06d11cdc07b8011df6acd6d.tar.gz
mruby-19a08b8455c02eaef06d11cdc07b8011df6acd6d.zip
Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
use mrb_bool, FALSE and TRUE more
Diffstat (limited to 'mrbgems/mruby-bin-mirb')
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c8
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 1ac988b2b..183003307 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -45,7 +45,7 @@ p(mrb_state *mrb, mrb_value obj, int prompt)
static mrb_bool
is_code_block_open(struct mrb_parser_state *parser)
{
- int code_block_open = FALSE;
+ mrb_bool code_block_open = FALSE;
/* check for heredoc */
if (parser->parsing_heredoc != NULL) return TRUE;
@@ -249,9 +249,9 @@ main(int argc, char **argv)
mrb_value result;
struct _args args;
int n;
- int code_block_open = FALSE;
+ mrb_bool code_block_open = FALSE;
int ai;
- int first_command = 1;
+ mrb_bool first_command = TRUE;
unsigned int nregs;
/* new interpreter instance */
@@ -390,7 +390,7 @@ main(int argc, char **argv)
}
mrb_parser_free(parser);
cxt->lineno++;
- first_command = 0;
+ first_command = FALSE;
}
mrbc_context_free(mrb, cxt);
mrb_close(mrb);