diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/command.c | 2 | ||||
-rw-r--r-- | src/helper/jim-eventloop.c | 4 | ||||
-rw-r--r-- | src/helper/jim-eventloop.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index a8de14ee..d47203ca 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -653,7 +653,7 @@ static int jim_capture(Jim_Interp *interp, int argc, Jim_Obj *const *argv) command_context_t* command_init() { command_context_t* context = malloc(sizeof(command_context_t)); - extern unsigned const char startup_tcl[]; + extern const char startup_tcl[]; context->mode = COMMAND_EXEC; context->commands = NULL; diff --git a/src/helper/jim-eventloop.c b/src/helper/jim-eventloop.c index 7efd6763..62513704 100644 --- a/src/helper/jim-eventloop.c +++ b/src/helper/jim-eventloop.c @@ -524,9 +524,7 @@ static int JimELAfterCommand(Jim_Interp *interp, int argc, /* This extension is not dynamically loaded, instead it's linked statically, which is why we shouldn't use the unspecific 'Jim_OnLoad' name */ -#define Jim_OnLoad Jim_EventLoopOnLoad - -int Jim_OnLoad(Jim_Interp *interp) +int Jim_EventLoopOnLoad(Jim_Interp *interp) { Jim_EventLoop *eventLoop; diff --git a/src/helper/jim-eventloop.h b/src/helper/jim-eventloop.h index 186190fd..14887ac0 100644 --- a/src/helper/jim-eventloop.h +++ b/src/helper/jim-eventloop.h @@ -66,6 +66,8 @@ typedef void Jim_EventFinalizerProc(Jim_Interp *interp, void *clientData); #define JIM_API(x) x #define JIM_STATIC +JIM_STATIC int Jim_EventLoopOnLoad(Jim_Interp *interp); + /* --- POSIX version of Jim_ProcessEvents, for now the only available --- */ #define JIM_FILE_EVENTS 1 #define JIM_TIME_EVENTS 2 |