From: Zachary T Welch Date: Sun, 15 Nov 2009 12:05:33 +0000 (-0800) Subject: use Jim_CmdProc in jim_register X-Git-Tag: v0.4.0-rc1~556 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=df9b12695f4ede8144491d257ea236cdbca0a15c use Jim_CmdProc in jim_register The jim_register command just needed to use the type defined by jim.h. --- diff --git a/src/helper/command.c b/src/helper/command.c index 41af035675..7edd585f06 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -869,7 +869,8 @@ void process_jim_events(void) #endif } -void register_jim(struct command_context *cmd_ctx, const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj *const *argv), const char *help) +void register_jim(struct command_context *cmd_ctx, const char *name, + Jim_CmdProc cmd, const char *help) { Jim_CreateCommand(interp, name, cmd, NULL, NULL); diff --git a/src/helper/command.h b/src/helper/command.h index 94d981654c..79e57f5ab1 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -190,7 +190,8 @@ extern int fast_and_dangerous; extern Jim_Interp *interp; -void register_jim(struct command_context *context, const char *name, int (*cmd)(Jim_Interp *interp, int argc, Jim_Obj *const *argv), const char *help); +void register_jim(struct command_context *context, const char *name, + Jim_CmdProc cmd, const char *help); long jim_global_long(const char *variable);