summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-07 18:12:07 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-07 18:12:07 +0000
commit9d4f9dbd0b75805efc2d3f18afe02bb164a86f0e (patch)
treeb70441f86f89c779dc2b08576e88c0edbba927d4 /src
parent3aef2f08589e46bbbce15a4534c4900bc2528998 (diff)
downloadopenocd_libswd-9d4f9dbd0b75805efc2d3f18afe02bb164a86f0e.tar.gz
openocd_libswd-9d4f9dbd0b75805efc2d3f18afe02bb164a86f0e.tar.bz2
openocd_libswd-9d4f9dbd0b75805efc2d3f18afe02bb164a86f0e.tar.xz
openocd_libswd-9d4f9dbd0b75805efc2d3f18afe02bb164a86f0e.zip
reduce patch problems by moving $xxx expansion into seperate fn
git-svn-id: svn://svn.berlios.de/openocd/trunk@1027 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/openocd.c42
1 files changed, 30 insertions, 12 deletions
diff --git a/src/openocd.c b/src/openocd.c
index ccace082..b09ef1e7 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -60,6 +60,34 @@
#include "replacements.h"
+
+
+
+
+
+void print_version()
+{
+ /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
+ LOG_OUTPUT( "$URL$\n");
+ /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
+ /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
+}
+
+
+
+
+
+
+
+
+
/* Give TELNET a way to find out what version this is */
int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
{
@@ -198,18 +226,8 @@ int openocd_main(int argc, char *argv[])
LOG_OUTPUT( "\n\nBUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS\n\n\n");
- /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line below does not appear in a patch, do not remove */
- LOG_OUTPUT( "$URL$\n");
- /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
- /* DANGER!!! make sure that the line above does not appear in a patch, do not remove */
-
+ print_version();
+
command_context_mode(cmd_ctx, COMMAND_CONFIG);
command_set_output_handler(cmd_ctx, configuration_output_handler, NULL);