From 0ebb33b185314a113a6961bf26c7b59cf42aff63 Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 17 Jul 2008 17:31:07 +0000 Subject: Charles Hardin ckhardin at gmail.com Instead of stashing the context in a global variable, just use the "context" associated with the interp structure being passed around And fixed the message referring to mem2array in the array2mem function git-svn-id: svn://svn.berlios.de/openocd/trunk@821 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/command.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/helper') diff --git a/src/helper/command.c b/src/helper/command.c index 31de2ec9..3ec1f84d 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -41,7 +41,6 @@ #include int fast_and_dangerous = 0; -extern command_context_t *active_cmd_ctx; int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); int handle_fast_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc); @@ -396,7 +395,6 @@ int command_run_line(command_context_t *context, char *line) if (retcode != JIM_OK) return ERROR_FAIL; - active_cmd_ctx = context; retcode = Jim_Eval(interp, line); if (retcode == JIM_ERR) { if (retval!=ERROR_COMMAND_CLOSE_CONNECTION) -- cgit v1.2.3