From e482118106c63edd3c9f6647e4232e90b4c16066 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 25 Feb 2008 07:50:03 +0000 Subject: - using ERROR_COMMAND_SYNTAX_ERROR to print syntax in a couple of places - some more flash cleanup of checking halted state - moved output handler into options.c - very slightly tweaked server.c to make it a bit more compatible with eCos - retired arch_state. Not quite sure how I managed to leave that out last time. git-svn-id: svn://svn.berlios.de/openocd/trunk@338 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/configuration.c | 6 ------ src/helper/options.c | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/helper') diff --git a/src/helper/configuration.c b/src/helper/configuration.c index 0a7bf180..1bed1e06 100644 --- a/src/helper/configuration.c +++ b/src/helper/configuration.c @@ -36,12 +36,6 @@ static char** config_file_names; static size_t num_script_dirs; static char** script_search_dirs; -int configuration_output_handler(struct command_context_s *context, char* line) -{ - INFO(line); - - return ERROR_OK; -} void add_script_search_dir (const char *dir) { diff --git a/src/helper/options.c b/src/helper/options.c index 908748dd..b6b2c6dc 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -48,6 +48,15 @@ static struct option long_options[] = }; + +int configuration_output_handler(struct command_context_s *context, char* line) +{ + INFO(line); + + return ERROR_OK; +} + + int parse_cmdline_args(struct command_context_s *cmd_ctx, int argc, char *argv[]) { int c; -- cgit v1.2.3