mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Merge latest trunk changes into this branch.
FossilOrigin-Name: 53ea550ce759ae4683bcf0ae3af655bfe04f85db70f74edee6bcab56d83bb041
This commit is contained in:
21
tool/extract-sqlite3h.tcl
Executable file
21
tool/extract-sqlite3h.tcl
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/tclsh
|
||||
#
|
||||
# Given an sqlite3.c source file identified by the command-line
|
||||
# argument, extract the "sqlite3.h" header file that is embedded inside
|
||||
# the sqlite3.c source file and write it to standard output.
|
||||
#
|
||||
if {[llength $argv]!=1} {
|
||||
puts stderr "Usage: $argv0 sqlite3.c >sqlite3.h"
|
||||
exit 1
|
||||
}
|
||||
set in [open [lindex $argv 0] rb]
|
||||
while {![eof $in]} {
|
||||
set line [gets $in]
|
||||
if {[string match {* Begin file sqlite3.h *} $line]} break
|
||||
}
|
||||
while {![eof $in]} {
|
||||
set line [gets $in]
|
||||
if {[string match {* End of sqlite3.h *} $line]} break
|
||||
puts $line
|
||||
}
|
||||
close $in
|
@ -828,7 +828,7 @@ static void page_usage_cell(
|
||||
while( ovfl && (cnt++)<g.mxPage ){
|
||||
page_usage_msg(ovfl, "overflow %d from cell %d of page %d",
|
||||
cnt, cellno, pgno);
|
||||
a = fileRead((ovfl-1)*g.pagesize, 4);
|
||||
a = fileRead((ovfl-1)*(sqlite3_int64)g.pagesize, 4);
|
||||
ovfl = decodeInt32(a);
|
||||
sqlite3_free(a);
|
||||
}
|
||||
|
Reference in New Issue
Block a user