diff options
author | Steve Bennett <steveb@workware.net.au> | 2020-06-05 21:59:25 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2020-06-05 21:59:25 +1000 |
commit | a3323602c9b803ed69c6f2970ebee8a9cc7fb257 (patch) | |
tree | 868f7791f09db24aa9e764ca5da09301e7122d15 | |
parent | cd7e41a621c82833f83c3e44492083412bcd33b8 (diff) | |
download | jimtcl-a3323602c9b803ed69c6f2970ebee8a9cc7fb257.zip jimtcl-a3323602c9b803ed69c6f2970ebee8a9cc7fb257.tar.gz jimtcl-a3323602c9b803ed69c6f2970ebee8a9cc7fb257.tar.bz2 |
update all extensions for new Jim_DeleteCommand() API
Now argument is Jim_Obj *, not const char *
Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r-- | jim-mk.cpp | 8 | ||||
-rw-r--r-- | jim-sdl.c | 2 | ||||
-rw-r--r-- | jim-sqlite3.c | 2 | ||||
-rw-r--r-- | sqlite3/jim-sqlite3.c | 2 |
4 files changed, 7 insertions, 7 deletions
@@ -1569,7 +1569,7 @@ static int view_cmd_as(Jim_Interp *interp, int argc, Jim_Obj *const *argv) static int view_cmd_destroy(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { - Jim_DeleteCommand(interp, Jim_String(argv[0])); + Jim_DeleteCommand(interp, argv[0]); return JIM_OK; } @@ -1801,7 +1801,7 @@ static int JimOneShotViewSubCmdProc(Jim_Interp *interp, int argc, Jim_Obj *const cmd = Jim_GetCommand(interp, argv[0], 0); if (cmd && !cmd->isproc && cmd->u.native.cmdProc == JimOneShotViewSubCmdProc) - Jim_DeleteCommand(interp, Jim_String(argv[0])); + Jim_DeleteCommand(interp, argv[0]); return result; } @@ -1809,7 +1809,7 @@ static int JimOneShotViewSubCmdProc(Jim_Interp *interp, int argc, Jim_Obj *const static int JimViewFinalizerProc(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { /* We won't succeed here if the user renamed the command, and this is right */ - Jim_DeleteCommand(interp, Jim_String(argv[1])); + Jim_DeleteCommand(interp, argv[1]); return JIM_OK; } @@ -2038,7 +2038,7 @@ static int storage_cmd_rollback(Jim_Interp *interp, int argc, Jim_Obj *const *ar static int storage_cmd_close(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { - return Jim_DeleteCommand(interp, Jim_String(argv[0])); + return Jim_DeleteCommand(interp, argv[0]); } /* Command table ----------------------------------------------------------- */ @@ -177,7 +177,7 @@ static int JimSdlHandlerCommand(Jim_Interp *interp, int argc, Jim_Obj *const *ar Jim_WrongNumArgs(interp, 2, argv, ""); return JIM_ERR; } - Jim_DeleteCommand(interp, Jim_String(argv[0])); + Jim_DeleteCommand(interp, argv[0]); return JIM_OK; } else if (option == OPT_FLIP) { diff --git a/jim-sqlite3.c b/jim-sqlite3.c index 67bb83d..c29230b 100644 --- a/jim-sqlite3.c +++ b/jim-sqlite3.c @@ -155,7 +155,7 @@ static int JimSqliteHandlerCommand(Jim_Interp *interp, int argc, Jim_Obj *const Jim_WrongNumArgs(interp, 2, argv, ""); return JIM_ERR; } - Jim_DeleteCommand(interp, Jim_String(argv[0])); + Jim_DeleteCommand(interp, argv[0]); return JIM_OK; } else if (option == OPT_QUERY) { diff --git a/sqlite3/jim-sqlite3.c b/sqlite3/jim-sqlite3.c index 260f1ee..8f33d80 100644 --- a/sqlite3/jim-sqlite3.c +++ b/sqlite3/jim-sqlite3.c @@ -1714,7 +1714,7 @@ static int DbObjCmd(Jim_Interp *interp, int objc,Jim_Obj *const*objv){ ** Shutdown the database */ case DB_CLOSE: { - Jim_DeleteCommand(interp, Jim_String(objv[0])); + Jim_DeleteCommand(interp, objv[0]); break; } |