-C Change\sthe\snames\sof\sexternal\ssymbols\sfrom\ssqlite_XXX\sto\ssqlite3_XXX.\s(CVS\s1338)
-D 2004-05-10T10:34:52
+C Change\sthe\snames\sof\sexternal\ssymbols\sfrom\ssqlite_XXX\sto\ssqlite3_XXX.\s(CVS\s1339)
+D 2004-05-10T10:37:19
F Makefile.in ab7b0d5118e2da97bac66be8684a1034e3500f5a
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
F src/vacuum.c c134702e023db8778e6be59ac0ea7b02315b5476
F src/vdbe.c 5cd18c8a3ab826f02ef1ce88a5798ec744337b30
F src/vdbe.h 2dc4d1161b64f5684faa6a2d292e318a185ecb2e
-F src/vdbeInt.h e4ab46c223bac43754335cdd14c9c6a95885b9a8
-F src/vdbeaux.c 0256d8b9a355a90f24f992dd7b6f0d2373e3e957
-F src/where.c 6db0291280f2c642bae2c69a70750325b53717a4
+F src/vdbeInt.h 742e257653aa4249fef3c4313f7e414387b6d7f6
+F src/vdbeaux.c 943484a2437b6cf40d1ffd3d62e48b5c9a043c5a
+F src/where.c 487e55b1f64c8fbf0f46a9a90c2247fc45ae6a9a
F test/all.test 569a92a8ee88f5300c057cc4a8f50fbbc69a3242
F test/attach.test ba8261d38da6b6a7d4f78ec543c548c4418582ef
F test/attach2.test ce61e6185b3cd891cc0e9a4c868fcc65eb92fc55
F www/tclsqlite.tcl b9271d44dcf147a93c98f8ecf28c927307abd6da
F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
F www/whentouse.tcl a8335bce47cc2fddb07f19052cb0cb4d9129a8e4
-P ba2ba24263a9e4d1b65b441295504a5da6380f33
-R 34c539e427e74e63b45af740d6fe4c8f
+P 2242423e31a5e81e89ffcc99e62307c5cc0120d5
+R f2908d3295f9c85321a4f31d49755326
U danielk1977
-Z b146f9071529ddd4538b8fe328a13018
+Z 3d3dbd26469d780ca594807c5a221b31
/*
** When debugging the code generator in a symbolic debugger, one can
-** set the sqlite_vdbe_addop_trace to 1 and all opcodes will be printed
+** set the sqlite3_vdbe_addop_trace to 1 and all opcodes will be printed
** as they are added to the instruction stream.
*/
#ifndef NDEBUG
-int sqlite_vdbe_addop_trace = 0;
+int sqlite3_vdbe_addop_trace = 0;
#endif
pOp->p3 = 0;
pOp->p3type = P3_NOTUSED;
#ifndef NDEBUG
- if( sqlite_vdbe_addop_trace ) sqlite3VdbePrintOp(0, i, &p->aOp[i]);
+ if( sqlite3_vdbe_addop_trace ) sqlite3VdbePrintOp(0, i, &p->aOp[i]);
#endif
return i;
}
pOut->p3 = pIn->p3;
pOut->p3type = pIn->p3 ? P3_STATIC : P3_NOTUSED;
#ifndef NDEBUG
- if( sqlite_vdbe_addop_trace ){
+ if( sqlite3_vdbe_addop_trace ){
sqlite3VdbePrintOp(0, i+addr, &p->aOp[i+addr]);
}
#endif
** The following group or routines are employed by installable functions
** to return their results.
**
-** The sqlite_set_result_string() routine can be used to return a string
+** The sqlite3_set_result_string() routine can be used to return a string
** value or to return a NULL. To return a NULL, pass in NULL for zResult.
** A copy is made of the string before this routine returns so it is safe
** to pass in an ephemeral string.
**
-** sqlite_set_result_error() works like sqlite_set_result_string() except
+** sqlite3_set_result_error() works like sqlite3_set_result_string() except
** that it signals a fatal error. The string argument, if any, is the
** error message. If the argument is NULL a generic substitute error message
** is used.
**
-** The sqlite_set_result_int() and sqlite_set_result_double() set the return
+** The sqlite3_set_result_int() and sqlite3_set_result_double() set the return
** value of the user function to an integer or a double.
**
** These routines are defined here in vdbe.c because they depend on knowing
** the internals of the sqlite_func structure which is only defined in
** this source file.
*/
-char *sqlite_set_result_string(sqlite_func *p, const char *zResult, int n){
+char *sqlite3_set_result_string(sqlite_func *p, const char *zResult, int n){
assert( !p->isStep );
if( p->s.flags & MEM_Dyn ){
sqliteFree(p->s.z);
}
return p->s.z;
}
-void sqlite_set_result_int(sqlite_func *p, int iResult){
+void sqlite3_set_result_int(sqlite_func *p, int iResult){
assert( !p->isStep );
if( p->s.flags & MEM_Dyn ){
sqliteFree(p->s.z);
p->s.i = iResult;
p->s.flags = MEM_Int;
}
-void sqlite_set_result_double(sqlite_func *p, double rResult){
+void sqlite3_set_result_double(sqlite_func *p, double rResult){
assert( !p->isStep );
if( p->s.flags & MEM_Dyn ){
sqliteFree(p->s.z);
p->s.r = rResult;
p->s.flags = MEM_Real;
}
-void sqlite_set_result_error(sqlite_func *p, const char *zMsg, int n){
+void sqlite3_set_result_error(sqlite_func *p, const char *zMsg, int n){
assert( !p->isStep );
- sqlite_set_result_string(p, zMsg, n);
+ sqlite3_set_result_string(p, zMsg, n);
p->isError = 1;
}
** Extract the user data from a sqlite_func structure and return a
** pointer to it.
*/
-void *sqlite_user_data(sqlite_func *p){
+void *sqlite3_user_data(sqlite_func *p){
assert( p && p->pFunc );
return p->pFunc->pUserData;
}
** the internals of the sqlite_func structure which is only defined in
** this source file.
*/
-void *sqlite_aggregate_context(sqlite_func *p, int nByte){
+void *sqlite3_aggregate_context(sqlite_func *p, int nByte){
assert( p && p->pFunc && p->pFunc->xStep );
if( p->pAgg==0 ){
if( nByte<=NBFS ){
** the internals of the sqlite_func structure which is only defined in
** this source file.
*/
-int sqlite_aggregate_count(sqlite_func *p){
+int sqlite3_aggregate_count(sqlite_func *p){
assert( p && p->pFunc && p->pFunc->xStep );
return p->cnt;
}
p->rc = SQLITE_INTERRUPT;
}
rc = SQLITE_ERROR;
- sqlite3SetString(&p->zErrMsg, sqlite_error_string(p->rc), (char*)0);
+ sqlite3SetString(&p->zErrMsg, sqlite3_error_string(p->rc), (char*)0);
}else{
sprintf(p->zArgv[0],"%d",i);
sprintf(p->zArgv[2],"%d", p->aOp[i].p1);
int i;
if( p->magic!=VDBE_MAGIC_RUN && p->magic!=VDBE_MAGIC_HALT ){
- sqlite3SetString(pzErrMsg, sqlite_error_string(SQLITE_MISUSE), (char*)0);
+ sqlite3SetString(pzErrMsg, sqlite3_error_string(SQLITE_MISUSE), (char*)0);
return SQLITE_MISUSE;
}
if( p->zErrMsg ){
}
p->zErrMsg = 0;
}else if( p->rc ){
- sqlite3SetString(pzErrMsg, sqlite_error_string(p->rc), (char*)0);
+ sqlite3SetString(pzErrMsg, sqlite3_error_string(p->rc), (char*)0);
}
Cleanup(p);
if( p->rc!=SQLITE_OK ){
db->aDb[i].inTrans = 1;
}
}
- assert( p->pTos<&p->aStack[p->pc] || sqlite_malloc_failed==1 );
+ assert( p->pTos<&p->aStack[p->pc] || sqlite3_malloc_failed==1 );
#ifdef VDBE_PROFILE
{
FILE *out = fopen("vdbe_profile.out", "a");
sqlite *db;
if( p->magic!=VDBE_MAGIC_RUN && p->magic!=VDBE_MAGIC_HALT ){
- sqlite3SetString(pzErrMsg, sqlite_error_string(SQLITE_MISUSE), (char*)0);
+ sqlite3SetString(pzErrMsg, sqlite3_error_string(SQLITE_MISUSE), (char*)0);
return SQLITE_MISUSE;
}
db = p->db;
rc = sqlite3VdbeReset(p, pzErrMsg);
sqlite3VdbeDelete(p);
if( db->want_to_close && db->pVdbe==0 ){
- sqlite_close(db);
+ sqlite3_close(db);
}
if( rc==SQLITE_SCHEMA ){
sqlite3ResetInternalSchema(db, 0);
**
** This routine overrides any prior call.
*/
-int sqlite_bind(sqlite_vm *pVm, int i, const char *zVal, int len, int copy){
+int sqlite3_bind(sqlite_vm *pVm, int i, const char *zVal, int len, int copy){
Vdbe *p = (Vdbe*)pVm;
if( p->magic!=VDBE_MAGIC_RUN || p->pc!=0 ){
return SQLITE_MISUSE;
int sqlite3VdbeCursorMoveto(Cursor *p){
if( p->deferredMoveto ){
int res;
- extern int sqlite_search_count;
+ extern int sqlite3_search_count;
sqlite3BtreeMoveto(p->pCursor, (char*)&p->movetoTarget, sizeof(int), &res);
p->lastRecno = keyToInt(p->movetoTarget);
p->recnoIsValid = res==0;
if( res<0 ){
sqlite3BtreeNext(p->pCursor, &res);
}
- sqlite_search_count++;
+ sqlite3_search_count++;
p->deferredMoveto = 0;
}
return SQLITE_OK;