drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 1 | #!/usr/bin/tclsh |
| 2 | # |
| 3 | # To build a single huge source file holding all of SQLite (or at |
| 4 | # least the core components - the test harness, shell, and TCL |
| 5 | # interface are omitted.) first do |
| 6 | # |
| 7 | # make target_source |
| 8 | # |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 9 | # The make target above moves all of the source code files into |
| 10 | # a subdirectory named "tsrc". (This script expects to find the files |
| 11 | # there and will not work if they are not found.) There are a few |
| 12 | # generated C code files that are also added to the tsrc directory. |
| 13 | # For example, the "parse.c" and "parse.h" files to implement the |
| 14 | # the parser are derived from "parse.y" using lemon. And the |
| 15 | # "keywordhash.h" files is generated by a program named "mkkeywordhash". |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 16 | # |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 17 | # After the "tsrc" directory has been created and populated, run |
| 18 | # this script: |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 19 | # |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 20 | # tclsh mksqlite3c.tcl |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 21 | # |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 22 | # The amalgamated SQLite code will be written into sqlite3.c |
| 23 | # |
| 24 | |
drh | 8de5a17 | 2009-07-20 12:25:44 +0000 | [diff] [blame] | 25 | # Begin by reading the "sqlite3.h" header file. Extract the version number |
drh | 339d6c6 | 2013-03-19 16:12:40 +0000 | [diff] [blame] | 26 | # from in this file. The version number is needed to generate the header |
drh | 8de5a17 | 2009-07-20 12:25:44 +0000 | [diff] [blame] | 27 | # comment of the amalgamation. |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 28 | # |
drh | b36d20d | 2007-05-16 13:55:26 +0000 | [diff] [blame] | 29 | if {[lsearch $argv --nostatic]>=0} { |
| 30 | set addstatic 0 |
| 31 | } else { |
| 32 | set addstatic 1 |
| 33 | } |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 34 | if {[lsearch $argv --linemacros]>=0} { |
| 35 | set linemacros 1 |
| 36 | } else { |
| 37 | set linemacros 0 |
| 38 | } |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 39 | set in [open tsrc/sqlite3.h] |
| 40 | set cnt 0 |
| 41 | set VERSION ????? |
| 42 | while {![eof $in]} { |
| 43 | set line [gets $in] |
| 44 | if {$line=="" && [eof $in]} break |
| 45 | incr cnt |
| 46 | regexp {#define\s+SQLITE_VERSION\s+"(.*)"} $line all VERSION |
| 47 | } |
| 48 | close $in |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 49 | |
| 50 | # Open the output file and write a header comment at the beginning |
| 51 | # of the file. |
| 52 | # |
| 53 | set out [open sqlite3.c w] |
shaneh | 5e0fb2c | 2011-06-17 15:54:59 +0000 | [diff] [blame] | 54 | # Force the output to use unix line endings, even on Windows. |
drh | ced174b | 2011-06-20 15:24:22 +0000 | [diff] [blame] | 55 | fconfigure $out -translation lf |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 56 | set today [clock format [clock seconds] -format "%Y-%m-%d %H:%M:%S UTC" -gmt 1] |
| 57 | puts $out [subst \ |
| 58 | {/****************************************************************************** |
drh | 19df335 | 2007-04-01 01:57:41 +0000 | [diff] [blame] | 59 | ** This file is an amalgamation of many separate C source files from SQLite |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 60 | ** version $VERSION. By combining all the individual C code files into this |
drh | 1d21021 | 2011-04-01 18:12:58 +0000 | [diff] [blame] | 61 | ** single large file, the entire code can be compiled as a single translation |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 62 | ** unit. This allows many compilers to do optimizations that would not be |
| 63 | ** possible if the files were compiled separately. Performance improvements |
drh | 0ee6862 | 2010-10-31 22:42:27 +0000 | [diff] [blame] | 64 | ** of 5% or more are commonly seen when SQLite is compiled as a single |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 65 | ** translation unit. |
| 66 | ** |
| 67 | ** This file is all you need to compile SQLite. To use SQLite in other |
| 68 | ** programs, you need this file and the "sqlite3.h" header file that defines |
| 69 | ** the programming interface to the SQLite library. (If you do not have |
drh | 8de5a17 | 2009-07-20 12:25:44 +0000 | [diff] [blame] | 70 | ** the "sqlite3.h" header file at hand, you will find a copy embedded within |
| 71 | ** the text of this file. Search for "Begin file sqlite3.h" to find the start |
| 72 | ** of the embedded sqlite3.h header file.) Additional code files may be needed |
| 73 | ** if you want a wrapper to interface SQLite with your choice of programming |
| 74 | ** language. The code for the "sqlite3" command-line shell is also in a |
| 75 | ** separate file. This file contains only code for the core SQLite library. |
drh | bd08af4 | 2007-04-05 21:58:33 +0000 | [diff] [blame] | 76 | */ |
danielk1977 | 7c9aaa7 | 2008-01-01 05:49:07 +0000 | [diff] [blame] | 77 | #define SQLITE_CORE 1 |
drh | bd08af4 | 2007-04-05 21:58:33 +0000 | [diff] [blame] | 78 | #define SQLITE_AMALGAMATION 1}] |
drh | b6a9ece | 2007-06-26 00:37:27 +0000 | [diff] [blame] | 79 | if {$addstatic} { |
| 80 | puts $out \ |
| 81 | {#ifndef SQLITE_PRIVATE |
| 82 | # define SQLITE_PRIVATE static |
drh | 26b0fc0 | 2007-06-26 00:52:39 +0000 | [diff] [blame] | 83 | #endif |
| 84 | #ifndef SQLITE_API |
| 85 | # define SQLITE_API |
drh | b6a9ece | 2007-06-26 00:37:27 +0000 | [diff] [blame] | 86 | #endif} |
| 87 | } |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 88 | |
| 89 | # These are the header files used by SQLite. The first time any of these |
| 90 | # files are seen in a #include statement in the C code, include the complete |
| 91 | # text of the file in-line. The file only needs to be included once. |
| 92 | # |
| 93 | foreach hdr { |
| 94 | btree.h |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 95 | btreeInt.h |
drh | 820a906 | 2008-01-31 13:35:48 +0000 | [diff] [blame] | 96 | fts3.h |
drh | f7829ad | 2009-11-25 22:42:22 +0000 | [diff] [blame] | 97 | fts3Int.h |
drh | 820a906 | 2008-01-31 13:35:48 +0000 | [diff] [blame] | 98 | fts3_hash.h |
| 99 | fts3_tokenizer.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 100 | hash.h |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 101 | hwtime.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 102 | keywordhash.h |
drh | 428e282 | 2007-08-30 16:23:19 +0000 | [diff] [blame] | 103 | mutex.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 104 | opcodes.h |
| 105 | os_common.h |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 106 | os_setup.h |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 107 | os_win.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 108 | os.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 109 | pager.h |
| 110 | parse.h |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 111 | pcache.h |
drh | 58f1c8b | 2008-05-26 20:19:25 +0000 | [diff] [blame] | 112 | rtree.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 113 | sqlite3ext.h |
| 114 | sqlite3.h |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 115 | sqliteicu.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 116 | sqliteInt.h |
drh | c551dd8 | 2007-06-19 15:23:48 +0000 | [diff] [blame] | 117 | sqliteLimit.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 118 | vdbe.h |
| 119 | vdbeInt.h |
drh | c438efd | 2010-04-26 00:19:45 +0000 | [diff] [blame] | 120 | wal.h |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 121 | whereInt.h |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 122 | } { |
| 123 | set available_hdr($hdr) 1 |
| 124 | } |
drh | 71674ce | 2007-10-23 15:51:26 +0000 | [diff] [blame] | 125 | set available_hdr(sqliteInt.h) 0 |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 126 | |
| 127 | # 78 stars used for comment formatting. |
| 128 | set s78 \ |
| 129 | {*****************************************************************************} |
| 130 | |
| 131 | # Insert a comment into the code |
| 132 | # |
| 133 | proc section_comment {text} { |
| 134 | global out s78 |
| 135 | set n [string length $text] |
| 136 | set nstar [expr {60 - $n}] |
| 137 | set stars [string range $s78 0 $nstar] |
| 138 | puts $out "/************** $text $stars/" |
| 139 | } |
| 140 | |
| 141 | # Read the source file named $filename and write it into the |
| 142 | # sqlite3.c output file. If any #include statements are seen, |
mistachkin | 2a43c28 | 2013-08-31 05:46:42 +0000 | [diff] [blame] | 143 | # process them appropriately. |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 144 | # |
| 145 | proc copy_file {filename} { |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 146 | global seen_hdr available_hdr out addstatic linemacros |
| 147 | set ln 0 |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 148 | set tail [file tail $filename] |
| 149 | section_comment "Begin file $tail" |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 150 | if {$linemacros} {puts $out "#line 1 \"$filename\""} |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 151 | set in [open $filename r] |
drh | 73be501 | 2007-08-08 12:11:21 +0000 | [diff] [blame] | 152 | set varpattern {^[a-zA-Z][a-zA-Z_0-9 *]+(sqlite3[_a-zA-Z0-9]+)(\[|;| =)} |
drh | 40a390d | 2009-02-18 12:25:28 +0000 | [diff] [blame] | 153 | set declpattern {[a-zA-Z][a-zA-Z_0-9 ]+ \**(sqlite3[_a-zA-Z0-9]+)\(} |
drh | ee85813 | 2007-05-08 20:37:38 +0000 | [diff] [blame] | 154 | if {[file extension $filename]==".h"} { |
drh | f7083bf | 2007-08-08 01:04:52 +0000 | [diff] [blame] | 155 | set declpattern " *$declpattern" |
drh | ee85813 | 2007-05-08 20:37:38 +0000 | [diff] [blame] | 156 | } |
drh | f7083bf | 2007-08-08 01:04:52 +0000 | [diff] [blame] | 157 | set declpattern ^$declpattern |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 158 | while {![eof $in]} { |
| 159 | set line [gets $in] |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 160 | incr ln |
drh | 9965a04 | 2008-10-14 18:21:11 +0000 | [diff] [blame] | 161 | if {[regexp {^\s*#\s*include\s+["<]([^">]+)[">]} $line all hdr]} { |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 162 | if {[info exists available_hdr($hdr)]} { |
| 163 | if {$available_hdr($hdr)} { |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 164 | if {$hdr!="os_common.h" && $hdr!="hwtime.h"} { |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 165 | set available_hdr($hdr) 0 |
| 166 | } |
| 167 | section_comment "Include $hdr in the middle of $tail" |
| 168 | copy_file tsrc/$hdr |
| 169 | section_comment "Continuing where we left off in $tail" |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 170 | if {$linemacros} {puts $out "#line [expr {$ln+1}] \"$filename\""} |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 171 | } |
| 172 | } elseif {![info exists seen_hdr($hdr)]} { |
drh | 1a8a0d3 | 2014-05-05 20:21:52 +0000 | [diff] [blame] | 173 | if {![regexp {/\*\s+amalgamator:\s+dontcache\s+\*/} $line]} { |
| 174 | set seen_hdr($hdr) 1 |
| 175 | } |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 176 | puts $out $line |
mistachkin | 1a88b14 | 2013-08-31 18:06:52 +0000 | [diff] [blame] | 177 | } elseif {[regexp {/\*\s+amalgamator:\s+keep\s+\*/} $line]} { |
| 178 | # This include file must be kept because there was a "keep" |
| 179 | # directive inside of a line comment. |
| 180 | puts $out $line |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 181 | } else { |
mistachkin | 1a88b14 | 2013-08-31 18:06:52 +0000 | [diff] [blame] | 182 | # Comment out the entire line, replacing any nested comment |
| 183 | # begin/end markers with the harmless substring "**". |
| 184 | puts $out "/* [string map [list /* ** */ **] $line] */" |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 185 | } |
| 186 | } elseif {[regexp {^#ifdef __cplusplus} $line]} { |
| 187 | puts $out "#if 0" |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 188 | } elseif {!$linemacros && [regexp {^#line} $line]} { |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 189 | # Skip #line directives. |
drh | 73be501 | 2007-08-08 12:11:21 +0000 | [diff] [blame] | 190 | } elseif {$addstatic && ![regexp {^(static|typedef)} $line]} { |
drh | d9c50f7 | 2009-08-14 18:18:03 +0000 | [diff] [blame] | 191 | regsub {^SQLITE_API } $line {} line |
drh | 0a0e131 | 2007-08-07 17:04:59 +0000 | [diff] [blame] | 192 | if {[regexp $declpattern $line all funcname]} { |
| 193 | # Add the SQLITE_PRIVATE or SQLITE_API keyword before functions. |
| 194 | # so that linkage can be modified at compile-time. |
| 195 | if {[regexp {^sqlite3_} $funcname]} { |
| 196 | puts $out "SQLITE_API $line" |
| 197 | } else { |
| 198 | puts $out "SQLITE_PRIVATE $line" |
| 199 | } |
| 200 | } elseif {[regexp $varpattern $line all varname]} { |
| 201 | # Add the SQLITE_PRIVATE before variable declarations or |
| 202 | # definitions for internal use |
| 203 | if {![regexp {^sqlite3_} $varname]} { |
| 204 | regsub {^extern } $line {} line |
| 205 | puts $out "SQLITE_PRIVATE $line" |
| 206 | } else { |
drh | b3190c1 | 2008-12-08 21:37:14 +0000 | [diff] [blame] | 207 | if {[regexp {const char sqlite3_version\[\];} $line]} { |
| 208 | set line {const char sqlite3_version[] = SQLITE_VERSION;} |
| 209 | } |
mlcreech | 6f10b3c | 2008-03-09 01:14:41 +0000 | [diff] [blame] | 210 | regsub {^SQLITE_EXTERN } $line {} line |
| 211 | puts $out "SQLITE_API $line" |
drh | 0a0e131 | 2007-08-07 17:04:59 +0000 | [diff] [blame] | 212 | } |
mlcreech | 3a00f90 | 2008-03-04 17:45:01 +0000 | [diff] [blame] | 213 | } elseif {[regexp {^(SQLITE_EXTERN )?void \(\*sqlite3IoTrace\)} $line]} { |
| 214 | regsub {^SQLITE_EXTERN } $line {} line |
| 215 | puts $out "SQLITE_PRIVATE $line" |
drh | f158162 | 2009-02-03 13:51:17 +0000 | [diff] [blame] | 216 | } elseif {[regexp {^void \(\*sqlite3Os} $line]} { |
| 217 | puts $out "SQLITE_PRIVATE $line" |
drh | 26b0fc0 | 2007-06-26 00:52:39 +0000 | [diff] [blame] | 218 | } else { |
drh | 0a0e131 | 2007-08-07 17:04:59 +0000 | [diff] [blame] | 219 | puts $out $line |
drh | 26b0fc0 | 2007-06-26 00:52:39 +0000 | [diff] [blame] | 220 | } |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 221 | } else { |
| 222 | puts $out $line |
| 223 | } |
| 224 | } |
| 225 | close $in |
| 226 | section_comment "End of $tail" |
| 227 | } |
| 228 | |
| 229 | |
| 230 | # Process the source files. Process files containing commonly |
| 231 | # used subroutines first in order to help the compiler find |
| 232 | # inlining opportunities. |
| 233 | # |
| 234 | foreach file { |
drh | 71674ce | 2007-10-23 15:51:26 +0000 | [diff] [blame] | 235 | sqliteInt.h |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 236 | |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 237 | global.c |
drh | 735b9cb | 2010-03-10 23:13:53 +0000 | [diff] [blame] | 238 | ctime.c |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 239 | status.c |
drh | a55ca9e | 2007-04-02 12:22:44 +0000 | [diff] [blame] | 240 | date.c |
drh | 970f724 | 2007-03-31 16:29:06 +0000 | [diff] [blame] | 241 | os.c |
| 242 | |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 243 | fault.c |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 244 | mem0.c |
drh | 97c8ec3 | 2007-08-27 21:49:34 +0000 | [diff] [blame] | 245 | mem1.c |
| 246 | mem2.c |
danielk1977 | 6b39c2e | 2008-06-25 14:57:53 +0000 | [diff] [blame] | 247 | mem3.c |
| 248 | mem5.c |
drh | 97c8ec3 | 2007-08-27 21:49:34 +0000 | [diff] [blame] | 249 | mutex.c |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 250 | mutex_noop.c |
drh | 61f6dc6 | 2007-08-30 17:15:37 +0000 | [diff] [blame] | 251 | mutex_unix.c |
| 252 | mutex_w32.c |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 253 | malloc.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 254 | printf.c |
| 255 | random.c |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 256 | threads.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 257 | utf.c |
| 258 | util.c |
| 259 | hash.c |
| 260 | opcodes.c |
| 261 | |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 262 | os_unix.c |
| 263 | os_win.c |
| 264 | |
drh | f5e7bb5 | 2008-02-18 14:47:33 +0000 | [diff] [blame] | 265 | bitvec.c |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 266 | pcache.c |
danielk1977 | d17e71c | 2008-11-13 14:42:18 +0000 | [diff] [blame] | 267 | pcache1.c |
drh | 3d4501e | 2008-12-04 20:40:10 +0000 | [diff] [blame] | 268 | rowset.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 269 | pager.c |
shaneh | fd06863 | 2010-05-06 19:20:29 +0000 | [diff] [blame] | 270 | wal.c |
drh | 61f6dc6 | 2007-08-30 17:15:37 +0000 | [diff] [blame] | 271 | |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 272 | btmutex.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 273 | btree.c |
danielk1977 | 0410302 | 2009-02-03 16:51:24 +0000 | [diff] [blame] | 274 | backup.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 275 | |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 276 | vdbemem.c |
| 277 | vdbeaux.c |
| 278 | vdbeapi.c |
drh | c7bc4fd | 2009-11-25 18:03:42 +0000 | [diff] [blame] | 279 | vdbetrace.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 280 | vdbe.c |
drh | 3f75584 | 2007-05-03 16:55:32 +0000 | [diff] [blame] | 281 | vdbeblob.c |
dan | 7fe6270 | 2011-08-02 10:56:22 +0000 | [diff] [blame] | 282 | vdbesort.c |
drh | 97c8ec3 | 2007-08-27 21:49:34 +0000 | [diff] [blame] | 283 | journal.c |
danielk1977 | b317538 | 2008-10-17 18:51:52 +0000 | [diff] [blame] | 284 | memjournal.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 285 | |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 286 | walker.c |
| 287 | resolve.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 288 | expr.c |
| 289 | alter.c |
| 290 | analyze.c |
| 291 | attach.c |
| 292 | auth.c |
| 293 | build.c |
| 294 | callback.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 295 | delete.c |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 296 | func.c |
dan | 3be7d6e | 2009-09-19 17:59:59 +0000 | [diff] [blame] | 297 | fkey.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 298 | insert.c |
| 299 | legacy.c |
| 300 | loadext.c |
| 301 | pragma.c |
| 302 | prepare.c |
| 303 | select.c |
| 304 | table.c |
| 305 | trigger.c |
| 306 | update.c |
| 307 | vacuum.c |
| 308 | vtab.c |
| 309 | where.c |
| 310 | |
| 311 | parse.c |
| 312 | |
| 313 | tokenize.c |
drh | 46c99e0 | 2007-08-27 23:26:59 +0000 | [diff] [blame] | 314 | complete.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 315 | |
| 316 | main.c |
danielk1977 | 404ca07 | 2009-03-16 13:19:36 +0000 | [diff] [blame] | 317 | notify.c |
drh | 820a906 | 2008-01-31 13:35:48 +0000 | [diff] [blame] | 318 | |
| 319 | fts3.c |
dan | 290c939 | 2011-02-01 18:59:34 +0000 | [diff] [blame] | 320 | fts3_aux.c |
drh | aeba020 | 2008-12-31 16:01:04 +0000 | [diff] [blame] | 321 | fts3_expr.c |
drh | 820a906 | 2008-01-31 13:35:48 +0000 | [diff] [blame] | 322 | fts3_hash.c |
| 323 | fts3_porter.c |
| 324 | fts3_tokenizer.c |
| 325 | fts3_tokenizer1.c |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 326 | fts3_tokenize_vtab.c |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 327 | fts3_write.c |
| 328 | fts3_snippet.c |
dan | 3d403c7 | 2012-05-25 17:50:19 +0000 | [diff] [blame] | 329 | fts3_unicode.c |
| 330 | fts3_unicode2.c |
drh | 58f1c8b | 2008-05-26 20:19:25 +0000 | [diff] [blame] | 331 | |
| 332 | rtree.c |
danielk1977 | 0c8a5d0 | 2008-08-04 11:49:20 +0000 | [diff] [blame] | 333 | icu.c |
danielk1977 | f9449d0 | 2008-09-24 09:58:00 +0000 | [diff] [blame] | 334 | fts3_icu.c |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 335 | } { |
| 336 | copy_file tsrc/$file |
| 337 | } |
| 338 | |
drh | 91c58e2 | 2007-03-27 12:04:04 +0000 | [diff] [blame] | 339 | close $out |