/ Check-in [f6c045f6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove the obsolete "$Id:$" RCS identifier strings from the source code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f6c045f649036958078cb15cd9d5453680c82b0c
User & Date: drh 2009-11-10 01:30:53
Context
2009-11-10
17:07
Fix for datbase name being ignored with the -batch option in the CLI. Ticket [aeff892c57]. check-in: 8097c64a user: shaneh tags: trunk
01:30
Remove the obsolete "$Id:$" RCS identifier strings from the source code. check-in: f6c045f6 user: drh tags: trunk
01:13
Remove from the TCL interface some old code associated with sqlite3_analyzer. check-in: 01f2271e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.in.

   452    452   
   453    453   Makefile: $(TOP)/Makefile.in
   454    454   	./config.status
   455    455   
   456    456   sqlite3.pc: $(TOP)/sqlite3.pc.in
   457    457   	./config.status
   458    458   
   459         -# Generate the file "last_change" which contains the date of change
   460         -# of the most recently modified source code file
   461         -#
   462         -last_change:	$(SRC)
   463         -	cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
   464         -          | $(NAWK) '{print $$5,$$6}' >last_change
   465         -
   466    459   libsqlite3.la:	$(LIBOBJ)
   467    460   	$(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \
   468    461   		${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
   469    462   
   470    463   libtclsqlite3.la:	tclsqlite.lo libsqlite3.la
   471    464   	$(LTLINK) -o $@ tclsqlite.lo \
   472    465   		libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \

Changes to ext/rtree/rtree.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code for implementations of the r-tree and r*-tree
    13     13   ** algorithms packaged as an SQLite virtual table module.
    14         -**
    15         -** $Id: rtree.c,v 1.14 2009/08/06 18:36:47 danielk1977 Exp $
    16     14   */
    17     15   
    18     16   #if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_RTREE)
    19     17   
    20     18   /*
    21     19   ** This file contains an implementation of a couple of different variants
    22     20   ** of the r-tree algorithm. See the README file for further details. The 

Changes to ext/rtree/rtree1.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # The focus of this file is testing the r-tree extension.
    13     13   #
    14         -# $Id: rtree1.test,v 1.7 2009/07/17 16:54:48 danielk1977 Exp $
    15         -#
    16     14   
    17     15   if {![info exists testdir]} {
    18     16     set testdir [file join [file dirname $argv0] .. .. test]
    19     17   }
    20     18   source [file join [file dirname [info script]] rtree_util.tcl]
    21     19   source $testdir/tester.tcl
    22     20   

Changes to ext/rtree/rtree2.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # The focus of this file is testing the r-tree extension.
    13     13   #
    14         -# $Id: rtree2.test,v 1.4 2008/07/14 15:37:01 danielk1977 Exp $
    15         -#
    16     14   
    17     15   if {![info exists testdir]} {
    18     16     set testdir [file join [file dirname $argv0] .. .. test]
    19     17   } 
    20     18   source [file join [file dirname [info script]] rtree_util.tcl]
    21     19   source $testdir/tester.tcl
    22     20   

Changes to ext/rtree/rtree3.test.

     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # The focus of this file is testing that the r-tree correctly handles
    13     13   # out-of-memory conditions.
    14     14   #
    15         -# $Id: rtree3.test,v 1.2 2008/06/23 15:55:52 danielk1977 Exp $
    16         -#
    17     15   
    18     16   if {![info exists testdir]} {
    19     17     set testdir [file join [file dirname $argv0] .. .. test]
    20     18   } 
    21     19   source $testdir/tester.tcl
    22     20   
    23     21   ifcapable !rtree {
................................................................................
    67     65       set f [expr rand()]
    68     66       db eval { DELETE FROM rt WHERE x1<($f*10.0) AND x1>($f*10.5) }
    69     67     }
    70     68     db eval COMMIT
    71     69   } 
    72     70   
    73     71   finish_test
    74         -

Changes to ext/rtree/rtree4.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # Randomized test cases for the rtree extension.
    13     13   #
    14         -# $Id: rtree4.test,v 1.3 2008/06/23 15:55:52 danielk1977 Exp $
    15         -#
    16     14   
    17     15   if {![info exists testdir]} {
    18     16     set testdir [file join [file dirname $argv0] .. .. test]
    19     17   } 
    20     18   source $testdir/tester.tcl
    21     19   
    22     20   ifcapable !rtree {

Changes to ext/rtree/rtree5.test.

     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # The focus of this file is testing the r-tree extension when it is
    13     13   # configured to store values as 32 bit integers.
    14     14   #
    15         -# $Id: rtree5.test,v 1.1 2008/07/14 15:37:01 danielk1977 Exp $
    16         -#
    17     15   
    18     16   if {![info exists testdir]} {
    19     17     set testdir [file join [file dirname $argv0] .. .. test]
    20     18   } 
    21     19   source $testdir/tester.tcl
    22     20   
    23     21   ifcapable !rtree {

Changes to ext/rtree/rtree6.test.

     4      4   # a legal notice, here is a blessing:
     5      5   #
     6      6   #    May you do good and not evil.
     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11         -#
    12         -# $Id: rtree6.test,v 1.1 2008/09/01 12:47:00 danielk1977 Exp $
           11  +# 
    13     12   #
    14     13   
    15     14   if {![info exists testdir]} {
    16     15     set testdir [file join [file dirname $argv0] .. .. test]
    17     16   } 
    18     17   source $testdir/tester.tcl
    19     18   
................................................................................
   104    103     query_plan {SELECT * FROM t1,t2 WHERE k=ii AND x1<v}
   105    104   } [list \
   106    105     {TABLE t2}                              \
   107    106     {TABLE t1 VIRTUAL TABLE INDEX 1:}   \
   108    107   ]
   109    108   
   110    109   finish_test
   111         -

Changes to ext/rtree/rtree_perf.tcl.

    68     68   flush stdout
    69     69   set rtree_select_time [time {
    70     70     foreach {x1 x2 y1 y2} [lrange $data 0 [expr $NQUERY*4-1]] {
    71     71       db eval {SELECT * FROM rtree WHERE x1<$x1 AND x2>$x2 AND y1<$y1 AND y2>$y2}
    72     72     }
    73     73   }]
    74     74   puts "$rtree_select_time"
    75         -
    76         -

Changes to ext/rtree/rtree_util.tcl.

     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # This file contains Tcl code that may be useful for testing or
    13     13   # analyzing r-tree structures created with this module. It is
    14     14   # used by both test procedures and the r-tree viewer application.
    15     15   #
    16         -# $Id: rtree_util.tcl,v 1.1 2008/05/26 18:41:54 danielk1977 Exp $
    17         -#
    18     16   
    19     17   
    20     18   #--------------------------------------------------------------------------
    21     19   # PUBLIC API:
    22     20   #
    23     21   #   rtree_depth
    24     22   #   rtree_ndim
................................................................................
   188    186     set ret
   189    187   }
   190    188   
   191    189   proc rtree_treedump {db zTab} {
   192    190     set d [rtree_depth $db $zTab]
   193    191     rtree_nodetreedump $db $zTab "" $d 1
   194    192   }
   195         -

Changes to ext/rtree/tkt3363.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12     12   # The focus of this file is testing that ticket #3363 is fixed.
    13     13   #
    14         -# $Id: tkt3363.test,v 1.1 2008/09/08 11:07:03 danielk1977 Exp $
    15         -#
    16     14   
    17     15   if {![info exists testdir]} {
    18     16     set testdir [file join [file dirname $argv0] .. .. test]
    19     17   }
    20     18   source [file join [file dirname [info script]] rtree_util.tcl]
    21     19   source $testdir/tester.tcl
    22     20   
................................................................................
    46     44   do_test tkt3363.1.4 {
    47     45     execsql { 
    48     46       SELECT count(*) FROM t1 WHERE y2>4000425.0;
    49     47     }
    50     48   } {7}
    51     49   
    52     50   finish_test
    53         -
    54         -

Changes to ext/rtree/viewrtree.tcl.

   182    182     }
   183    183   
   184    184     return $zReport
   185    185   }
   186    186   
   187    187   view_node
   188    188   bind .c <Configure> view_node
   189         -

Changes to src/alter.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains C code routines that used to generate VDBE code
    13     13   ** that implements the ALTER TABLE command.
    14         -**
    15         -** $Id: alter.c,v 1.62 2009/07/24 17:58:53 danielk1977 Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   /*
    20     18   ** The code in this file only exists if we are not omitting the
    21     19   ** ALTER TABLE logic from the build.
    22     20   */

Changes to src/analyze.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code associated with the ANALYZE command.
    13         -**
    14         -** @(#) $Id: analyze.c,v 1.52 2009/04/16 17:45:48 drh Exp $
    15     13   */
    16     14   #ifndef SQLITE_OMIT_ANALYZE
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   /*
    20     18   ** This routine generates code that opens the sqlite_stat1 table for
    21     19   ** writing with cursor iStatCur. If the library was built with the

Changes to src/attach.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the ATTACH and DETACH commands.
    13         -**
    14         -** $Id: attach.c,v 1.93 2009/05/31 21:21:41 drh Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   
    18     16   #ifndef SQLITE_OMIT_ATTACH
    19     17   /*
    20     18   ** Resolve an expression that was part of an ATTACH or DETACH statement. This
    21     19   ** is slightly different from resolving a normal SQL expression, because simple

Changes to src/auth.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the sqlite3_set_authorizer()
    13     13   ** API.  This facility is an optional feature of the library.  Embedded
    14     14   ** systems that do not need this facility may omit it by recompiling
    15     15   ** the library with -DSQLITE_OMIT_AUTHORIZATION=1
    16         -**
    17         -** $Id: auth.c,v 1.32 2009/07/02 18:40:35 danielk1977 Exp $
    18     16   */
    19     17   #include "sqliteInt.h"
    20     18   
    21     19   /*
    22     20   ** All of the code in this file may be omitted by defining a single
    23     21   ** macro.
    24     22   */

Changes to src/backup.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains the implementation of the sqlite3_backup_XXX() 
    13     13   ** API functions and the related features.
    14         -**
    15         -** $Id: backup.c,v 1.19 2009/07/06 19:03:13 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   #include "btreeInt.h"
    19     17   
    20     18   /* Macro to find the minimum of two numeric values.
    21     19   */
    22     20   #ifndef MIN

Changes to src/bitvec.c.

    29     29   ** Test operations are about 100 times more common that set operations.
    30     30   ** Clear operations are exceedingly rare.  There are usually between
    31     31   ** 5 and 500 set operations per Bitvec object, though the number of sets can
    32     32   ** sometimes grow into tens of thousands or larger.  The size of the
    33     33   ** Bitvec object is the number of pages in the database file at the
    34     34   ** start of a transaction, and is thus usually less than a few thousand,
    35     35   ** but can be as large as 2 billion for a really big database.
    36         -**
    37         -** @(#) $Id: bitvec.c,v 1.17 2009/07/25 17:33:26 drh Exp $
    38     36   */
    39     37   #include "sqliteInt.h"
    40     38   
    41     39   /* Size of the Bitvec structure in bytes. */
    42     40   #define BITVEC_SZ        (sizeof(void*)*128)  /* 512 on 32bit.  1024 on 64bit */
    43     41   
    44     42   /* Round the union size down to the nearest pointer boundary, since that's how 

Changes to src/btmutex.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** $Id: btmutex.c,v 1.17 2009/07/20 12:33:33 drh Exp $
    14         -**
    15     13   ** This file contains code used to implement mutexes on Btree objects.
    16     14   ** This code really belongs in btree.c.  But btree.c is getting too
    17     15   ** big and we want to break it down some.  This packaged seemed like
    18     16   ** a good breakout.
    19     17   */
    20     18   #include "btreeInt.h"
    21     19   #ifndef SQLITE_OMIT_SHARED_CACHE

Changes to src/btree.c.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12         -** $Id: btree.c,v 1.705 2009/08/10 03:57:58 shane Exp $
    13         -**
    14     12   ** This file implements a external (disk-based) database using BTrees.
    15     13   ** See the header comment on "btreeInt.h" for additional information.
    16     14   ** Including a description of file format and an overview of operation.
    17     15   */
    18     16   #include "btreeInt.h"
    19     17   
    20     18   /*

Changes to src/btree.h.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This header file defines the interface that the sqlite B-Tree file
    13     13   ** subsystem.  See comments in the source code for a detailed description
    14     14   ** of what each interface routine does.
    15         -**
    16         -** @(#) $Id: btree.h,v 1.120 2009/07/22 00:35:24 drh Exp $
    17     15   */
    18     16   #ifndef _BTREE_H_
    19     17   #define _BTREE_H_
    20     18   
    21     19   /* TODO: This definition is just included so other modules compile. It
    22     20   ** needs to be revisited.
    23     21   */

Changes to src/btreeInt.h.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12         -** $Id: btreeInt.h,v 1.52 2009/07/15 17:25:46 drh Exp $
    13         -**
    14     12   ** This file implements a external (disk-based) database using BTrees.
    15     13   ** For a detailed discussion of BTrees, refer to
    16     14   **
    17     15   **     Donald E. Knuth, THE ART OF COMPUTER PROGRAMMING, Volume 3:
    18     16   **     "Sorting And Searching", pages 473-480. Addison-Wesley
    19     17   **     Publishing Company, Reading, Massachusetts.
    20     18   **

Changes to src/build.c.

    17     17   **     DROP TABLE
    18     18   **     CREATE INDEX
    19     19   **     DROP INDEX
    20     20   **     creating ID lists
    21     21   **     BEGIN TRANSACTION
    22     22   **     COMMIT
    23     23   **     ROLLBACK
    24         -**
    25         -** $Id: build.c,v 1.557 2009/07/24 17:58:53 danielk1977 Exp $
    26     24   */
    27     25   #include "sqliteInt.h"
    28     26   
    29     27   /*
    30     28   ** This routine is called when a new SQL statement is beginning to
    31     29   ** be parsed.  Initialize the pParse structure as needed.
    32     30   */

Changes to src/callback.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains functions used to access the internal hash tables
    14     14   ** of user defined functions and collation sequences.
    15         -**
    16         -** $Id: callback.c,v 1.42 2009/06/17 00:35:31 drh Exp $
    17     15   */
    18     16   
    19     17   #include "sqliteInt.h"
    20     18   
    21     19   /*
    22     20   ** Invoke the 'collation needed' callback to request a collation sequence
    23     21   ** in the encoding enc of name zName, length nName.

Changes to src/complete.c.

    11     11   *************************************************************************
    12     12   ** An tokenizer for SQL
    13     13   **
    14     14   ** This file contains C code that implements the sqlite3_complete() API.
    15     15   ** This code used to be part of the tokenizer.c source file.  But by
    16     16   ** separating it out, the code will be automatically omitted from
    17     17   ** static links that do not use it.
    18         -**
    19         -** $Id: complete.c,v 1.8 2009/04/28 04:46:42 drh Exp $
    20     18   */
    21     19   #include "sqliteInt.h"
    22     20   #ifndef SQLITE_OMIT_COMPLETE
    23     21   
    24     22   /*
    25     23   ** This is defined in tokenize.c.  We just have to import the definition.
    26     24   */

Changes to src/date.c.

    12     12   ** This file contains the C functions that implement date and time
    13     13   ** functions for SQLite.  
    14     14   **
    15     15   ** There is only one exported symbol in this file - the function
    16     16   ** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
    17     17   ** All other code has file scope.
    18     18   **
    19         -** $Id: date.c,v 1.107 2009/05/03 20:23:53 drh Exp $
    20         -**
    21     19   ** SQLite processes all times and dates as Julian Day numbers.  The
    22     20   ** dates and times are stored as the number of days since noon
    23     21   ** in Greenwich on November 24, 4714 B.C. according to the Gregorian
    24     22   ** calendar system. 
    25     23   **
    26     24   ** 1970-01-01 00:00:00 is JD 2440587.5
    27     25   ** 2000-01-01 00:00:00 is JD 2451544.5

Changes to src/delete.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains C code routines that are called by the parser
    13     13   ** in order to generate code for DELETE FROM statements.
    14         -**
    15         -** $Id: delete.c,v 1.207 2009/08/08 18:01:08 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   /*
    20     18   ** Look up every table that is named in pSrc.  If any table is not found,
    21     19   ** add an error message to pParse->zErrMsg and return NULL.  If all tables
    22     20   ** are found, return a pointer to the last table.
................................................................................
   631    629       sqlite3VdbeAddOp3(v, OP_MakeRecord, regBase, nCol+1, regOut);
   632    630       sqlite3VdbeChangeP4(v, -1, sqlite3IndexAffinityStr(v, pIdx), 0);
   633    631       sqlite3ExprCacheAffinityChange(pParse, regBase, nCol+1);
   634    632     }
   635    633     sqlite3ReleaseTempRange(pParse, regBase, nCol+1);
   636    634     return regBase;
   637    635   }
   638         -

Changes to src/fault.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** $Id: fault.c,v 1.11 2008/09/02 00:52:52 drh Exp $
    14         -*/
    15         -
    16         -/*
    17     13   ** This file contains code to support the concept of "benign" 
    18     14   ** malloc failures (when the xMalloc() or xRealloc() method of the
    19     15   ** sqlite3_mem_methods structure fails to allocate a block of memory
    20     16   ** and returns 0). 
    21     17   **
    22     18   ** Most malloc failures are non-benign. After they occur, SQLite
    23     19   ** abandons the current operation and returns an error code (usually

Changes to src/hash.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This is the implementation of generic hash-tables
    13     13   ** used in SQLite.
    14         -**
    15         -** $Id: hash.c,v 1.38 2009/05/09 23:29:12 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   #include <assert.h>
    19     17   
    20     18   /* Turn bulk memory into a hash table object by initializing the
    21     19   ** fields of the Hash structure.
    22     20   **

Changes to src/hash.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This is the header file for the generic hash-table implemenation
    13     13   ** used in SQLite.
    14         -**
    15         -** $Id: hash.h,v 1.15 2009/05/02 13:29:38 drh Exp $
    16     14   */
    17     15   #ifndef _SQLITE_HASH_H_
    18     16   #define _SQLITE_HASH_H_
    19     17   
    20     18   /* Forward declarations of structures. */
    21     19   typedef struct Hash Hash;
    22     20   typedef struct HashElem HashElem;

Changes to src/hwtime.h.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains inline asm code for retrieving "high-performance"
    14     14   ** counters for x86 class CPUs.
    15         -**
    16         -** $Id: hwtime.h,v 1.3 2008/08/01 14:33:15 shane Exp $
    17     15   */
    18     16   #ifndef _HWTIME_H_
    19     17   #define _HWTIME_H_
    20     18   
    21     19   /*
    22     20   ** The following routine only works on pentium-class (or newer) processors.
    23     21   ** It uses the RDTSC opcode to read the cycle count value out of the

Changes to src/insert.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains C code routines that are called by the parser
    13     13   ** to handle INSERT statements in SQLite.
    14         -**
    15         -** $Id: insert.c,v 1.270 2009/07/24 17:58:53 danielk1977 Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   /*
    20     18   ** Generate code that will open a table for reading.
    21     19   */
    22     20   void sqlite3OpenTable(

Changes to src/journal.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** @(#) $Id: journal.c,v 1.9 2009/01/20 17:06:27 danielk1977 Exp $
    14         -*/
    15         -
    16         -#ifdef SQLITE_ENABLE_ATOMIC_WRITE
    17         -
    18         -/*
    19     13   ** This file implements a special kind of sqlite3_file object used
    20     14   ** by SQLite to create journal files if the atomic-write optimization
    21     15   ** is enabled.
    22     16   **
    23     17   ** The distinctive characteristic of this sqlite3_file is that the
    24     18   ** actual on disk file is created lazily. When the file is created,
    25     19   ** the caller specifies a buffer size for an in-memory buffer to
................................................................................
    26     20   ** be used to service read() and write() requests. The actual file
    27     21   ** on disk is not created or populated until either:
    28     22   **
    29     23   **   1) The in-memory representation grows too large for the allocated 
    30     24   **      buffer, or
    31     25   **   2) The sqlite3JournalCreate() function is called.
    32     26   */
    33         -
           27  +#ifdef SQLITE_ENABLE_ATOMIC_WRITE
    34     28   #include "sqliteInt.h"
    35     29   
    36     30   
    37     31   /*
    38     32   ** A JournalFile object is a subclass of sqlite3_file used by
    39     33   ** as an open file handle for journal files.
    40     34   */

Changes to src/legacy.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Main file for the SQLite library.  The routines in this file
    13     13   ** implement the programmer interface to the library.  Routines in
    14     14   ** other files are for internal use by SQLite and should not be
    15     15   ** accessed by users of the library.
    16         -**
    17         -** $Id: legacy.c,v 1.35 2009/08/07 16:56:00 danielk1977 Exp $
    18     16   */
    19     17   
    20     18   #include "sqliteInt.h"
    21     19   
    22     20   /*
    23     21   ** Execute SQL code.  Return one of the SQLITE_ success/failure
    24     22   ** codes.  Also write an error message into memory obtained from

Changes to src/loadext.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to dynamically load extensions into
    13     13   ** the SQLite library.
    14         -**
    15         -** $Id: loadext.c,v 1.60 2009/06/03 01:24:54 drh Exp $
    16     14   */
    17     15   
    18     16   #ifndef SQLITE_CORE
    19     17     #define SQLITE_CORE 1  /* Disable the API redefinition in sqlite3ext.h */
    20     18   #endif
    21     19   #include "sqlite3ext.h"
    22     20   #include "sqliteInt.h"

Changes to src/malloc.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** Memory allocation functions used throughout sqlite.
    14         -**
    15         -** $Id: malloc.c,v 1.66 2009/07/17 11:44:07 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   #include <stdarg.h>
    19     17   
    20     18   /*
    21     19   ** This routine runs when the memory allocator sees that the
    22     20   ** total memory allocation is about to exceed the soft heap

Changes to src/mem0.c.

    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains a no-op memory allocation drivers for use when
    14     14   ** SQLITE_ZERO_MALLOC is defined.  The allocation drivers implemented
    15     15   ** here always fail.  SQLite will not operate with these drivers.  These
    16     16   ** are merely placeholders.  Real drivers must be substituted using
    17     17   ** sqlite3_config() before SQLite will operate.
    18         -**
    19         -** $Id: mem0.c,v 1.1 2008/10/28 18:58:20 drh Exp $
    20     18   */
    21     19   #include "sqliteInt.h"
    22     20   
    23     21   /*
    24     22   ** This version of the memory allocator is the default.  It is
    25     23   ** used when no other memory allocator is specified using compile-time
    26     24   ** macros.

Changes to src/mem1.c.

    12     12   **
    13     13   ** This file contains low-level memory allocation drivers for when
    14     14   ** SQLite will use the standard C-library malloc/realloc/free interface
    15     15   ** to obtain the memory it needs.
    16     16   **
    17     17   ** This file contains implementations of the low-level memory allocation
    18     18   ** routines specified in the sqlite3_mem_methods object.
    19         -**
    20         -** $Id: mem1.c,v 1.30 2009/03/23 04:33:33 danielk1977 Exp $
    21     19   */
    22     20   #include "sqliteInt.h"
    23     21   
    24     22   /*
    25     23   ** This version of the memory allocator is the default.  It is
    26     24   ** used when no other memory allocator is specified using compile-time
    27     25   ** macros.

Changes to src/mem2.c.

    14     14   ** SQLite will use the standard C-library malloc/realloc/free interface
    15     15   ** to obtain the memory it needs while adding lots of additional debugging
    16     16   ** information to each allocation in order to help detect and fix memory
    17     17   ** leaks and memory usage errors.
    18     18   **
    19     19   ** This file contains implementations of the low-level memory allocation
    20     20   ** routines specified in the sqlite3_mem_methods object.
    21         -**
    22         -** $Id: mem2.c,v 1.45 2009/03/23 04:33:33 danielk1977 Exp $
    23     21   */
    24     22   #include "sqliteInt.h"
    25     23   
    26     24   /*
    27     25   ** This version of the memory allocator is used only if the
    28     26   ** SQLITE_MEMDEBUG macro is defined
    29     27   */

Changes to src/mem3.c.

    18     18   ** are made and returned by the xMalloc() and xRealloc() 
    19     19   ** implementations. Once sqlite3_initialize() has been called,
    20     20   ** the amount of memory available to SQLite is fixed and cannot
    21     21   ** be changed.
    22     22   **
    23     23   ** This version of the memory allocation subsystem is included
    24     24   ** in the build only if SQLITE_ENABLE_MEMSYS3 is defined.
    25         -**
    26         -** $Id: mem3.c,v 1.25 2008/11/19 16:52:44 danielk1977 Exp $
    27     25   */
    28     26   #include "sqliteInt.h"
    29     27   
    30     28   /*
    31     29   ** This version of the memory allocator is only built into the library
    32     30   ** SQLITE_ENABLE_MEMSYS3 is defined. Defining this symbol does not
    33     31   ** mean that the library will use a memory-pool by default, just that

Changes to src/memjournal.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains code use to implement an in-memory rollback journal.
    14     14   ** The in-memory rollback journal is used to journal transactions for
    15     15   ** ":memory:" databases and when the journal_mode=MEMORY pragma is used.
    16         -**
    17         -** @(#) $Id: memjournal.c,v 1.12 2009/05/04 11:42:30 danielk1977 Exp $
    18     16   */
    19     17   #include "sqliteInt.h"
    20     18   
    21     19   /* Forward references to internal structures */
    22     20   typedef struct MemJournal MemJournal;
    23     21   typedef struct FilePoint FilePoint;
    24     22   typedef struct FileChunk FileChunk;

Changes to src/mutex.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains the C functions that implement mutexes.
    13     13   **
    14     14   ** This file contains code that is common across all mutex implementations.
    15         -
    16         -**
    17         -** $Id: mutex.c,v 1.31 2009/07/16 18:21:18 drh Exp $
    18     15   */
    19     16   #include "sqliteInt.h"
    20     17   
    21     18   #if defined(SQLITE_DEBUG) && !defined(SQLITE_MUTEX_OMIT)
    22     19   /*
    23     20   ** For debugging purposes, record when the mutex subsystem is initialized
    24     21   ** and uninitialized so that we can assert() if there is an attempt to

Changes to src/mutex.h.

    14     14   ** The sqliteInt.h header #includes this file so that it is available
    15     15   ** to all source files.  We break it out in an effort to keep the code
    16     16   ** better organized.
    17     17   **
    18     18   ** NOTE:  source files should *not* #include this header file directly.
    19     19   ** Source files should #include the sqliteInt.h file and let that file
    20     20   ** include this one indirectly.
    21         -**
    22         -** $Id: mutex.h,v 1.9 2008/10/07 15:25:48 drh Exp $
    23     21   */
    24     22   
    25     23   
    26     24   /*
    27     25   ** Figure out what version of the code to use.  The choices are
    28     26   **
    29     27   **   SQLITE_MUTEX_OMIT         No mutex logic.  Not even stubs.  The

Changes to src/mutex_noop.c.

    20     20   **     sqlite3_config(SQLITE_CONFIG_MUTEX,...)
    21     21   **
    22     22   ** interface.
    23     23   **
    24     24   ** If compiled with SQLITE_DEBUG, then additional logic is inserted
    25     25   ** that does error checking on mutexes to make sure they are being
    26     26   ** called correctly.
    27         -**
    28         -** $Id: mutex_noop.c,v 1.3 2008/12/05 17:17:08 drh Exp $
    29     27   */
    30     28   #include "sqliteInt.h"
    31     29   
    32     30   
    33     31   #if defined(SQLITE_MUTEX_NOOP) && !defined(SQLITE_DEBUG)
    34     32   /*
    35     33   ** Stub routines for all mutex methods.

Changes to src/mutex_os2.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains the C functions that implement mutexes for OS/2
    13         -**
    14         -** $Id: mutex_os2.c,v 1.11 2008/11/22 19:50:54 pweilbacher Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   
    18     16   /*
    19     17   ** The code in this file is only used if SQLITE_MUTEX_OS2 is defined.
    20     18   ** See the mutex.h file for details.
    21     19   */

Changes to src/mutex_unix.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains the C functions that implement mutexes for pthreads
    13         -**
    14         -** $Id: mutex_unix.c,v 1.16 2008/12/08 18:19:18 drh Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   
    18     16   /*
    19     17   ** The code in this file is only used if we are compiling threadsafe
    20     18   ** under unix with pthreads.
    21     19   **

Changes to src/mutex_w32.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains the C functions that implement mutexes for win32
    13         -**
    14         -** $Id: mutex_w32.c,v 1.18 2009/08/10 03:23:21 shane Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   
    18     16   /*
    19     17   ** The code in this file is only used if we are compiling multithreaded
    20     18   ** on a win32 system.
    21     19   */

Changes to src/notify.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains the implementation of the sqlite3_unlock_notify()
    14     14   ** API method and its associated functionality.
    15         -**
    16         -** $Id: notify.c,v 1.4 2009/04/07 22:06:57 drh Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "btreeInt.h"
    20     18   
    21     19   /* Omit this entire file if SQLITE_ENABLE_UNLOCK_NOTIFY is not defined. */
    22     20   #ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
    23     21   

Changes to src/os.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains OS interface code that is common to all
    14     14   ** architectures.
    15         -**
    16         -** $Id: os.c,v 1.127 2009/07/27 11:41:21 danielk1977 Exp $
    17     15   */
    18     16   #define _SQLITE_OS_C_ 1
    19     17   #include "sqliteInt.h"
    20     18   #undef _SQLITE_OS_C_
    21     19   
    22     20   /*
    23     21   ** The default SQLite sqlite3_vfs implementations do not allocate

Changes to src/os.h.

    12     12   **
    13     13   ** This header file (together with is companion C source-code file
    14     14   ** "os.c") attempt to abstract the underlying operating system so that
    15     15   ** the SQLite library will work on both POSIX and windows systems.
    16     16   **
    17     17   ** This header file is #include-ed by sqliteInt.h and thus ends up
    18     18   ** being included by every source file.
    19         -**
    20         -** $Id: os.h,v 1.108 2009/02/05 16:31:46 drh Exp $
    21     19   */
    22     20   #ifndef _SQLITE_OS_H_
    23     21   #define _SQLITE_OS_H_
    24     22   
    25     23   /*
    26     24   ** Figure out if we are dealing with Unix, Windows, or some other
    27     25   ** operating system.  After the following block of preprocess macros,

Changes to src/os_common.h.

    12     12   **
    13     13   ** This file contains macros and a little bit of code that is common to
    14     14   ** all of the platform-specific files (os_*.c) and is #included into those
    15     15   ** files.
    16     16   **
    17     17   ** This file should be #included by the os_*.c files only.  It is not a
    18     18   ** general purpose header file.
    19         -**
    20         -** $Id: os_common.h,v 1.38 2009/02/24 18:40:50 danielk1977 Exp $
    21     19   */
    22     20   #ifndef _OS_COMMON_H_
    23     21   #define _OS_COMMON_H_
    24     22   
    25     23   /*
    26     24   ** At least two bugs have slipped in because we changed the MEMORY_DEBUG
    27     25   ** macro to SQLITE_DEBUG and some older makefiles have not yet made the

Changes to src/os_os2.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code that is specific to OS/2.
    14         -**
    15         -** $Id: os_os2.c,v 1.63 2008/12/10 19:26:24 drh Exp $
    16     14   */
    17     15   
    18     16   #include "sqliteInt.h"
    19     17   
    20     18   #if SQLITE_OS_OS2
    21     19   
    22     20   /*

Changes to src/pager.c.

    13     13   ** 
    14     14   ** The pager is used to access a database disk file.  It implements
    15     15   ** atomic commit and rollback through the use of a journal file that
    16     16   ** is separate from the database file.  The pager also implements file
    17     17   ** locking to prevent two processes from writing the same database
    18     18   ** file simultaneously, or one process from reading the database while
    19     19   ** another is writing.
    20         -**
    21         -** @(#) $Id: pager.c,v 1.629 2009/08/10 17:48:57 drh Exp $
    22     20   */
    23     21   #ifndef SQLITE_OMIT_DISKIO
    24     22   #include "sqliteInt.h"
    25     23   
    26     24   /*
    27     25   ** Macros for troubleshooting.  Normally turned off
    28     26   */

Changes to src/pager.h.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This header file defines the interface that the sqlite page cache
    13     13   ** subsystem.  The page cache subsystem reads and writes a file a page
    14     14   ** at a time and provides a journal for rollback.
    15         -**
    16         -** @(#) $Id: pager.h,v 1.104 2009/07/24 19:01:19 drh Exp $
    17     15   */
    18     16   
    19     17   #ifndef _PAGER_H_
    20     18   #define _PAGER_H_
    21     19   
    22     20   /*
    23     21   ** Default maximum size for persistent journal files. A negative 

Changes to src/parse.y.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains SQLite's grammar for SQL.  Process this file
    13     13   ** using the lemon parser generator to generate C code that runs
    14     14   ** the parser.  Lemon will also generate a header file containing
    15     15   ** numeric codes for all of the tokens.
    16         -**
    17         -** @(#) $Id: parse.y,v 1.286 2009/08/10 03:57:58 shane Exp $
    18     16   */
    19     17   
    20     18   // All token codes are small integers with #defines that begin with "TK_"
    21     19   %token_prefix TK_
    22     20   
    23     21   // The type of the data attached to each token is Token.  This is also the
    24     22   // default type for non-terminals.

Changes to src/pcache.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file implements that page cache.
    13         -**
    14         -** @(#) $Id: pcache.c,v 1.47 2009/07/25 11:46:49 danielk1977 Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   
    18     16   /*
    19     17   ** A complete page cache is an instance of this structure.
    20     18   */
    21     19   struct PCache {

Changes to src/pcache.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This header file defines the interface that the sqlite page cache
    13     13   ** subsystem. 
    14         -**
    15         -** @(#) $Id: pcache.h,v 1.20 2009/07/25 11:46:49 danielk1977 Exp $
    16     14   */
    17     15   
    18     16   #ifndef _PCACHE_H_
    19     17   
    20     18   typedef struct PgHdr PgHdr;
    21     19   typedef struct PCache PCache;
    22     20   

Changes to src/pcache1.c.

    11     11   *************************************************************************
    12     12   **
    13     13   ** This file implements the default page cache implementation (the
    14     14   ** sqlite3_pcache interface). It also contains part of the implementation
    15     15   ** of the SQLITE_CONFIG_PAGECACHE and sqlite3_release_memory() features.
    16     16   ** If the default page cache implementation is overriden, then neither of
    17     17   ** these two features are available.
    18         -**
    19         -** @(#) $Id: pcache1.c,v 1.19 2009/07/17 11:44:07 drh Exp $
    20     18   */
    21     19   
    22     20   #include "sqliteInt.h"
    23     21   
    24     22   typedef struct PCache1 PCache1;
    25     23   typedef struct PgHdr1 PgHdr1;
    26     24   typedef struct PgFreeslot PgFreeslot;

Changes to src/pragma.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the PRAGMA command.
    13         -**
    14         -** $Id: pragma.c,v 1.214 2009/07/02 07:47:33 danielk1977 Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   
    18     16   /* Ignore this whole file if pragmas are disabled
    19     17   */
    20     18   #if !defined(SQLITE_OMIT_PRAGMA)
    21     19   

Changes to src/prepare.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains the implementation of the sqlite3_prepare()
    13     13   ** interface, and routines that contribute to loading the database schema
    14     14   ** from disk.
    15         -**
    16         -** $Id: prepare.c,v 1.131 2009/08/06 17:43:31 drh Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   
    20     18   /*
    21     19   ** Fill the InitData structure with an error message that indicates
    22     20   ** that the database is corrupt.
    23     21   */

Changes to src/printf.c.

     1      1   /*
     2      2   ** The "printf" code that follows dates from the 1980's.  It is in
     3      3   ** the public domain.  The original comments are included here for
     4      4   ** completeness.  They are very out-of-date but might be useful as
     5      5   ** an historical reference.  Most of the "enhancements" have been backed
     6      6   ** out so that the functionality is now the same as standard printf().
     7      7   **
     8         -** $Id: printf.c,v 1.104 2009/06/03 01:24:54 drh Exp $
     9         -**
    10      8   **************************************************************************
    11      9   **
    12     10   ** The following modules is an enhanced replacement for the "printf" subroutines
    13     11   ** found in the standard C library.  The following enhancements are
    14     12   ** supported:
    15     13   **
    16     14   **      +  Additional functions.  The standard set of "printf" functions

Changes to src/random.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code to implement a pseudo-random number
    13     13   ** generator (PRNG) for SQLite.
    14     14   **
    15     15   ** Random numbers are used by some of the database backends in order
    16     16   ** to generate random integer keys for tables or random filenames.
    17         -**
    18         -** $Id: random.c,v 1.29 2008/12/10 19:26:24 drh Exp $
    19     17   */
    20     18   #include "sqliteInt.h"
    21     19   
    22     20   
    23     21   /* All threads share a single random number generator.
    24     22   ** This structure is the current state of the generator.
    25     23   */

Changes to src/resolve.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains routines used for walking the parser tree and
    14     14   ** resolve all identifiers by associating them with a particular
    15     15   ** table and column.
    16         -**
    17         -** $Id: resolve.c,v 1.30 2009/06/15 23:15:59 drh Exp $
    18     16   */
    19     17   #include "sqliteInt.h"
    20     18   #include <stdlib.h>
    21     19   #include <string.h>
    22     20   
    23     21   /*
    24     22   ** Turn the pExpr expression into an alias for the iCol-th column of the

Changes to src/rowset.c.

    55     55   ** batch number is O(NlogN) where N is the number of elements in the RowSet.
    56     56   ** The cost of a TEST using the same batch number is O(logN).  The cost
    57     57   ** of the first SMALLEST is O(NlogN).  Second and subsequent SMALLEST
    58     58   ** primitives are constant time.  The cost of DESTROY is O(N).
    59     59   **
    60     60   ** There is an added cost of O(N) when switching between TEST and
    61     61   ** SMALLEST primitives.
    62         -**
    63         -** $Id: rowset.c,v 1.7 2009/05/22 01:00:13 drh Exp $
    64     62   */
    65     63   #include "sqliteInt.h"
    66     64   
    67     65   
    68     66   /*
    69     67   ** Target size for allocation chunks.
    70     68   */

Changes to src/select.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains C code routines that are called by the parser
    13     13   ** to handle SELECT statements in SQLite.
    14         -**
    15         -** $Id: select.c,v 1.526 2009/08/01 15:09:58 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   
    20     18   /*
    21     19   ** Delete all the content of a Select structure but do not deallocate
    22     20   ** the select structure itself.

Changes to src/shell.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code to implement the "sqlite" command line
    13     13   ** utility for accessing SQLite databases.
    14         -**
    15         -** $Id: shell.c,v 1.210 2009/05/31 17:16:10 drh Exp $
    16     14   */
    17     15   #if defined(_WIN32) || defined(WIN32)
    18     16   /* This needs to come before any includes for MSVC compiler */
    19     17   #define _CRT_SECURE_NO_WARNINGS
    20     18   #endif
    21     19   
    22     20   #include <stdlib.h>

Changes to src/sqlite3ext.h.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This header file defines the SQLite interface for use by
    13     13   ** shared libraries that want to be imported as extensions into
    14     14   ** an SQLite instance.  Shared libraries that intend to be loaded
    15     15   ** as extensions by SQLite should #include this file instead of 
    16     16   ** sqlite3.h.
    17         -**
    18         -** @(#) $Id: sqlite3ext.h,v 1.25 2008/10/12 00:27:54 shane Exp $
    19     17   */
    20     18   #ifndef _SQLITE3EXT_H_
    21     19   #define _SQLITE3EXT_H_
    22     20   #include "sqlite3.h"
    23     21   
    24     22   typedef struct sqlite3_api_routines sqlite3_api_routines;
    25     23   

Changes to src/sqliteLimit.h.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** 
    13     13   ** This file defines various limits of what SQLite can process.
    14         -**
    15         -** @(#) $Id: sqliteLimit.h,v 1.10 2009/01/10 16:15:09 danielk1977 Exp $
    16     14   */
    17     15   
    18     16   /*
    19     17   ** The maximum length of a TEXT or BLOB in bytes.   This also
    20     18   ** limits the size of a row in a table or index.
    21     19   **
    22     20   ** The hard limit is the ability of a 32-bit signed integer

Changes to src/status.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This module implements the sqlite3_status() interface and related
    14     14   ** functionality.
    15         -**
    16         -** $Id: status.c,v 1.9 2008/09/02 00:52:52 drh Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   
    20     18   /*
    21     19   ** Variables in which to record status information.
    22     20   */
    23     21   typedef struct sqlite3StatType sqlite3StatType;

Changes to src/table.c.

    11     11   *************************************************************************
    12     12   ** This file contains the sqlite3_get_table() and sqlite3_free_table()
    13     13   ** interface routines.  These are just wrappers around the main
    14     14   ** interface routine of sqlite3_exec().
    15     15   **
    16     16   ** These routines are in a separate files so that they will not be linked
    17     17   ** if they are not used.
    18         -**
    19         -** $Id: table.c,v 1.40 2009/04/10 14:28:00 drh Exp $
    20     18   */
    21     19   #include "sqliteInt.h"
    22     20   #include <stdlib.h>
    23     21   #include <string.h>
    24     22   
    25     23   #ifndef SQLITE_OMIT_GET_TABLE
    26     24   

Changes to src/test1.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing all sorts of SQLite interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15         -**
    16         -** $Id: test1.c,v 1.354 2009/08/10 04:37:50 danielk1977 Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "tcl.h"
    20     18   #include <stdlib.h>
    21     19   #include <string.h>
    22     20   
    23     21   /*

Changes to src/test2.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the pager.c module in SQLite.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15         -**
    16         -** $Id: test2.c,v 1.74 2009/07/24 19:01:20 drh Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "tcl.h"
    20     18   #include <stdlib.h>
    21     19   #include <string.h>
    22     20   #include <ctype.h>
    23     21   

Changes to src/test3.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the btree.c module in SQLite.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15         -**
    16         -** $Id: test3.c,v 1.111 2009/07/09 05:07:38 danielk1977 Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "btreeInt.h"
    20     18   #include "tcl.h"
    21     19   #include <stdlib.h>
    22     20   #include <string.h>
    23     21   

Changes to src/test4.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the the SQLite library in a multithreaded environment.
    13         -**
    14         -** $Id: test4.c,v 1.24 2008/10/12 00:27:54 shane Exp $
    15     13   */
    16     14   #include "sqliteInt.h"
    17     15   #include "tcl.h"
    18     16   #if defined(SQLITE_OS_UNIX) && OS_UNIX==1 && SQLITE_THREADSAFE
    19     17   #include <stdlib.h>
    20     18   #include <string.h>
    21     19   #include <pthread.h>

Changes to src/test5.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the utf.c module in SQLite.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library. Specifically, the code in this file
    15     15   ** is used for testing the SQLite routines for converting between
    16     16   ** the various supported unicode encodings.
    17         -**
    18         -** $Id: test5.c,v 1.22 2008/08/12 15:04:59 danielk1977 Exp $
    19     17   */
    20     18   #include "sqliteInt.h"
    21     19   #include "vdbeInt.h"
    22     20   #include "tcl.h"
    23     21   #include <stdlib.h>
    24     22   #include <string.h>
    25     23   

Changes to src/test6.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code that modified the OS layer in order to simulate
    14     14   ** the effect on the database file of an OS crash or power failure.  This
    15     15   ** is used to test the ability of SQLite to recover from those situations.
    16         -**
    17         -** $Id: test6.c,v 1.43 2009/02/11 14:27:04 danielk1977 Exp $
    18     16   */
    19     17   #if SQLITE_TEST          /* This file is used for testing only */
    20     18   #include "sqliteInt.h"
    21     19   #include "tcl.h"
    22     20   
    23     21   #ifndef SQLITE_OMIT_DISKIO  /* This file is a no-op if disk I/O is disabled */
    24     22   

Changes to src/test7.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the client/server version of the SQLite library.
    13     13   ** Derived from test4.c.
    14         -**
    15         -** $Id: test7.c,v 1.13 2008/10/12 00:27:54 shane Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   #include "tcl.h"
    19     17   
    20     18   /*
    21     19   ** This test only works on UNIX with a SQLITE_THREADSAFE build that includes
    22     20   ** the SQLITE_SERVER option.

Changes to src/test8.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the virtual table interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15         -**
    16         -** $Id: test8.c,v 1.78 2009/04/29 11:50:54 danielk1977 Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "tcl.h"
    20     18   #include <stdlib.h>
    21     19   #include <string.h>
    22     20   
    23     21   #ifndef SQLITE_OMIT_VIRTUALTABLE

Changes to src/test9.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains obscure tests of the C-interface required
    14     14   ** for completeness. Test code is written in C for these cases
    15     15   ** as there is not much point in binding to Tcl.
    16         -**
    17         -** $Id: test9.c,v 1.7 2009/04/02 18:32:27 drh Exp $
    18     16   */
    19     17   #include "sqliteInt.h"
    20     18   #include "tcl.h"
    21     19   #include <stdlib.h>
    22     20   #include <string.h>
    23     21   
    24     22   /*

Changes to src/test_async.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** $Id: test_async.c,v 1.62 2009/04/28 13:01:09 drh Exp $
    14         -**
    15     13   ** This file contains a binding of the asynchronous IO extension interface
    16     14   ** (defined in ext/async/sqlite3async.h) to Tcl.
    17     15   */
    18     16   
    19     17   #define TCL_THREADS 
    20     18   #include <tcl.h>
    21     19   

Changes to src/test_autoext.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Test extension for testing the sqlite3_auto_extension() function.
    13         -**
    14         -** $Id: test_autoext.c,v 1.5 2008/07/08 02:12:37 drh Exp $
    15     13   */
    16     14   #include "tcl.h"
    17     15   #include "sqlite3ext.h"
    18     16   
    19     17   #ifndef SQLITE_OMIT_LOAD_EXTENSION
    20     18   static SQLITE_EXTENSION_INIT1
    21     19   

Changes to src/test_backup.c.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
           12  +** This file contains test logic for the sqlite3_backup() interface.
    12     13   **
    13         -** $Id: test_backup.c,v 1.3 2009/03/30 12:56:52 drh Exp $
    14     14   */
    15     15   
    16     16   #include "tcl.h"
    17     17   #include <sqlite3.h>
    18     18   #include <assert.h>
    19     19   
    20     20   /* These functions are implemented in test1.c. */

Changes to src/test_btree.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the btree.c module in SQLite.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15         -**
    16         -** $Id: test_btree.c,v 1.9 2009/07/09 02:48:24 shane Exp $
    17     15   */
    18     16   #include "btreeInt.h"
    19     17   #include <tcl.h>
    20     18   
    21     19   /*
    22     20   ** Usage: sqlite3_shared_cache_report
    23     21   **

Changes to src/test_config.c.

    11     11   *************************************************************************
    12     12   ** 
    13     13   ** This file contains code used for testing the SQLite system.
    14     14   ** None of the code in this file goes into a deliverable build.
    15     15   ** 
    16     16   ** The focus of this file is providing the TCL testing layer
    17     17   ** access to compile-time constants.
    18         -**
    19         -** $Id: test_config.c,v 1.50 2009/06/19 14:06:03 drh Exp $
    20     18   */
    21     19   
    22     20   #include "sqliteLimit.h"
    23     21   
    24     22   #include "sqliteInt.h"
    25     23   #include "tcl.h"
    26     24   #include <stdlib.h>

Changes to src/test_devsym.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code that modified the OS layer in order to simulate
    14     14   ** different device types (by overriding the return values of the 
    15     15   ** xDeviceCharacteristics() and xSectorSize() methods).
    16         -**
    17         -** $Id: test_devsym.c,v 1.9 2008/12/09 01:32:03 drh Exp $
    18     16   */
    19     17   #if SQLITE_TEST          /* This file is used for testing only */
    20     18   
    21     19   #include "sqlite3.h"
    22     20   #include "sqliteInt.h"
    23     21   
    24     22   /*

Changes to src/test_func.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing all sorts of SQLite interfaces.  This code
    13     13   ** implements new SQL functions used by the test scripts.
    14         -**
    15         -** $Id: test_func.c,v 1.16 2009/07/22 07:27:57 danielk1977 Exp $
    16     14   */
    17     15   #include "sqlite3.h"
    18     16   #include "tcl.h"
    19     17   #include <stdlib.h>
    20     18   #include <string.h>
    21     19   #include <assert.h>
    22     20   

Changes to src/test_hexio.c.

    12     12   ** Code for testing all sorts of SQLite interfaces.  This code
    13     13   ** implements TCL commands for reading and writing the binary
    14     14   ** database files and displaying the content of those files as
    15     15   ** hexadecimal.  We could, in theory, use the built-in "binary"
    16     16   ** command of TCL to do a lot of this, but there are some issues
    17     17   ** with historical versions of the "binary" command.  So it seems
    18     18   ** easier and safer to build our own mechanism.
    19         -**
    20         -** $Id: test_hexio.c,v 1.7 2008/05/12 16:17:42 drh Exp $
    21     19   */
    22     20   #include "sqliteInt.h"
    23     21   #include "tcl.h"
    24     22   #include <stdlib.h>
    25     23   #include <string.h>
    26     24   #include <assert.h>
    27     25   

Changes to src/test_init.c.

   281    281   
   282    282     for(i=0; i<sizeof(aObjCmd)/sizeof(aObjCmd[0]); i++){
   283    283       Tcl_CreateObjCommand(interp, aObjCmd[i].zName, aObjCmd[i].xProc, 0, 0);
   284    284     }
   285    285   
   286    286     return TCL_OK;
   287    287   }
   288         -

Changes to src/test_journal.c.

    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains code for a VFS layer that acts as a wrapper around
    14     14   ** an existing VFS. The code in this file attempts to verify that SQLite
    15     15   ** correctly populates and syncs a journal file before writing to a
    16     16   ** corresponding database file.
    17         -**
    18         -** $Id: test_journal.c,v 1.17 2009/06/26 10:39:36 danielk1977 Exp $
    19     17   */
    20     18   #if SQLITE_TEST          /* This file is used for testing only */
    21     19   
    22     20   #include "sqlite3.h"
    23     21   #include "sqliteInt.h"
    24     22   
    25     23   /*

Changes to src/test_loadext.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Test extension for testing the sqlite3_load_extension() function.
    13         -**
    14         -** $Id: test_loadext.c,v 1.3 2008/08/02 03:50:39 drh Exp $
    15     13   */
    16     14   #include <string.h>
    17     15   #include "sqlite3ext.h"
    18     16   SQLITE_EXTENSION_INIT1
    19     17   
    20     18   /*
    21     19   ** The half() SQL function returns half of its input value.

Changes to src/test_malloc.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains code used to implement test interfaces to the
    14     14   ** memory allocation subsystem.
    15         -**
    16         -** $Id: test_malloc.c,v 1.55 2009/07/01 18:09:02 danielk1977 Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "tcl.h"
    20     18   #include <stdlib.h>
    21     19   #include <string.h>
    22     20   #include <assert.h>
    23     21   

Changes to src/test_mutex.c.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12         -** 
    13         -** $Id: test_mutex.c,v 1.15 2009/03/20 13:15:30 drh Exp $
           12  +** This file contains test logic for the sqlite3_mutex interfaces.
    14     13   */
    15     14   
    16     15   #include "tcl.h"
    17     16   #include "sqlite3.h"
    18     17   #include "sqliteInt.h"
    19     18   #include <stdlib.h>
    20     19   #include <assert.h>

Changes to src/test_onefile.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13         -** $Id: test_onefile.c,v 1.12 2009/04/07 11:21:29 danielk1977 Exp $
    14         -**
    15     13   ** OVERVIEW:
    16     14   **
    17     15   **   This file contains some example code demonstrating how the SQLite 
    18     16   **   vfs feature can be used to have SQLite operate directly on an 
    19     17   **   embedded media, without using an intermediate file system.
    20     18   **
    21     19   **   Because this is only a demo designed to run on a workstation, the

Changes to src/test_osinst.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13     13   ** This file contains the implementation of an SQLite vfs wrapper that
    14     14   ** adds instrumentation to all vfs and file methods. C and Tcl interfaces
    15     15   ** are provided to control the instrumentation.
    16         -**
    17         -** $Id: test_osinst.c,v 1.19 2009/01/08 17:57:32 danielk1977 Exp $
    18     16   */
    19     17   
    20     18   #ifdef SQLITE_ENABLE_INSTVFS
    21     19   /*
    22     20   ** C interface:
    23     21   **
    24     22   **   sqlite3_instvfs_create()

Changes to src/test_pcache.c.

    16     16   ** This file contains an application-defined pager cache
    17     17   ** implementation that can be plugged in in place of the
    18     18   ** default pcache.  This alternative pager cache will throw
    19     19   ** some errors that the default cache does not.
    20     20   **
    21     21   ** This pagecache implementation is designed for simplicity
    22     22   ** not speed.  
    23         -**
    24         -** $Id: test_pcache.c,v 1.3 2009/04/11 11:38:54 drh Exp $
    25     23   */
    26     24   #include "sqlite3.h"
    27     25   #include <string.h>
    28     26   #include <assert.h>
    29     27   
    30     28   /*
    31     29   ** Global data used by this test implementation.  There is no

Changes to src/test_schema.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** Code for testing the virtual table interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15         -**
    16         -** $Id: test_schema.c,v 1.15 2008/07/07 14:50:14 drh Exp $
    17     15   */
    18     16   
    19     17   /* The code in this file defines a sqlite3 virtual-table module that
    20     18   ** provides a read-only view of the current database schema. There is one
    21     19   ** row in the schema table for each column in the database schema.
    22     20   */
    23     21   #define SCHEMA \

Changes to src/test_server.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   ******************************************************************************
    12     12   **
    13         -** $Id: test_server.c,v 1.8 2008/06/26 10:41:19 danielk1977 Exp $
    14         -**
    15     13   ** This file contains demonstration code.  Nothing in this file gets compiled
    16     14   ** or linked into the SQLite library unless you use a non-standard option:
    17     15   **
    18     16   **      -DSQLITE_SERVER=1
    19     17   **
    20     18   ** The configure script will never generate a Makefile with the option
    21     19   ** above.  You will need to manually modify the Makefile if you want to

Changes to src/test_tclvar.c.

    11     11   *************************************************************************
    12     12   ** Code for testing the virtual table interfaces.  This code
    13     13   ** is not included in the SQLite library.  It is used for automated
    14     14   ** testing of the SQLite library.
    15     15   **
    16     16   ** The emphasis of this file is a virtual table that provides
    17     17   ** access to TCL variables.
    18         -**
    19         -** $Id: test_tclvar.c,v 1.17 2008/08/12 14:48:41 danielk1977 Exp $
    20     18   */
    21     19   #include "sqliteInt.h"
    22     20   #include "tcl.h"
    23     21   #include <stdlib.h>
    24     22   #include <string.h>
    25     23   
    26     24   #ifndef SQLITE_OMIT_VIRTUALTABLE

Changes to src/test_thread.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains the implementation of some Tcl commands used to
    14     14   ** test that sqlite3 database handles may be concurrently accessed by 
    15     15   ** multiple threads. Right now this only works on unix.
    16         -**
    17         -** $Id: test_thread.c,v 1.15 2009/03/27 12:32:56 drh Exp $
    18     16   */
    19     17   
    20     18   #include "sqliteInt.h"
    21     19   #include <tcl.h>
    22     20   
    23     21   #if SQLITE_THREADSAFE
    24     22   

Changes to src/test_wsd.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** The code in this file contains sample implementations of the 
    14     14   ** sqlite3_wsd_init() and sqlite3_wsd_find() functions required if the
    15     15   ** SQLITE_OMIT_WSD symbol is defined at build time.
    16         -**
    17         -** $Id: test_wsd.c,v 1.4 2009/03/23 04:33:33 danielk1977 Exp $
    18     16   */
    19     17   
    20     18   #if defined(SQLITE_OMIT_WSD) && defined(SQLITE_TEST)
    21     19   
    22     20   #include "sqliteInt.h"
    23     21   
    24     22   #define PLS_HASHSIZE 43

Changes to src/tokenize.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** An tokenizer for SQL
    13     13   **
    14     14   ** This file contains C code that splits an SQL input string up into
    15     15   ** individual tokens and sends those tokens one-by-one over to the
    16     16   ** parser for analysis.
    17         -**
    18         -** $Id: tokenize.c,v 1.163 2009/07/03 22:54:37 drh Exp $
    19     17   */
    20     18   #include "sqliteInt.h"
    21     19   #include <stdlib.h>
    22     20   
    23     21   /*
    24     22   ** The charMap() macro maps alphabetic characters into their
    25     23   ** lower-case ASCII equivalent.  On ASCII machines, this is just

Changes to src/trigger.c.

     4      4   ** a legal notice, here is a blessing:
     5      5   **
     6      6   **    May you do good and not evil.
     7      7   **    May you find forgiveness for yourself and forgive others.
     8      8   **    May you share freely, never taking more than you give.
     9      9   **
    10     10   *************************************************************************
    11         -**
    12         -**
    13         -** $Id: trigger.c,v 1.143 2009/08/10 03:57:58 shane Exp $
           11  +** This file contains the implementation for TRIGGERs
    14     12   */
    15     13   #include "sqliteInt.h"
    16     14   
    17     15   #ifndef SQLITE_OMIT_TRIGGER
    18     16   /*
    19     17   ** Delete a linked list of TriggerStep structures.
    20     18   */

Changes to src/update.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains C code routines that are called by the parser
    13     13   ** to handle UPDATE statements.
    14         -**
    15         -** $Id: update.c,v 1.207 2009/08/08 18:01:08 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   #ifndef SQLITE_OMIT_VIRTUALTABLE
    20     18   /* Forward declaration */
    21     19   static void updateVirtualTable(
    22     20     Parse *pParse,       /* The parsing context */

Changes to src/utf.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains routines used to translate between UTF-8, 
    13     13   ** UTF-16, UTF-16BE, and UTF-16LE.
    14     14   **
    15         -** $Id: utf.c,v 1.73 2009/04/01 18:40:32 drh Exp $
    16         -**
    17     15   ** Notes on UTF-8:
    18     16   **
    19     17   **   Byte-0    Byte-1    Byte-2    Byte-3    Value
    20     18   **  0xxxxxxx                                 00000000 00000000 0xxxxxxx
    21     19   **  110yyyyy  10xxxxxx                       00000000 00000yyy yyxxxxxx
    22     20   **  1110zzzz  10yyyyyy  10xxxxxx             00000000 zzzzyyyy yyxxxxxx
    23     21   **  11110uuu  10uuzzzz  10yyyyyy  10xxxxxx   000uuuuu zzzzyyyy yyxxxxxx

Changes to src/util.c.


Changes to src/vacuum.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the VACUUM command.
    13     13   **
    14     14   ** Most of the code in this file may be omitted by defining the
    15     15   ** SQLITE_OMIT_VACUUM macro.
    16         -**
    17         -** $Id: vacuum.c,v 1.91 2009/07/02 07:47:33 danielk1977 Exp $
    18     16   */
    19     17   #include "sqliteInt.h"
    20     18   #include "vdbeInt.h"
    21     19   
    22     20   #if !defined(SQLITE_OMIT_VACUUM) && !defined(SQLITE_OMIT_ATTACH)
    23     21   /*
    24     22   ** Execute zSql on database db. Return an error code.

Changes to src/vdbe.c.

    38     38   ** a program instruction by instruction.
    39     39   **
    40     40   ** Various scripts scan this source file in order to generate HTML
    41     41   ** documentation, headers files, or other derived files.  The formatting
    42     42   ** of the code in this file is, therefore, important.  See other comments
    43     43   ** in this file for details.  If in doubt, do not deviate from existing
    44     44   ** commenting and indentation practices when changing or adding code.
    45         -**
    46         -** $Id: vdbe.c,v 1.874 2009/07/24 17:58:53 danielk1977 Exp $
    47     45   */
    48     46   #include "sqliteInt.h"
    49     47   #include "vdbeInt.h"
    50     48   
    51     49   /*
    52     50   ** The following global variable is incremented every time a cursor
    53     51   ** moves, either by the OP_SeekXX, OP_Next, or OP_Prev opcodes.  The test

Changes to src/vdbe.h.

    10     10   **
    11     11   *************************************************************************
    12     12   ** Header file for the Virtual DataBase Engine (VDBE)
    13     13   **
    14     14   ** This header defines the interface to the virtual database engine
    15     15   ** or VDBE.  The VDBE implements an abstract machine that runs a
    16     16   ** simple program to access and modify the underlying database.
    17         -**
    18         -** $Id: vdbe.h,v 1.142 2009/07/24 17:58:53 danielk1977 Exp $
    19     17   */
    20     18   #ifndef _SQLITE_VDBE_H_
    21     19   #define _SQLITE_VDBE_H_
    22     20   #include <stdio.h>
    23     21   
    24     22   /*
    25     23   ** A single VDBE is an opaque structure named "Vdbe".  Only routines

Changes to src/vdbeInt.h.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This is the header file for information that is private to the
    13     13   ** VDBE.  This information used to all be at the top of the single
    14     14   ** source code file "vdbe.c".  When that file became too big (over
    15     15   ** 6000 lines long) it was split up into several smaller files and
    16     16   ** this header information was factored out.
    17         -**
    18         -** $Id: vdbeInt.h,v 1.174 2009/06/23 14:15:04 drh Exp $
    19     17   */
    20     18   #ifndef _VDBEINT_H_
    21     19   #define _VDBEINT_H_
    22     20   
    23     21   /*
    24     22   ** SQL is translated into a sequence of instructions to be
    25     23   ** executed by a virtual machine.  Each instruction is an instance

Changes to src/vdbeapi.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains code use to implement APIs that are part of the
    14     14   ** VDBE.
    15         -**
    16         -** $Id: vdbeapi.c,v 1.167 2009/06/25 01:47:12 drh Exp $
    17     15   */
    18     16   #include "sqliteInt.h"
    19     17   #include "vdbeInt.h"
    20     18   
    21     19   #ifndef SQLITE_OMIT_DEPRECATED
    22     20   /*
    23     21   ** Return TRUE (non-zero) of the statement supplied as an argument needs

Changes to src/vdbeaux.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used for creating, destroying, and populating
    13     13   ** a VDBE (or an "sqlite3_stmt" as it is known to the outside world.)  Prior
    14     14   ** to version 2.8.7, all this code was combined into the vdbe.c source file.
    15     15   ** But that file was getting too big so this subroutines were split out.
    16         -**
    17         -** $Id: vdbeaux.c,v 1.480 2009/08/08 18:01:08 drh Exp $
    18     16   */
    19     17   #include "sqliteInt.h"
    20     18   #include "vdbeInt.h"
    21     19   
    22     20   
    23     21   
    24     22   /*

Changes to src/vdbeblob.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains code used to implement incremental BLOB I/O.
    14         -**
    15         -** $Id: vdbeblob.c,v 1.35 2009/07/02 07:47:33 danielk1977 Exp $
    16     14   */
    17     15   
    18     16   #include "sqliteInt.h"
    19     17   #include "vdbeInt.h"
    20     18   
    21     19   #ifndef SQLITE_OMIT_INCRBLOB
    22     20   

Changes to src/vdbemem.c.

    10     10   **
    11     11   *************************************************************************
    12     12   **
    13     13   ** This file contains code use to manipulate "Mem" structure.  A "Mem"
    14     14   ** stores a single value in the VDBE.  Mem is an opaque structure visible
    15     15   ** only within the VDBE.  Interface routines refer to a Mem using the
    16     16   ** name sqlite_value
    17         -**
    18         -** $Id: vdbemem.c,v 1.152 2009/07/22 18:07:41 drh Exp $
    19     17   */
    20     18   #include "sqliteInt.h"
    21     19   #include "vdbeInt.h"
    22     20   
    23     21   /*
    24     22   ** Call sqlite3VdbeMemExpandBlob() on the supplied value (type Mem*)
    25     23   ** P if required.

Changes to src/vtab.c.

     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to help implement virtual tables.
    13         -**
    14         -** $Id: vtab.c,v 1.94 2009/08/08 18:01:08 drh Exp $
    15     13   */
    16     14   #ifndef SQLITE_OMIT_VIRTUALTABLE
    17     15   #include "sqliteInt.h"
    18     16   
    19     17   /*
    20     18   ** The actual function that does the work of creating a new module.
    21     19   ** This function implements the sqlite3_create_module() and

Changes to src/walker.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains routines used for walking the parser tree for
    13     13   ** an SQL statement.
    14         -**
    15         -** $Id: walker.c,v 1.7 2009/06/15 23:15:59 drh Exp $
    16     14   */
    17     15   #include "sqliteInt.h"
    18     16   #include <stdlib.h>
    19     17   #include <string.h>
    20     18   
    21     19   
    22     20   /*

Changes to src/where.c.

    11     11   *************************************************************************
    12     12   ** This module contains C code that generates VDBE code used to process
    13     13   ** the WHERE clause of SQL statements.  This module is responsible for
    14     14   ** generating the code that loops through a table looking for applicable
    15     15   ** rows.  Indices are selected and used to speed the search when doing
    16     16   ** so is applicable.  Because this module is responsible for selecting
    17     17   ** indices, you might also think of this module as the "query optimizer".
    18         -**
    19         -** $Id: where.c,v 1.411 2009/07/31 06:14:52 danielk1977 Exp $
    20     18   */
    21     19   #include "sqliteInt.h"
    22     20   
    23     21   /*
    24     22   ** Trace output macros
    25     23   */
    26     24   #if defined(SQLITE_TEST) || defined(SQLITE_DEBUG)