1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-24 09:53:10 +03:00

Remove a C++ism from the test harness. Get the TCL interface working with

older versions of TCL. (CVS 4075)

FossilOrigin-Name: c8beb8674e5a1effc2785f205124628fbdaf57e0
This commit is contained in:
drh
2007-06-15 18:53:14 +00:00
parent 2df37c0390
commit daf276d466
4 changed files with 11 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
** $Id: test1.c,v 1.254 2007/05/17 16:34:44 danielk1977 Exp $
** $Id: test1.c,v 1.255 2007/06/15 18:53:15 drh Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -457,9 +457,9 @@ static int test_snprintf_int(
){
char zStr[100];
int n = atoi(argv[1]);
if( n>sizeof(zStr) ) n = sizeof(zStr);
const char *zFormat = argv[2];
int a1 = atoi(argv[3]);
if( n>sizeof(zStr) ) n = sizeof(zStr);
strcpy(zStr, "abcdefghijklmnopqrstuvwxyz");
sqlite3_snprintf(n, zStr, zFormat, a1);
Tcl_AppendResult(interp, zStr, 0);