diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/btmutex.c | 4 | ||||
-rw-r--r-- | src/btree.c | 8 | ||||
-rw-r--r-- | src/callback.c | 4 | ||||
-rw-r--r-- | src/malloc.c | 6 | ||||
-rw-r--r-- | src/os_win.c | 4 | ||||
-rw-r--r-- | src/pager.c | 16 | ||||
-rw-r--r-- | src/prepare.c | 6 | ||||
-rw-r--r-- | src/test_async.c | 8 | ||||
-rw-r--r-- | src/test_journal.c | 4 | ||||
-rw-r--r-- | src/vdbe.c | 10 | ||||
-rw-r--r-- | src/vdbeaux.c | 4 |
11 files changed, 37 insertions, 37 deletions
diff --git a/src/btmutex.c b/src/btmutex.c index b1ab5173e..4d2f76799 100644 --- a/src/btmutex.c +++ b/src/btmutex.c @@ -10,7 +10,7 @@ ** ************************************************************************* ** -** $Id: btmutex.c,v 1.12 2008/11/17 19:18:55 danielk1977 Exp $ +** $Id: btmutex.c,v 1.13 2009/03/05 04:20:32 shane Exp $ ** ** This file contains code used to implement mutexes on Btree objects. ** This code really belongs in btree.c. But btree.c is getting too @@ -113,7 +113,7 @@ void sqlite3BtreeLeave(Btree *p){ /* ** Return true if the BtShared mutex is held on the btree. ** -** This routine makes no determination one why or another if the +** This routine makes no determination one way or another if the ** database connection mutex is held. ** ** This routine is used only from within assert() statements. diff --git a/src/btree.c b/src/btree.c index 31598719d..9729ec96e 100644 --- a/src/btree.c +++ b/src/btree.c @@ -9,7 +9,7 @@ ** May you share freely, never taking more than you give. ** ************************************************************************* -** $Id: btree.c,v 1.570 2009/02/24 19:21:41 drh Exp $ +** $Id: btree.c,v 1.571 2009/03/05 04:20:32 shane Exp $ ** ** This file implements a external (disk-based) database using BTrees. ** See the header comment on "btreeInt.h" for additional information. @@ -2450,7 +2450,7 @@ static int incrVacuumStep(BtShared *pBt, Pgno nFin, Pgno iLastPg){ ** It performs a single unit of work towards an incremental vacuum. ** ** If the incremental vacuum is finished after this function has run, -** SQLITE_DONE is returned. If it is not finished, but no error occured, +** SQLITE_DONE is returned. If it is not finished, but no error occurred, ** SQLITE_OK is returned. Otherwise an SQLite error code. */ int sqlite3BtreeIncrVacuum(Btree *p){ @@ -2728,7 +2728,7 @@ int sqlite3BtreeRollback(Btree *p){ rc = saveAllCursors(pBt, 0, 0); #ifndef SQLITE_OMIT_SHARED_CACHE if( rc!=SQLITE_OK ){ - /* This is a horrible situation. An IO or malloc() error occured whilst + /* This is a horrible situation. An IO or malloc() error occurred whilst ** trying to save cursor positions. If this is an automatic rollback (as ** the result of a constraint, malloc() failure or IO error) then ** the cache may be internally inconsistent (not contain valid trees) so @@ -6823,7 +6823,7 @@ int sqlite3BtreeCount(BtCursor *pCur, i64 *pnEntry){ } } - /* An error has occured. Return an error code. */ + /* An error has occurred. Return an error code. */ return rc; } #endif diff --git a/src/callback.c b/src/callback.c index 0c1e657f9..ca41c08f4 100644 --- a/src/callback.c +++ b/src/callback.c @@ -13,7 +13,7 @@ ** This file contains functions used to access the internal hash tables ** of user defined functions and collation sequences. ** -** $Id: callback.c,v 1.35 2009/01/31 22:28:49 drh Exp $ +** $Id: callback.c,v 1.36 2009/03/05 04:20:32 shane Exp $ */ #include "sqliteInt.h" @@ -175,7 +175,7 @@ static CollSeq *findCollSeqEntry( pColl[0].zName[nName] = 0; pDel = sqlite3HashInsert(&db->aCollSeq, pColl[0].zName, nName, pColl); - /* If a malloc() failure occured in sqlite3HashInsert(), it will + /* If a malloc() failure occurred in sqlite3HashInsert(), it will ** return the pColl pointer to be deleted (because it wasn't added ** to the hash table). */ diff --git a/src/malloc.c b/src/malloc.c index ecbef4f80..dc111ba36 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -12,7 +12,7 @@ ** ** Memory allocation functions used throughout sqlite. ** -** $Id: malloc.c,v 1.57 2009/02/19 20:50:15 drh Exp $ +** $Id: malloc.c,v 1.58 2009/03/05 04:20:32 shane Exp $ */ #include "sqliteInt.h" #include <stdarg.h> @@ -691,10 +691,10 @@ void sqlite3SetString(char **pz, sqlite3 *db, const char *zFormat, ...){ ** sqlite3_realloc. ** ** The returned value is normally a copy of the second argument to this -** function. However, if a malloc() failure has occured since the previous +** function. However, if a malloc() failure has occurred since the previous ** invocation SQLITE_NOMEM is returned instead. ** -** If the first argument, db, is not NULL and a malloc() error has occured, +** If the first argument, db, is not NULL and a malloc() error has occurred, ** then the connection error-code (the value returned by sqlite3_errcode()) ** is set to SQLITE_NOMEM. */ diff --git a/src/os_win.c b/src/os_win.c index 2f98ee718..76e994395 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to windows. ** -** $Id: os_win.c,v 1.148 2009/02/05 03:16:21 shane Exp $ +** $Id: os_win.c,v 1.149 2009/03/05 04:20:32 shane Exp $ */ #include "sqliteInt.h" #if SQLITE_OS_WIN /* This file is used for windows only */ @@ -1723,7 +1723,7 @@ int winCurrentTime(sqlite3_vfs *pVfs, double *prNow){ ** function, SQLite calls this function with zBuf pointing to ** a buffer of nBuf bytes. The OS layer should populate the ** buffer with a nul-terminated UTF-8 encoded error message -** describing the last IO error to have occured within the calling +** describing the last IO error to have occurred within the calling ** thread. ** ** If the error message is too large for the supplied buffer, diff --git a/src/pager.c b/src/pager.c index 0f08c0c56..fc13b38c2 100644 --- a/src/pager.c +++ b/src/pager.c @@ -18,7 +18,7 @@ ** file simultaneously, or one process from reading the database while ** another is writing. ** -** @(#) $Id: pager.c,v 1.570 2009/02/17 17:56:30 danielk1977 Exp $ +** @(#) $Id: pager.c,v 1.571 2009/03/05 04:20:32 shane Exp $ */ #ifndef SQLITE_OMIT_DISKIO #include "sqliteInt.h" @@ -762,7 +762,7 @@ static int writeJournalHdr(Pager *pPager){ ** A faster alternative is to write 0xFFFFFFFF to the nRec field. When ** reading the journal this value tells SQLite to assume that the ** rest of the journal file contains valid page records. This assumption - ** is dangerous, as if a failure occured whilst writing to the journal + ** is dangerous, as if a failure occurred whilst writing to the journal ** file it may contain some garbage data. There are two scenarios ** where this risk can be ignored: ** @@ -1143,7 +1143,7 @@ static void pager_unlock(Pager *pPager){ /* ** This function should be called when an IOERR, CORRUPT or FULL error -** may have occured. The first argument is a pointer to the pager +** may have occurred. The first argument is a pointer to the pager ** structure, the second the error-code about to be returned by a pager ** API function. The value returned is a copy of the second argument ** to this function. @@ -1156,7 +1156,7 @@ static void pager_unlock(Pager *pPager){ ** A persistent error indicates that the contents of the pager-cache ** cannot be trusted. This state can be cleared by completely discarding ** the contents of the pager-cache. If a transaction was active when -** the persistent error occured, then the rollback journal may need +** the persistent error occurred, then the rollback journal may need ** to be replayed to restore the contents of the database file (as if ** it were a hot-journal). */ @@ -2054,7 +2054,7 @@ end_playback: ); /* If this playback is happening automatically as a result of an IO or - ** malloc error that occured after the change-counter was updated but + ** malloc error that occurred after the change-counter was updated but ** before the transaction was committed, then the change-counter ** modification may just have been reverted. If this happens in exclusive ** mode, then subsequent transactions performed by the connection will not @@ -3268,7 +3268,7 @@ int sqlite3PagerOpen( testcase( rc!=SQLITE_OK ); } - /* If an error occured in either of the blocks above, free the + /* If an error occurred in either of the blocks above, free the ** Pager structure and close the file. */ if( rc!=SQLITE_OK ){ @@ -4135,7 +4135,7 @@ static int pager_write(PgHdr *pPg){ pPager->needSync = 1; } - /* An error has occured writing to the journal file. The + /* An error has occurred writing to the journal file. The ** transaction will be rolled back by the layer above. */ if( rc!=SQLITE_OK ){ @@ -4851,7 +4851,7 @@ int sqlite3PagerOpenSavepoint(Pager *pPager, int nSavepoint){ ** Parameter op is always either SAVEPOINT_ROLLBACK or SAVEPOINT_RELEASE. ** If it is SAVEPOINT_RELEASE, then release and destroy the savepoint with ** index iSavepoint. If it is SAVEPOINT_ROLLBACK, then rollback all changes -** that have occured since the specified savepoint was created. +** that have occurred since the specified savepoint was created. ** ** The savepoint to rollback or release is identified by parameter ** iSavepoint. A value of 0 means to operate on the outermost savepoint diff --git a/src/prepare.c b/src/prepare.c index fbd005cfb..72f8a61f9 100644 --- a/src/prepare.c +++ b/src/prepare.c @@ -13,7 +13,7 @@ ** interface, and routines that contribute to loading the database schema ** from disk. ** -** $Id: prepare.c,v 1.107 2009/02/24 16:18:05 drh Exp $ +** $Id: prepare.c,v 1.108 2009/03/05 04:20:32 shane Exp $ */ #include "sqliteInt.h" @@ -351,10 +351,10 @@ static int sqlite3InitOne(sqlite3 *db, int iDb, char **pzErrMsg){ } if( rc==SQLITE_OK || (db->flags&SQLITE_RecoveryMode)){ /* Black magic: If the SQLITE_RecoveryMode flag is set, then consider - ** the schema loaded, even if errors occured. In this situation the + ** the schema loaded, even if errors occurred. In this situation the ** current sqlite3_prepare() operation will fail, but the following one ** will attempt to compile the supplied statement against whatever subset - ** of the schema was loaded before the error occured. The primary + ** of the schema was loaded before the error occurred. The primary ** purpose of this is to allow access to the sqlite_master table ** even when its contents have been corrupted. */ diff --git a/src/test_async.c b/src/test_async.c index 44e445ea1..011a8aa0d 100644 --- a/src/test_async.c +++ b/src/test_async.c @@ -10,7 +10,7 @@ ** ************************************************************************* ** -** $Id: test_async.c,v 1.48 2008/09/26 20:02:50 drh Exp $ +** $Id: test_async.c,v 1.49 2009/03/05 04:20:32 shane Exp $ ** ** This file contains an example implementation of an asynchronous IO ** backend for SQLite. @@ -280,7 +280,7 @@ static struct TestAsyncStaticData { volatile int ioDelay; /* Extra delay between write operations */ volatile int writerHaltWhenIdle; /* Writer thread halts when queue empty */ volatile int writerHaltNow; /* Writer thread halts after next op */ - int ioError; /* True if an IO error has occured */ + int ioError; /* True if an IO error has occurred */ int nFile; /* Number of open files (from sqlite pov) */ } async = { PTHREAD_MUTEX_INITIALIZER, @@ -1564,12 +1564,12 @@ static void *asyncWriterThread(void *pIsStarted){ } assert( holdingMutex ); - /* An IO error has occured. We cannot report the error back to the + /* An IO error has occurred. We cannot report the error back to the ** connection that requested the I/O since the error happened ** asynchronously. The connection has already moved on. There ** really is nobody to report the error to. ** - ** The file for which the error occured may have been a database or + ** The file for which the error occurred may have been a database or ** journal file. Regardless, none of the currently queued operations ** associated with the same database should now be performed. Nor should ** any subsequently requested IO on either a database or journal file diff --git a/src/test_journal.c b/src/test_journal.c index 476f493f7..92a38e85c 100644 --- a/src/test_journal.c +++ b/src/test_journal.c @@ -15,7 +15,7 @@ ** correctly populates and syncs a journal file before writing to a ** corresponding database file. ** -** $Id: test_journal.c,v 1.11 2009/02/12 09:11:56 danielk1977 Exp $ +** $Id: test_journal.c,v 1.12 2009/03/05 04:20:32 shane Exp $ */ #if SQLITE_TEST /* This file is used for testing only */ @@ -50,7 +50,7 @@ ** c) The set of page numbers corresponding to free-list leaf pages. ** d) A check-sum for every page in the database file. ** -** The start of a write-transaction is deemed to have occured when a +** The start of a write-transaction is deemed to have occurred when a ** 28-byte journal header is written to byte offset 0 of the journal ** file. ** diff --git a/src/vdbe.c b/src/vdbe.c index a8dafc4cb..b5a991bae 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -43,7 +43,7 @@ ** in this file for details. If in doubt, do not deviate from existing ** commenting and indentation practices when changing or adding code. ** -** $Id: vdbe.c,v 1.823 2009/02/24 18:57:32 drh Exp $ +** $Id: vdbe.c,v 1.824 2009/03/05 04:20:32 shane Exp $ */ #include "sqliteInt.h" #include "vdbeInt.h" @@ -554,7 +554,7 @@ int sqlite3VdbeExec( Mem *pOut = 0; /* Output operand */ u8 opProperty; int iCompare = 0; /* Result of last OP_Compare operation */ - int *aPermute = 0; /* Permuation of columns for OP_Compare */ + int *aPermute = 0; /* Permutation of columns for OP_Compare */ #ifdef VDBE_PROFILE u64 start; /* CPU clock count at start of opcode */ int origPc; /* Program counter at start of opcode */ @@ -1708,7 +1708,7 @@ case OP_Ge: { /* same as TK_GE, jump, in1, in3 */ /* Opcode: Permutation * * * P4 * ** -** Set the permuation used by the OP_Compare operator to be the array +** Set the permutation used by the OP_Compare operator to be the array ** of integers in P4. ** ** The permutation is only valid until the next OP_Permutation, OP_Compare, @@ -4280,7 +4280,7 @@ case OP_Destroy: { /* out2-prerelease */ ** P2==1 then the table to be clear is in the auxiliary database file ** that is used to store tables create using CREATE TEMPORARY TABLE. ** -** If the P3 value is non-zero, then the table refered to must be an +** If the P3 value is non-zero, then the table referred to must be an ** intkey table (an SQL table, not an index). In this case the row change ** count is incremented by the number of rows in the table being cleared. ** If P3 is greater than zero, then the value stored in register P3 is @@ -5061,7 +5061,7 @@ case OP_VColumn: { pVtab->zErrMsg = 0; /* Copy the result of the function to the P3 register. We - ** do this regardless of whether or not an error occured to ensure any + ** do this regardless of whether or not an error occurred to ensure any ** dynamic allocation in sContext.s (a Mem struct) is released. */ sqlite3VdbeChangeEncoding(&sContext.s, encoding); diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 0ab06498e..64cd2f99e 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -14,7 +14,7 @@ ** to version 2.8.7, all this code was combined into the vdbe.c source file. ** But that file was getting too big so this subroutines were split out. ** -** $Id: vdbeaux.c,v 1.440 2009/03/05 03:48:07 shane Exp $ +** $Id: vdbeaux.c,v 1.441 2009/03/05 04:20:32 shane Exp $ */ #include "sqliteInt.h" #include "vdbeInt.h" @@ -1459,7 +1459,7 @@ static int vdbeCommit(sqlite3 *db, Vdbe *p){ ** sqlite3BtreeCommitPhaseOne(), then there is a chance that the ** master journal file will be orphaned. But we cannot delete it, ** in case the master journal file name was written into the journal - ** file before the failure occured. + ** file before the failure occurred. */ for(i=0; rc==SQLITE_OK && i<db->nDb; i++){ Btree *pBt = db->aDb[i].pBt; |