From 5576a6240a103879e1a8d9d4c2b6ff4aee0d23fa Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Tue, 1 Dec 2009 08:41:41 +0100 Subject: command: the Jim interpreter can now be provided rather than created MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In embedded hosts, the Jim interpreter can come from the existing context rather than be created by OpenOCD. Signed-off-by: Øyvind Harboe --- src/helper/command.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/helper/command.h') diff --git a/src/helper/command.h b/src/helper/command.h index 611db873..8d68c183 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -323,9 +323,11 @@ void command_set_output_handler(struct command_context* context, int command_context_mode(struct command_context *context, enum command_mode mode); /** - * Creates a new command context using the startup TCL provided. + * Creates a new command context using the startup TCL provided and + * the existing Jim interpreter, if any. If interp == NULL, then command_init + * creates a command interpreter. */ -struct command_context* command_init(const char *startup_tcl); +struct command_context* command_init(const char *startup_tcl, Jim_Interp *interp); /** * Creates a copy of an existing command context. This does not create * a deep copy of the command list, so modifications in one context will -- cgit v1.2.3