diff options
| author | cremno <[email protected]> | 2014-01-31 01:30:18 +0100 |
|---|---|---|
| committer | cremno <[email protected]> | 2014-01-31 01:30:18 +0100 |
| commit | f2a62a74ed22a535ebea4dd71faf05bda6011fd4 (patch) | |
| tree | 78071cfa0dfc9550de8a09b2160f7bf5f11cfb21 /mrbgems/mruby-bin-mirb/tools | |
| parent | a68a51702876b9c520c21a15bdf03ea91e0439f0 (diff) | |
| download | mruby-f2a62a74ed22a535ebea4dd71faf05bda6011fd4.tar.gz mruby-f2a62a74ed22a535ebea4dd71faf05bda6011fd4.zip | |
clean up external symbols
remove unused and unneeded:
- sysexit_status
- type (a global variable)
add mrb_ prefix to:
- codedump_all
- class_instance_method_list
- parser_dump
make various functions static, incl.:
- yyparse
- make_exception
Diffstat (limited to 'mrbgems/mruby-bin-mirb/tools')
| -rw-r--r-- | mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 8 |
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 5505e8e5e..75d51265b 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -42,7 +42,7 @@ p(mrb_state *mrb, mrb_value obj, int prompt) /* Guess if the user might want to enter more * or if he wants an evaluation of his code now */ -mrb_bool +static mrb_bool is_code_block_open(struct mrb_parser_state *parser) { int code_block_open = FALSE; @@ -221,7 +221,7 @@ print_hint(void) } /* Print the command line prompt of the REPL */ -void +static void print_cmdline(int code_block_open) { if (code_block_open) { @@ -232,7 +232,7 @@ print_cmdline(int code_block_open) } } -void codedump_all(mrb_state*, struct RProc*); +void mrb_codedump_all(mrb_state*, struct RProc*); int main(int argc, char **argv) @@ -364,7 +364,7 @@ main(int argc, char **argv) struct RProc *proc = mrb_generate_code(mrb, parser); if (args.verbose) { - codedump_all(mrb, proc); + mrb_codedump_all(mrb, proc); } /* pass a proc for evaulation */ nregs = first_command ? 0: proc->body.irep->nregs; |
