diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-06 23:22:17 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-06 23:22:17 +0000 |
commit | 655e4f88a6b7fd82a570a17cf1219356f4587a37 (patch) | |
tree | b425d6598b3af3f1c672fb479679fb4be6b8e276 /src/helper | |
parent | 163bd86071a90b77eb8b0e03927b0ed8908eb892 (diff) | |
download | openocd_libswd-655e4f88a6b7fd82a570a17cf1219356f4587a37.tar.gz openocd_libswd-655e4f88a6b7fd82a570a17cf1219356f4587a37.tar.bz2 openocd_libswd-655e4f88a6b7fd82a570a17cf1219356f4587a37.tar.xz openocd_libswd-655e4f88a6b7fd82a570a17cf1219356f4587a37.zip |
- 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
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/binarybuffer.h | 1 | ||||
-rw-r--r-- | src/helper/command.c | 10 | ||||
-rw-r--r-- | src/helper/command.h | 11 | ||||
-rw-r--r-- | src/helper/replacements.h | 8 |
4 files changed, 9 insertions, 21 deletions
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 |