Commit 6170cfea authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1186 from carsonmcdonald/mrbcfixup

Minor format changes and a typo fix
parents 2d6ff9e8 204ff73f
......@@ -8,6 +8,7 @@
#define RITEBIN_EXT ".mrb"
#define C_EXT ".c"
void mrb_show_version(mrb_state *);
void mrb_show_copyright(mrb_state *);
void parser_dump(mrb_state*, struct mrb_ast_node*, int);
......@@ -31,7 +32,7 @@ usage(const char *name)
"switches:",
"-c check syntax only",
"-o<outfile> place the output into <outfile>",
"-v print version number, then trun on verbose mode",
"-v print version number, then turn on verbose mode",
"-g produce debugging information",
"-B<symbol> binary <symbol> output in C language format",
"--verbose run at verbose mode",
......@@ -162,7 +163,8 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
goto exit;
}
}
exit:
exit:
if (outfile && infile != outfile) mrb_free(mrb, outfile);
return result;
}
......
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