aboutsummaryrefslogtreecommitdiff
path: root/src/svf/svf.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-09 21:24:45 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-09 21:39:46 -0800
commitdb6c2871dd3f106ca8b5dc8828a17f8b729de181 (patch)
treec27f09b1ece0c3eb68715396c51a5021859f3583 /src/svf/svf.c
parent841721929a63bb77379b1598d91ed85b85021734 (diff)
downloadriscv-openocd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.zip
riscv-openocd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.tar.gz
riscv-openocd-db6c2871dd3f106ca8b5dc8828a17f8b729de181.tar.bz2
svf,xsvf,arm7_9_common: trim forard declarations
Remove forward declarations by reordering command registration.
Diffstat (limited to 'src/svf/svf.c')
-rw-r--r--src/svf/svf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/svf/svf.c b/src/svf/svf.c
index 9c597bf..ba6ed1b 100644
--- a/src/svf/svf.c
+++ b/src/svf/svf.c
@@ -210,7 +210,6 @@ static int svf_read_command_from_file(int fd);
static int svf_check_tdo(void);
static int svf_add_check_para(uint8_t enabled, int buffer_offset, int bit_len);
static int svf_run_command(struct command_context_s *cmd_ctx, char *cmd_str);
-static int handle_svf_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
static int svf_fd = 0;
static char *svf_command_buffer = NULL;
@@ -225,14 +224,6 @@ static int svf_buffer_index = 0, svf_buffer_size = 0;
static int svf_quiet = 0;
-int svf_register_commands(struct command_context_s *cmd_ctx)
-{
- register_command(cmd_ctx, NULL, "svf", handle_svf_command,
- COMMAND_EXEC, "run svf <file>");
-
- return ERROR_OK;
-}
-
static void svf_free_xxd_para(svf_xxr_para_t *para)
{
if (NULL != para)
@@ -1468,3 +1459,12 @@ static int svf_run_command(struct command_context_s *cmd_ctx, char *cmd_str)
return ERROR_OK;
}
+
+int svf_register_commands(struct command_context_s *cmd_ctx)
+{
+ register_command(cmd_ctx, NULL, "svf",
+ &handle_svf_command, COMMAND_EXEC,
+ "run svf <file>");
+
+ return ERROR_OK;
+}