aboutsummaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/mksqlite3c.tcl6
-rw-r--r--tool/mksqlite3h.tcl7
-rw-r--r--tool/symbols.sh2
3 files changed, 13 insertions, 2 deletions
diff --git a/tool/mksqlite3c.tcl b/tool/mksqlite3c.tcl
index 64207727b..11e0f05f7 100644
--- a/tool/mksqlite3c.tcl
+++ b/tool/mksqlite3c.tcl
@@ -110,6 +110,7 @@ foreach hdr {
parse.h
pcache.h
rtree.h
+ sqlite3session.h
sqlite3ext.h
sqlite3.h
sqliteicu.h
@@ -123,6 +124,7 @@ foreach hdr {
set available_hdr($hdr) 1
}
set available_hdr(sqliteInt.h) 0
+set available_hdr(sqlite3session.h) 0
# 78 stars used for comment formatting.
set s78 \
@@ -192,7 +194,7 @@ proc copy_file {filename} {
if {[regexp $declpattern $line all funcname]} {
# Add the SQLITE_PRIVATE or SQLITE_API keyword before functions.
# so that linkage can be modified at compile-time.
- if {[regexp {^sqlite3_} $funcname]} {
+ if {[regexp {^sqlite3[a-z]*_} $funcname]} {
puts $out "SQLITE_API $line"
} else {
puts $out "SQLITE_PRIVATE $line"
@@ -331,6 +333,8 @@ foreach file {
rtree.c
icu.c
fts3_icu.c
+
+ sqlite3session.c
} {
copy_file tsrc/$file
}
diff --git a/tool/mksqlite3h.tcl b/tool/mksqlite3h.tcl
index a89b9f9be..323111bb3 100644
--- a/tool/mksqlite3h.tcl
+++ b/tool/mksqlite3h.tcl
@@ -71,12 +71,16 @@ fconfigure stdout -translation lf
set filelist [subst {
$TOP/src/sqlite.h.in
$TOP/ext/rtree/sqlite3rtree.h
+ $TOP/ext/session/sqlite3session.h
}]
# Process the source files.
#
foreach file $filelist {
set in [open $file]
+ if {![regexp {sqlite\.h\.in} $file]} {
+ puts "/******** Begin file [file tail $file] *********/"
+ }
while {![eof $in]} {
set line [gets $in]
@@ -108,4 +112,7 @@ foreach file $filelist {
puts $line
}
close $in
+ if {![regexp {sqlite\.h\.in} $file]} {
+ puts "/******** End of [file tail $file] *********/"
+ }
}
diff --git a/tool/symbols.sh b/tool/symbols.sh
index befffce5c..5e80078fa 100644
--- a/tool/symbols.sh
+++ b/tool/symbols.sh
@@ -10,7 +10,7 @@ gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
-DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
-DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
- -DSQLITE_ENABLE_ICU \
+ -DSQLITE_ENABLE_ICU -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_SESSION \
sqlite3.c
nm sqlite3.o | grep ' [TD] ' | sort -k 3