-C Missing\simplementation\sfor\ssqlite3TransferBindings().\s(CVS\s5675)
-D 2008-09-04T12:03:43
+C Add\ssupport\sfor\sthe\sSQLITE_THREADSAFE=2\sand\sSQLITE_DEFAULT_MEMSTATUS\scompilation\soptions.\s(CVS\s5676)
+D 2008-09-04T17:17:39
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 689e14735f862a5553bceef206d8c13e29504e44
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
F src/expr.c 6413795aa13ceb05994e6b2b453a77df3b892e7b
F src/fault.c dc88c821842157460750d2d61a8a8b4197d047ff
F src/func.c 8431b40a7843d1024145684d303c55b4ee087bbe
-F src/global.c 9ced7c26127f04fb4baaebed1f5bf6d7063b089f
+F src/global.c 20a3fe46c8287a01ba3a7442558f0eb70c66b19a
F src/hash.c eb64e48f3781100e5934f759fbe72a63a8fe78cb
F src/hash.h 031cd9f915aff27e12262cb9eb570ac1b8326b53
F src/hwtime.h 4a1d45f4cae1f402ea19686acf24acf4f0cb53cb
F src/os.h ef8abeb9afc694b82dbd169a91c9b7e26db3c892
F src/os_common.h 24525d8b7bce66c374dfc1810a6c9043f3359b60
F src/os_os2.c e391fc95adc744bbdcefd4d11e3066998185a0a0
-F src/os_unix.c e99f82f1f777cd6030e1e8c7d1fabc7130684a99
+F src/os_unix.c 075c3e474d20203153da1b2eb3f0fe3e2096f2de
F src/os_win.c 3209dc0ed734291764393ea8d534ba0d8696a540
F src/pager.c 5a6b59089511db451df45414eb137110b04b1419
F src/pager.h c45380ca9d0933ea5bc4ecb3a43958b6d2ec5a9c
F src/shell.c d83b578a8ccdd3e0e7fef4388a0887ce9f810967
F src/sqlite.h.in 7da6a0d39221affca458b4ba305be3eb1590bb8e
F src/sqlite3ext.h 1e3887c9bd3ae66cb599e922824b04cd0d0f2c3e
-F src/sqliteInt.h 986281c5cc398a02b1b7911808fe80e99e8826e2
+F src/sqliteInt.h 4a43cd9dcb7d5a6664a981f08e64d555acbca1bc
F src/sqliteLimit.h f435e728c6b620ef7312814d660a81f9356eb5c8
F src/status.c 237b193efae0cf6ac3f0817a208de6c6c6ef6d76
F src/table.c 22744786199c9195720c15a7a42cb97b2e2728d8
F src/test_async.c da9f58f49faccd3a26ba89f58de125862351b6e2
F src/test_autoext.c f53b0cdf7bf5f08100009572a5d65cdb540bd0ad
F src/test_btree.c 8d5b835054f1dd15992e09864a8bc04386bab701
-F src/test_config.c 9dbbe29af32ad3ff79946497f35de24981cc1ce3
+F src/test_config.c a171729f6683177f369cdae3bf9ac86434fcb80f
F src/test_devsym.c 6012cb8e3acf812513511025a4fa5d626e0ba19b
F src/test_func.c a55c4d5479ff2eb5c0a22d4d88e9528ab59c953b
F src/test_hexio.c 2f1122aa3f012fa0142ee3c36ce5c902a70cd12f
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 6e8fb64639cc7451005d9f1dd2d0ef62576abbdd
-R 5354b80b6c29c8fa14951a33a49c97ef
-U shane
-Z 9e93d129d3e209d52e4ed523c9876f35
+P 56d618957571f65e88375aad34a6e7dcf22508e1
+R 7f31a60d7476d173a3ef83e79848a29e
+U danielk1977
+Z aacf6403f17f1bb9a05d92d3dbd05d57
-56d618957571f65e88375aad34a6e7dcf22508e1
\ No newline at end of file
+85c2a58901338c1c4652c2cbee51e5f48d289191
\ No newline at end of file
**
** This file contains definitions of global variables and contants.
**
-** $Id: global.c,v 1.7 2008/09/01 18:34:20 danielk1977 Exp $
+** $Id: global.c,v 1.8 2008/09/04 17:17:39 danielk1977 Exp $
*/
#include "sqliteInt.h"
** the SQLite library.
*/
SQLITE_WSD struct Sqlite3Config sqlite3Config = {
- 1, /* bMemstat */
- 1, /* bCoreMutex */
- 1, /* bFullMutex */
- 0x7ffffffe, /* mxStrlen */
- 100, /* szLookaside */
- 500, /* nLookaside */
+ SQLITE_DEFAULT_MEMSTATUS, /* bMemstat */
+ 1, /* bCoreMutex */
+ SQLITE_THREADSAFE==1, /* bFullMutex */
+ 0x7ffffffe, /* mxStrlen */
+ 100, /* szLookaside */
+ 500, /* nLookaside */
/* Other fields all default to zero */
};
**
** This file contains code that is specific to Unix systems.
**
-** $Id: os_unix.c,v 1.199 2008/09/04 06:22:26 danielk1977 Exp $
+** $Id: os_unix.c,v 1.200 2008/09/04 17:17:39 danielk1977 Exp $
*/
#include "sqliteInt.h"
#if SQLITE_OS_UNIX /* This file is used on unix only */
static int flockLock(sqlite3_file *id, int locktype) {
int rc = SQLITE_OK;
- int lrc;
unixFile *pFile = (unixFile*)id;
assert( pFile );
*************************************************************************
** Internal interface definitions for SQLite.
**
-** @(#) $Id: sqliteInt.h,v 1.770 2008/09/04 04:32:49 shane Exp $
+** @(#) $Id: sqliteInt.h,v 1.771 2008/09/04 17:17:39 danielk1977 Exp $
*/
#ifndef _SQLITEINT_H_
#define _SQLITEINT_H_
#endif
#endif
+/*
+** The SQLITE_DEFAULT_MEMSTATUS macro must be defined as either 0 or 1.
+** It determines whether or not the features related to
+** SQLITE_CONFIG_MEMSTATUS are availabe by default or not. This value can
+** be overridden at runtime using the sqlite3_config() API.
+*/
+#if !defined(SQLITE_DEFAULT_MEMSTATUS)
+# define SQLITE_DEFAULT_MEMSTATUS 1
+#endif
+
/*
** Exactly one of the following macros must be defined in order to
** specify which memory allocation subsystem to use.
** The focus of this file is providing the TCL testing layer
** access to compile-time constants.
**
-** $Id: test_config.c,v 1.34 2008/09/02 00:52:52 drh Exp $
+** $Id: test_config.c,v 1.35 2008/09/04 17:17:39 danielk1977 Exp $
*/
#include "sqliteLimit.h"
#include <stdlib.h>
#include <string.h>
+/*
+** Macro to stringify the results of the evaluation a pre-processor
+** macro. i.e. so that STRINGVALUE(SQLITE_NOMEM) -> "7".
+*/
+#define STRINGVALUE2(x) #x
+#define STRINGVALUE(x) STRINGVALUE2(x)
+
/*
** This routine sets entries in the global ::sqlite_options() array variable
** according to the compile-time configuration of the database. Test
Tcl_SetVar2(interp, "sqlite_options", "tclvar", "1", TCL_GLOBAL_ONLY);
#endif
- rc = sqlite3_threadsafe();
-#if SQLITE_THREADSAFE
- Tcl_SetVar2(interp, "sqlite_options", "threadsafe", "1", TCL_GLOBAL_ONLY);
- assert( rc );
-#else
- Tcl_SetVar2(interp, "sqlite_options", "threadsafe", "0", TCL_GLOBAL_ONLY);
- assert( !rc );
-#endif
+ Tcl_SetVar2(interp, "sqlite_options", "threadsafe",
+ STRINGVALUE(SQLITE_THREADSAFE), TCL_GLOBAL_ONLY);
+ assert( sqlite3_threadsafe()==SQLITE_THREADSAFE );
#ifdef SQLITE_OMIT_TRACE
Tcl_SetVar2(interp, "sqlite_options", "trace", "0", TCL_GLOBAL_ONLY);