Index: third_party/sqlite/src/src/test_blob.c |
diff --git a/third_party/sqlite/src/src/test_blob.c b/third_party/sqlite/src/src/test_blob.c |
index 4a7075a28a3df8b3cf69ae4d9de4c14fb84f405c..7fa733bee935f35a875df9f1d016732f2ca772f1 100644 |
--- a/third_party/sqlite/src/src/test_blob.c |
+++ b/third_party/sqlite/src/src/test_blob.c |
@@ -12,7 +12,11 @@ |
** |
*/ |
#include "sqliteInt.h" |
-#include "tcl.h" |
+#if defined(INCLUDE_SQLITE_TCL_H) |
+# include "sqlite_tcl.h" |
+#else |
+# include "tcl.h" |
+#endif |
#include <stdlib.h> |
#include <string.h> |
#include <assert.h> |
@@ -95,7 +99,7 @@ static char *blobStringFromObj(Tcl_Obj *pObj){ |
** |
** Tcl test harness for the sqlite3_blob_open() function. |
*/ |
-static int test_blob_open( |
+static int SQLITE_TCLAPI test_blob_open( |
ClientData clientData, /* Not used */ |
Tcl_Interp *interp, /* Calling TCL interpreter */ |
int objc, /* Number of arguments */ |
@@ -105,12 +109,12 @@ static int test_blob_open( |
const char *zDb; |
const char *zTable; |
const char *zColumn; |
- sqlite_int64 iRowid; |
+ Tcl_WideInt iRowid; |
int flags; |
const char *zVarname; |
int nVarname; |
- sqlite3_blob *pBlob = (sqlite3_blob*)0xFFFFFFFF; |
+ sqlite3_blob *pBlob = (sqlite3_blob*)&flags; /* Non-zero initialization */ |
int rc; |
if( objc!=8 ){ |
@@ -146,7 +150,7 @@ static int test_blob_open( |
/* |
** sqlite3_blob_close HANDLE |
*/ |
-static int test_blob_close( |
+static int SQLITE_TCLAPI test_blob_close( |
ClientData clientData, /* Not used */ |
Tcl_Interp *interp, /* The TCL interpreter that invoked this command */ |
int objc, /* Number of arguments */ |
@@ -174,7 +178,7 @@ static int test_blob_close( |
/* |
** sqlite3_blob_bytes HANDLE |
*/ |
-static int test_blob_bytes( |
+static int SQLITE_TCLAPI test_blob_bytes( |
ClientData clientData, /* Not used */ |
Tcl_Interp *interp, /* The TCL interpreter that invoked this command */ |
int objc, /* Number of arguments */ |
@@ -210,7 +214,7 @@ static int test_blob_bytes( |
** text representation of the returned error code (i.e. "SQLITE_NOMEM") |
** and a Tcl exception is thrown. |
*/ |
-static int test_blob_read( |
+static int SQLITE_TCLAPI test_blob_read( |
ClientData clientData, /* Not used */ |
Tcl_Interp *interp, /* The TCL interpreter that invoked this command */ |
int objc, /* Number of arguments */ |
@@ -262,7 +266,7 @@ static int test_blob_read( |
** result is set to the text representation of the returned error code |
** (i.e. "SQLITE_NOMEM") and a Tcl exception is thrown. |
*/ |
-static int test_blob_write( |
+static int SQLITE_TCLAPI test_blob_write( |
ClientData clientData, /* Not used */ |
Tcl_Interp *interp, /* The TCL interpreter that invoked this command */ |
int objc, /* Number of arguments */ |