X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.h;h=7cd5cc4c76fcf23205f3acaf5a993e6d7879da97;hp=7c8c0121bf4e03b19b0208bc3fbe97af392a987a;hb=39650e2273bcae868d9509fe36515936ce25aacb;hpb=8b00e56e6433cff3ff818835953b27765aaabab0 diff --git a/src/helper/command.h b/src/helper/command.h index 7c8c0121bf..7cd5cc4c76 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -26,12 +26,6 @@ #include -/* Integrate the JIM TCL interpretor into the command processing. */ -#if BUILD_ECOSBOARD -#include -#include -#endif - #include #include @@ -52,7 +46,7 @@ enum command_mode { struct command_context; -/* / The type signature for command context's output handler. */ +/** The type signature for command context's output handler. */ typedef int (*command_output_handler_t)(struct command_context *context, const char *line); @@ -217,7 +211,7 @@ struct command_registration { void *jim_handler_data; enum command_mode mode; const char *help; - /* / a string listing the options and arguments, required or optional */ + /** a string listing the options and arguments, required or optional */ const char *usage; /** @@ -229,7 +223,7 @@ struct command_registration { const struct command_registration *chain; }; -/* / Use this as the last entry in an array of command_registration records. */ +/** Use this as the last entry in an array of command_registration records. */ #define COMMAND_REGISTRATION_DONE { .name = NULL, .chain = NULL } /** @@ -415,10 +409,10 @@ DECLARE_PARSE_WRAPPER(_s8, int8_t); int command_parse_bool_arg(const char *in, bool *out); COMMAND_HELPER(handle_command_parse_bool, bool *out, const char *label); -/* / parses an on/off command argument */ +/** parses an on/off command argument */ #define COMMAND_PARSE_ON_OFF(in, out) \ COMMAND_PARSE_BOOL(in, out, "on", "off") -/* / parses an enable/disable command argument */ +/** parses an enable/disable command argument */ #define COMMAND_PARSE_ENABLE(in, out) \ COMMAND_PARSE_BOOL(in, out, "enable", "disable")