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:
Zachary T Welch
2009-11-29 18:27:45 -08:00
parent 8e8a359af2
commit 7b2906de24
11 changed files with 31 additions and 23 deletions
+2 -2
View File
@@ -487,7 +487,7 @@ void sig_handler(int sig) {
}
#endif
int server_init(void)
int server_init(struct command_context *cmd_ctx)
{
#ifdef _WIN32
WORD wVersionRequested;
@@ -518,7 +518,7 @@ int server_init(void)
signal(SIGABRT, sig_handler);
#endif
int ret = tcl_init();
int ret = tcl_init(cmd_ctx);
if (ERROR_OK != ret)
return ret;