From 655e4f88a6b7fd82a570a17cf1219356f4587a37 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Sun, 6 Jul 2008 23:22:17 +0000 Subject: - fixed build issues with win32 - fixed build warnings for last commit - set svn props for last commit git-svn-id: svn://svn.berlios.de/openocd/trunk@760 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/binarybuffer.h | 1 - src/helper/command.c | 10 +--------- src/helper/command.h | 11 +---------- src/helper/replacements.h | 8 +++++++- 4 files changed, 9 insertions(+), 21 deletions(-) (limited to 'src/helper') diff --git a/src/helper/binarybuffer.h b/src/helper/binarybuffer.h index 47ae193e..02735412 100644 --- a/src/helper/binarybuffer.h +++ b/src/helper/binarybuffer.h @@ -94,5 +94,4 @@ static __inline u32 fast_target_buffer_get_u32(u8 *buffer, int little) return be_to_h_u32(buffer); } - #endif /* BINARYBUFFER_H */ diff --git a/src/helper/command.c b/src/helper/command.c index 55f950bf..8b7be702 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -305,14 +305,13 @@ int parse_line(char *line, char *words[], int max_words) return nwords; } -void command_output_text( command_context_t *context, const char *data ) +void command_output_text(command_context_t *context, const char *data) { if( context && context->output_handler && data ){ context->output_handler( context, data ); } } - void command_print_n(command_context_t *context, char *format, ...) { char *string; @@ -728,10 +727,3 @@ int handle_time_command(struct command_context_s *cmd_ctx, char *cmd, char **arg return retval; } -/* - * Local Variables: ** - * tab-width: 4 ** - * c-basic-offset: 4 ** - * End: ** - */ - diff --git a/src/helper/command.h b/src/helper/command.h index 8db1675f..6381bf35 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -77,20 +77,11 @@ extern int command_run_line(command_context_t *context, char *line); extern int command_run_linef(command_context_t *context, char *format, ...); extern int command_run_line_internal(command_context_t *context, char *line); extern int command_run_file(command_context_t *context, FILE *file, enum command_mode mode); - +extern void command_output_text(command_context_t *context, const char *data); #define ERROR_COMMAND_CLOSE_CONNECTION (-600) #define ERROR_COMMAND_SYNTAX_ERROR (-601) - extern int fast_and_dangerous; #endif /* COMMAND_H */ - -/* - * Local Variables: ** - * tab-width: 4 ** - * c-basic-offset: 4 ** - * End: ** - */ - diff --git a/src/helper/replacements.h b/src/helper/replacements.h index 71e4c66c..70c3a40a 100644 --- a/src/helper/replacements.h +++ b/src/helper/replacements.h @@ -54,7 +54,13 @@ #ifndef MAX #define MAX(a,b) (((a)>(b))?(a):(b)) #endif - + +/* for systems that do not support ENOTSUP + * win32 being one of them */ +#ifndef ENOTSUP +#define ENOTSUP 134 /* Not supported */ +#endif + /* gettimeofday() */ #ifndef HAVE_GETTIMEOFDAY -- cgit v1.2.3