"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tea/generic/tclsqlite3.c" between
sqlite-autoconf-3250100.tar.gz and sqlite-autoconf-3250200.tar.gz

About: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. This archive contains all C source code combined into a single source file (the amalgamation) together with an configure script and makefile for building it.

tclsqlite3.c  (sqlite-autoconf-3250100):tclsqlite3.c  (sqlite-autoconf-3250200)
skipping to change at line 3501 skipping to change at line 3501
** However, for testing purposes it is useful to have mutexes turned ** However, for testing purposes it is useful to have mutexes turned
** on. So, by default, mutexes default off. But if compiled with ** on. So, by default, mutexes default off. But if compiled with
** SQLITE_TCL_DEFAULT_FULLMUTEX then mutexes default on. ** SQLITE_TCL_DEFAULT_FULLMUTEX then mutexes default on.
*/ */
#ifdef SQLITE_TCL_DEFAULT_FULLMUTEX #ifdef SQLITE_TCL_DEFAULT_FULLMUTEX
flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX; flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX;
#else #else
flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_NOMUTEX; flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_NOMUTEX;
#endif #endif
if( objc==1 ) return sqliteCmdUsage(interp, objv);
if( objc==2 ){ if( objc==2 ){
zArg = Tcl_GetStringFromObj(objv[1], 0); zArg = Tcl_GetStringFromObj(objv[1], 0);
if( strcmp(zArg,"-version")==0 ){ if( strcmp(zArg,"-version")==0 ){
Tcl_AppendResult(interp,sqlite3_libversion(), (char*)0); Tcl_AppendResult(interp,sqlite3_libversion(), (char*)0);
return TCL_OK; return TCL_OK;
} }
if( strcmp(zArg,"-sourceid")==0 ){ if( strcmp(zArg,"-sourceid")==0 ){
Tcl_AppendResult(interp,sqlite3_sourceid(), (char*)0); Tcl_AppendResult(interp,sqlite3_sourceid(), (char*)0);
return TCL_OK; return TCL_OK;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)