diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-12-01 14:07:23 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-12-01 14:07:23 +0800 |
| commit | 40bfc86a5e0a1a70f904a080569da9662747181f (patch) | |
| tree | 8f5f1d28650e8194b918293ebc7d826f0580af4f /tools | |
| parent | 5f00a837edd0f55ed56d4d532d06ee45d9850f3c (diff) | |
| parent | 26600ca4ec2c9547927056b35b61328f12cda79a (diff) | |
| download | mruby-40bfc86a5e0a1a70f904a080569da9662747181f.tar.gz mruby-40bfc86a5e0a1a70f904a080569da9662747181f.zip | |
Merge remote-tracking branch 'upstream/master' into mrbgems
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mirb/mirb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index 502400c72..d3903ef57 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -5,7 +5,7 @@ ** an interactive way and executes it ** immediately. It's a REPL... */ - + #include <string.h> #include <mruby.h> @@ -143,7 +143,7 @@ print_cmdline(int code_block_open) int main(void) { - char last_char; + int last_char; char ruby_code[1024] = { 0 }; char last_code_line[1024] = { 0 }; int char_index; @@ -156,7 +156,7 @@ main(void) print_hint(); - /* new interpreter instance */ + /* new interpreter instance */ mrb = mrb_open(); if (mrb == NULL) { fprintf(stderr, "Invalid mrb interpreter, exiting mirb"); @@ -207,7 +207,7 @@ main(void) parser->send = ruby_code + strlen(ruby_code); parser->lineno = 1; mrb_parser_parse(parser, cxt); - code_block_open = is_code_block_open(parser); + code_block_open = is_code_block_open(parser); if (code_block_open) { /* no evaluation of code */ |
