Skip to content
Snippets Groups Projects
Commit df9b1269 authored by Zachary T Welch's avatar Zachary T Welch
Browse files

use Jim_CmdProc in jim_register

The jim_register command just needed to use the type defined by jim.h.
parent 0a9daddc
No related branches found
No related tags found
No related merge requests found
...@@ -869,7 +869,8 @@ void process_jim_events(void) ...@@ -869,7 +869,8 @@ void process_jim_events(void)
#endif #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); Jim_CreateCommand(interp, name, cmd, NULL, NULL);
......
...@@ -190,7 +190,8 @@ extern int fast_and_dangerous; ...@@ -190,7 +190,8 @@ extern int fast_and_dangerous;
extern Jim_Interp *interp; 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); long jim_global_long(const char *variable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment