do not extern 'interp' from command.c
Adds 'interp' field to command_context, chasing the few remaining references to the global variable outside of the command module.
This commit is contained in:
@@ -1257,7 +1257,7 @@ struct command_context* command_init(const char *startup_tcl)
|
||||
#if !BUILD_ECOSBOARD
|
||||
Jim_InitEmbedded();
|
||||
/* Create an interpreter */
|
||||
interp = Jim_CreateInterp();
|
||||
interp = context->interp = Jim_CreateInterp();
|
||||
/* Add all the Jim core commands */
|
||||
Jim_RegisterCoreCommands(interp);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user