svf,xsvf,arm7_9_common: trim forard declarations

Remove forward declarations by reordering command registration.
This commit is contained in:
Zachary T Welch
2009-11-09 21:24:45 -08:00
parent 841721929a
commit db6c2871dd
3 changed files with 55 additions and 53 deletions

View File

@@ -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;
}