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
This commit is contained in:
parent
3aef2f0858
commit
9d4f9dbd0b
|
@ -60,6 +60,34 @@
|
||||||
|
|
||||||
#include "replacements.h"
|
#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 */
|
/* 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)
|
int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc)
|
||||||
{
|
{
|
||||||
|
@ -198,17 +226,7 @@ int openocd_main(int argc, char *argv[])
|
||||||
|
|
||||||
LOG_OUTPUT( "\n\nBUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS\n\n\n");
|
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 */
|
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 */
|
|
||||||
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 */
|
|
||||||
|
|
||||||
command_context_mode(cmd_ctx, COMMAND_CONFIG);
|
command_context_mode(cmd_ctx, COMMAND_CONFIG);
|
||||||
command_set_output_handler(cmd_ctx, configuration_output_handler, NULL);
|
command_set_output_handler(cmd_ctx, configuration_output_handler, NULL);
|
||||||
|
|
Loading…
Reference in New Issue