Marc Schink
d0e763ac7e
Remove FSF address from GPL notices
...
Also make GPL notices consistent according to:
https://www.gnu.org/licenses/gpl-howto.html
Change-Id: I84c9df40a774958a7ed91460c5d931cfab9f45ba
Signed-off-by: Marc Schink <openocd-dev@marcschink.de >
Reviewed-on: http://openocd.zylin.com/3488
Tested-by: jenkins
Reviewed-by: Andreas Färber <afaerber@suse.de >
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com >
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com >
2016-05-24 22:30:01 +01:00
Spencer Oliver
08d4411b59
update files to correct FSF address
...
Change-Id: I429f7fd51f77b0e7c86d7a7f110ca31afd76c173
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk >
Reviewed-on: http://openocd.zylin.com/1426
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com >
2013-06-05 19:52:42 +00:00
Spencer Oliver
250dc58056
build: cleanup src/ directory
...
Change-Id: Ia6ed99ce75625ad6ef5e0d3c3bbdc1c1bec21df3
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk >
Reviewed-on: http://openocd.zylin.com/407
Tested-by: jenkins
2012-02-06 10:41:23 +00:00
Mathias K
16b6b5e7a8
Change return value on error.
...
On wrong parameters a error is signalized to the calling function.
Change-Id: I484443fdb39938e20382edc9246d5ec546a5c960
Signed-off-by: Mathias K <kesmtp@freenet.de >
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com >
Reviewed-on: http://openocd.zylin.com/282
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com >
2012-01-04 17:56:46 +00:00
Antonio Borneo
b2468e3c4f
HELLO: review unused symbols
...
Remove unused functions:
- hello_register_commands
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com >
2010-04-10 17:23:06 +08:00
David Brownell
ae71005929
Doc/examples: clarify usage messages
...
Update/bugfix the "hello" example; emphasize using EBNF syntax,
matching the User's Guide. Correct the Texinfo style guide to
say EBNF, not BNF.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net >
2010-01-08 23:13:39 -08:00
Zachary T Welch
c79cca04be
change #include "log.h" to <helper/log.h>
...
Changes from the flat namespace to heirarchical one. Instead of writing:
#include "log.h"
the following form should be used.
#include <helper/log.h>
The exception is from .c files in the same directory.
2009-12-03 04:22:52 -08:00
Zachary T Welch
be65f497f5
fix foo command group help messages
...
Splits the old help strings to provide proper usage as well.
2009-11-30 16:29:34 -08:00
Zachary T Welch
a93b404161
improve command handling examples
...
Removes hello and foo commands from top-level registration. Instead,
the dummy interface driver and faux flash driver have been augmented
to register these commands as sub-commands.
2009-11-25 10:29:05 -08:00
Zachary T Welch
16e0404777
demonstrate chaining with foo commands
...
Use the new command registration chaining capabilities to eliminate
the foo_register_commands helper, folding its remaining command
handler setup into the hello_command_handlers registration array.
2009-11-24 21:37:32 -08:00
Zachary T Welch
e7fd1d3d50
hello: use register_commands()
...
Use new register_commands() with command registration table.
2009-11-24 21:37:32 -08:00
Zachary T Welch
833e7f5248
use COMMAND_REGISTER macro
...
Replaces direct calls to register_command() with a macro, to allow
its parameters to be changed and callers updated in phases.
2009-11-24 21:37:29 -08:00
Zachary T Welch
20218b8de6
update src/hello.c with parsing examples
...
Adds the foo/bar commands to provide more working examples of command
argument parsing, including the new handle_command_parse_bool helper.
Updates hello command help text to provide useful information.
2009-11-18 15:51:07 -08:00
Zachary T Welch
2861877b32
command_handler: change 'cmd_ctx' to CMD_CTX
...
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17 11:40:06 -08:00
Zachary T Welch
23402315ce
command_handler: change 'args' to CMD_ARGV
...
This patch converts all instances of 'args' in COMMAND_HANDLER routines
to use CMD_ARGV macro.
2009-11-17 11:38:07 -08:00
Zachary T Welch
7bf1a86e47
command_handler: change to 'argc' to CMD_ARGC
...
This patch converts all instances of 'argc' in COMMAND_HANDLER routines
to use CMD_ARGC.
2009-11-17 11:38:06 -08:00
Zachary T Welch
ef746e27c5
command_t -> struct command
...
Remove misleading typedef and redundant suffix from struct command.
2009-11-13 13:30:50 -08:00
Zachary T Welch
98723c4ecd
command_context_t -> struct command_context
...
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13 13:25:47 -08:00
Zachary T Welch
89870c86e7
add src/hello.c to augment new command tutorial
...
The hello module provides the 'hello' command, printing a greetings
to the command console. It can grow to serve as pedagogical example
of services that OpenOCD developers should use: a runnable style guide.
2009-11-13 10:57:57 -08:00