From 5e229bbf87fbb5a809553526edf0186dd3dd5cf8 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 17 Nov 2009 09:15:09 -0800 Subject: pass startup_tcl to command_init Removes external linkage from helper module, making the startup code a parameter to a new command context's initialization routine. --- src/openocd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/openocd.c') diff --git a/src/openocd.c b/src/openocd.c index 9edd611d..b7781a6b 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -28,6 +28,7 @@ #include "config.h" #endif +#include "openocd.h" #include "jtag.h" #include "configuration.h" #include "xsvf.h" @@ -168,7 +169,7 @@ struct command_context *setup_command_handler(void) { struct command_context *cmd_ctx; - global_cmd_ctx = cmd_ctx = command_init(); + global_cmd_ctx = cmd_ctx = command_init(openocd_startup_tcl); register_command(cmd_ctx, NULL, "version", handle_version_command, COMMAND_EXEC, "show OpenOCD version"); -- cgit v1.2.3