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 @@ ...@@ -8,6 +8,7 @@
#define RITEBIN_EXT ".mrb" #define RITEBIN_EXT ".mrb"
#define C_EXT ".c" #define C_EXT ".c"
void mrb_show_version(mrb_state *); void mrb_show_version(mrb_state *);
void mrb_show_copyright(mrb_state *); void mrb_show_copyright(mrb_state *);
void parser_dump(mrb_state*, struct mrb_ast_node*, int); void parser_dump(mrb_state*, struct mrb_ast_node*, int);
...@@ -31,7 +32,7 @@ usage(const char *name) ...@@ -31,7 +32,7 @@ usage(const char *name)
"switches:", "switches:",
"-c check syntax only", "-c check syntax only",
"-o<outfile> place the output into <outfile>", "-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", "-g produce debugging information",
"-B<symbol> binary <symbol> output in C language format", "-B<symbol> binary <symbol> output in C language format",
"--verbose run at verbose mode", "--verbose run at verbose mode",
...@@ -43,7 +44,7 @@ usage(const char *name) ...@@ -43,7 +44,7 @@ usage(const char *name)
printf("Usage: %s [switches] programfile\n", name); printf("Usage: %s [switches] programfile\n", name);
while(*p) while(*p)
printf(" %s\n", *p++); printf(" %s\n", *p++);
} }
static char * static char *
...@@ -162,7 +163,8 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args) ...@@ -162,7 +163,8 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args)
goto exit; goto exit;
} }
} }
exit:
exit:
if (outfile && infile != outfile) mrb_free(mrb, outfile); if (outfile && infile != outfile) mrb_free(mrb, outfile);
return result; 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