mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #1186 from carsonmcdonald/mrbcfixup
Minor format changes and a typo fix
This commit is contained in:
+5
-3
@@ -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",
|
||||
@@ -43,7 +44,7 @@ usage(const char *name)
|
||||
|
||||
printf("Usage: %s [switches] programfile\n", name);
|
||||
while(*p)
|
||||
printf(" %s\n", *p++);
|
||||
printf(" %s\n", *p++);
|
||||
}
|
||||
|
||||
static char *
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user