X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Fcommand.h;h=0eda5b5e776e86313a7f9208ff7f149d8e666a48;hb=a74b5687a7195a6d816a251df59af21acf05aae6;hp=7cd5cc4c76fcf23205f3acaf5a993e6d7879da97;hpb=39650e2273bcae868d9509fe36515936ce25aacb;p=openocd.git diff --git a/src/helper/command.h b/src/helper/command.h index 7cd5cc4c76..0eda5b5e77 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -18,15 +18,12 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ #ifndef COMMAND_H #define COMMAND_H -#include - -#include #include /* To achieve C99 printf compatibility in MinGW, gnu_printf should be @@ -165,13 +162,13 @@ struct command_invocation { typedef __COMMAND_HANDLER((*command_handler_t)); struct command { - const char *name; - const char *help; - const char *usage; + char *name; + char *help; + char *usage; struct command *parent; struct command *children; command_handler_t handler; - Jim_CmdProc jim_handler; + Jim_CmdProc *jim_handler; void *jim_handler_data; enum command_mode mode; struct command *next; @@ -207,7 +204,7 @@ char *command_name(struct command *c, char delim); struct command_registration { const char *name; command_handler_t handler; - Jim_CmdProc jim_handler; + Jim_CmdProc *jim_handler; void *jim_handler_data; enum command_mode mode; const char *help; @@ -356,6 +353,7 @@ int parse_llong(const char *str, long long *ul); int parse ## name(const char *str, type * ul) DECLARE_PARSE_WRAPPER(_uint, unsigned); +DECLARE_PARSE_WRAPPER(_u64, uint64_t); DECLARE_PARSE_WRAPPER(_u32, uint32_t); DECLARE_PARSE_WRAPPER(_u16, uint16_t); DECLARE_PARSE_WRAPPER(_u8, uint8_t);