mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Avoid calls to newer TCL interfaces in the test logic. This helps the
TCL test harness compile without warnings and link when using older versions of the TCL library. (CVS 6409) FossilOrigin-Name: 1ad176375746d680225d7ecddca54bc281b1556d
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
**
|
||||
*************************************************************************
|
||||
**
|
||||
** $Id: test_backup.c,v 1.2 2009/03/25 16:51:43 drh Exp $
|
||||
** $Id: test_backup.c,v 1.3 2009/03/30 12:56:52 drh Exp $
|
||||
*/
|
||||
|
||||
#include "tcl.h"
|
||||
@@ -61,12 +61,13 @@ static int backupTestCmd(
|
||||
switch( aSub[iCmd].eCmd ){
|
||||
|
||||
case BACKUP_FINISH: {
|
||||
const char *zCmdName;
|
||||
Tcl_CmdInfo cmdInfo;
|
||||
Tcl_Command cmd = Tcl_GetCommandFromObj(interp, objv[0]);
|
||||
Tcl_GetCommandInfoFromToken(cmd, &cmdInfo);
|
||||
zCmdName = Tcl_GetString(objv[0]);
|
||||
Tcl_GetCommandInfo(interp, zCmdName, &cmdInfo);
|
||||
cmdInfo.deleteProc = 0;
|
||||
Tcl_SetCommandInfoFromToken(cmd, &cmdInfo);
|
||||
Tcl_DeleteCommandFromToken(interp, cmd);
|
||||
Tcl_SetCommandInfo(interp, zCmdName, &cmdInfo);
|
||||
Tcl_DeleteCommand(interp, zCmdName);
|
||||
|
||||
rc = sqlite3_backup_finish(p);
|
||||
Tcl_SetResult(interp, (char *)sqlite3TestErrorName(rc), TCL_STATIC);
|
||||
|
||||
Reference in New Issue
Block a user