mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
Update to the current Jim Tcl
This is a post-release version but hopefully some fixes that went in are worth it; also the changes here make OpenOCD compatible with stock 0.75 version if a distro maintainer decides to use it. Change-Id: I7ad1814c7c4868198475cdca4750c3d0ee4f5f8b Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2121 Tested-by: jenkins Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
committed by
Freddie Chopin
parent
dd2e16a9e8
commit
92ea548aaf
2
jimtcl
2
jimtcl
Submodule jimtcl updated: 2c1eba991e...72bbd6c5a3
@@ -365,7 +365,7 @@ static int register_command_handler(struct command_context *cmd_ctx,
|
||||
|
||||
LOG_DEBUG("registering '%s'...", ocd_name);
|
||||
|
||||
Jim_CmdProc func = c->handler ? &script_command : &command_unknown;
|
||||
Jim_CmdProc *func = c->handler ? &script_command : &command_unknown;
|
||||
int retval = Jim_CreateCommand(interp, ocd_name, func, c, NULL);
|
||||
free(ocd_name);
|
||||
if (JIM_OK != retval)
|
||||
|
||||
@@ -168,7 +168,7 @@ struct command {
|
||||
struct command *parent;
|
||||
struct command *children;
|
||||
command_handler_t handler;
|
||||
Jim_CmdProc jim_handler;
|
||||
Jim_CmdProc *jim_handler;
|
||||
void *jim_handler_data;
|
||||
enum command_mode mode;
|
||||
struct command *next;
|
||||
@@ -204,7 +204,7 @@ char *command_name(struct command *c, char delim);
|
||||
struct command_registration {
|
||||
const char *name;
|
||||
command_handler_t handler;
|
||||
Jim_CmdProc jim_handler;
|
||||
Jim_CmdProc *jim_handler;
|
||||
void *jim_handler_data;
|
||||
enum command_mode mode;
|
||||
const char *help;
|
||||
|
||||
Reference in New Issue
Block a user