mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Move home variable into readline ifdef
This commit is contained in:
@@ -244,6 +244,8 @@ main(int argc, char **argv)
|
||||
#ifndef ENABLE_READLINE
|
||||
int last_char;
|
||||
int char_index;
|
||||
#else
|
||||
char *home = NULL;
|
||||
#endif
|
||||
mrbc_context *cxt;
|
||||
struct mrb_parser_state *parser;
|
||||
@@ -253,7 +255,6 @@ main(int argc, char **argv)
|
||||
int n;
|
||||
int code_block_open = FALSE;
|
||||
int ai;
|
||||
char *home = NULL;
|
||||
|
||||
/* new interpreter instance */
|
||||
mrb = mrb_open();
|
||||
|
||||
Reference in New Issue
Block a user