2007-03-27 16:04:04 +04:00
|
|
|
#!/usr/bin/tclsh
|
|
|
|
#
|
|
|
|
# To build a single huge source file holding all of SQLite (or at
|
2016-08-24 22:58:46 +03:00
|
|
|
# least the core components - the test harness, shell, and TCL
|
2007-03-27 16:04:04 +04:00
|
|
|
# interface are omitted.) first do
|
|
|
|
#
|
|
|
|
# make target_source
|
|
|
|
#
|
2007-04-01 02:29:05 +04:00
|
|
|
# The make target above moves all of the source code files into
|
|
|
|
# a subdirectory named "tsrc". (This script expects to find the files
|
|
|
|
# there and will not work if they are not found.) There are a few
|
|
|
|
# generated C code files that are also added to the tsrc directory.
|
|
|
|
# For example, the "parse.c" and "parse.h" files to implement the
|
2016-08-24 22:58:46 +03:00
|
|
|
# the parser are derived from "parse.y" using lemon. And the
|
2007-04-01 02:29:05 +04:00
|
|
|
# "keywordhash.h" files is generated by a program named "mkkeywordhash".
|
2007-03-27 16:04:04 +04:00
|
|
|
#
|
2007-04-01 02:29:05 +04:00
|
|
|
# After the "tsrc" directory has been created and populated, run
|
|
|
|
# this script:
|
2007-03-27 16:04:04 +04:00
|
|
|
#
|
2021-07-13 04:45:04 +03:00
|
|
|
# tclsh mksqlite3c.tcl
|
2007-03-27 16:04:04 +04:00
|
|
|
#
|
2007-04-01 02:29:05 +04:00
|
|
|
# The amalgamated SQLite code will be written into sqlite3.c
|
|
|
|
#
|
|
|
|
|
2021-07-13 04:45:04 +03:00
|
|
|
set help {Usage: tclsh mksqlite3c.tcl <options>
|
|
|
|
where <options> is zero or more of the following with these effects:
|
|
|
|
--nostatic => Do not generate with compile-time modifiable linkage.
|
2021-07-14 00:59:22 +03:00
|
|
|
--linemacros=? => Emit #line directives into output or not. (? = 1 or 0)
|
2021-07-13 04:45:04 +03:00
|
|
|
--useapicall => Prepend functions with SQLITE_APICALL or SQLITE_CDECL.
|
|
|
|
--srcdir $SRC => Specify the directory containing constituent sources.
|
|
|
|
--help => See this.
|
2021-07-14 00:59:22 +03:00
|
|
|
The value setting options default to --linemacros=1 and '--srcdir tsrc' .
|
2021-07-13 04:45:04 +03:00
|
|
|
}
|
|
|
|
|
2009-07-20 16:25:44 +04:00
|
|
|
# Begin by reading the "sqlite3.h" header file. Extract the version number
|
2013-03-19 19:23:18 +04:00
|
|
|
# from in this file. The version number is needed to generate the header
|
2009-07-20 16:25:44 +04:00
|
|
|
# comment of the amalgamation.
|
2007-04-01 02:29:05 +04:00
|
|
|
#
|
2021-07-13 04:45:04 +03:00
|
|
|
|
2015-05-04 20:06:39 +03:00
|
|
|
set addstatic 1
|
2021-07-16 02:34:14 +03:00
|
|
|
set linemacros 0
|
2016-08-24 22:58:46 +03:00
|
|
|
set useapicall 0
|
2021-07-13 04:45:04 +03:00
|
|
|
set srcdir tsrc
|
|
|
|
|
2015-05-04 20:06:39 +03:00
|
|
|
for {set i 0} {$i<[llength $argv]} {incr i} {
|
|
|
|
set x [lindex $argv $i]
|
2021-07-13 04:45:04 +03:00
|
|
|
if {[regexp {^-?-nostatic$} $x]} {
|
2015-05-04 20:06:39 +03:00
|
|
|
set addstatic 0
|
2021-07-14 00:59:22 +03:00
|
|
|
} elseif {[regexp {^-?-linemacros(?:=([01]))?$} $x ma ulm]} {
|
|
|
|
if {$ulm == ""} {set ulm 1}
|
|
|
|
set linemacros $ulm
|
2021-07-13 04:45:04 +03:00
|
|
|
} elseif {[regexp {^-?-useapicall$} $x]} {
|
2016-08-24 22:58:46 +03:00
|
|
|
set useapicall 1
|
2021-07-13 04:45:04 +03:00
|
|
|
} elseif {[regexp {^-?-srcdir$} $x]} {
|
|
|
|
incr i
|
|
|
|
if {$i==[llength $argv]} {
|
|
|
|
error "No argument following $x"
|
|
|
|
}
|
|
|
|
set srcdir [lindex $argv $i]
|
|
|
|
} elseif {[regexp {^-?-((help)|\?)$} $x]} {
|
|
|
|
puts $help
|
|
|
|
exit 0
|
2015-05-04 20:06:39 +03:00
|
|
|
} else {
|
|
|
|
error "unknown command-line option: $x"
|
|
|
|
}
|
2011-08-15 19:27:20 +04:00
|
|
|
}
|
2021-07-13 04:45:04 +03:00
|
|
|
set in [open $srcdir/sqlite3.h]
|
2007-04-01 02:29:05 +04:00
|
|
|
set cnt 0
|
|
|
|
set VERSION ?????
|
|
|
|
while {![eof $in]} {
|
|
|
|
set line [gets $in]
|
|
|
|
if {$line=="" && [eof $in]} break
|
|
|
|
incr cnt
|
|
|
|
regexp {#define\s+SQLITE_VERSION\s+"(.*)"} $line all VERSION
|
|
|
|
}
|
|
|
|
close $in
|
2007-03-27 16:04:04 +04:00
|
|
|
|
|
|
|
# Open the output file and write a header comment at the beginning
|
|
|
|
# of the file.
|
|
|
|
#
|
|
|
|
set out [open sqlite3.c w]
|
2011-06-17 19:54:59 +04:00
|
|
|
# Force the output to use unix line endings, even on Windows.
|
2011-06-20 19:24:22 +04:00
|
|
|
fconfigure $out -translation lf
|
2007-04-01 02:29:05 +04:00
|
|
|
set today [clock format [clock seconds] -format "%Y-%m-%d %H:%M:%S UTC" -gmt 1]
|
|
|
|
puts $out [subst \
|
|
|
|
{/******************************************************************************
|
2007-04-01 05:57:41 +04:00
|
|
|
** This file is an amalgamation of many separate C source files from SQLite
|
2016-08-24 22:58:46 +03:00
|
|
|
** version $VERSION. By combining all the individual C code files into this
|
2011-04-01 22:12:58 +04:00
|
|
|
** single large file, the entire code can be compiled as a single translation
|
2007-04-01 02:29:05 +04:00
|
|
|
** unit. This allows many compilers to do optimizations that would not be
|
|
|
|
** possible if the files were compiled separately. Performance improvements
|
2010-11-01 01:42:27 +03:00
|
|
|
** of 5% or more are commonly seen when SQLite is compiled as a single
|
2007-04-01 02:29:05 +04:00
|
|
|
** translation unit.
|
|
|
|
**
|
|
|
|
** This file is all you need to compile SQLite. To use SQLite in other
|
|
|
|
** programs, you need this file and the "sqlite3.h" header file that defines
|
2016-08-24 22:58:46 +03:00
|
|
|
** the programming interface to the SQLite library. (If you do not have
|
2009-07-20 16:25:44 +04:00
|
|
|
** the "sqlite3.h" header file at hand, you will find a copy embedded within
|
|
|
|
** the text of this file. Search for "Begin file sqlite3.h" to find the start
|
|
|
|
** of the embedded sqlite3.h header file.) Additional code files may be needed
|
|
|
|
** if you want a wrapper to interface SQLite with your choice of programming
|
|
|
|
** language. The code for the "sqlite3" command-line shell is also in a
|
|
|
|
** separate file. This file contains only code for the core SQLite library.
|
2007-04-06 01:58:33 +04:00
|
|
|
*/
|
2008-01-01 08:49:07 +03:00
|
|
|
#define SQLITE_CORE 1
|
2007-04-06 01:58:33 +04:00
|
|
|
#define SQLITE_AMALGAMATION 1}]
|
2007-06-26 04:37:27 +04:00
|
|
|
if {$addstatic} {
|
|
|
|
puts $out \
|
|
|
|
{#ifndef SQLITE_PRIVATE
|
|
|
|
# define SQLITE_PRIVATE static
|
|
|
|
#endif}
|
|
|
|
}
|
2007-03-27 16:04:04 +04:00
|
|
|
|
2020-09-10 15:41:46 +03:00
|
|
|
# Examine the parse.c file. If it contains lines of the form:
|
|
|
|
#
|
|
|
|
# "#ifndef SQLITE_ENABLE_UPDATE_LIMIT
|
|
|
|
#
|
|
|
|
# then set the SQLITE_UDL_CAPABLE_PARSER flag in the amalgamation.
|
|
|
|
#
|
2021-07-13 04:45:04 +03:00
|
|
|
set in [open $srcdir/parse.c]
|
2020-09-10 15:41:46 +03:00
|
|
|
if {[regexp {ifndef SQLITE_ENABLE_UPDATE_DELETE_LIMIT} [read $in]]} {
|
|
|
|
puts $out "#define SQLITE_UDL_CAPABLE_PARSER 1"
|
|
|
|
}
|
|
|
|
close $in
|
|
|
|
|
2016-08-24 22:58:46 +03:00
|
|
|
# These are the header files used by SQLite. The first time any of these
|
2007-03-27 16:04:04 +04:00
|
|
|
# files are seen in a #include statement in the C code, include the complete
|
|
|
|
# text of the file in-line. The file only needs to be included once.
|
|
|
|
#
|
|
|
|
foreach hdr {
|
|
|
|
btree.h
|
2007-05-05 15:48:52 +04:00
|
|
|
btreeInt.h
|
2008-01-31 16:35:48 +03:00
|
|
|
fts3.h
|
2009-11-26 01:42:22 +03:00
|
|
|
fts3Int.h
|
2008-01-31 16:35:48 +03:00
|
|
|
fts3_hash.h
|
|
|
|
fts3_tokenizer.h
|
2018-05-25 22:22:47 +03:00
|
|
|
geopoly.c
|
2007-03-27 16:04:04 +04:00
|
|
|
hash.h
|
2008-05-30 00:22:37 +04:00
|
|
|
hwtime.h
|
2007-03-27 16:04:04 +04:00
|
|
|
keywordhash.h
|
2015-01-12 21:02:52 +03:00
|
|
|
msvc.h
|
2007-08-30 20:23:19 +04:00
|
|
|
mutex.h
|
2007-03-27 16:04:04 +04:00
|
|
|
opcodes.h
|
|
|
|
os_common.h
|
2013-11-26 05:00:31 +04:00
|
|
|
os_setup.h
|
2013-11-25 13:36:07 +04:00
|
|
|
os_win.h
|
2007-03-27 16:04:04 +04:00
|
|
|
os.h
|
|
|
|
pager.h
|
|
|
|
parse.h
|
2008-08-20 18:49:23 +04:00
|
|
|
pcache.h
|
2015-02-03 00:34:54 +03:00
|
|
|
pragma.h
|
2008-05-27 00:19:25 +04:00
|
|
|
rtree.h
|
2013-03-13 15:42:00 +04:00
|
|
|
sqlite3session.h
|
2007-03-27 16:04:04 +04:00
|
|
|
sqlite3.h
|
2015-02-10 23:00:38 +03:00
|
|
|
sqlite3ext.h
|
2015-07-23 23:44:49 +03:00
|
|
|
sqlite3rbu.h
|
2008-09-08 12:08:09 +04:00
|
|
|
sqliteicu.h
|
2007-03-27 16:04:04 +04:00
|
|
|
sqliteInt.h
|
2007-06-19 19:23:48 +04:00
|
|
|
sqliteLimit.h
|
2007-03-27 16:04:04 +04:00
|
|
|
vdbe.h
|
|
|
|
vdbeInt.h
|
2015-03-03 01:06:43 +03:00
|
|
|
vxworks.h
|
2010-04-26 04:19:45 +04:00
|
|
|
wal.h
|
2013-11-12 22:37:25 +04:00
|
|
|
whereInt.h
|
2007-03-27 16:04:04 +04:00
|
|
|
} {
|
|
|
|
set available_hdr($hdr) 1
|
|
|
|
}
|
2007-10-23 19:51:26 +04:00
|
|
|
set available_hdr(sqliteInt.h) 0
|
2021-08-06 18:26:01 +03:00
|
|
|
set available_hdr(os_common.h) 0
|
2013-03-19 19:23:18 +04:00
|
|
|
set available_hdr(sqlite3session.h) 0
|
2007-03-27 16:04:04 +04:00
|
|
|
|
2015-03-25 00:27:27 +03:00
|
|
|
# These headers should be copied into the amalgamation without modifying any
|
|
|
|
# of their function declarations or definitions.
|
|
|
|
set varonly_hdr(sqlite3.h) 1
|
|
|
|
|
|
|
|
# These are the functions that accept a variable number of arguments. They
|
|
|
|
# always need to use the "cdecl" calling convention even when another calling
|
|
|
|
# convention (e.g. "stcall") is being used for the rest of the library.
|
|
|
|
set cdecllist {
|
|
|
|
sqlite3_config
|
|
|
|
sqlite3_db_config
|
|
|
|
sqlite3_log
|
|
|
|
sqlite3_mprintf
|
|
|
|
sqlite3_snprintf
|
|
|
|
sqlite3_test_control
|
|
|
|
sqlite3_vtab_config
|
|
|
|
}
|
|
|
|
|
2007-03-27 16:04:04 +04:00
|
|
|
# 78 stars used for comment formatting.
|
|
|
|
set s78 \
|
|
|
|
{*****************************************************************************}
|
|
|
|
|
|
|
|
# Insert a comment into the code
|
|
|
|
#
|
|
|
|
proc section_comment {text} {
|
|
|
|
global out s78
|
|
|
|
set n [string length $text]
|
|
|
|
set nstar [expr {60 - $n}]
|
|
|
|
set stars [string range $s78 0 $nstar]
|
|
|
|
puts $out "/************** $text $stars/"
|
|
|
|
}
|
|
|
|
|
|
|
|
# Read the source file named $filename and write it into the
|
|
|
|
# sqlite3.c output file. If any #include statements are seen,
|
2013-08-31 09:46:42 +04:00
|
|
|
# process them appropriately.
|
2007-03-27 16:04:04 +04:00
|
|
|
#
|
|
|
|
proc copy_file {filename} {
|
2016-08-24 22:58:46 +03:00
|
|
|
global seen_hdr available_hdr varonly_hdr cdecllist out
|
2021-07-14 00:59:22 +03:00
|
|
|
global addstatic linemacros useapicall srcdir
|
2011-08-15 19:27:20 +04:00
|
|
|
set ln 0
|
2007-03-27 16:04:04 +04:00
|
|
|
set tail [file tail $filename]
|
|
|
|
section_comment "Begin file $tail"
|
2021-07-14 00:59:22 +03:00
|
|
|
if {$linemacros} {puts $out "#line 1 \"$filename\""}
|
2007-03-27 16:04:04 +04:00
|
|
|
set in [open $filename r]
|
2007-08-08 16:11:21 +04:00
|
|
|
set varpattern {^[a-zA-Z][a-zA-Z_0-9 *]+(sqlite3[_a-zA-Z0-9]+)(\[|;| =)}
|
2015-03-25 00:27:27 +03:00
|
|
|
set declpattern {([a-zA-Z][a-zA-Z_0-9 ]+ \**)(sqlite3[_a-zA-Z0-9]+)(\(.*)}
|
2007-05-09 00:37:38 +04:00
|
|
|
if {[file extension $filename]==".h"} {
|
2007-08-08 05:04:52 +04:00
|
|
|
set declpattern " *$declpattern"
|
2007-05-09 00:37:38 +04:00
|
|
|
}
|
2015-03-25 00:27:27 +03:00
|
|
|
set declpattern ^$declpattern\$
|
2007-03-27 16:04:04 +04:00
|
|
|
while {![eof $in]} {
|
2020-06-23 20:57:08 +03:00
|
|
|
set line [string trimright [gets $in]]
|
2011-08-15 19:27:20 +04:00
|
|
|
incr ln
|
2008-10-14 22:21:11 +04:00
|
|
|
if {[regexp {^\s*#\s*include\s+["<]([^">]+)[">]} $line all hdr]} {
|
2007-03-27 16:04:04 +04:00
|
|
|
if {[info exists available_hdr($hdr)]} {
|
|
|
|
if {$available_hdr($hdr)} {
|
2021-08-06 18:26:01 +03:00
|
|
|
set available_hdr($hdr) 0
|
2007-03-27 16:04:04 +04:00
|
|
|
section_comment "Include $hdr in the middle of $tail"
|
2021-07-13 04:45:04 +03:00
|
|
|
copy_file $srcdir/$hdr
|
2007-03-27 16:04:04 +04:00
|
|
|
section_comment "Continuing where we left off in $tail"
|
2021-07-14 00:59:22 +03:00
|
|
|
if {$linemacros} {puts $out "#line [expr {$ln+1}] \"$filename\""}
|
2015-07-16 00:00:33 +03:00
|
|
|
} else {
|
|
|
|
# Comment out the entire line, replacing any nested comment
|
|
|
|
# begin/end markers with the harmless substring "**".
|
|
|
|
puts $out "/* [string map [list /* ** */ **] $line] */"
|
2007-03-27 16:04:04 +04:00
|
|
|
}
|
|
|
|
} elseif {![info exists seen_hdr($hdr)]} {
|
2014-05-06 00:21:52 +04:00
|
|
|
if {![regexp {/\*\s+amalgamator:\s+dontcache\s+\*/} $line]} {
|
|
|
|
set seen_hdr($hdr) 1
|
|
|
|
}
|
2007-03-27 16:04:04 +04:00
|
|
|
puts $out $line
|
2013-08-31 22:06:52 +04:00
|
|
|
} elseif {[regexp {/\*\s+amalgamator:\s+keep\s+\*/} $line]} {
|
|
|
|
# This include file must be kept because there was a "keep"
|
|
|
|
# directive inside of a line comment.
|
2013-08-31 09:46:42 +04:00
|
|
|
puts $out $line
|
2011-08-15 19:27:20 +04:00
|
|
|
} else {
|
2013-08-31 22:06:52 +04:00
|
|
|
# Comment out the entire line, replacing any nested comment
|
|
|
|
# begin/end markers with the harmless substring "**".
|
|
|
|
puts $out "/* [string map [list /* ** */ **] $line] */"
|
2007-03-27 16:04:04 +04:00
|
|
|
}
|
|
|
|
} elseif {[regexp {^#ifdef __cplusplus} $line]} {
|
|
|
|
puts $out "#if 0"
|
2021-07-14 00:59:22 +03:00
|
|
|
} elseif {!$linemacros && [regexp {^#line} $line]} {
|
2007-03-27 16:04:04 +04:00
|
|
|
# Skip #line directives.
|
2015-10-09 04:42:49 +03:00
|
|
|
} elseif {$addstatic
|
|
|
|
&& ![regexp {^(static|typedef|SQLITE_PRIVATE)} $line]} {
|
2015-03-25 00:27:27 +03:00
|
|
|
# Skip adding the SQLITE_PRIVATE or SQLITE_API keyword before
|
|
|
|
# functions if this header file does not need it.
|
|
|
|
if {![info exists varonly_hdr($tail)]
|
|
|
|
&& [regexp $declpattern $line all rettype funcname rest]} {
|
|
|
|
regsub {^SQLITE_API } $line {} line
|
2017-08-04 11:23:33 +03:00
|
|
|
regsub {^SQLITE_API } $rettype {} rettype
|
|
|
|
|
2007-08-07 21:04:59 +04:00
|
|
|
# Add the SQLITE_PRIVATE or SQLITE_API keyword before functions.
|
|
|
|
# so that linkage can be modified at compile-time.
|
2013-03-19 21:10:10 +04:00
|
|
|
if {[regexp {^sqlite3[a-z]*_} $funcname]} {
|
2015-03-25 00:27:27 +03:00
|
|
|
set line SQLITE_API
|
|
|
|
append line " " [string trim $rettype]
|
|
|
|
if {[string index $rettype end] ne "*"} {
|
|
|
|
append line " "
|
|
|
|
}
|
2016-08-24 22:58:46 +03:00
|
|
|
if {$useapicall} {
|
|
|
|
if {[lsearch -exact $cdecllist $funcname] >= 0} {
|
2016-09-09 02:16:02 +03:00
|
|
|
append line SQLITE_CDECL " "
|
2016-08-24 22:58:46 +03:00
|
|
|
} else {
|
2016-09-09 02:16:02 +03:00
|
|
|
append line SQLITE_APICALL " "
|
2016-08-24 22:58:46 +03:00
|
|
|
}
|
2015-03-25 00:27:27 +03:00
|
|
|
}
|
2016-09-09 02:16:02 +03:00
|
|
|
append line $funcname $rest
|
2021-07-13 04:45:04 +03:00
|
|
|
if {$funcname=="sqlite3_sourceid"} {
|
2017-08-23 00:07:03 +03:00
|
|
|
# The sqlite3_sourceid() routine is synthesized at the end of
|
|
|
|
# the amalgamation
|
|
|
|
puts $out "/* $line */"
|
|
|
|
} else {
|
|
|
|
puts $out $line
|
|
|
|
}
|
2007-08-07 21:04:59 +04:00
|
|
|
} else {
|
|
|
|
puts $out "SQLITE_PRIVATE $line"
|
|
|
|
}
|
|
|
|
} elseif {[regexp $varpattern $line all varname]} {
|
2015-03-25 00:27:27 +03:00
|
|
|
# Add the SQLITE_PRIVATE before variable declarations or
|
|
|
|
# definitions for internal use
|
|
|
|
regsub {^SQLITE_API } $line {} line
|
2022-04-06 15:25:04 +03:00
|
|
|
if {![regexp {^sqlite3_} $varname]
|
|
|
|
&& ![regexp {^sqlite3Show[A-Z]} $varname]} {
|
2015-03-25 00:27:27 +03:00
|
|
|
regsub {^extern } $line {} line
|
|
|
|
puts $out "SQLITE_PRIVATE $line"
|
|
|
|
} else {
|
|
|
|
if {[regexp {const char sqlite3_version\[\];} $line]} {
|
|
|
|
set line {const char sqlite3_version[] = SQLITE_VERSION;}
|
|
|
|
}
|
|
|
|
regsub {^SQLITE_EXTERN } $line {} line
|
|
|
|
puts $out "SQLITE_API $line"
|
2008-12-09 00:37:14 +03:00
|
|
|
}
|
2008-03-04 20:45:01 +03:00
|
|
|
} elseif {[regexp {^(SQLITE_EXTERN )?void \(\*sqlite3IoTrace\)} $line]} {
|
2015-03-25 00:27:27 +03:00
|
|
|
regsub {^SQLITE_API } $line {} line
|
2008-03-04 20:45:01 +03:00
|
|
|
regsub {^SQLITE_EXTERN } $line {} line
|
2014-12-24 20:17:30 +03:00
|
|
|
puts $out $line
|
2009-02-03 16:51:17 +03:00
|
|
|
} elseif {[regexp {^void \(\*sqlite3Os} $line]} {
|
2015-03-25 00:27:27 +03:00
|
|
|
regsub {^SQLITE_API } $line {} line
|
2009-02-03 16:51:17 +03:00
|
|
|
puts $out "SQLITE_PRIVATE $line"
|
2007-06-26 04:52:39 +04:00
|
|
|
} else {
|
2007-08-07 21:04:59 +04:00
|
|
|
puts $out $line
|
2007-06-26 04:52:39 +04:00
|
|
|
}
|
2007-03-27 16:04:04 +04:00
|
|
|
} else {
|
|
|
|
puts $out $line
|
|
|
|
}
|
|
|
|
}
|
|
|
|
close $in
|
|
|
|
section_comment "End of $tail"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Process the source files. Process files containing commonly
|
|
|
|
# used subroutines first in order to help the compiler find
|
|
|
|
# inlining opportunities.
|
|
|
|
#
|
|
|
|
foreach file {
|
2007-10-23 19:51:26 +04:00
|
|
|
sqliteInt.h
|
2021-08-06 18:26:01 +03:00
|
|
|
os_common.h
|
2021-07-05 21:37:37 +03:00
|
|
|
ctime.c
|
2007-04-01 02:29:05 +04:00
|
|
|
|
2008-06-13 22:24:27 +04:00
|
|
|
global.c
|
2008-06-19 04:16:08 +04:00
|
|
|
status.c
|
2007-04-02 16:22:44 +04:00
|
|
|
date.c
|
2007-03-31 20:29:06 +04:00
|
|
|
os.c
|
|
|
|
|
2008-01-23 00:30:53 +03:00
|
|
|
fault.c
|
2008-10-28 21:58:20 +03:00
|
|
|
mem0.c
|
2007-08-28 01:49:34 +04:00
|
|
|
mem1.c
|
|
|
|
mem2.c
|
2008-06-25 18:57:53 +04:00
|
|
|
mem3.c
|
|
|
|
mem5.c
|
2007-08-28 01:49:34 +04:00
|
|
|
mutex.c
|
2008-10-07 19:25:48 +04:00
|
|
|
mutex_noop.c
|
2007-08-30 21:15:37 +04:00
|
|
|
mutex_unix.c
|
|
|
|
mutex_w32.c
|
2007-05-05 15:48:52 +04:00
|
|
|
malloc.c
|
2007-03-27 16:04:04 +04:00
|
|
|
printf.c
|
2015-06-08 18:08:15 +03:00
|
|
|
treeview.c
|
2007-03-27 16:04:04 +04:00
|
|
|
random.c
|
2012-07-21 23:40:42 +04:00
|
|
|
threads.c
|
2007-03-27 16:04:04 +04:00
|
|
|
utf.c
|
|
|
|
util.c
|
|
|
|
hash.c
|
|
|
|
opcodes.c
|
|
|
|
|
|
|
|
os_unix.c
|
|
|
|
os_win.c
|
2018-01-03 04:28:46 +03:00
|
|
|
memdb.c
|
2007-03-27 16:04:04 +04:00
|
|
|
|
2008-02-18 17:47:33 +03:00
|
|
|
bitvec.c
|
2008-08-20 18:49:23 +04:00
|
|
|
pcache.c
|
2008-11-13 17:42:18 +03:00
|
|
|
pcache1.c
|
2008-12-04 23:40:10 +03:00
|
|
|
rowset.c
|
2007-03-27 16:04:04 +04:00
|
|
|
pager.c
|
2010-05-06 23:20:29 +04:00
|
|
|
wal.c
|
2007-08-30 21:15:37 +04:00
|
|
|
|
2008-05-30 00:22:37 +04:00
|
|
|
btmutex.c
|
2007-03-27 16:04:04 +04:00
|
|
|
btree.c
|
2009-02-03 19:51:24 +03:00
|
|
|
backup.c
|
2007-03-27 16:04:04 +04:00
|
|
|
|
|
|
|
vdbemem.c
|
|
|
|
vdbeaux.c
|
|
|
|
vdbeapi.c
|
2009-11-25 21:03:42 +03:00
|
|
|
vdbetrace.c
|
2007-03-27 16:04:04 +04:00
|
|
|
vdbe.c
|
2007-05-03 20:55:32 +04:00
|
|
|
vdbeblob.c
|
2011-08-02 14:56:22 +04:00
|
|
|
vdbesort.c
|
2020-03-23 18:49:22 +03:00
|
|
|
vdbevtab.c
|
2008-10-17 22:51:52 +04:00
|
|
|
memjournal.c
|
2007-03-27 16:04:04 +04:00
|
|
|
|
2008-08-20 20:35:10 +04:00
|
|
|
walker.c
|
|
|
|
resolve.c
|
2007-03-27 16:04:04 +04:00
|
|
|
expr.c
|
|
|
|
alter.c
|
|
|
|
analyze.c
|
|
|
|
attach.c
|
|
|
|
auth.c
|
|
|
|
build.c
|
|
|
|
callback.c
|
|
|
|
delete.c
|
2008-08-21 22:49:27 +04:00
|
|
|
func.c
|
2009-09-19 21:59:59 +04:00
|
|
|
fkey.c
|
2007-03-27 16:04:04 +04:00
|
|
|
insert.c
|
|
|
|
legacy.c
|
|
|
|
loadext.c
|
|
|
|
pragma.c
|
|
|
|
prepare.c
|
|
|
|
select.c
|
|
|
|
table.c
|
|
|
|
trigger.c
|
|
|
|
update.c
|
2018-04-13 00:42:51 +03:00
|
|
|
upsert.c
|
2007-03-27 16:04:04 +04:00
|
|
|
vacuum.c
|
|
|
|
vtab.c
|
2015-06-06 23:12:09 +03:00
|
|
|
wherecode.c
|
2015-06-08 17:23:15 +03:00
|
|
|
whereexpr.c
|
2007-03-27 16:04:04 +04:00
|
|
|
where.c
|
2018-06-09 20:58:51 +03:00
|
|
|
window.c
|
2007-03-27 16:04:04 +04:00
|
|
|
|
|
|
|
parse.c
|
|
|
|
|
|
|
|
tokenize.c
|
2007-08-28 03:26:59 +04:00
|
|
|
complete.c
|
2007-03-27 16:04:04 +04:00
|
|
|
|
|
|
|
main.c
|
2009-03-16 16:19:36 +03:00
|
|
|
notify.c
|
2008-01-31 16:35:48 +03:00
|
|
|
|
|
|
|
fts3.c
|
2011-02-01 21:59:34 +03:00
|
|
|
fts3_aux.c
|
2008-12-31 19:01:04 +03:00
|
|
|
fts3_expr.c
|
2008-01-31 16:35:48 +03:00
|
|
|
fts3_hash.c
|
|
|
|
fts3_porter.c
|
|
|
|
fts3_tokenizer.c
|
|
|
|
fts3_tokenizer1.c
|
2013-04-22 19:30:37 +04:00
|
|
|
fts3_tokenize_vtab.c
|
2009-11-19 18:25:25 +03:00
|
|
|
fts3_write.c
|
|
|
|
fts3_snippet.c
|
2012-05-25 21:50:19 +04:00
|
|
|
fts3_unicode.c
|
|
|
|
fts3_unicode2.c
|
2008-05-27 00:19:25 +04:00
|
|
|
|
2022-01-06 04:40:09 +03:00
|
|
|
json.c
|
2008-05-27 00:19:25 +04:00
|
|
|
rtree.c
|
2008-08-04 15:49:20 +04:00
|
|
|
icu.c
|
2008-09-24 13:58:00 +04:00
|
|
|
fts3_icu.c
|
2015-07-23 23:44:49 +03:00
|
|
|
sqlite3rbu.c
|
2015-05-04 21:31:09 +03:00
|
|
|
dbstat.c
|
2017-10-11 16:48:11 +03:00
|
|
|
dbpage.c
|
2013-03-13 15:42:00 +04:00
|
|
|
sqlite3session.c
|
2015-10-08 22:29:18 +03:00
|
|
|
fts5.c
|
2017-06-29 17:33:51 +03:00
|
|
|
stmt.c
|
2007-03-27 16:04:04 +04:00
|
|
|
} {
|
2021-07-13 04:45:04 +03:00
|
|
|
copy_file $srcdir/$file
|
2007-03-27 16:04:04 +04:00
|
|
|
}
|
|
|
|
|
2021-07-13 04:45:04 +03:00
|
|
|
puts $out \
|
|
|
|
"/* Return the source-id for this library */
|
2017-08-23 00:07:03 +03:00
|
|
|
SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }"
|
2021-07-13 04:45:04 +03:00
|
|
|
|
2017-08-23 00:07:03 +03:00
|
|
|
puts $out \
|
|
|
|
"/************************** End of sqlite3.c ******************************/"
|
|
|
|
|
2007-03-27 16:04:04 +04:00
|
|
|
close $out
|