aboutsummaryrefslogtreecommitdiff
path: root/internal/testfixture
diff options
context:
space:
mode:
Diffstat (limited to 'internal/testfixture')
-rw-r--r--internal/testfixture/main.go34
-rw-r--r--internal/testfixture/testfixture_linux_amd64.go21635
2 files changed, 13520 insertions, 8149 deletions
diff --git a/internal/testfixture/main.go b/internal/testfixture/main.go
deleted file mode 100644
index 02acb67..0000000
--- a/internal/testfixture/main.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2020 The Sqlite Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package testfixture
-
-import (
- "fmt"
- "os"
- "unsafe"
-
- "modernc.org/crt/v3"
-)
-
-func Main() {
- crt.Watch(fmt.Sprint(os.Args))
- tls := crt.NewTLS()
- argv := crt.Xcalloc(tls, crt.Size_t(len(os.Args)+1), crt.Size_t(unsafe.Sizeof(uintptr(0))))
- a := []uintptr{argv}
- p := argv
- for _, v := range os.Args {
- s := crt.Xcalloc(tls, crt.Size_t(len(v)+1), 1)
- a = append(a, s)
- copy((*(*[1 << 20]byte)(unsafe.Pointer(s)))[:], v)
- *(*uintptr)(unsafe.Pointer(p)) = s
- p += unsafe.Sizeof(uintptr(0))
- }
- crt.SetEnviron(os.Environ())
- rc := main(tls, int32(len(os.Args)), argv)
- for _, p := range a {
- crt.Xfree(tls, p)
- }
- crt.Xexit(tls, rc)
-}
diff --git a/internal/testfixture/testfixture_linux_amd64.go b/internal/testfixture/testfixture_linux_amd64.go
index 51bac67..f27e64b 100644
--- a/internal/testfixture/testfixture_linux_amd64.go
+++ b/internal/testfixture/testfixture_linux_amd64.go
@@ -1,14 +1,14 @@
-// Code generated by 'ccgo -DSQLITE_OMIT_LOAD_EXTENSION -DTCLSH_INIT_PROC=sqlite3TestInit -I/usr/include/tcl8.6 -ccgo-export-defines -ccgo-export-fields F -ccgo-pkgname testfixture -l modernc.org/tcl/lib,modernc.org/sqlite/internal/crt2,modernc.org/sqlite/lib -o internal/testfixture/testfixture_linux_amd64.go testdata/sqlite-src-3320300/ext/expert/sqlite3expert.c testdata/sqlite-src-3320300/ext/expert/test_expert.c testdata/sqlite-src-3320300/ext/fts5/fts5_tcl.c testdata/sqlite-src-3320300/ext/misc/amatch.c testdata/sqlite-src-3320300/ext/misc/carray.c testdata/sqlite-src-3320300/ext/misc/closure.c testdata/sqlite-src-3320300/ext/misc/csv.c testdata/sqlite-src-3320300/ext/misc/eval.c testdata/sqlite-src-3320300/ext/misc/explain.c testdata/sqlite-src-3320300/ext/misc/fileio.c testdata/sqlite-src-3320300/ext/misc/fuzzer.c testdata/sqlite-src-3320300/ext/misc/ieee754.c testdata/sqlite-src-3320300/ext/misc/mmapwarm.c testdata/sqlite-src-3320300/ext/misc/nextchar.c testdata/sqlite-src-3320300/ext/misc/normalize.c testdata/sqlite-src-3320300/ext/misc/percentile.c testdata/sqlite-src-3320300/ext/misc/prefixes.c testdata/sqlite-src-3320300/ext/misc/regexp.c testdata/sqlite-src-3320300/ext/misc/remember.c testdata/sqlite-src-3320300/ext/misc/series.c testdata/sqlite-src-3320300/ext/misc/spellfix.c testdata/sqlite-src-3320300/ext/misc/totype.c testdata/sqlite-src-3320300/ext/misc/unionvtab.c testdata/sqlite-src-3320300/ext/misc/wholenumber.c testdata/sqlite-src-3320300/ext/misc/zipfile.c testdata/sqlite-src-3320300/ext/rbu/sqlite3rbu.c testdata/sqlite-src-3320300/ext/rbu/test_rbu.c testdata/sqlite-src-3320300/src/tclsqlite.c testdata/sqlite-src-3320300/src/test1.c testdata/sqlite-src-3320300/src/test2.c testdata/sqlite-src-3320300/src/test3.c testdata/sqlite-src-3320300/src/test4.c testdata/sqlite-src-3320300/src/test5.c testdata/sqlite-src-3320300/src/test6.c testdata/sqlite-src-3320300/src/test7.c testdata/sqlite-src-3320300/src/test8.c testdata/sqlite-src-3320300/src/test9.c testdata/sqlite-src-3320300/src/test_async.c testdata/sqlite-src-3320300/src/test_autoext.c testdata/sqlite-src-3320300/src/test_backup.c testdata/sqlite-src-3320300/src/test_bestindex.c testdata/sqlite-src-3320300/src/test_blob.c testdata/sqlite-src-3320300/src/test_btree.c testdata/sqlite-src-3320300/src/test_config.c testdata/sqlite-src-3320300/src/test_delete.c testdata/sqlite-src-3320300/src/test_demovfs.c testdata/sqlite-src-3320300/src/test_devsym.c testdata/sqlite-src-3320300/src/test_fs.c testdata/sqlite-src-3320300/src/test_func.c testdata/sqlite-src-3320300/src/test_hexio.c testdata/sqlite-src-3320300/src/test_init.c testdata/sqlite-src-3320300/src/test_intarray.c testdata/sqlite-src-3320300/src/test_journal.c testdata/sqlite-src-3320300/src/test_malloc.c testdata/sqlite-src-3320300/src/test_md5.c testdata/sqlite-src-3320300/src/test_multiplex.c testdata/sqlite-src-3320300/src/test_mutex.c testdata/sqlite-src-3320300/src/test_onefile.c testdata/sqlite-src-3320300/src/test_osinst.c testdata/sqlite-src-3320300/src/test_pcache.c testdata/sqlite-src-3320300/src/test_quota.c testdata/sqlite-src-3320300/src/test_rtree.c testdata/sqlite-src-3320300/src/test_schema.c testdata/sqlite-src-3320300/src/test_server.c testdata/sqlite-src-3320300/src/test_superlock.c testdata/sqlite-src-3320300/src/test_syscall.c testdata/sqlite-src-3320300/src/test_tclsh.c testdata/sqlite-src-3320300/src/test_tclvar.c testdata/sqlite-src-3320300/src/test_thread.c testdata/sqlite-src-3320300/src/test_vdbecov.c testdata/sqlite-src-3320300/src/test_vfs.c testdata/sqlite-src-3320300/src/test_window.c -Itestdata/sqlite-amalgamation-3320300 -Itestdata/sqlite-src-3320300 -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DNDEBUG -DSQLITE_CORE -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 -DSQLITE_DQS=0 -DSQLITE_ENABLE_BYTECODE_VTAB -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MAX_EXPR_DEPTH=0 -DSQLITE_MAX_MMAP_SIZE=8589934592 -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_NO_SYNC=1 -DSQLITE_OS_UNIX=1 -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 -DSQLITE_SERVER=1 -DSQLITE_TEMP_STORE=1 -DSQLITE_TEST -DSQLITE_THREADSAFE=1 -ccgo-long-double-is-double', DO NOT EDIT.
+// Code generated by 'ccgo -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 -DSQLITE_SERVER=1 -DTCLSH_INIT_PROC=sqlite3TestInit -D_HAVE_SQLITE_CONFIG_H -I/usr/include/tcl8.6 -ccgo-export-defines "" -ccgo-export-fields F -lmodernc.org/tcl/lib,modernc.org/sqlite/internal/libc2,modernc.org/sqlite/lib -o internal/testfixture/testfixture_linux_amd64.go -Itestdata/sqlite-src-3330000/ext/async -Itestdata/sqlite-src-3330000/ext/fts3 -Itestdata/sqlite-src-3330000/ext/icu -Itestdata/sqlite-src-3330000/ext/rtree -Itestdata/sqlite-src-3330000/ext/session -Itestdata/sqlite-src-3330000/ext/userauth -Itestdata/sqlite-src-3330000/src -Itestdata/sqlite-amalgamation-3330000 -Itestdata/sqlite-src-3330000 testdata/sqlite-src-3330000/ext/expert/sqlite3expert.c testdata/sqlite-src-3330000/ext/expert/test_expert.c testdata/sqlite-src-3330000/ext/fts3/fts3_term.c testdata/sqlite-src-3330000/ext/fts3/fts3_test.c testdata/sqlite-src-3330000/ext/fts5/fts5_tcl.c testdata/sqlite-src-3330000/ext/fts5/fts5_test_mi.c testdata/sqlite-src-3330000/ext/fts5/fts5_test_tok.c testdata/sqlite-src-3330000/ext/misc/amatch.c testdata/sqlite-src-3330000/ext/misc/carray.c testdata/sqlite-src-3330000/ext/misc/closure.c testdata/sqlite-src-3330000/ext/misc/csv.c testdata/sqlite-src-3330000/ext/misc/decimal.c testdata/sqlite-src-3330000/ext/misc/eval.c testdata/sqlite-src-3330000/ext/misc/explain.c testdata/sqlite-src-3330000/ext/misc/fileio.c testdata/sqlite-src-3330000/ext/misc/fuzzer.c testdata/sqlite-src-3330000/ext/misc/ieee754.c testdata/sqlite-src-3330000/ext/misc/mmapwarm.c testdata/sqlite-src-3330000/ext/misc/nextchar.c testdata/sqlite-src-3330000/ext/misc/normalize.c testdata/sqlite-src-3330000/ext/misc/percentile.c testdata/sqlite-src-3330000/ext/misc/prefixes.c testdata/sqlite-src-3330000/ext/misc/regexp.c testdata/sqlite-src-3330000/ext/misc/remember.c testdata/sqlite-src-3330000/ext/misc/series.c testdata/sqlite-src-3330000/ext/misc/spellfix.c testdata/sqlite-src-3330000/ext/misc/totype.c testdata/sqlite-src-3330000/ext/misc/unionvtab.c testdata/sqlite-src-3330000/ext/misc/wholenumber.c testdata/sqlite-src-3330000/ext/misc/zipfile.c testdata/sqlite-src-3330000/ext/rbu/test_rbu.c testdata/sqlite-src-3330000/ext/userauth/userauth.c testdata/sqlite-src-3330000/src/tclsqlite.c testdata/sqlite-src-3330000/src/test1.c testdata/sqlite-src-3330000/src/test2.c testdata/sqlite-src-3330000/src/test3.c testdata/sqlite-src-3330000/src/test4.c testdata/sqlite-src-3330000/src/test5.c testdata/sqlite-src-3330000/src/test6.c testdata/sqlite-src-3330000/src/test7.c testdata/sqlite-src-3330000/src/test8.c testdata/sqlite-src-3330000/src/test9.c testdata/sqlite-src-3330000/src/test_async.c testdata/sqlite-src-3330000/src/test_autoext.c testdata/sqlite-src-3330000/src/test_backup.c testdata/sqlite-src-3330000/src/test_bestindex.c testdata/sqlite-src-3330000/src/test_blob.c testdata/sqlite-src-3330000/src/test_btree.c testdata/sqlite-src-3330000/src/test_config.c testdata/sqlite-src-3330000/src/test_delete.c testdata/sqlite-src-3330000/src/test_demovfs.c testdata/sqlite-src-3330000/src/test_devsym.c testdata/sqlite-src-3330000/src/test_fs.c testdata/sqlite-src-3330000/src/test_func.c testdata/sqlite-src-3330000/src/test_hexio.c testdata/sqlite-src-3330000/src/test_init.c testdata/sqlite-src-3330000/src/test_intarray.c testdata/sqlite-src-3330000/src/test_journal.c testdata/sqlite-src-3330000/src/test_malloc.c testdata/sqlite-src-3330000/src/test_md5.c testdata/sqlite-src-3330000/src/test_multiplex.c testdata/sqlite-src-3330000/src/test_mutex.c testdata/sqlite-src-3330000/src/test_onefile.c testdata/sqlite-src-3330000/src/test_osinst.c testdata/sqlite-src-3330000/src/test_pcache.c testdata/sqlite-src-3330000/src/test_quota.c testdata/sqlite-src-3330000/src/test_rtree.c testdata/sqlite-src-3330000/src/test_schema.c testdata/sqlite-src-3330000/src/test_server.c testdata/sqlite-src-3330000/src/test_superlock.c testdata/sqlite-src-3330000/src/test_syscall.c testdata/sqlite-src-3330000/src/test_tclsh.c testdata/sqlite-src-3330000/src/test_tclvar.c testdata/sqlite-src-3330000/src/test_thread.c testdata/sqlite-src-3330000/src/test_vdbecov.c testdata/sqlite-src-3330000/src/test_vfs.c testdata/sqlite-src-3330000/src/test_windirent.c testdata/sqlite-src-3330000/src/test_window.c testdata/sqlite-src-3330000/src/test_wsd.c -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_PAGE_SIZE=1024 -DSQLITE_ENABLE_BYTECODE_VTAB -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_DBPAGE_VTAB -DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_DESERIALIZE -DSQLITE_ENABLE_EXPLAIN_COMMENTS -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_OFFSET_SQL_FUNC -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_RBU -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_STMTVTAB -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_HAVE_ZLIB=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_OS_UNIX=1 -DSQLITE_SOUNDEX -DSQLITE_TEMP_STORE=1 -DSQLITE_TEST -DSQLITE_THREADSAFE=1 -ccgo-long-double-is-double', DO NOT EDIT.
-package testfixture
+package main
import (
"math"
"reflect"
"unsafe"
- "modernc.org/crt/v3"
- "modernc.org/sqlite/internal/crt2"
+ "modernc.org/libc"
+ "modernc.org/sqlite/internal/libc2"
"modernc.org/sqlite/lib"
"modernc.org/tcl/lib"
)
@@ -17,6 +17,8 @@ var _ = math.Pi
var _ reflect.Kind
var _ unsafe.Pointer
+func main() { libc.Start(main1) }
+
const (
BUFSIZ = 8192
EOF = -1
@@ -168,7 +170,6 @@ const (
SQLITE_DBSTATUS_STMT_USED = 3
SQLITE_DEFAULT_MEMSTATUS = 0
SQLITE_DEFAULT_PAGE_SIZE = 1024
- SQLITE_DEFAULT_WAL_SYNCHRONOUS = 1
SQLITE_DELETE = 9
SQLITE_DENY = 1
SQLITE_DEPRECATED = 0
@@ -179,7 +180,6 @@ const (
SQLITE_DETERMINISTIC = 0x000000800
SQLITE_DIRECTONLY = 0x000080000
SQLITE_DONE = 101
- SQLITE_DQS = 0
SQLITE_DROP_INDEX = 10
SQLITE_DROP_TABLE = 11
SQLITE_DROP_TEMP_INDEX = 12
@@ -191,8 +191,21 @@ const (
SQLITE_DROP_VTABLE = 30
SQLITE_EMPTY = 16
SQLITE_ENABLE_BYTECODE_VTAB = 1
+ SQLITE_ENABLE_COLUMN_METADATA = 1
SQLITE_ENABLE_DBPAGE_VTAB = 1
+ SQLITE_ENABLE_DBSTAT_VTAB = 1
SQLITE_ENABLE_DESERIALIZE = 1
+ SQLITE_ENABLE_EXPLAIN_COMMENTS = 1
+ SQLITE_ENABLE_FTS5 = 1
+ SQLITE_ENABLE_GEOPOLY = 1
+ SQLITE_ENABLE_JSON1 = 1
+ SQLITE_ENABLE_MEMORY_MANAGEMENT = 1
+ SQLITE_ENABLE_OFFSET_SQL_FUNC = 1
+ SQLITE_ENABLE_PREUPDATE_HOOK = 1
+ SQLITE_ENABLE_RBU = 1
+ SQLITE_ENABLE_RTREE = 1
+ SQLITE_ENABLE_SNAPSHOT = 1
+ SQLITE_ENABLE_STAT4 = 1
SQLITE_ENABLE_STMTVTAB = 1
SQLITE_ENABLE_UNLOCK_NOTIFY = 1
SQLITE_ERROR = 1
@@ -337,8 +350,6 @@ const (
SQLITE_LOCK_PENDING = 3
SQLITE_LOCK_RESERVED = 2
SQLITE_LOCK_SHARED = 1
- SQLITE_MAX_EXPR_DEPTH = 0
- SQLITE_MAX_MMAP_SIZE = 8589934592
SQLITE_MISMATCH = 20
SQLITE_MISUSE = 21
SQLITE_MUTEX_APPDEF = 1
@@ -350,6 +361,7 @@ const (
SQLITE_MUTEX_STATIC_APP3 = 10
SQLITE_MUTEX_STATIC_LRU = 6
SQLITE_MUTEX_STATIC_LRU2 = 7
+ SQLITE_MUTEX_STATIC_MAIN = 2
SQLITE_MUTEX_STATIC_MASTER = 2
SQLITE_MUTEX_STATIC_MEM = 3
SQLITE_MUTEX_STATIC_MEM2 = 4
@@ -366,7 +378,6 @@ const (
SQLITE_NOTICE = 27
SQLITE_NOTICE_RECOVER_ROLLBACK = 539
SQLITE_NOTICE_RECOVER_WAL = 283
- SQLITE_NO_SYNC = 1
SQLITE_NULL = 5
SQLITE_OK = 0
SQLITE_OK_LOAD_PERMANENTLY = 256
@@ -388,6 +399,7 @@ const (
SQLITE_OPEN_READWRITE = 0x00000002
SQLITE_OPEN_SHAREDCACHE = 0x00020000
SQLITE_OPEN_SUBJOURNAL = 0x00002000
+ SQLITE_OPEN_SUPER_JOURNAL = 0x00004000
SQLITE_OPEN_TEMP_DB = 0x00000200
SQLITE_OPEN_TEMP_JOURNAL = 0x00001000
SQLITE_OPEN_TRANSIENT_DB = 0x00000400
@@ -432,7 +444,8 @@ const (
SQLITE_SHM_NLOCK = 8
SQLITE_SHM_SHARED = 4
SQLITE_SHM_UNLOCK = 1
- SQLITE_SOURCE_ID = "2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd"
+ SQLITE_SOUNDEX = 1
+ SQLITE_SOURCE_ID = "2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f"
SQLITE_STATUS_MALLOC_COUNT = 9
SQLITE_STATUS_MALLOC_SIZE = 5
SQLITE_STATUS_MEMORY_USED = 0
@@ -501,8 +514,8 @@ const (
SQLITE_UTF16LE = 2
SQLITE_UTF16_ALIGNED = 8
SQLITE_UTF8 = 1
- SQLITE_VERSION = "3.32.3"
- SQLITE_VERSION_NUMBER = 3032003
+ SQLITE_VERSION = "3.33.0"
+ SQLITE_VERSION_NUMBER = 3033000
SQLITE_VTAB_CONSTRAINT_SUPPORT = 1
SQLITE_VTAB_DIRECTONLY = 3
SQLITE_VTAB_INNOCUOUS = 2
@@ -526,6 +539,7 @@ const (
X_FEATURES_H = 1
X_FTS5_H = 0
X_GCC_SIZE_T = 0
+ X_HAVE_SQLITE_CONFIG_H = 1
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
@@ -801,8 +815,8 @@ const (
TTY_NAME_MAX = 32
UCHAR_MAX = 255
UINT_MAX = 4294967295
- ULLONG_MAX = -1
- ULONG_MAX = -1
+ ULLONG_MAX = 18446744073709551615
+ ULONG_MAX = 18446744073709551615
USHRT_MAX = 65535
XATTR_LIST_MAX = 65536
XATTR_NAME_MAX = 255
@@ -860,6 +874,8 @@ const (
X_TCL = 0
X_TCLDECLS = 0
X_TCLPLATDECLS = 0
+ X_FTSINT_H = 0
+ FTS3_TOK_SCHEMA = "CREATE TABLE x(input HIDDEN, token, start, end, position)"
AMATCH_COL_COMMAND = 3
AMATCH_COL_DISTANCE = 1
AMATCH_COL_LANGUAGE = 2
@@ -1374,6 +1390,7 @@ const (
TK_STAR = 3
TK_STRING = 2
TK_VARIABLE = 2
+ Deliberate_fall_through = 0
RE_EOF = 0
RE_OP_ACCEPT = 6
RE_OP_ANY = 2
@@ -1516,6 +1533,12 @@ const (
X_T_PTRDIFF = 0
X_T_PTRDIFF_ = 0
Z_const = 0
+ SQLITE_RBU_STATE_CHECKPOINT = 3
+ SQLITE_RBU_STATE_DONE = 4
+ SQLITE_RBU_STATE_ERROR = 5
+ SQLITE_RBU_STATE_MOVE = 2
+ SQLITE_RBU_STATE_OAL = 1
+ X_SQLITE3RBU_H = 0
FP_XSTATE_MAGIC1 = 0x46505853
FP_XSTATE_MAGIC2 = 0x46505845
MAX_PREPARED_STMTS = 100
@@ -1588,7 +1611,8 @@ const (
X_NSIG = 65
X_SIGNAL_H = 0
X_SYS_UCONTEXT_H = 1
- AggInfoMagic = 0x2059e99e
+ ALT_SCHEMA_TABLE = "sqlite_schema"
+ ALT_TEMP_SCHEMA_TABLE = "sqlite_temp_schema"
BTREE_APPEND = 0x08
BTREE_APPLICATION_ID = 8
BTREE_AUTOVACUUM_FULL = 1
@@ -1631,7 +1655,7 @@ const (
COLNAME_COLUMN = 4
COLNAME_DATABASE = 2
COLNAME_DECLTYPE = 1
- COLNAME_N = 2
+ COLNAME_N = 5
COLNAME_NAME = 0
COLNAME_TABLE = 3
CURTYPE_BTREE = 0
@@ -1648,6 +1672,8 @@ const (
DB_ResetWanted = 0x0008
DB_SchemaLoaded = 0x0001
DB_UnresetViews = 0x0002
+ DFLT_SCHEMA_TABLE = "sqlite_master"
+ DFLT_TEMP_SCHEMA_TABLE = "sqlite_temp_master"
ENAME_NAME = 0
ENAME_SPAN = 1
ENAME_TAB = 2
@@ -1687,9 +1713,41 @@ const (
EXCLUSIVE_LOCK = 4
EXPRDUP_REDUCE = 0x0001
GCC_VERSION = 0
+ HAVE_DLFCN_H = 1
HAVE_FCHOWN = 1
+ HAVE_FDATASYNC = 1
+ HAVE_GMTIME_R = 1
+ HAVE_INT16_T = 1
+ HAVE_INT32_T = 1
+ HAVE_INT64_T = 1
+ HAVE_INT8_T = 1
+ HAVE_INTPTR_T = 1
+ HAVE_INTTYPES_H = 1
+ HAVE_ISNAN = 1
+ HAVE_LOCALTIME_R = 1
HAVE_LSTAT = 1
+ HAVE_MALLOC_H = 1
+ HAVE_MALLOC_USABLE_SIZE = 1
+ HAVE_MEMORY_H = 1
+ HAVE_PREAD = 1
+ HAVE_PREAD64 = 1
+ HAVE_PWRITE = 1
+ HAVE_PWRITE64 = 1
HAVE_READLINK = 1
+ HAVE_STDINT_H = 1
+ HAVE_STDLIB_H = 1
+ HAVE_STRCHRNUL = 1
+ HAVE_STRINGS_H = 1
+ HAVE_STRING_H = 1
+ HAVE_SYS_STAT_H = 1
+ HAVE_SYS_TYPES_H = 1
+ HAVE_UINT16_T = 1
+ HAVE_UINT32_T = 1
+ HAVE_UINT64_T = 1
+ HAVE_UINT8_T = 1
+ HAVE_UINTPTR_T = 1
+ HAVE_UNISTD_H = 1
+ HAVE_UTIME = 1
INITFLAG_AlterTable = 0x0001
INLINEFUNC_affinity = 4
INLINEFUNC_coalesce = 0
@@ -1698,6 +1756,34 @@ const (
INLINEFUNC_iif = 5
INLINEFUNC_implies_nonnull_row = 1
INLINEFUNC_unlikely = 99
+ INT16_MAX = 32767
+ INT16_MIN = -32768
+ INT32_MAX = 2147483647
+ INT32_MIN = -2147483648
+ INT64_MAX = 9223372036854775807
+ INT64_MIN = -9223372036854775808
+ INT8_MAX = 127
+ INT8_MIN = -128
+ INTMAX_MAX = 9223372036854775807
+ INTMAX_MIN = -9223372036854775808
+ INTPTR_MAX = 9223372036854775807
+ INTPTR_MIN = -9223372036854775808
+ INT_FAST16_MAX = 9223372036854775807
+ INT_FAST16_MIN = -9223372036854775808
+ INT_FAST32_MAX = 9223372036854775807
+ INT_FAST32_MIN = -9223372036854775808
+ INT_FAST64_MAX = 9223372036854775807
+ INT_FAST64_MIN = -9223372036854775808
+ INT_FAST8_MAX = 127
+ INT_FAST8_MIN = -128
+ INT_LEAST16_MAX = 32767
+ INT_LEAST16_MIN = -32768
+ INT_LEAST32_MAX = 2147483647
+ INT_LEAST32_MIN = -2147483648
+ INT_LEAST64_MAX = 9223372036854775807
+ INT_LEAST64_MIN = -9223372036854775808
+ INT_LEAST8_MAX = 127
+ INT_LEAST8_MIN = -128
IN_INDEX_EPH = 2
IN_INDEX_INDEX_ASC = 3
IN_INDEX_INDEX_DESC = 4
@@ -1706,7 +1792,6 @@ const (
IN_INDEX_NOOP = 5
IN_INDEX_NOOP_OK = 0x0001
IN_INDEX_ROWID = 1
- IOV_MAX = 1024
JT_CROSS = 0x0002
JT_ERROR = 0x0040
JT_INNER = 0x0001
@@ -1718,14 +1803,12 @@ const (
KEYINFO_ORDER_DESC = 0x01
LOCATE_NOERR = 0x02
LOCATE_VIEW = 0x01
- LONG_BIT = 64
LOOKASIDE_SMALL = 128
- MASTER_NAME = "sqlite_master"
- MASTER_ROOT = 1
+ LT_OBJDIR = ".libs/"
MEMTYPE_HEAP = 0x01
MEMTYPE_LOOKASIDE = 0x02
MEMTYPE_PCACHE = 0x04
- MEM_AffMask = 0x003
+ MEM_AffMask = 0x003f
MEM_Agg = 0x2000
MEM_Blob = 0x0010
MEM_Cleared = 0x0100
@@ -1740,7 +1823,7 @@ const (
MEM_Str = 0x0002
MEM_Subtype = 0x8000
MEM_Term = 0x0200
- MEM_TypeMask = 0xc1b
+ MEM_TypeMask = 0xc1bf
MEM_Undefined = 0x0080
MEM_Zero = 0x4000
MSVC_VERSION = 0
@@ -1762,14 +1845,7 @@ const (
NC_UEList = 0x00080
NC_UUpsert = 0x00200
NC_VarSelect = 0x00040
- NL_ARGMAX = 4096
- NL_LANGMAX = 2048
- NL_MSGMAX = 2147483647
- NL_NMAX = 2147483647
- NL_SETMAX = 2147483647
- NL_TEXTMAX = 2147483647
NO_LOCK = 0
- NZERO = 20
OE_Abort = 2
OE_Cascade = 10
OE_Default = 11
@@ -2011,6 +2087,10 @@ const (
P5_ConstraintFK = 4
P5_ConstraintNotNull = 1
P5_ConstraintUnique = 2
+ PACKAGE_BUGREPORT = ""
+ PACKAGE_NAME = "sqlite"
+ PACKAGE_STRING = "sqlite 3.33.0"
+ PACKAGE_TARNAME = "sqlite"
PAGER_CACHESPILL = 0x20
PAGER_CKPT_FULLFSYNC = 0x10
PAGER_FLAGS_MASK = 0x38
@@ -2048,14 +2128,94 @@ const (
PGHDR_WRITEABLE = 0x004
PRIO_MAX = 20
PRIO_MIN = -20
+ PRIX16 = "X"
+ PRIX32 = "X"
+ PRIX8 = "X"
+ PRIXFAST8 = "X"
+ PRIXLEAST16 = "X"
+ PRIXLEAST32 = "X"
+ PRIXLEAST8 = "X"
+ PRId16 = "d"
+ PRId32 = "d"
+ PRId8 = "d"
+ PRIdFAST8 = "d"
+ PRIdLEAST16 = "d"
+ PRIdLEAST32 = "d"
+ PRIdLEAST8 = "d"
+ PRIi16 = "i"
+ PRIi32 = "i"
+ PRIi8 = "i"
+ PRIiFAST8 = "i"
+ PRIiLEAST16 = "i"
+ PRIiLEAST32 = "i"
+ PRIiLEAST8 = "i"
+ PRIo16 = "o"
+ PRIo32 = "o"
+ PRIo8 = "o"
+ PRIoFAST8 = "o"
+ PRIoLEAST16 = "o"
+ PRIoLEAST32 = "o"
+ PRIoLEAST8 = "o"
+ PRIu16 = "u"
+ PRIu32 = "u"
+ PRIu8 = "u"
+ PRIuFAST8 = "u"
+ PRIuLEAST16 = "u"
+ PRIuLEAST32 = "u"
+ PRIuLEAST8 = "u"
+ PRIx16 = "x"
+ PRIx32 = "x"
+ PRIx8 = "x"
+ PRIxFAST8 = "x"
+ PRIxLEAST16 = "x"
+ PRIxLEAST32 = "x"
+ PRIxLEAST8 = "x"
+ PTRDIFF_MAX = 9223372036854775807
+ PTRDIFF_MIN = -9223372036854775808
RESERVED_LOCK = 2
- RLIM64_INFINITY = -1
- RLIM_INFINITY = -1
- RLIM_SAVED_CUR = -1
- RLIM_SAVED_MAX = -1
+ RLIM64_INFINITY = 0xffffffffffffffff
+ RLIM_INFINITY = 0xffffffffffffffff
+ RLIM_SAVED_CUR = 18446744073709551615
+ RLIM_SAVED_MAX = 18446744073709551615
SAVEPOINT_BEGIN = 0
SAVEPOINT_RELEASE = 1
SAVEPOINT_ROLLBACK = 2
+ SCHEMA_ROOT = 1
+ SCNd16 = "hd"
+ SCNd32 = "d"
+ SCNd8 = "hhd"
+ SCNdFAST8 = "hhd"
+ SCNdLEAST16 = "hd"
+ SCNdLEAST32 = "d"
+ SCNdLEAST8 = "hhd"
+ SCNi16 = "hi"
+ SCNi32 = "i"
+ SCNi8 = "hhi"
+ SCNiFAST8 = "hhi"
+ SCNiLEAST16 = "hi"
+ SCNiLEAST32 = "i"
+ SCNiLEAST8 = "hhi"
+ SCNo16 = "ho"
+ SCNo32 = "o"
+ SCNo8 = "hho"
+ SCNoFAST8 = "hho"
+ SCNoLEAST16 = "ho"
+ SCNoLEAST32 = "o"
+ SCNoLEAST8 = "hho"
+ SCNu16 = "hu"
+ SCNu32 = "u"
+ SCNu8 = "hhu"
+ SCNuFAST8 = "hhu"
+ SCNuLEAST16 = "hu"
+ SCNuLEAST32 = "u"
+ SCNuLEAST8 = "hhu"
+ SCNx16 = "hx"
+ SCNx32 = "x"
+ SCNx8 = "hhx"
+ SCNxFAST8 = "hhx"
+ SCNxLEAST16 = "hx"
+ SCNxLEAST32 = "x"
+ SCNxLEAST8 = "hhx"
SELECTTRACE_ENABLED = 0
SF_Aggregate = 0x0000008
SF_All = 0x0000002
@@ -2075,6 +2235,7 @@ const (
SF_NoopOrderBy = 0x0400000
SF_Recursive = 0x0002000
SF_Resolved = 0x0000004
+ SF_UpdateFrom = 0x0800000
SF_UsesEphemeral = 0x0000020
SF_Values = 0x0000200
SF_View = 0x0200000
@@ -2082,6 +2243,10 @@ const (
SF_WinRewrite = 0x0100000
SHARED_LOCK = 1
SHARED_SIZE = 510
+ SIG_ATOMIC_MAX = 2147483647
+ SIG_ATOMIC_MIN = -2147483648
+ SIZE_MAX = 18446744073709551615
+ SQLITECONFIG_H = 1
SQLITEINT_H = 0
SQLITE_AFF_BLOB = 0x41
SQLITE_AFF_INTEGER = 0x44
@@ -2091,7 +2256,7 @@ const (
SQLITE_AFF_REAL = 0x45
SQLITE_AFF_TEXT = 0x42
SQLITE_ASCII = 1
- SQLITE_AllOpts = 65535
+ SQLITE_AllOpts = 0xffff
SQLITE_AutoIndex = 0x00008000
SQLITE_BIGENDIAN = 0
SQLITE_BIG_DBL = 0
@@ -2111,9 +2276,10 @@ const (
SQLITE_DEFAULT_PCACHE_INITSZ = 20
SQLITE_DEFAULT_RECURSIVE_TRIGGERS = 0
SQLITE_DEFAULT_SECTOR_SIZE = 4096
- SQLITE_DEFAULT_SORTERREF_SIZE = 0x7
+ SQLITE_DEFAULT_SORTERREF_SIZE = 0x7fffffff
SQLITE_DEFAULT_SYNCHRONOUS = 2
SQLITE_DEFAULT_WAL_AUTOCHECKPOINT = 1000
+ SQLITE_DEFAULT_WAL_SYNCHRONOUS = 2
SQLITE_DEFAULT_WORKER_THREADS = 0
SQLITE_Defensive = 0x10000000
SQLITE_DeferFKs = 0x00080000
@@ -2179,16 +2345,18 @@ const (
SQLITE_MAGIC_ERROR = 0xb5357930
SQLITE_MAGIC_OPEN = 0xa029a697
SQLITE_MAGIC_SICK = 0x4b771290
- SQLITE_MAGIC_ZOMBIE = 0x64cffc7
+ SQLITE_MAGIC_ZOMBIE = 0x64cffc7f
SQLITE_MALLOC_SOFT_LIMIT = 1024
SQLITE_MAX_ATTACHED = 10
SQLITE_MAX_COLUMN = 2000
SQLITE_MAX_COMPOUND_SELECT = 500
SQLITE_MAX_DEFAULT_PAGE_SIZE = 8192
+ SQLITE_MAX_EXPR_DEPTH = 1000
SQLITE_MAX_FILE_FORMAT = 4
SQLITE_MAX_FUNCTION_ARG = 127
SQLITE_MAX_LENGTH = 1000000000
SQLITE_MAX_LIKE_PATTERN_LENGTH = 50000
+ SQLITE_MAX_MMAP_SIZE = 0x7fff0000
SQLITE_MAX_PAGE_COUNT = 1073741823
SQLITE_MAX_PAGE_SIZE = 65536
SQLITE_MAX_SCHEMA_RETRY = 50
@@ -2215,7 +2383,7 @@ const (
SQLITE_OrderByIdxJoin = 0x0040
SQLITE_PAGER_H = 0
SQLITE_POWERSAFE_OVERWRITE = 1
- SQLITE_PREPARE_MASK = 0x0
+ SQLITE_PREPARE_MASK = 0x0f
SQLITE_PREPARE_SAVESQL = 0x80
SQLITE_PRINTF_INTERNAL = 0x01
SQLITE_PRINTF_MALLOCED = 0x04
@@ -2242,7 +2410,7 @@ const (
SQLITE_TOKEN_KEYWORD = 0x2
SQLITE_TOKEN_QUOTED = 0x1
SQLITE_TRACE_LEGACY = 0x40
- SQLITE_TRACE_NONLEGACY_MASK = 0x0
+ SQLITE_TRACE_NONLEGACY_MASK = 0x0f
SQLITE_TRACE_XPROFILE = 0x80
SQLITE_Transitive = 0x0080
SQLITE_TriggerEQP = 0x01000000
@@ -2270,7 +2438,8 @@ const (
SRT_Set = 11
SRT_Table = 14
SRT_Union = 1
- TEMP_MASTER_NAME = "sqlite_temp_master"
+ SRT_Upfrom = 15
+ STDC_HEADERS = 1
TF_Autoincrement = 0x0008
TF_Ephemeral = 0x0002
TF_HasGenerated = 0x0060
@@ -2437,12 +2606,28 @@ const (
TK_WITHOUT = 25
TRIGGER_AFTER = 2
TRIGGER_BEFORE = 1
+ UINT16_MAX = 65535
+ UINT32_MAX = 4294967295
+ UINT64_MAX = 18446744073709551615
+ UINT8_MAX = 255
+ UINTMAX_MAX = 18446744073709551615
+ UINTPTR_MAX = 18446744073709551615
+ UINT_FAST16_MAX = 18446744073709551615
+ UINT_FAST32_MAX = 18446744073709551615
+ UINT_FAST64_MAX = 18446744073709551615
+ UINT_FAST8_MAX = 255
+ UINT_LEAST16_MAX = 65535
+ UINT_LEAST32_MAX = 4294967295
+ UINT_LEAST64_MAX = 18446744073709551615
+ UINT_LEAST8_MAX = 255
VDBE_DISPLAY_P4 = 1
VDBE_MAGIC_DEAD = 0x5606c3c8
VDBE_MAGIC_HALT = 0x319c2973
VDBE_MAGIC_INIT = 0x16bceaa5
VDBE_MAGIC_RESET = 0x48fa9f76
VDBE_MAGIC_RUN = 0x2df20da3
+ WCHAR_MAX = 2147483647
+ WCHAR_MIN = -2147483648
WHERE_DISTINCTBY = 0x0080
WHERE_DISTINCT_NOOP = 0
WHERE_DISTINCT_ORDERED = 2
@@ -2462,19 +2647,23 @@ const (
WHERE_SORTBYGROUP = 0x0200
WHERE_USE_LIMIT = 0x4000
WHERE_WANT_DISTINCT = 0x0100
- WORD_BIT = 32
+ WINT_MAX = 4294967295
+ WINT_MIN = 0
WRC_Abort = 2
WRC_Continue = 0
WRC_Prune = 1
XN_EXPR = -2
XN_ROWID = -1
- X_BITS_UIO_LIM_H = 1
+ X_BITS_STDINT_UINTN_H = 1
+ X_BITS_WCHAR_H = 1
X_FILE_OFFSET_BITS = 64
+ X_GCC_WRAP_STDINT_H = 0
+ X_INTTYPES_H = 1
X_LARGEFILE_SOURCE = 1
X_LARGE_FILE = 1
X_SQLITE_OS_H_ = 0
+ X_STDINT_H = 1
X_SYS_RESOURCE_H = 1
- X_XOPEN_LIM_H = 1
X_XOPEN_SOURCE = 600
BTCF_AtLast = 0x08
BTCF_Incrblob = 0x10
@@ -2608,9 +2797,46 @@ const (
MSG_Prepare = 2
MSG_Reset = 4
MSG_Step = 3
+ MADV_DODUMP = 17
+ MADV_DOFORK = 11
+ MADV_DONTDUMP = 16
+ MADV_DONTFORK = 10
+ MADV_DONTNEED = 4
+ MADV_FREE = 8
+ MADV_HUGEPAGE = 14
+ MADV_HWPOISON = 100
+ MADV_KEEPONFORK = 19
+ MADV_MERGEABLE = 12
+ MADV_NOHUGEPAGE = 15
+ MADV_NORMAL = 0
+ MADV_RANDOM = 1
+ MADV_REMOVE = 9
+ MADV_SEQUENTIAL = 2
+ MADV_UNMERGEABLE = 13
+ MADV_WILLNEED = 3
+ MADV_WIPEONFORK = 18
+ MAP_32BIT = 0x40
+ MAP_ANON = 32
+ MAP_ANONYMOUS = 0x20
+ MAP_DENYWRITE = 0x00800
+ MAP_EXECUTABLE = 0x01000
+ MAP_FILE = 0
MAP_FIXED = 0x10
+ MAP_FIXED_NOREPLACE = 0x100000
+ MAP_GROWSDOWN = 0x00100
+ MAP_HUGETLB = 0x40000
+ MAP_HUGE_MASK = 0x3f
+ MAP_HUGE_SHIFT = 26
+ MAP_LOCKED = 0x02000
+ MAP_NONBLOCK = 0x10000
+ MAP_NORESERVE = 0x04000
+ MAP_POPULATE = 0x08000
MAP_PRIVATE = 0x02
MAP_SHARED = 0x01
+ MAP_SHARED_VALIDATE = 0x03
+ MAP_STACK = 0x20000
+ MAP_SYNC = 0x80000
+ MAP_TYPE = 0x0f
MCL_CURRENT = 1
MCL_FUTURE = 2
MCL_ONFAULT = 4
@@ -2638,7 +2864,7 @@ const (
FAULT_INJECT_PERSISTENT = 2
FAULT_INJECT_TRANSIENT = 1
TESTVFS_ACCESS_MASK = 0x00004000
- TESTVFS_ALL_MASK = 0x001
+ TESTVFS_ALL_MASK = 0x001FFFFF
TESTVFS_CKLOCK_MASK = 0x00080000
TESTVFS_CLOSE_MASK = 0x00000800
TESTVFS_DELETE_MASK = 0x00000400
@@ -2660,6 +2886,24 @@ const (
TESTVFS_WRITE_MASK = 0x00001000
)
+// Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
+// Copyright (C) 1996-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
@@ -3304,6 +3548,9 @@ const ( /* resource.h:187:1: */
PRIO_USER = 2
)
+// Convenience macros for operations on timevals.
+// NOTE: `timercmp' does not work for >= or <=.
+
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
@@ -3716,11 +3963,11 @@ type sqlite32 = struct {
Fmutex uintptr
FaDb uintptr
FnDb int32
- FmDbFlags u321
+ FmDbFlags u322
Fflags u64
FlastRowid i64
FszMmap i64
- FnSchemaLock u321
+ FnSchemaLock u322
FopenFlags uint32
FerrCode int32
FerrMask int32
@@ -3740,44 +3987,47 @@ type sqlite32 = struct {
FnoSharedCache u8
FnSqlExec u8
FnextPagesize int32
- Fmagic u321
+ Fmagic u322
FnChange int32
FnTotalChange int32
FaLimit [12]int32
FnMaxSorterMmap int32
Finit struct {
- FnewTnum int32
+ FnewTnum Pgno
FiDb u8
Fbusy u8
_ [2]byte
ForphanTrigger uint8 /* unsigned orphanTrigger: 1, unsigned imposterTable: 1, unsigned reopenMemdb: 1 */
FazInit uintptr
}
- FnVdbeActive int32
- FnVdbeRead int32
- FnVdbeWrite int32
- FnVdbeExec int32
- FnVDestroy int32
- FnExtension int32
- FaExtension uintptr
- FxTrace uintptr
- FpTraceArg uintptr
- FxProfile uintptr
- FpProfileArg uintptr
- FpCommitArg uintptr
- FxCommitCallback uintptr
- FpRollbackArg uintptr
- FxRollbackCallback uintptr
- FpUpdateArg uintptr
- FxUpdateCallback uintptr
- FpParse uintptr
- FxWalCallback uintptr
- FpWalArg uintptr
- FxCollNeeded uintptr
- FxCollNeeded16 uintptr
- FpCollNeededArg uintptr
- FpErr uintptr
- Fu1 struct {
+ FnVdbeActive int32
+ FnVdbeRead int32
+ FnVdbeWrite int32
+ FnVdbeExec int32
+ FnVDestroy int32
+ FnExtension int32
+ FaExtension uintptr
+ Ftrace struct{ FxLegacy uintptr }
+ FpTraceArg uintptr
+ FxProfile uintptr
+ FpProfileArg uintptr
+ FpCommitArg uintptr
+ FxCommitCallback uintptr
+ FpRollbackArg uintptr
+ FxRollbackCallback uintptr
+ FpUpdateArg uintptr
+ FxUpdateCallback uintptr
+ FpParse uintptr
+ FpPreUpdateArg uintptr
+ FxPreUpdateCallback uintptr
+ FpPreUpdate uintptr
+ FxWalCallback uintptr
+ FpWalArg uintptr
+ FxCollNeeded uintptr
+ FxCollNeeded16 uintptr
+ FpCollNeededArg uintptr
+ FpErr uintptr
+ Fu1 struct {
_ [0]uint64
FisInterrupted int32
_ [4]byte
@@ -3871,6 +4121,7 @@ type sqlite3_callback = uintptr /* sqlite3.h:338:13 */
// in the 4th parameter to the [sqlite3_vfs.xOpen] method.
// Reserved: 0x00F00000
+// Legacy compatibility:
// CAPI3REF: Device Characteristics
//
@@ -3981,6 +4232,7 @@ type sqlite3_file1 = struct{ FpMethods uintptr }
// in the 4th parameter to the [sqlite3_vfs.xOpen] method.
// Reserved: 0x00F00000
+// Legacy compatibility:
// CAPI3REF: Device Characteristics
//
@@ -4054,7 +4306,7 @@ type sqlite3_file1 = struct{ FpMethods uintptr }
// for their own use. The pMethods entry is a pointer to an
// [sqlite3_io_methods] object that defines methods for performing
// I/O operations on the open file.
-type sqlite3_file = sqlite3_file1 /* sqlite3.h:680:29 */
+type sqlite3_file = sqlite3_file1 /* sqlite3.h:683:29 */
type sqlite3_io_methods1 = struct {
FiVersion int32
FxClose uintptr
@@ -4169,7 +4421,7 @@ type sqlite3_io_methods1 = struct {
// fails to zero-fill short reads might seem to work. However,
// failure to zero-fill short reads will eventually lead to
// database corruption.
-type sqlite3_io_methods = sqlite3_io_methods1 /* sqlite3.h:779:35 */
+type sqlite3_io_methods = sqlite3_io_methods1 /* sqlite3.h:782:35 */
// CAPI3REF: Standard File Control Opcodes
// KEYWORDS: {file control opcodes} {file control opcode}
@@ -4237,7 +4489,7 @@ type sqlite3_io_methods = sqlite3_io_methods1 /* sqlite3.h:779:35 */
// of the xSync method. In most cases, the pointer argument passed with
// this file-control is NULL. However, if the database file is being synced
// as part of a multi-database commit, the argument points to a nul-terminated
-// string containing the transactions master-journal file name. VFSes that
+// string containing the transactions super-journal file name. VFSes that
// do not need this signal should silently ignore this opcode. Applications
// should not call [sqlite3_file_control()] with this opcode as doing so may
// disrupt the operation of the specialized VFSes that do require it.
@@ -4843,7 +5095,7 @@ type sqlite3_api_routines1 = struct {
// <li> [SQLITE_OPEN_TEMP_JOURNAL]
// <li> [SQLITE_OPEN_TRANSIENT_DB]
// <li> [SQLITE_OPEN_SUBJOURNAL]
-// <li> [SQLITE_OPEN_MASTER_JOURNAL]
+// <li> [SQLITE_OPEN_SUPER_JOURNAL]
// <li> [SQLITE_OPEN_WAL]
// </ul>)^
//
@@ -5035,7 +5287,7 @@ type sqlite3_vfs1 = struct {
// <li> [SQLITE_OPEN_TEMP_JOURNAL]
// <li> [SQLITE_OPEN_TRANSIENT_DB]
// <li> [SQLITE_OPEN_SUBJOURNAL]
-// <li> [SQLITE_OPEN_MASTER_JOURNAL]
+// <li> [SQLITE_OPEN_SUPER_JOURNAL]
// <li> [SQLITE_OPEN_WAL]
// </ul>)^
//
@@ -5128,8 +5380,8 @@ type sqlite3_vfs1 = struct {
// or all of these interfaces to be NULL or for their behavior to change
// from one release to the next. Applications must not attempt to access
// any of these methods if the iVersion of the VFS is less than 3.
-type sqlite3_vfs = sqlite3_vfs1 /* sqlite3.h:1364:28 */
-type sqlite3_syscall_ptr = uintptr /* sqlite3.h:1365:14 */
+type sqlite3_vfs = sqlite3_vfs1 /* sqlite3.h:1367:28 */
+type sqlite3_syscall_ptr = uintptr /* sqlite3.h:1368:14 */
// CAPI3REF: Memory Allocation Routines
//
@@ -5179,7 +5431,7 @@ type sqlite3_syscall_ptr = uintptr /* sqlite3.h:1365:14 */
// by xInit. The pAppData pointer is used as the only parameter to
// xInit and xShutdown.
//
-// SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes
+// SQLite holds the [SQLITE_MUTEX_STATIC_MAIN] mutex when it invokes
// the xInit method, so the xInit method need not be threadsafe. The
// xShutdown method is only called from [sqlite3_shutdown()] so it does
// not need to be threadsafe either. For all other methods, SQLite
@@ -5251,7 +5503,7 @@ type sqlite3_mem_methods1 = struct {
// by xInit. The pAppData pointer is used as the only parameter to
// xInit and xShutdown.
//
-// SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes
+// SQLite holds the [SQLITE_MUTEX_STATIC_MAIN] mutex when it invokes
// the xInit method, so the xInit method need not be threadsafe. The
// xShutdown method is only called from [sqlite3_shutdown()] so it does
// not need to be threadsafe either. For all other methods, SQLite
@@ -5264,7 +5516,7 @@ type sqlite3_mem_methods1 = struct {
//
// SQLite will never invoke xInit() more than once without an intervening
// call to xShutdown().
-type sqlite3_mem_methods = sqlite3_mem_methods1 /* sqlite3.h:1662:36 */
+type sqlite3_mem_methods = sqlite3_mem_methods1 /* sqlite3.h:1665:36 */
// CAPI3REF: Dynamically Typed Value Object
// KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}
@@ -5313,7 +5565,7 @@ type sqlite3_value1 = struct {
Fz uintptr
FzMalloc uintptr
FszMalloc int32
- FuTemp u321
+ FuTemp u322
Fdb uintptr
FxDel uintptr
}
@@ -5352,7 +5604,7 @@ type sqlite3_context1 = struct {
//
// The typedef is necessary to work around problems in certain
// C++ compilers.
-type sqlite3_destructor_type = uintptr /* sqlite3.h:5619:14 */
+type sqlite3_destructor_type = uintptr /* sqlite3.h:5621:14 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -5376,7 +5628,7 @@ type sqlite3_vtab1 = struct {
// interface fixed, support it indefinitely, and remove this comment.
// Structures used by the virtual table interface
-type sqlite3_vtab = sqlite3_vtab1 /* sqlite3.h:6687:29 */
+type sqlite3_vtab = sqlite3_vtab1 /* sqlite3.h:6689:29 */
type sqlite3_index_info1 = struct {
FnConstraint int32
FaConstraint uintptr
@@ -5393,10 +5645,10 @@ type sqlite3_index_info1 = struct {
FcolUsed sqlite3_uint64
}
-type sqlite3_index_info = sqlite3_index_info1 /* sqlite3.h:6688:35 */
+type sqlite3_index_info = sqlite3_index_info1 /* sqlite3.h:6690:35 */
type sqlite3_vtab_cursor1 = struct{ FpVtab uintptr }
-type sqlite3_vtab_cursor = sqlite3_vtab_cursor1 /* sqlite3.h:6689:36 */
+type sqlite3_vtab_cursor = sqlite3_vtab_cursor1 /* sqlite3.h:6691:36 */
type sqlite3_module1 = struct {
FiVersion int32
FxCreate uintptr
@@ -5424,7 +5676,7 @@ type sqlite3_module1 = struct {
FxShadowName uintptr
}
-type sqlite3_module = sqlite3_module1 /* sqlite3.h:6690:31 */
+type sqlite3_module = sqlite3_module1 /* sqlite3.h:6692:31 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -5883,7 +6135,7 @@ type sqlite3_mutex_methods1 = struct {
// called, but only if the prior call to xMutexInit returned SQLITE_OK.
// If xMutexInit fails in any way, it is expected to clean up after itself
// prior to returning.
-type sqlite3_mutex_methods = sqlite3_mutex_methods1 /* sqlite3.h:7522:38 */
+type sqlite3_mutex_methods = sqlite3_mutex_methods1 /* sqlite3.h:7524:38 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -5902,9 +6154,9 @@ type sqlite3_mutex_methods = sqlite3_mutex_methods1 /* sqlite3.h:7522:38 */
type sqlite3_str1 = struct {
Fdb uintptr
FzText uintptr
- FnAlloc u321
- FmxAlloc u321
- FnChar u321
+ FnAlloc u322
+ FmxAlloc u322
+ FnChar u322
FaccError u8
FprintfFlags u8
_ [2]byte
@@ -5931,7 +6183,7 @@ type sqlite3_pcache_page1 = struct {
// of this object as parameters or as their return value.
//
// See [sqlite3_pcache_methods2] for additional information.
-type sqlite3_pcache_page = sqlite3_pcache_page1 /* sqlite3.h:8271:36 */
+type sqlite3_pcache_page = sqlite3_pcache_page1 /* sqlite3.h:8277:36 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -6263,7 +6515,7 @@ type sqlite3_pcache_methods21 = struct {
// free up as much of heap memory as possible. The page cache implementation
// is not obligated to free any memory, but well-behaved implementations should
// do their best.
-type sqlite3_pcache_methods2 = sqlite3_pcache_methods21 /* sqlite3.h:8436:40 */
+type sqlite3_pcache_methods2 = sqlite3_pcache_methods21 /* sqlite3.h:8442:40 */
// This is the obsolete pcache_methods object that has now been replaced
// by sqlite3_pcache_methods2. This object is not used by SQLite. It is
@@ -6285,7 +6537,7 @@ type sqlite3_pcache_methods1 = struct {
// This is the obsolete pcache_methods object that has now been replaced
// by sqlite3_pcache_methods2. This object is not used by SQLite. It is
// retained in the header file for backwards compatibility only.
-type sqlite3_pcache_methods = sqlite3_pcache_methods1 /* sqlite3.h:8459:39 */
+type sqlite3_pcache_methods = sqlite3_pcache_methods1 /* sqlite3.h:8465:39 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -6325,7 +6577,7 @@ type sqlite3_snapshot1 = struct{ Fhidden [48]uint8 }
// version of the database file so that it is possible to later open a new read
// transaction that sees that historical version of the database rather than
// the most recent version.
-type sqlite3_snapshot = sqlite3_snapshot1 /* sqlite3.h:9508:3 */
+type sqlite3_snapshot = sqlite3_snapshot1 /* sqlite3.h:9514:3 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -6405,7 +6657,7 @@ type sqlite3_rtree_geometry1 = struct {
//
//
-type sqlite3_rtree_geometry = sqlite3_rtree_geometry1 /* sqlite3.h:9833:39 */
+type sqlite3_rtree_geometry = sqlite3_rtree_geometry1 /* sqlite3.h:9839:39 */
type sqlite3_rtree_query_info1 = struct {
FpContext uintptr
FnParam int32
@@ -6425,11 +6677,11 @@ type sqlite3_rtree_query_info1 = struct {
FapSqlParam uintptr
}
-type sqlite3_rtree_query_info = sqlite3_rtree_query_info1 /* sqlite3.h:9834:41 */
+type sqlite3_rtree_query_info = sqlite3_rtree_query_info1 /* sqlite3.h:9840:41 */
// The double-precision datatype used by RTree depends on the
// SQLITE_RTREE_INT_ONLY compile-time option.
-type sqlite3_rtree_dbl = float64 /* sqlite3.h:9842:18 */
+type sqlite3_rtree_dbl = float64 /* sqlite3.h:9848:18 */
// Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.
@@ -6516,22 +6768,22 @@ type Fts5ExtensionApi1 = struct {
// Virtual table implementations may overload SQL functions by implementing
// the sqlite3_module.xFindFunction() method.
-type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.h:11628:33 */
+type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.h:11634:33 */
type Fts5PhraseIter1 = struct {
Fa uintptr
Fb uintptr
}
-type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.h:11630:31 */
+type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.h:11636:31 */
-type fts5_extension_function = uintptr /* sqlite3.h:11632:14 */
+type fts5_extension_function = uintptr /* sqlite3.h:11638:14 */
type fts5_tokenizer1 = struct {
FxCreate uintptr
FxDelete uintptr
FxTokenize uintptr
}
-type fts5_tokenizer = fts5_tokenizer1 /* sqlite3.h:12091:31 */
+type fts5_tokenizer = fts5_tokenizer1 /* sqlite3.h:12097:31 */
// Flags that may be passed as the third argument to xTokenize()
@@ -6564,7 +6816,7 @@ type fts5_api1 = struct {
// ************************************************************************
//
// FTS5 EXTENSION REGISTRATION API
-type fts5_api = fts5_api1 /* sqlite3.h:12127:25 */
+type fts5_api = fts5_api1 /* sqlite3.h:12133:25 */
//
// END OF REGISTRATION API
@@ -6855,12 +7107,12 @@ type IdxHash = IdxHash1 /* sqlite3expert.c:121:24 */
// Allocate and return nByte bytes of zeroed memory using sqlite3_malloc().
// If the allocation fails, set *pRc to SQLITE_NOMEM and return NULL.
-func idxMalloc(tls *crt.TLS, pRc uintptr, nByte int32) uintptr { /* sqlite3expert.c:158:13: */
+func idxMalloc(tls *libc.TLS, pRc uintptr, nByte int32) uintptr { /* sqlite3expert.c:158:13: */
var pRet uintptr
pRet = sqlite3.Xsqlite3_malloc(tls, nByte)
if pRet != 0 {
- crt.Xmemset(tls, pRet, 0, uint64(nByte))
+ libc.Xmemset(tls, pRet, 0, uint64(nByte))
} else {
*(*int32)(unsafe.Pointer(pRc)) = 7
}
@@ -6868,12 +7120,12 @@ func idxMalloc(tls *crt.TLS, pRc uintptr, nByte int32) uintptr { /* sqlite3exper
}
// Initialize an IdxHash hash table.
-func idxHashInit(tls *crt.TLS, pHash uintptr) { /* sqlite3expert.c:174:13: */
- crt.Xmemset(tls, pHash, 0, uint64(unsafe.Sizeof(IdxHash{})))
+func idxHashInit(tls *libc.TLS, pHash uintptr) { /* sqlite3expert.c:174:13: */
+ libc.Xmemset(tls, pHash, 0, uint64(unsafe.Sizeof(IdxHash{})))
}
// Reset an IdxHash hash table.
-func idxHashClear(tls *crt.TLS, pHash uintptr) { /* sqlite3expert.c:181:13: */
+func idxHashClear(tls *libc.TLS, pHash uintptr) { /* sqlite3expert.c:181:13: */
var i int32
for i = 0; i < 1023; i++ {
var pEntry uintptr
@@ -6884,12 +7136,12 @@ func idxHashClear(tls *crt.TLS, pHash uintptr) { /* sqlite3expert.c:181:13: */
sqlite3.Xsqlite3_free(tls, pEntry)
}
}
- crt.Xmemset(tls, pHash, 0, uint64(unsafe.Sizeof(IdxHash{})))
+ libc.Xmemset(tls, pHash, 0, uint64(unsafe.Sizeof(IdxHash{})))
}
// Return the index of the hash bucket that the string specified by the
// arguments to this function belongs.
-func idxHashString(tls *crt.TLS, z uintptr, n int32) int32 { /* sqlite3expert.c:199:12: */
+func idxHashString(tls *libc.TLS, z uintptr, n int32) int32 { /* sqlite3expert.c:199:12: */
var ret uint32 = uint32(0)
var i int32
for i = 0; i < n; i++ {
@@ -6901,29 +7153,29 @@ func idxHashString(tls *crt.TLS, z uintptr, n int32) int32 { /* sqlite3expert.c:
// If zKey is already present in the hash table, return non-zero and do
// nothing. Otherwise, add an entry with key zKey and payload string zVal to
// the hash table passed as the second argument.
-func idxHashAdd(tls *crt.TLS, pRc uintptr, pHash uintptr, zKey uintptr, zVal uintptr) int32 { /* sqlite3expert.c:213:12: */
- var nKey int32 = int32(crt.Xstrlen(tls, zKey))
+func idxHashAdd(tls *libc.TLS, pRc uintptr, pHash uintptr, zKey uintptr, zVal uintptr) int32 { /* sqlite3expert.c:213:12: */
+ var nKey int32 = int32(libc.Xstrlen(tls, zKey))
var iHash int32 = idxHashString(tls, zKey, nKey)
var nVal int32 = func() int32 {
if zVal != 0 {
- return int32(crt.Xstrlen(tls, zVal))
+ return int32(libc.Xstrlen(tls, zVal))
}
return 0
}()
var pEntry uintptr
for pEntry = *(*uintptr)(unsafe.Pointer((pHash + 8 /* &.aHash */) + uintptr(iHash)*8)); pEntry != 0; pEntry = (*IdxHashEntry)(unsafe.Pointer(pEntry)).FpHashNext {
- if (int32(crt.Xstrlen(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey)) == nKey) && (0 == crt.Xmemcmp(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey, zKey, uint64(nKey))) {
+ if (int32(libc.Xstrlen(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey)) == nKey) && (0 == libc.Xmemcmp(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey, zKey, uint64(nKey))) {
return 1
}
}
pEntry = idxMalloc(tls, pRc, (int32((((uint64(unsafe.Sizeof(IdxHashEntry{})) + uint64(nKey)) + uint64(1)) + uint64(nVal)) + uint64(1))))
if pEntry != 0 {
(*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey = (pEntry + uintptr(1)*40)
- crt.Xmemcpy(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey, zKey, uint64(nKey))
+ libc.Xmemcpy(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey, zKey, uint64(nKey))
if zVal != 0 {
(*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal = ((*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey + uintptr((nKey + 1)))
- crt.Xmemcpy(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal, zVal, uint64(nVal))
+ libc.Xmemcpy(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal, zVal, uint64(nVal))
}
(*IdxHashEntry)(unsafe.Pointer(pEntry)).FpHashNext = *(*uintptr)(unsafe.Pointer((pHash + 8 /* &.aHash */) + uintptr(iHash)*8))
*(*uintptr)(unsafe.Pointer((pHash + 8 /* &.aHash */) + uintptr(iHash)*8)) = pEntry
@@ -6936,16 +7188,16 @@ func idxHashAdd(tls *crt.TLS, pRc uintptr, pHash uintptr, zKey uintptr, zVal uin
// If zKey/nKey is present in the hash table, return a pointer to the
// hash-entry object.
-func idxHashFind(tls *crt.TLS, pHash uintptr, zKey uintptr, nKey int32) uintptr { /* sqlite3expert.c:250:21: */
+func idxHashFind(tls *libc.TLS, pHash uintptr, zKey uintptr, nKey int32) uintptr { /* sqlite3expert.c:250:21: */
var iHash int32
var pEntry uintptr
if nKey < 0 {
- nKey = int32(crt.Xstrlen(tls, zKey))
+ nKey = int32(libc.Xstrlen(tls, zKey))
}
iHash = idxHashString(tls, zKey, nKey)
for pEntry = *(*uintptr)(unsafe.Pointer((pHash + 8 /* &.aHash */) + uintptr(iHash)*8)); pEntry != 0; pEntry = (*IdxHashEntry)(unsafe.Pointer(pEntry)).FpHashNext {
- if (int32(crt.Xstrlen(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey)) == nKey) && (0 == crt.Xmemcmp(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey, zKey, uint64(nKey))) {
+ if (int32(libc.Xstrlen(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey)) == nKey) && (0 == libc.Xmemcmp(tls, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey, zKey, uint64(nKey))) {
return pEntry
}
}
@@ -6956,7 +7208,7 @@ func idxHashFind(tls *crt.TLS, pHash uintptr, zKey uintptr, nKey int32) uintptr
// passed as the final two arguments to this function, return a pointer
// to the payload string. Otherwise, if zKey/nKey is not present in the
// hash table, return NULL.
-func idxHashSearch(tls *crt.TLS, pHash uintptr, zKey uintptr, nKey int32) uintptr { /* sqlite3expert.c:270:19: */
+func idxHashSearch(tls *libc.TLS, pHash uintptr, zKey uintptr, nKey int32) uintptr { /* sqlite3expert.c:270:19: */
var pEntry uintptr = idxHashFind(tls, pHash, zKey, nKey)
if pEntry != 0 {
return (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal
@@ -6966,29 +7218,29 @@ func idxHashSearch(tls *crt.TLS, pHash uintptr, zKey uintptr, nKey int32) uintpt
// Allocate and return a new IdxConstraint object. Set the IdxConstraint.zColl
// variable to point to a copy of nul-terminated string zColl.
-func idxNewConstraint(tls *crt.TLS, pRc uintptr, zColl uintptr) uintptr { /* sqlite3expert.c:280:22: */
+func idxNewConstraint(tls *libc.TLS, pRc uintptr, zColl uintptr) uintptr { /* sqlite3expert.c:280:22: */
var pNew uintptr
- var nColl int32 = int32(crt.Xstrlen(tls, zColl))
+ var nColl int32 = int32(libc.Xstrlen(tls, zColl))
pNew = idxMalloc(tls, pRc, (int32((uint64(unsafe.Sizeof(IdxConstraint{})) * uint64(nColl)) + uint64(1))))
if pNew != 0 {
(*IdxConstraint)(unsafe.Pointer(pNew)).FzColl = (pNew + uintptr(1)*40)
- crt.Xmemcpy(tls, (*IdxConstraint)(unsafe.Pointer(pNew)).FzColl, zColl, (uint64(nColl + 1)))
+ libc.Xmemcpy(tls, (*IdxConstraint)(unsafe.Pointer(pNew)).FzColl, zColl, (uint64(nColl + 1)))
}
return pNew
}
// An error associated with database handle db has just occurred. Pass
// the error message to callback function xOut.
-func idxDatabaseError(tls *crt.TLS, db uintptr, pzErrmsg uintptr) { /* sqlite3expert.c:297:13: */
+func idxDatabaseError(tls *libc.TLS, db uintptr, pzErrmsg uintptr) { /* sqlite3expert.c:297:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- *(*uintptr)(unsafe.Pointer(pzErrmsg)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErrmsg)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
}
// Prepare an SQL statement.
-func idxPrepareStmt(tls *crt.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* sqlite3expert.c:307:12: */
+func idxPrepareStmt(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zSql uintptr) int32 { /* sqlite3expert.c:307:12: */
var rc int32 = sqlite3.Xsqlite3_prepare_v2(tls, db, zSql, -1, ppStmt, uintptr(0))
if rc != 0 {
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
@@ -6998,7 +7250,7 @@ func idxPrepareStmt(tls *crt.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr,
}
// Prepare an SQL statement using the results of a printf() formatting.
-func idxPrintfPrepareStmt(tls *crt.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zFmt uintptr, va uintptr) int32 { /* sqlite3expert.c:324:12: */
+func idxPrintfPrepareStmt(tls *libc.TLS, db uintptr, ppStmt uintptr, pzErrmsg uintptr, zFmt uintptr, va uintptr) int32 { /* sqlite3expert.c:324:12: */
var ap va_list
_ = ap
var rc int32
@@ -7036,8 +7288,8 @@ type ExpertCsr1 = struct {
type ExpertCsr = ExpertCsr1 /* sqlite3expert.c:357:26 */
-func expertDequote(tls *crt.TLS, zIn uintptr) uintptr { /* sqlite3expert.c:363:13: */
- var n int32 = int32(crt.Xstrlen(tls, zIn))
+func expertDequote(tls *libc.TLS, zIn uintptr) uintptr { /* sqlite3expert.c:363:13: */
+ var n int32 = int32(libc.Xstrlen(tls, zIn))
var zRet uintptr = sqlite3.Xsqlite3_malloc(tls, n)
if zRet != 0 {
@@ -7048,7 +7300,7 @@ func expertDequote(tls *crt.TLS, zIn uintptr) uintptr { /* sqlite3expert.c:363:1
iIn++
}
- *(*int8)(unsafe.Pointer(zRet + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
+ *(*int8)(unsafe.Pointer(zRet + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
}
*(*int8)(unsafe.Pointer(zRet + uintptr(iOut))) = int8(0)
}
@@ -7063,7 +7315,7 @@ func expertDequote(tls *crt.TLS, zIn uintptr) uintptr { /* sqlite3expert.c:363:1
// argv[1] -> database name
// argv[2] -> table name
// argv[...] -> column names...
-func expertConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:395:12: */
+func expertConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:395:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -7095,13 +7347,13 @@ func expertConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func expertDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* sqlite3expert.c:431:12: */
+func expertDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* sqlite3expert.c:431:12: */
var p uintptr = pVtab
sqlite3.Xsqlite3_free(tls, p)
return 0
}
-func expertBestIndex(tls *crt.TLS, pVtab uintptr, pIdxInfo uintptr) int32 { /* sqlite3expert.c:437:12: */
+func expertBestIndex(tls *libc.TLS, pVtab uintptr, pIdxInfo uintptr) int32 { /* sqlite3expert.c:437:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -7167,7 +7419,7 @@ func expertBestIndex(tls *crt.TLS, pVtab uintptr, pIdxInfo uintptr) int32 { /* s
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func expertUpdate(tls *crt.TLS, pVtab uintptr, nData int32, azData uintptr, pRowid uintptr) int32 { /* sqlite3expert.c:504:12: */
+func expertUpdate(tls *libc.TLS, pVtab uintptr, nData int32, azData uintptr, pRowid uintptr) int32 { /* sqlite3expert.c:504:12: */
_ = pVtab
_ = nData
_ = azData
@@ -7176,7 +7428,7 @@ func expertUpdate(tls *crt.TLS, pVtab uintptr, nData int32, azData uintptr, pRow
}
// Virtual table module xOpen method.
-func expertOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite3expert.c:520:12: */
+func expertOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite3expert.c:520:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -7189,7 +7441,7 @@ func expertOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* sqlite
}
// Virtual table module xClose method.
-func expertClose(tls *crt.TLS, cur uintptr) int32 { /* sqlite3expert.c:532:12: */
+func expertClose(tls *libc.TLS, cur uintptr) int32 { /* sqlite3expert.c:532:12: */
var pCsr uintptr = cur
sqlite3.Xsqlite3_finalize(tls, (*ExpertCsr)(unsafe.Pointer(pCsr)).FpData)
sqlite3.Xsqlite3_free(tls, pCsr)
@@ -7200,13 +7452,13 @@ func expertClose(tls *crt.TLS, cur uintptr) int32 { /* sqlite3expert.c:532:12: *
//
// Return non-zero if the cursor does not currently point to a valid
// record (i.e if the scan has finished), or zero otherwise.
-func expertEof(tls *crt.TLS, cur uintptr) int32 { /* sqlite3expert.c:545:12: */
+func expertEof(tls *libc.TLS, cur uintptr) int32 { /* sqlite3expert.c:545:12: */
var pCsr uintptr = cur
- return (crt.Bool32((*ExpertCsr)(unsafe.Pointer(pCsr)).FpData == uintptr(0)))
+ return (libc.Bool32((*ExpertCsr)(unsafe.Pointer(pCsr)).FpData == uintptr(0)))
}
// Virtual table module xNext method.
-func expertNext(tls *crt.TLS, cur uintptr) int32 { /* sqlite3expert.c:553:12: */
+func expertNext(tls *libc.TLS, cur uintptr) int32 { /* sqlite3expert.c:553:12: */
var pCsr uintptr = cur
var rc int32 = 0
@@ -7222,14 +7474,14 @@ func expertNext(tls *crt.TLS, cur uintptr) int32 { /* sqlite3expert.c:553:12: */
}
// Virtual table module xRowid method.
-func expertRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* sqlite3expert.c:572:12: */
+func expertRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* sqlite3expert.c:572:12: */
_ = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = int64(0)
return 0
}
// Virtual table module xColumn method.
-func expertColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3expert.c:581:12: */
+func expertColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sqlite3expert.c:581:12: */
var pCsr uintptr = cur
var pVal uintptr
pVal = sqlite3.Xsqlite3_column_value(tls, (*ExpertCsr)(unsafe.Pointer(pCsr)).FpData, i)
@@ -7240,7 +7492,7 @@ func expertColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* sq
}
// Virtual table module xFilter method.
-func expertFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3expert.c:594:12: */
+func expertFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* sqlite3expert.c:594:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -7257,7 +7509,7 @@ func expertFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc
(*ExpertCsr)(unsafe.Pointer(pCsr)).FpData = uintptr(0)
if rc == 0 {
rc = idxPrintfPrepareStmt(tls, (*sqlite3expert)(unsafe.Pointer(pExpert)).Fdb, (pCsr + 8 /* &.pData */), (pVtab /* &.base */ + 16 /* &.zErrMsg */),
- ts+19 /* "SELECT * FROM ma..." */, crt.VaList(bp, (*IdxTable)(unsafe.Pointer((*ExpertVtab)(unsafe.Pointer(pVtab)).FpTab)).FzName))
+ ts+19 /* "SELECT * FROM ma..." */, libc.VaList(bp, (*IdxTable)(unsafe.Pointer((*ExpertVtab)(unsafe.Pointer(pVtab)).FpTab)).FzName))
}
if rc == 0 {
@@ -7266,7 +7518,7 @@ func expertFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc
return rc
}
-func idxRegisterVtab(tls *crt.TLS, p uintptr) int32 { /* sqlite3expert.c:622:12: */
+func idxRegisterVtab(tls *libc.TLS, p uintptr) int32 { /* sqlite3expert.c:622:12: */
return sqlite3.Xsqlite3_create_module(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbv, ts+56 /* "expert" */, uintptr(unsafe.Pointer(&expertModule)), p)
}
@@ -7302,7 +7554,7 @@ uintptr(0), // xShadowName
// Finalize SQL statement pStmt. If (*pRc) is SQLITE_OK when this function
// is called, set it to the return value of sqlite3_finalize() before
// returning. Otherwise, discard the sqlite3_finalize() return value.
-func idxFinalize(tls *crt.TLS, pRc uintptr, pStmt uintptr) { /* sqlite3expert.c:660:13: */
+func idxFinalize(tls *libc.TLS, pRc uintptr, pStmt uintptr) { /* sqlite3expert.c:660:13: */
var rc int32 = sqlite3.Xsqlite3_finalize(tls, pStmt)
if *(*int32)(unsafe.Pointer(pRc)) == 0 {
*(*int32)(unsafe.Pointer(pRc)) = rc
@@ -7317,13 +7569,13 @@ func idxFinalize(tls *crt.TLS, pRc uintptr, pStmt uintptr) { /* sqlite3expert.c:
//
// It is the responsibility of the caller to eventually free either the
// IdxTable object or error message using sqlite3_free().
-func idxGetTableInfo(tls *crt.TLS, db uintptr, zTab uintptr, ppOut uintptr, pzErrmsg uintptr) int32 { /* sqlite3expert.c:675:12: */
+func idxGetTableInfo(tls *libc.TLS, db uintptr, zTab uintptr, ppOut uintptr, pzErrmsg uintptr) int32 { /* sqlite3expert.c:675:12: */
bp := tls.Alloc(40)
defer tls.Free(40)
*(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)) = uintptr(0)
var nCol int32 = 0
- var nTab int32 = int32(crt.Xstrlen(tls, zTab))
+ var nTab int32 = int32(libc.Xstrlen(tls, zTab))
var nByte int32 = (int32((uint64(unsafe.Sizeof(IdxTable{})) + uint64(nTab)) + uint64(1)))
var pNew uintptr = uintptr(0)
// var rc int32 at bp+24, 4
@@ -7331,13 +7583,13 @@ func idxGetTableInfo(tls *crt.TLS, db uintptr, zTab uintptr, ppOut uintptr, pzEr
var rc2 int32
var pCsr uintptr = uintptr(0)
- *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = idxPrintfPrepareStmt(tls, db, bp+8 /* &p1 */, pzErrmsg, ts+63 /* "PRAGMA table_inf..." */, crt.VaList(bp, zTab))
+ *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = idxPrintfPrepareStmt(tls, db, bp+8 /* &p1 */, pzErrmsg, ts+63 /* "PRAGMA table_inf..." */, libc.VaList(bp, zTab))
for (*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) == 0) && (100 == sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)))) {
*(*uintptr)(unsafe.Pointer(bp + 16 /* zCol */)) = sqlite3.Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)), 1)
- nByte = nByte + (1 + int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* zCol */)))))
+ nByte = nByte + (1 + int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* zCol */)))))
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = sqlite3.Xsqlite3_table_column_metadata(tls,
db, ts+84 /* "main" */, zTab, *(*uintptr)(unsafe.Pointer(bp + 16 /* zCol */)), uintptr(0), bp+16 /* &zCol */, uintptr(0), uintptr(0), uintptr(0))
- nByte = nByte + (1 + int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* zCol */)))))
+ nByte = nByte + (1 + int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* zCol */)))))
nCol++
}
rc2 = sqlite3.Xsqlite3_reset(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)))
@@ -7358,18 +7610,18 @@ func idxGetTableInfo(tls *crt.TLS, db uintptr, zTab uintptr, ppOut uintptr, pzEr
nCol = 0
for (*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) == 0) && (100 == sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)))) {
*(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)) = sqlite3.Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)), 1)
- var nCopy int32 = (int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)))) + 1)
+ var nCopy int32 = (int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)))) + 1)
(*IdxColumn)(unsafe.Pointer((*IdxTable)(unsafe.Pointer(pNew)).FaCol + uintptr(nCol)*24)).FzName = pCsr
(*IdxColumn)(unsafe.Pointer((*IdxTable)(unsafe.Pointer(pNew)).FaCol + uintptr(nCol)*24)).FiPk = sqlite3.Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p1 */)), 5)
- crt.Xmemcpy(tls, pCsr, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)), uint64(nCopy))
+ libc.Xmemcpy(tls, pCsr, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)), uint64(nCopy))
pCsr += uintptr(nCopy)
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = sqlite3.Xsqlite3_table_column_metadata(tls,
db, ts+84 /* "main" */, zTab, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)), uintptr(0), bp+32 /* &zCol */, uintptr(0), uintptr(0), uintptr(0))
if *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) == 0 {
- nCopy = (int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)))) + 1)
+ nCopy = (int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)))) + 1)
(*IdxColumn)(unsafe.Pointer((*IdxTable)(unsafe.Pointer(pNew)).FaCol + uintptr(nCol)*24)).FzColl = pCsr
- crt.Xmemcpy(tls, pCsr, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)), uint64(nCopy))
+ libc.Xmemcpy(tls, pCsr, *(*uintptr)(unsafe.Pointer(bp + 32 /* zCol */)), uint64(nCopy))
pCsr += uintptr(nCopy)
}
@@ -7382,7 +7634,7 @@ func idxGetTableInfo(tls *crt.TLS, db uintptr, zTab uintptr, ppOut uintptr, pzEr
pNew = uintptr(0)
} else {
(*IdxTable)(unsafe.Pointer(pNew)).FzName = pCsr
- crt.Xmemcpy(tls, (*IdxTable)(unsafe.Pointer(pNew)).FzName, zTab, (uint64(nTab + 1)))
+ libc.Xmemcpy(tls, (*IdxTable)(unsafe.Pointer(pNew)).FzName, zTab, (uint64(nTab + 1)))
}
*(*uintptr)(unsafe.Pointer(ppOut)) = pNew
@@ -7396,14 +7648,14 @@ func idxGetTableInfo(tls *crt.TLS, db uintptr, zTab uintptr, ppOut uintptr, pzEr
// the printf() style arguments is appended to zIn and the result returned
// in a buffer allocated by sqlite3_malloc(). sqlite3_free() is called on
// zIn before returning.
-func idxAppendText(tls *crt.TLS, pRc uintptr, zIn uintptr, zFmt uintptr, va uintptr) uintptr { /* sqlite3expert.c:756:13: */
+func idxAppendText(tls *libc.TLS, pRc uintptr, zIn uintptr, zFmt uintptr, va uintptr) uintptr { /* sqlite3expert.c:756:13: */
var ap va_list
_ = ap
var zAppend uintptr = uintptr(0)
var zRet uintptr = uintptr(0)
var nIn int32
if zIn != 0 {
- nIn = int32(crt.Xstrlen(tls, zIn))
+ nIn = int32(libc.Xstrlen(tls, zIn))
} else {
nIn = 0
}
@@ -7412,14 +7664,14 @@ func idxAppendText(tls *crt.TLS, pRc uintptr, zIn uintptr, zFmt uintptr, va uint
if *(*int32)(unsafe.Pointer(pRc)) == 0 {
zAppend = sqlite3.Xsqlite3_vmprintf(tls, zFmt, ap)
if zAppend != 0 {
- nAppend = int32(crt.Xstrlen(tls, zAppend))
+ nAppend = int32(libc.Xstrlen(tls, zAppend))
zRet = sqlite3.Xsqlite3_malloc(tls, ((nIn + nAppend) + 1))
}
if (zAppend != 0) && (zRet != 0) {
if nIn != 0 {
- crt.Xmemcpy(tls, zRet, zIn, uint64(nIn))
+ libc.Xmemcpy(tls, zRet, zIn, uint64(nIn))
}
- crt.Xmemcpy(tls, (zRet + uintptr(nIn)), zAppend, (uint64(nAppend + 1)))
+ libc.Xmemcpy(tls, (zRet + uintptr(nIn)), zAppend, (uint64(nAppend + 1)))
} else {
sqlite3.Xsqlite3_free(tls, zRet)
zRet = uintptr(0)
@@ -7434,7 +7686,7 @@ func idxAppendText(tls *crt.TLS, pRc uintptr, zIn uintptr, zFmt uintptr, va uint
// Return true if zId must be quoted in order to use it as an SQL
// identifier, or false otherwise.
-func idxIdentifierRequiresQuotes(tls *crt.TLS, zId uintptr) int32 { /* sqlite3expert.c:788:12: */
+func idxIdentifierRequiresQuotes(tls *libc.TLS, zId uintptr) int32 { /* sqlite3expert.c:788:12: */
var i int32
for i = 0; *(*int8)(unsafe.Pointer(zId + uintptr(i))) != 0; i++ {
if ((!(int32(*(*int8)(unsafe.Pointer(zId + uintptr(i)))) == '_') &&
@@ -7449,7 +7701,7 @@ func idxIdentifierRequiresQuotes(tls *crt.TLS, zId uintptr) int32 { /* sqlite3ex
// This function appends an index column definition suitable for constraint
// pCons to the string passed as zIn and returns the result.
-func idxAppendColDefn(tls *crt.TLS, pRc uintptr, zIn uintptr, pTab uintptr, pCons uintptr) uintptr { /* sqlite3expert.c:806:13: */
+func idxAppendColDefn(tls *libc.TLS, pRc uintptr, zIn uintptr, pTab uintptr, pCons uintptr) uintptr { /* sqlite3expert.c:806:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -7460,16 +7712,16 @@ func idxAppendColDefn(tls *crt.TLS, pRc uintptr, zIn uintptr, pTab uintptr, pCon
}
if idxIdentifierRequiresQuotes(tls, (*IdxColumn)(unsafe.Pointer(p)).FzName) != 0 {
- zRet = idxAppendText(tls, pRc, zRet, ts+92 /* "%Q" */, crt.VaList(bp, (*IdxColumn)(unsafe.Pointer(p)).FzName))
+ zRet = idxAppendText(tls, pRc, zRet, ts+92 /* "%Q" */, libc.VaList(bp, (*IdxColumn)(unsafe.Pointer(p)).FzName))
} else {
- zRet = idxAppendText(tls, pRc, zRet, ts /* "%s" */, crt.VaList(bp+8, (*IdxColumn)(unsafe.Pointer(p)).FzName))
+ zRet = idxAppendText(tls, pRc, zRet, ts /* "%s" */, libc.VaList(bp+8, (*IdxColumn)(unsafe.Pointer(p)).FzName))
}
if sqlite3.Xsqlite3_stricmp(tls, (*IdxColumn)(unsafe.Pointer(p)).FzColl, (*IdxConstraint)(unsafe.Pointer(pCons)).FzColl) != 0 {
if idxIdentifierRequiresQuotes(tls, (*IdxConstraint)(unsafe.Pointer(pCons)).FzColl) != 0 {
- zRet = idxAppendText(tls, pRc, zRet, ts+95 /* " COLLATE %Q" */, crt.VaList(bp+16, (*IdxConstraint)(unsafe.Pointer(pCons)).FzColl))
+ zRet = idxAppendText(tls, pRc, zRet, ts+95 /* " COLLATE %Q" */, libc.VaList(bp+16, (*IdxConstraint)(unsafe.Pointer(pCons)).FzColl))
} else {
- zRet = idxAppendText(tls, pRc, zRet, ts+107 /* " COLLATE %s" */, crt.VaList(bp+24, (*IdxConstraint)(unsafe.Pointer(pCons)).FzColl))
+ zRet = idxAppendText(tls, pRc, zRet, ts+107 /* " COLLATE %s" */, libc.VaList(bp+24, (*IdxConstraint)(unsafe.Pointer(pCons)).FzColl))
}
}
@@ -7485,7 +7737,7 @@ func idxAppendColDefn(tls *crt.TLS, pRc uintptr, zIn uintptr, pTab uintptr, pCon
// return zero.
//
// If an error occurs, set *pRc to an SQLite error code and return zero.
-func idxFindCompatible(tls *crt.TLS, pRc uintptr, dbm uintptr, pScan uintptr, pEq uintptr, pTail uintptr) int32 { /* sqlite3expert.c:844:12: */
+func idxFindCompatible(tls *libc.TLS, pRc uintptr, dbm uintptr, pScan uintptr, pEq uintptr, pTail uintptr) int32 { /* sqlite3expert.c:844:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -7500,7 +7752,7 @@ func idxFindCompatible(tls *crt.TLS, pRc uintptr, dbm uintptr, pScan uintptr, pE
nEq++
}
- *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = idxPrintfPrepareStmt(tls, dbm, bp+16 /* &pIdxList */, uintptr(0), ts+125 /* "PRAGMA index_lis..." */, crt.VaList(bp, zTbl))
+ *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = idxPrintfPrepareStmt(tls, dbm, bp+16 /* &pIdxList */, uintptr(0), ts+125 /* "PRAGMA index_lis..." */, libc.VaList(bp, zTbl))
for (*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) == 0) && (sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pIdxList */))) == 100) {
var bMatch int32 = 1
var pT uintptr = pTail
@@ -7512,7 +7764,7 @@ func idxFindCompatible(tls *crt.TLS, pRc uintptr, dbm uintptr, pScan uintptr, pE
(*IdxConstraint)(unsafe.Pointer(pIter)).FbFlag = 0
}
- *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = idxPrintfPrepareStmt(tls, dbm, bp+24 /* &pInfo */, uintptr(0), ts+146 /* "PRAGMA index_xIn..." */, crt.VaList(bp+8, zIdx))
+ *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = idxPrintfPrepareStmt(tls, dbm, bp+24 /* &pInfo */, uintptr(0), ts+146 /* "PRAGMA index_xIn..." */, libc.VaList(bp+8, zIdx))
for (*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) == 0) && (sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pInfo */))) == 100) {
var iIdx int32 = sqlite3.Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pInfo */)), 0)
var iCol int32 = sqlite3.Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pInfo */)), 1)
@@ -7559,7 +7811,7 @@ func idxFindCompatible(tls *crt.TLS, pRc uintptr, dbm uintptr, pScan uintptr, pE
return 0
}
-func idxCreateFromCons(tls *crt.TLS, p uintptr, pScan uintptr, pEq uintptr, pTail uintptr) int32 { /* sqlite3expert.c:911:12: */
+func idxCreateFromCons(tls *libc.TLS, p uintptr, pScan uintptr, pEq uintptr, pTail uintptr) int32 { /* sqlite3expert.c:911:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -7588,7 +7840,7 @@ func idxCreateFromCons(tls *crt.TLS, p uintptr, pScan uintptr, pEq uintptr, pTai
for i = 0; *(*int8)(unsafe.Pointer(zCols + uintptr(i))) != 0; i++ {
h = h + ((h << 3) + uint32(*(*int8)(unsafe.Pointer(zCols + uintptr(i)))))
}
- zName = sqlite3.Xsqlite3_mprintf(tls, ts+168 /* "%s_idx_%08x" */, crt.VaList(bp, zTable, h))
+ zName = sqlite3.Xsqlite3_mprintf(tls, ts+168 /* "%s_idx_%08x" */, libc.VaList(bp, zTable, h))
if zName == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 7
} else {
@@ -7597,7 +7849,7 @@ func idxCreateFromCons(tls *crt.TLS, p uintptr, pScan uintptr, pEq uintptr, pTai
} else {
zFmt = ts + 208 /* "CREATE INDEX %s ..." */
}
- zIdx = sqlite3.Xsqlite3_mprintf(tls, zFmt, crt.VaList(bp+16, zName, zTable, zCols))
+ zIdx = sqlite3.Xsqlite3_mprintf(tls, zFmt, libc.VaList(bp+16, zName, zTable, zCols))
if !(zIdx != 0) {
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 7
} else {
@@ -7616,7 +7868,7 @@ func idxCreateFromCons(tls *crt.TLS, p uintptr, pScan uintptr, pEq uintptr, pTai
// Return true if list pList (linked by IdxConstraint.pLink) contains
// a constraint compatible with *p. Otherwise return false.
-func idxFindConstraint(tls *crt.TLS, pList uintptr, p uintptr) int32 { /* sqlite3expert.c:972:12: */
+func idxFindConstraint(tls *libc.TLS, pList uintptr, p uintptr) int32 { /* sqlite3expert.c:972:12: */
var pCmp uintptr
for pCmp = pList; pCmp != 0; pCmp = (*IdxConstraint)(unsafe.Pointer(pCmp)).FpLink {
if (*IdxConstraint)(unsafe.Pointer(p)).FiCol == (*IdxConstraint)(unsafe.Pointer(pCmp)).FiCol {
@@ -7626,7 +7878,7 @@ func idxFindConstraint(tls *crt.TLS, pList uintptr, p uintptr) int32 { /* sqlite
return 0
}
-func idxCreateFromWhere(tls *crt.TLS, p uintptr, pScan uintptr, pTail uintptr) int32 { /* sqlite3expert.c:980:12: */
+func idxCreateFromWhere(tls *libc.TLS, p uintptr, pScan uintptr, pTail uintptr) int32 { /* sqlite3expert.c:980:12: */
var p1 uintptr = uintptr(0)
var pCon uintptr
var rc int32
@@ -7659,7 +7911,7 @@ func idxCreateFromWhere(tls *crt.TLS, p uintptr, pScan uintptr, pTail uintptr) i
// Create candidate indexes in database [dbm] based on the data in
// linked-list pScan.
-func idxCreateCandidates(tls *crt.TLS, p uintptr) int32 { /* sqlite3expert.c:1019:12: */
+func idxCreateCandidates(tls *libc.TLS, p uintptr) int32 { /* sqlite3expert.c:1019:12: */
var rc int32 = 0
var pIter uintptr
@@ -7674,7 +7926,7 @@ func idxCreateCandidates(tls *crt.TLS, p uintptr) int32 { /* sqlite3expert.c:101
}
// Free all elements of the linked list starting at pConstraint.
-func idxConstraintFree(tls *crt.TLS, pConstraint uintptr) { /* sqlite3expert.c:1036:13: */
+func idxConstraintFree(tls *libc.TLS, pConstraint uintptr) { /* sqlite3expert.c:1036:13: */
var pNext uintptr
var p uintptr
@@ -7686,7 +7938,7 @@ func idxConstraintFree(tls *crt.TLS, pConstraint uintptr) { /* sqlite3expert.c:1
// Free all elements of the linked list starting from pScan up until pLast
// (pLast is not freed).
-func idxScanFree(tls *crt.TLS, pScan uintptr, pLast uintptr) { /* sqlite3expert.c:1050:13: */
+func idxScanFree(tls *libc.TLS, pScan uintptr, pLast uintptr) { /* sqlite3expert.c:1050:13: */
var p uintptr
var pNext uintptr
for p = pScan; p != pLast; p = pNext {
@@ -7700,7 +7952,7 @@ func idxScanFree(tls *crt.TLS, pScan uintptr, pLast uintptr) { /* sqlite3expert.
// Free all elements of the linked list starting from pStatement up
// until pLast (pLast is not freed).
-func idxStatementFree(tls *crt.TLS, pStatement uintptr, pLast uintptr) { /* sqlite3expert.c:1066:13: */
+func idxStatementFree(tls *libc.TLS, pStatement uintptr, pLast uintptr) { /* sqlite3expert.c:1066:13: */
var p uintptr
var pNext uintptr
for p = pStatement; p != pLast; p = pNext {
@@ -7712,7 +7964,7 @@ func idxStatementFree(tls *crt.TLS, pStatement uintptr, pLast uintptr) { /* sqli
}
// Free the linked list of IdxTable objects starting at pTab.
-func idxTableFree(tls *crt.TLS, pTab uintptr) { /* sqlite3expert.c:1080:13: */
+func idxTableFree(tls *libc.TLS, pTab uintptr) { /* sqlite3expert.c:1080:13: */
var pIter uintptr
var pNext uintptr
for pIter = pTab; pIter != 0; pIter = pNext {
@@ -7722,7 +7974,7 @@ func idxTableFree(tls *crt.TLS, pTab uintptr) { /* sqlite3expert.c:1080:13: */
}
// Free the linked list of IdxWrite objects starting at pTab.
-func idxWriteFree(tls *crt.TLS, pTab uintptr) { /* sqlite3expert.c:1092:13: */
+func idxWriteFree(tls *libc.TLS, pTab uintptr) { /* sqlite3expert.c:1092:13: */
var pIter uintptr
var pNext uintptr
for pIter = pTab; pIter != 0; pIter = pNext {
@@ -7734,7 +7986,7 @@ func idxWriteFree(tls *crt.TLS, pTab uintptr) { /* sqlite3expert.c:1092:13: */
// This function is called after candidate indexes have been created. It
// runs all the queries to see which indexes they prefer, and populates
// IdxStatement.zIdx and IdxStatement.zEQP with the results.
-func idxFindIndexes(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1108:5: */
+func idxFindIndexes(tls *libc.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1108:5: */
bp := tls.Alloc(8228)
defer tls.Free(8228)
@@ -7767,7 +8019,7 @@ __1:
*(*uintptr)(unsafe.Pointer(bp + 8216 /* pExplain */)) = uintptr(0)
idxHashClear(tls, bp+24 /* &hIdx */)
*(*int32)(unsafe.Pointer(bp + 8224 /* rc */)) = idxPrintfPrepareStmt(tls, dbm, bp+8216 /* &pExplain */, pzErr,
- ts+234 /* "EXPLAIN QUERY PL..." */, crt.VaList(bp, (*IdxStatement)(unsafe.Pointer(pStmt)).FzSql))
+ ts+234 /* "EXPLAIN QUERY PL..." */, libc.VaList(bp, (*IdxStatement)(unsafe.Pointer(pStmt)).FzSql))
__4:
if !((*(*int32)(unsafe.Pointer(bp + 8224 /* rc */)) == 0) && (sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 8216 /* pExplain */))) == 100)) {
goto __5
@@ -7783,7 +8035,7 @@ __4:
goto __4
__6:
;
- nDetail = int32(crt.Xstrlen(tls, zDetail))
+ nDetail = int32(libc.Xstrlen(tls, zDetail))
i = 0
__7:
@@ -7791,14 +8043,14 @@ __7:
goto __9
}
zIdx = uintptr(0)
- if !(((i + 13) < nDetail) && (crt.Xmemcmp(tls, (zDetail+uintptr(i)), ts+256 /* " USING INDEX " */, uint64(13)) == 0)) {
+ if !(((i + 13) < nDetail) && (libc.Xmemcmp(tls, (zDetail+uintptr(i)), ts+256 /* " USING INDEX " */, uint64(13)) == 0)) {
goto __10
}
zIdx = (zDetail + uintptr((i + 13)))
goto __11
__10:
if !(((i + 22) < nDetail) &&
- (crt.Xmemcmp(tls, (zDetail+uintptr(i)), ts+270 /* " USING COVERING ..." */, uint64(22)) == 0)) {
+ (libc.Xmemcmp(tls, (zDetail+uintptr(i)), ts+270 /* " USING COVERING ..." */, uint64(22)) == 0)) {
goto __12
}
zIdx = (zDetail + uintptr((i + 22)))
@@ -7845,7 +8097,7 @@ __9:
if !(int32(*(*int8)(unsafe.Pointer(zDetail + uintptr(0)))) != '-') {
goto __18
}
- (*IdxStatement)(unsafe.Pointer(pStmt)).FzEQP = idxAppendText(tls, bp+8224 /* &rc */, (*IdxStatement)(unsafe.Pointer(pStmt)).FzEQP, ts+293 /* "%s\n" */, crt.VaList(bp+8, zDetail))
+ (*IdxStatement)(unsafe.Pointer(pStmt)).FzEQP = idxAppendText(tls, bp+8224 /* &rc */, (*IdxStatement)(unsafe.Pointer(pStmt)).FzEQP, ts+293 /* "%s\n" */, libc.VaList(bp+8, zDetail))
__18:
;
goto __4
@@ -7857,7 +8109,7 @@ __19:
if !(pEntry != 0) {
goto __21
}
- (*IdxStatement)(unsafe.Pointer(pStmt)).FzIdx = idxAppendText(tls, bp+8224 /* &rc */, (*IdxStatement)(unsafe.Pointer(pStmt)).FzIdx, ts+297 /* "%s;\n" */, crt.VaList(bp+16, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey))
+ (*IdxStatement)(unsafe.Pointer(pStmt)).FzIdx = idxAppendText(tls, bp+8224 /* &rc */, (*IdxStatement)(unsafe.Pointer(pStmt)).FzIdx, ts+297 /* "%s;\n" */, libc.VaList(bp+16, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzKey))
goto __20
__20:
pEntry = (*IdxHashEntry)(unsafe.Pointer(pEntry)).FpNext
@@ -7880,7 +8132,7 @@ find_indexes_out:
return *(*int32)(unsafe.Pointer(bp + 8224 /* rc */))
}
-func idxAuthCallback(tls *crt.TLS, pCtx uintptr, eOp int32, z3 uintptr, z4 uintptr, zDb uintptr, zTrigger uintptr) int32 { /* sqlite3expert.c:1178:12: */
+func idxAuthCallback(tls *libc.TLS, pCtx uintptr, eOp int32, z3 uintptr, z4 uintptr, zDb uintptr, zTrigger uintptr) int32 { /* sqlite3expert.c:1178:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -7918,7 +8170,7 @@ func idxAuthCallback(tls *crt.TLS, pCtx uintptr, eOp int32, z3 uintptr, z4 uintp
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1216:12: */
+func idxProcessOneTrigger(tls *libc.TLS, p uintptr, pWrite uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1216:12: */
bp := tls.Alloc(104)
defer tls.Free(104)
@@ -7930,7 +8182,7 @@ func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr
var zWrite uintptr = uintptr(0)
// Create the table and its triggers in the temp schema
- *(*int32)(unsafe.Pointer(bp + 88 /* rc */)) = idxPrintfPrepareStmt(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdb, bp+80 /* &pSelect */, pzErr, zSql, crt.VaList(bp, zTab, zTab))
+ *(*int32)(unsafe.Pointer(bp + 88 /* rc */)) = idxPrintfPrepareStmt(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdb, bp+80 /* &pSelect */, pzErr, zSql, libc.VaList(bp, zTab, zTab))
for (*(*int32)(unsafe.Pointer(bp + 88 /* rc */)) == 0) && (100 == sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pSelect */)))) {
var zCreate uintptr = sqlite3.Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pSelect */)), 0)
*(*int32)(unsafe.Pointer(bp + 88 /* rc */)) = sqlite3.Xsqlite3_exec(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbv, zCreate, uintptr(0), uintptr(0), pzErr)
@@ -7939,7 +8191,7 @@ func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr
// Rename the table in the temp schema to zInt
if *(*int32)(unsafe.Pointer(bp + 88 /* rc */)) == 0 {
- var z uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+428 /* "ALTER TABLE temp..." */, crt.VaList(bp+16, zTab, zInt))
+ var z uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+428 /* "ALTER TABLE temp..." */, libc.VaList(bp+16, zTab, zInt))
if z == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 88 /* rc */)) = 7
} else {
@@ -7952,9 +8204,9 @@ func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr
case 18:
{
var i int32
- zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+461 /* "INSERT INTO %Q V..." */, crt.VaList(bp+32, zInt))
+ zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+461 /* "INSERT INTO %Q V..." */, libc.VaList(bp+32, zInt))
for i = 0; i < (*IdxTable)(unsafe.Pointer(pTab)).FnCol; i++ {
- zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+484 /* "%s?" */, crt.VaList(bp+40, func() uintptr {
+ zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+484 /* "%s?" */, libc.VaList(bp+40, func() uintptr {
if i == 0 {
return ts + 488 /* "" */
}
@@ -7967,9 +8219,9 @@ func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr
case 23:
{
var i int32
- zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+491 /* "UPDATE %Q SET " */, crt.VaList(bp+48, zInt))
+ zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+491 /* "UPDATE %Q SET " */, libc.VaList(bp+48, zInt))
for i = 0; i < (*IdxTable)(unsafe.Pointer(pTab)).FnCol; i++ {
- zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+506 /* "%s%Q=?" */, crt.VaList(bp+56, func() uintptr {
+ zWrite = idxAppendText(tls, bp+88 /* &rc */, zWrite, ts+506 /* "%s%Q=?" */, libc.VaList(bp+56, func() uintptr {
if i == 0 {
return ts + 488 /* "" */
}
@@ -7983,7 +8235,7 @@ func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr
{
if *(*int32)(unsafe.Pointer(bp + 88 /* rc */)) == 0 {
- zWrite = sqlite3.Xsqlite3_mprintf(tls, ts+513 /* "DELETE FROM %Q" */, crt.VaList(bp+72, zInt))
+ zWrite = sqlite3.Xsqlite3_mprintf(tls, ts+513 /* "DELETE FROM %Q" */, libc.VaList(bp+72, zInt))
if zWrite == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 88 /* rc */)) = 7
}
@@ -8011,7 +8263,7 @@ func idxProcessOneTrigger(tls *crt.TLS, p uintptr, pWrite uintptr, pzErr uintptr
var zInt uintptr = ts + 528 /* "t592690916721053..." */ /* sqlite3expert.c:1221:21 */
var zDrop uintptr = ts + 566 /* "DROP TABLE t5926..." */ /* sqlite3expert.c:1222:21 */
-func idxProcessTriggers(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1298:12: */
+func idxProcessTriggers(tls *libc.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1298:12: */
var rc int32 = 0
var pEnd uintptr = uintptr(0)
var pFirst uintptr = (*sqlite3expert)(unsafe.Pointer(p)).FpWrite
@@ -8028,7 +8280,7 @@ func idxProcessTriggers(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlit
return rc
}
-func idxCreateVtabSchema(tls *crt.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sqlite3expert.c:1316:12: */
+func idxCreateVtabSchema(tls *libc.TLS, p uintptr, pzErrmsg uintptr) int32 { /* sqlite3expert.c:1316:12: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -8064,7 +8316,7 @@ func idxCreateVtabSchema(tls *crt.TLS, p uintptr, pzErrmsg uintptr) int32 { /* s
zInner = idxAppendText(tls, bp+56 /* &rc */, uintptr(0), ts+883 /* "CREATE TABLE x(" */, 0)
for i = 0; i < (*IdxTable)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 48 /* pTab */)))).FnCol; i++ {
zInner = idxAppendText(tls, bp+56 /* &rc */, zInner, ts+899, /* "%s%Q COLLATE %s" */
- crt.VaList(bp, func() uintptr {
+ libc.VaList(bp, func() uintptr {
if i == 0 {
return ts + 488 /* "" */
}
@@ -8075,7 +8327,7 @@ func idxCreateVtabSchema(tls *crt.TLS, p uintptr, pzErrmsg uintptr) int32 { /* s
// The CVT statement to create the vtab
zOuter = idxAppendText(tls, bp+56 /* &rc */, uintptr(0),
- ts+915 /* "CREATE VIRTUAL T..." */, crt.VaList(bp+24, zName, zInner))
+ ts+915 /* "CREATE VIRTUAL T..." */, libc.VaList(bp+24, zName, zInner))
if *(*int32)(unsafe.Pointer(bp + 56 /* rc */)) == 0 {
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = sqlite3.Xsqlite3_exec(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbv, zOuter, uintptr(0), uintptr(0), pzErrmsg)
}
@@ -8095,7 +8347,7 @@ type IdxSampleCtx = struct {
FnRet float64
}
-func idxSampleFunc(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlite3expert.c:1383:13: */
+func idxSampleFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlite3expert.c:1383:13: */
bp := tls.Alloc(2)
defer tls.Free(2)
@@ -8107,12 +8359,12 @@ func idxSampleFunc(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sq
if (*IdxSampleCtx)(unsafe.Pointer(p)).FnRow == 0.0 {
bRet = 1
} else {
- bRet = (crt.Bool32(((*IdxSampleCtx)(unsafe.Pointer(p)).FnRet / (*IdxSampleCtx)(unsafe.Pointer(p)).FnRow) <= (*IdxSampleCtx)(unsafe.Pointer(p)).Ftarget))
+ bRet = (libc.Bool32(((*IdxSampleCtx)(unsafe.Pointer(p)).FnRet / (*IdxSampleCtx)(unsafe.Pointer(p)).FnRow) <= (*IdxSampleCtx)(unsafe.Pointer(p)).Ftarget))
if bRet == 0 {
// var rnd uint16 at bp, 2
sqlite3.Xsqlite3_randomness(tls, 2, bp /* &rnd */)
- bRet = (crt.Bool32((int32(*(*uint16)(unsafe.Pointer(bp /* rnd */))) % 100) <= (*IdxSampleCtx)(unsafe.Pointer(p)).FiTarget))
+ bRet = (libc.Bool32((int32(*(*uint16)(unsafe.Pointer(bp /* rnd */))) % 100) <= (*IdxSampleCtx)(unsafe.Pointer(p)).FiTarget))
}
}
@@ -8143,7 +8395,7 @@ type IdxRemSlot = struct {
}
// Implementation of scalar function rem().
-func idxRemFunc(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlite3expert.c:1424:13: */
+func idxRemFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlite3expert.c:1424:13: */
var p uintptr = sqlite3.Xsqlite3_user_data(tls, pCtx)
var pSlot uintptr
var iSlot int32
@@ -8166,11 +8418,11 @@ func idxRemFunc(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlit
break
case 4:
- sqlite3.Xsqlite3_result_blob(tls, pCtx, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fn, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_blob(tls, pCtx, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fn, libc.UintptrFromInt32(-1))
break
case 3:
- sqlite3.Xsqlite3_result_text(tls, pCtx, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fn, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fn, libc.UintptrFromInt32(-1))
break
}
@@ -8204,16 +8456,16 @@ func idxRemFunc(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* sqlit
}
(*IdxRemSlot)(unsafe.Pointer(pSlot)).Fn = nByte
if (*IdxRemSlot)(unsafe.Pointer(pSlot)).FeType == 4 {
- crt.Xmemcpy(tls, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))), uint64(nByte))
+ libc.Xmemcpy(tls, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))), uint64(nByte))
} else {
- crt.Xmemcpy(tls, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))), uint64(nByte))
+ libc.Xmemcpy(tls, (*IdxRemSlot)(unsafe.Pointer(pSlot)).Fz, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))), uint64(nByte))
}
break
}
}
}
-func idxLargestIndex(tls *crt.TLS, db uintptr, pnMax uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1497:12: */
+func idxLargestIndex(tls *libc.TLS, db uintptr, pnMax uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1497:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -8231,7 +8483,7 @@ func idxLargestIndex(tls *crt.TLS, db uintptr, pnMax uintptr, pzErr uintptr) int
return *(*int32)(unsafe.Pointer(bp + 8 /* rc */))
}
-func idxPopulateOneStat1(tls *crt.TLS, p uintptr, pIndexXInfo uintptr, pWriteStat uintptr, zTab uintptr, zIdx uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1517:12: */
+func idxPopulateOneStat1(tls *libc.TLS, p uintptr, pIndexXInfo uintptr, pWriteStat uintptr, zTab uintptr, zIdx uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1517:12: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -8256,17 +8508,17 @@ func idxPopulateOneStat1(tls *crt.TLS, p uintptr, pIndexXInfo uintptr, pWriteSta
var zName uintptr = sqlite3.Xsqlite3_column_text(tls, pIndexXInfo, 0)
var zColl uintptr = sqlite3.Xsqlite3_column_text(tls, pIndexXInfo, 1)
zCols = idxAppendText(tls, bp+112 /* &rc */, zCols,
- ts+1093 /* "%sx.%Q IS rem(%d..." */, crt.VaList(bp, zComma, zName, nCol, zName, zColl))
- zOrder = idxAppendText(tls, bp+112 /* &rc */, zOrder, ts+1128 /* "%s%d" */, crt.VaList(bp+40, zComma, crt.PreIncInt32(&nCol, 1)))
+ ts+1093 /* "%sx.%Q IS rem(%d..." */, libc.VaList(bp, zComma, zName, nCol, zName, zColl))
+ zOrder = idxAppendText(tls, bp+112 /* &rc */, zOrder, ts+1128 /* "%s%d" */, libc.VaList(bp+40, zComma, libc.PreIncInt32(&nCol, 1)))
}
sqlite3.Xsqlite3_reset(tls, pIndexXInfo)
if *(*int32)(unsafe.Pointer(bp + 112 /* rc */)) == 0 {
if (*sqlite3expert)(unsafe.Pointer(p)).FiSample == 100 {
zQuery = sqlite3.Xsqlite3_mprintf(tls,
- ts+1133 /* "SELECT %s FROM %..." */, crt.VaList(bp+56, zCols, zTab, zOrder))
+ ts+1133 /* "SELECT %s FROM %..." */, libc.VaList(bp+56, zCols, zTab, zOrder))
} else {
zQuery = sqlite3.Xsqlite3_mprintf(tls,
- ts+1165 /* "SELECT %s FROM t..." */, crt.VaList(bp+80, zCols, zOrder))
+ ts+1165 /* "SELECT %s FROM t..." */, libc.VaList(bp+80, zCols, zOrder))
}
}
sqlite3.Xsqlite3_free(tls, zCols)
@@ -8307,12 +8559,12 @@ func idxPopulateOneStat1(tls *crt.TLS, p uintptr, pIndexXInfo uintptr, pWriteSta
if *(*int32)(unsafe.Pointer(bp + 112 /* rc */)) == 0 {
var s0 int32 = *(*int32)(unsafe.Pointer(aStat + uintptr(0)*4))
- zStat = sqlite3.Xsqlite3_mprintf(tls, ts+1237 /* "%d" */, crt.VaList(bp+96, s0))
+ zStat = sqlite3.Xsqlite3_mprintf(tls, ts+1237 /* "%d" */, libc.VaList(bp+96, s0))
if zStat == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 112 /* rc */)) = 7
}
for i = 1; (*(*int32)(unsafe.Pointer(bp + 112 /* rc */)) == 0) && (i <= nCol); i++ {
- zStat = idxAppendText(tls, bp+112 /* &rc */, zStat, ts+1240 /* " %d" */, crt.VaList(bp+104, ((s0+(*(*int32)(unsafe.Pointer(aStat + uintptr(i)*4))/2)) / *(*int32)(unsafe.Pointer(aStat + uintptr(i)*4)))))
+ zStat = idxAppendText(tls, bp+112 /* &rc */, zStat, ts+1240 /* " %d" */, libc.VaList(bp+104, ((s0+(*(*int32)(unsafe.Pointer(aStat + uintptr(i)*4))/2)) / *(*int32)(unsafe.Pointer(aStat + uintptr(i)*4)))))
}
}
@@ -8324,7 +8576,7 @@ func idxPopulateOneStat1(tls *crt.TLS, p uintptr, pIndexXInfo uintptr, pWriteSta
*(*int32)(unsafe.Pointer(bp + 112 /* rc */)) = sqlite3.Xsqlite3_reset(tls, pWriteStat)
}
- pEntry = idxHashFind(tls, (p + 88 /* &.hIdx */), zIdx, int32(crt.Xstrlen(tls, zIdx)))
+ pEntry = idxHashFind(tls, (p + 88 /* &.hIdx */), zIdx, int32(libc.Xstrlen(tls, zIdx)))
if pEntry != 0 {
(*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal2 = zStat
@@ -8338,7 +8590,7 @@ func idxPopulateOneStat1(tls *crt.TLS, p uintptr, pIndexXInfo uintptr, pWriteSta
return *(*int32)(unsafe.Pointer(bp + 112 /* rc */))
}
-func idxBuildSampleTable(tls *crt.TLS, p uintptr, zTab uintptr) int32 { /* sqlite3expert.c:1617:12: */
+func idxBuildSampleTable(tls *libc.TLS, p uintptr, zTab uintptr) int32 { /* sqlite3expert.c:1617:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -8351,7 +8603,7 @@ func idxBuildSampleTable(tls *crt.TLS, p uintptr, zTab uintptr) int32 { /* sqlit
}
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+1308 /* "CREATE TABLE tem..." */, crt.VaList(bp, zTab))
+ ts+1308 /* "CREATE TABLE tem..." */, libc.VaList(bp, zTab))
if zSql == uintptr(0) {
return 7
}
@@ -8366,7 +8618,7 @@ func idxBuildSampleTable(tls *crt.TLS, p uintptr, zTab uintptr) int32 { /* sqlit
// function populates sqlite_stat1 table in the same database.
//
// The stat1 data is generated by querying the
-func idxPopulateStat1(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1641:12: */
+func idxPopulateStat1(tls *libc.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1641:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -8411,13 +8663,13 @@ func idxPopulateStat1(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3
}()
*(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = sqlite3.Xsqlite3_create_function(tls,
dbrem, ts+1628 /* "rem" */, 2, 1, pCtx, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{idxRemFunc})), uintptr(0), uintptr(0))
}
if *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) == 0 {
*(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = sqlite3.Xsqlite3_create_function(tls,
(*sqlite3expert)(unsafe.Pointer(p)).Fdb, ts+1632 /* "sample" */, 0, 1, bp+8 /* &samplectx */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{idxSampleFunc})), uintptr(0), uintptr(0))
}
@@ -8464,7 +8716,7 @@ func idxPopulateStat1(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3
sqlite3.Xsqlite3_free(tls, pCtx)
if *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) == 0 {
- *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = sqlite3.Xsqlite3_exec(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbm, ts+1639 /* "ANALYZE sqlite_m..." */, uintptr(0), uintptr(0), uintptr(0))
+ *(*int32)(unsafe.Pointer(bp + 4 /* rc */)) = sqlite3.Xsqlite3_exec(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbm, ts+1639 /* "ANALYZE sqlite_s..." */, uintptr(0), uintptr(0), uintptr(0))
}
sqlite3.Xsqlite3_exec(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdb, ts+1244 /* "DROP TABLE IF EX..." */, uintptr(0), uintptr(0), uintptr(0))
@@ -8472,7 +8724,7 @@ func idxPopulateStat1(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3
}
// Allocate a new sqlite3expert object.
-func sqlite3_expert_new(tls *crt.TLS, db uintptr, pzErrmsg uintptr) uintptr { /* sqlite3expert.c:1738:15: */
+func sqlite3_expert_new(tls *libc.TLS, db uintptr, pzErrmsg uintptr) uintptr { /* sqlite3expert.c:1738:15: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -8494,7 +8746,7 @@ func sqlite3_expert_new(tls *crt.TLS, db uintptr, pzErrmsg uintptr) uintptr { /*
if *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) == 0 {
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = sqlite3.Xsqlite3_open(tls, ts+1661 /* ":memory:" */, (pNew + 16 /* &.dbm */))
if *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) == 0 {
- sqlite3.Xsqlite3_db_config(tls, (*sqlite3expert)(unsafe.Pointer(pNew)).Fdbm, 1008, crt.VaList(bp, 1, uintptr(0)))
+ sqlite3.Xsqlite3_db_config(tls, (*sqlite3expert)(unsafe.Pointer(pNew)).Fdbm, 1008, libc.VaList(bp, 1, uintptr(0)))
}
}
@@ -8520,7 +8772,7 @@ func sqlite3_expert_new(tls *crt.TLS, db uintptr, pzErrmsg uintptr) uintptr { /*
// Register the auth callback with dbv
if *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) == 0 {
sqlite3.Xsqlite3_set_authorizer(tls, (*sqlite3expert)(unsafe.Pointer(pNew)).Fdbv, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32
}{idxAuthCallback})), pNew)
}
@@ -8534,7 +8786,7 @@ func sqlite3_expert_new(tls *crt.TLS, db uintptr, pzErrmsg uintptr) uintptr { /*
}
// Configure an sqlite3expert object.
-func sqlite3_expert_config(tls *crt.TLS, p uintptr, op int32, va uintptr) int32 { /* sqlite3expert.c:1799:5: */
+func sqlite3_expert_config(tls *libc.TLS, p uintptr, op int32, va uintptr) int32 { /* sqlite3expert.c:1799:5: */
var rc int32 = 0
var ap va_list
_ = ap
@@ -8542,7 +8794,7 @@ func sqlite3_expert_config(tls *crt.TLS, p uintptr, op int32, va uintptr) int32
switch op {
case 1:
{
- var iVal int32 = int32(crt.VaInt32(&ap))
+ var iVal int32 = int32(libc.VaInt32(&ap))
if iVal < 0 {
iVal = 0
}
@@ -8562,7 +8814,7 @@ func sqlite3_expert_config(tls *crt.TLS, p uintptr, op int32, va uintptr) int32
}
// Add an SQL statement to the analysis.
-func sqlite3_expert_sql(tls *crt.TLS, p uintptr, zSql uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1823:5: */
+func sqlite3_expert_sql(tls *libc.TLS, p uintptr, zSql uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1823:5: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -8582,11 +8834,11 @@ func sqlite3_expert_sql(tls *crt.TLS, p uintptr, zSql uintptr, pzErr uintptr) in
if *(*uintptr)(unsafe.Pointer(bp /* pStmt */)) != 0 {
var pNew uintptr
var z uintptr = sqlite3.Xsqlite3_sql(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)))
- var n int32 = int32(crt.Xstrlen(tls, z))
+ var n int32 = int32(libc.Xstrlen(tls, z))
pNew = idxMalloc(tls, bp+16 /* &rc */, (int32((uint64(unsafe.Sizeof(IdxStatement{})) + uint64(n)) + uint64(1))))
if *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) == 0 {
(*IdxStatement)(unsafe.Pointer(pNew)).FzSql = (pNew + uintptr(1)*40)
- crt.Xmemcpy(tls, (*IdxStatement)(unsafe.Pointer(pNew)).FzSql, z, (uint64(n + 1)))
+ libc.Xmemcpy(tls, (*IdxStatement)(unsafe.Pointer(pNew)).FzSql, z, (uint64(n + 1)))
(*IdxStatement)(unsafe.Pointer(pNew)).FpNext = (*sqlite3expert)(unsafe.Pointer(p)).FpStatement
if (*sqlite3expert)(unsafe.Pointer(p)).FpStatement != 0 {
(*IdxStatement)(unsafe.Pointer(pNew)).FiId = ((*IdxStatement)(unsafe.Pointer((*sqlite3expert)(unsafe.Pointer(p)).FpStatement)).FiId + 1)
@@ -8610,7 +8862,7 @@ func sqlite3_expert_sql(tls *crt.TLS, p uintptr, zSql uintptr, pzErr uintptr) in
return *(*int32)(unsafe.Pointer(bp + 16 /* rc */))
}
-func sqlite3_expert_analyze(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1868:5: */
+func sqlite3_expert_analyze(tls *libc.TLS, p uintptr, pzErr uintptr) int32 { /* sqlite3expert.c:1868:5: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -8634,7 +8886,7 @@ func sqlite3_expert_analyze(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* s
// Formulate the EXPERT_REPORT_CANDIDATES text
for pEntry = (*sqlite3expert)(unsafe.Pointer(p)).FhIdx.FpFirst; pEntry != 0; pEntry = (*IdxHashEntry)(unsafe.Pointer(pEntry)).FpNext {
(*sqlite3expert)(unsafe.Pointer(p)).FzCandidates = idxAppendText(tls, bp+24 /* &rc */, (*sqlite3expert)(unsafe.Pointer(p)).FzCandidates,
- ts+1769 /* "%s;%s%s\n" */, crt.VaList(bp, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal,
+ ts+1769 /* "%s;%s%s\n" */, libc.VaList(bp, (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal,
func() uintptr {
if (*IdxHashEntry)(unsafe.Pointer(pEntry)).FzVal2 != 0 {
return ts + 1778 /* " -- stat1: " */
@@ -8657,7 +8909,7 @@ func sqlite3_expert_analyze(tls *crt.TLS, p uintptr, pzErr uintptr) int32 { /* s
// Return the total number of statements that have been added to this
// sqlite3expert using sqlite3_expert_sql().
-func sqlite3_expert_count(tls *crt.TLS, p uintptr) int32 { /* sqlite3expert.c:1909:5: */
+func sqlite3_expert_count(tls *libc.TLS, p uintptr) int32 { /* sqlite3expert.c:1909:5: */
var nRet int32 = 0
if (*sqlite3expert)(unsafe.Pointer(p)).FpStatement != 0 {
nRet = ((*IdxStatement)(unsafe.Pointer((*sqlite3expert)(unsafe.Pointer(p)).FpStatement)).FiId + 1)
@@ -8666,7 +8918,7 @@ func sqlite3_expert_count(tls *crt.TLS, p uintptr) int32 { /* sqlite3expert.c:19
}
// Return a component of the report.
-func sqlite3_expert_report(tls *crt.TLS, p uintptr, iStmt int32, eReport int32) uintptr { /* sqlite3expert.c:1918:12: */
+func sqlite3_expert_report(tls *libc.TLS, p uintptr, iStmt int32, eReport int32) uintptr { /* sqlite3expert.c:1918:12: */
var zRet uintptr = uintptr(0)
var pStmt uintptr
@@ -8699,7 +8951,7 @@ func sqlite3_expert_report(tls *crt.TLS, p uintptr, iStmt int32, eReport int32)
}
// Free an sqlite3expert object.
-func sqlite3_expert_destroy(tls *crt.TLS, p uintptr) { /* sqlite3expert.c:1944:6: */
+func sqlite3_expert_destroy(tls *libc.TLS, p uintptr) { /* sqlite3expert.c:1944:6: */
if p != 0 {
sqlite3.Xsqlite3_close(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbm)
sqlite3.Xsqlite3_close(tls, (*sqlite3expert)(unsafe.Pointer(p)).Fdbv)
@@ -9257,6 +9509,33 @@ type ClientData = uintptr /* tcl.h:340:15 */
type Tcl_WideInt = int64 /* tcl.h:415:28 */
type Tcl_WideUInt = uint64 /* tcl.h:416:36 */
+type stat = struct {
+ Fst_dev uint64
+ Fst_ino uint64
+ Fst_nlink uint64
+ Fst_mode uint32
+ Fst_uid uint32
+ Fst_gid uint32
+ F__pad0 int32
+ Fst_rdev uint64
+ Fst_size int64
+ Fst_blksize int64
+ Fst_blocks int64
+ Fst_atim struct {
+ Ftv_sec int64
+ Ftv_nsec int64
+ }
+ Fst_mtim struct {
+ Ftv_sec int64
+ Ftv_nsec int64
+ }
+ Fst_ctim struct {
+ Ftv_sec int64
+ Ftv_nsec int64
+ }
+ F__glibc_reserved [3]int64
+}
+
//----------------------------------------------------------------------------
// Data structures defined opaquely in this module. The definitions below just
// provide dummy types. A few fields are made visible in Tcl_Interp
@@ -11039,14 +11318,14 @@ type TclPlatStubs = TclPlatStubs1 /* tclPlatDecls.h:86:3 */
// Extract an sqlite3* db handle from the object passed as the second
// argument. If successful, set *pDb to point to the db handle and return
// TCL_OK. Otherwise, return TCL_ERROR.
-func dbHandleFromObj(tls *crt.TLS, interp uintptr, pObj uintptr, pDb uintptr) int32 { /* test_expert.c:36:12: */
+func dbHandleFromObj(tls *libc.TLS, interp uintptr, pObj uintptr, pDb uintptr) int32 { /* test_expert.c:36:12: */
bp := tls.Alloc(88)
defer tls.Free(88)
// var info Tcl_CmdInfo at bp+24, 64
if 0 == tcl.XTcl_GetCommandInfo(tls, interp, tcl.XTcl_GetString(tls, pObj), bp+24 /* &info */) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+1790 /* "no such handle: " */, tcl.XTcl_GetString(tls, pObj), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+1790 /* "no such handle: " */, tcl.XTcl_GetString(tls, pObj), 0))
return 1
}
@@ -11059,7 +11338,7 @@ func dbHandleFromObj(tls *crt.TLS, interp uintptr, pObj uintptr, pDb uintptr) in
// $expert count
// $expert report STMT EREPORT
// $expert destroy
-func testExpertCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_expert.c:55:26: */
+func testExpertCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_expert.c:55:26: */
bp := tls.Alloc(212)
defer tls.Free(212)
@@ -11156,13 +11435,13 @@ type Subcmd = struct {
FzMsg uintptr
}
-func testExpertDel(tls *crt.TLS, clientData uintptr) { /* test_expert.c:150:27: */
+func testExpertDel(tls *libc.TLS, clientData uintptr) { /* test_expert.c:150:27: */
var pExpert uintptr = clientData
sqlite3_expert_destroy(tls, pExpert)
}
// sqlite3_expert_new DB
-func test_sqlite3_expert_new(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_expert.c:158:26: */
+func test_sqlite3_expert_new(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_expert.c:158:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -11181,21 +11460,21 @@ func test_sqlite3_expert_new(tls *crt.TLS, clientData uintptr, interp uintptr, o
return 1
}
- zCmd = sqlite3.Xsqlite3_mprintf(tls, ts+1913 /* "sqlite3expert%d" */, crt.VaList(bp, crt.PreIncInt32(&iCmd, 1)))
+ zCmd = sqlite3.Xsqlite3_mprintf(tls, ts+1913 /* "sqlite3expert%d" */, libc.VaList(bp, libc.PreIncInt32(&iCmd, 1)))
if zCmd == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+8, ts+1929 /* "out of memory" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+8, ts+1929 /* "out of memory" */, uintptr(0)))
return 1
}
pExpert = sqlite3_expert_new(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* db */)), bp+48 /* &zErr */)
if pExpert == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, *(*uintptr)(unsafe.Pointer(bp + 48 /* zErr */)), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(bp + 48 /* zErr */)), uintptr(0)))
rc = 1
} else {
var p uintptr = pExpert
tcl.XTcl_CreateObjCommand(tls, interp, zCmd, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{testExpertCmd})), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testExpertDel})))
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{testExpertCmd})), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testExpertDel})))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, zCmd, -1))
}
@@ -11206,48 +11485,2284 @@ func test_sqlite3_expert_new(tls *crt.TLS, clientData uintptr, interp uintptr, o
var iCmd int32 = 0 /* test_expert.c:164:14 */
-func TestExpert_Init(tls *crt.TLS, interp uintptr) int32 { /* test_expert.c:202:5: */
+func TestExpert_Init(tls *libc.TLS, interp uintptr) int32 { /* test_expert.c:202:5: */
bp := tls.Alloc(16)
defer tls.Free(16)
- *(*[1]Cmd)(unsafe.Pointer(bp /* aCmd */)) = [1]Cmd{
+ *(*[1]struct {
+ FzCmd uintptr
+ FxProc uintptr
+ })(unsafe.Pointer(bp /* aCmd */)) = [1]struct {
+ FzCmd uintptr
+ FxProc uintptr
+ }{
{FzCmd: ts + 1943 /* "sqlite3_expert_n..." */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_sqlite3_expert_new}))},
}
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof([1]Cmd{})) / uint64(unsafe.Sizeof(Cmd{}))); i++ {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof([1]struct {
+ FzCmd uintptr
+ FxProc uintptr
+ }{})) / uint64(unsafe.Sizeof(struct {
+ FzCmd uintptr
+ FxProc uintptr
+ }{}))); i++ {
var p uintptr = (bp /* &aCmd */ + uintptr(i)*16)
- tcl.XTcl_CreateObjCommand(tls, interp, (*Cmd)(unsafe.Pointer(p)).FzCmd, (*Cmd)(unsafe.Pointer(p)).FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, (*struct {
+ FzCmd uintptr
+ FxProc uintptr
+ })(unsafe.Pointer(p)).FzCmd, (*struct {
+ FzCmd uintptr
+ FxProc uintptr
+ })(unsafe.Pointer(p)).FxProc, uintptr(0), uintptr(0))
}
return 0
}
-type Cmd = struct {
- FzCmd uintptr
- FxProc uintptr
+// 2011 Jan 27
+//
+// The author disclaims copyright to this source code. In place of
+// a legal notice, here is a blessing:
+//
+// May you do good and not evil.
+// May you find forgiveness for yourself and forgive others.
+// May you share freely, never taking more than you give.
+//
+//
+//
+// This file is not part of the production FTS code. It is only used for
+// testing. It contains a virtual table implementation that provides direct
+// access to the full-text index of an FTS table.
+
+// 2009 Nov 12
+//
+// The author disclaims copyright to this source code. In place of
+// a legal notice, here is a blessing:
+//
+// May you do good and not evil.
+// May you find forgiveness for yourself and forgive others.
+// May you share freely, never taking more than you give.
+//
+//
+//
+
+// FTS3/FTS4 require virtual tables
+
+// FTS4 is really an extension for FTS3. It is enabled using the
+// SQLITE_ENABLE_FTS3 macro. But to avoid confusion we also all
+// the SQLITE_ENABLE_FTS4 macro to serve as an alisse for SQLITE_ENABLE_FTS3.
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.2 Diagnostics <assert.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// void assert (int expression);
+//
+// If NDEBUG is defined, do nothing.
+// If not, and EXPRESSION is zero, print an error message and abort.
+
+// void assert_perror (int errnum);
+//
+// If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an
+// error message with the error text for ERRNUM and abort.
+// (This is a GNU extension.)
+
+// Decode a pointer to an sqlite3 object.
+func f5tDbPointer(tls *libc.TLS, interp uintptr, pObj uintptr, ppDb uintptr) int32 { /* fts5_tcl.c:52:12: */
+ bp := tls.Alloc(64)
+ defer tls.Free(64)
+
+ var p uintptr
+ // var cmdInfo Tcl_CmdInfo at bp, 64
+
+ var z uintptr = tcl.XTcl_GetString(tls, pObj)
+ if tcl.XTcl_GetCommandInfo(tls, interp, z, bp /* &cmdInfo */) != 0 {
+ p = (*Tcl_CmdInfo)(unsafe.Pointer(bp /* &cmdInfo */)).FobjClientData
+ *(*uintptr)(unsafe.Pointer(ppDb)) = (*struct{ Fdb uintptr })(unsafe.Pointer(p)).Fdb
+ return 0
+ }
+ return 1
}
-// end block for C++
+// End of code that accesses the SqliteDb struct.
+//
-// Local Variables:
-// mode: c
-// c-basic-offset: 4
-// fill-column: 78
-// End:
+func f5tResultToErrorCode(tls *libc.TLS, zRes uintptr) int32 { /* fts5_tcl.c:67:12: */
+ bp := tls.Alloc(64)
+ defer tls.Free(64)
+
+ *(*[4]ErrorCode)(unsafe.Pointer(bp /* aErr */)) = [4]ErrorCode{
+ {Frc: 101, FzError: ts + 1962 /* "SQLITE_DONE" */},
+ {Frc: 1, FzError: ts + 1974 /* "SQLITE_ERROR" */},
+ {Frc: 0, FzError: ts + 1987 /* "SQLITE_OK" */},
+ {Frc: 0, FzError: ts + 488 /* "" */},
+ }
+ var i int32
+
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof([4]ErrorCode{})) / uint64(unsafe.Sizeof(ErrorCode{}))); i++ {
+ if 0 == sqlite3.Xsqlite3_stricmp(tls, zRes, (*ErrorCode)(unsafe.Pointer(bp /* &aErr */ +uintptr(i)*16)).FzError) {
+ return (*ErrorCode)(unsafe.Pointer(bp /* &aErr */ + uintptr(i)*16)).Frc
+ }
+ }
+
+ return 1
+}
+
+type ErrorCode = struct {
+ Frc int32
+ FzError uintptr
+}
+
+func f5tDbAndApi(tls *libc.TLS, interp uintptr, pObj uintptr, ppDb uintptr, ppApi uintptr) int32 { /* fts5_tcl.c:88:26: */
+ bp := tls.Alloc(72)
+ defer tls.Free(72)
+
+ *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)) = uintptr(0)
+ var rc int32 = f5tDbPointer(tls, interp, pObj, bp+48 /* &db */)
+ if rc != 0 {
+ return 1
+ } else {
+ *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(bp + 64 /* pApi */)) = uintptr(0)
+
+ rc = sqlite3.Xsqlite3_prepare_v2(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), ts+1997 /* "SELECT fts5(?1)" */, -1, bp+56 /* &pStmt */, uintptr(0))
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+2013 /* "error: " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */))), 0))
+ return 1
+ }
+ sqlite3.Xsqlite3_bind_pointer(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)), 1, bp+64 /* &pApi */, ts+2021 /* "fts5_api_ptr" */, uintptr(0))
+ sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))
+
+ if sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */))) != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+2013 /* "error: " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */))), 0))
+ return 1
+ }
+
+ *(*uintptr)(unsafe.Pointer(ppDb)) = *(*uintptr)(unsafe.Pointer(bp + 48 /* db */))
+ *(*uintptr)(unsafe.Pointer(ppApi)) = *(*uintptr)(unsafe.Pointer(bp + 64 /* pApi */))
+ }
+
+ return 0
+}
+
+type F5tFunction1 = struct {
+ Finterp uintptr
+ FpScript uintptr
+}
+
+type F5tFunction = F5tFunction1 /* fts5_tcl.c:122:28 */
+
+type F5tApi1 = struct {
+ FpApi uintptr
+ FpFts uintptr
+}
+
+type F5tApi = F5tApi1 /* fts5_tcl.c:128:23 */
+
+// An object of this type is used with the xSetAuxdata() and xGetAuxdata()
+// API test wrappers. The tcl interface allows a single tcl value to be
+// saved using xSetAuxdata(). Instead of simply storing a pointer to the
+// tcl object, the code in this file wraps it in an sqlite3_malloc'd
+// instance of the following struct so that if the destructor is not
+// correctly invoked it will be reported as an SQLite memory leak.
+type F5tAuxData1 = struct{ FpObj uintptr }
+
+// An object of this type is used with the xSetAuxdata() and xGetAuxdata()
+// API test wrappers. The tcl interface allows a single tcl value to be
+// saved using xSetAuxdata(). Instead of simply storing a pointer to the
+// tcl object, the code in this file wraps it in an sqlite3_malloc'd
+// instance of the following struct so that if the destructor is not
+// correctly invoked it will be reported as an SQLite memory leak.
+type F5tAuxData = F5tAuxData1 /* fts5_tcl.c:142:27 */
+
+func xTokenizeCb(tls *libc.TLS, pCtx uintptr, tflags int32, zToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* fts5_tcl.c:147:12: */
+ var p uintptr = pCtx
+ var pEval uintptr = tcl.XTcl_DuplicateObj(tls, (*F5tFunction)(unsafe.Pointer(p)).FpScript)
+ var rc int32
+
+ (*Tcl_Obj)(unsafe.Pointer(pEval)).FrefCount++
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, tcl.XTcl_NewStringObj(tls, zToken, nToken))
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, tcl.XTcl_NewIntObj(tls, iStart))
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, tcl.XTcl_NewIntObj(tls, iEnd))
+
+ rc = tcl.XTcl_EvalObjEx(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, 0)
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pEval
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ if rc == 0 {
+ rc = f5tResultToErrorCode(tls, tcl.XTcl_GetStringResult(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp))
+ }
+
+ return rc
+}
+
+func xQueryPhraseCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr) int32 { /* fts5_tcl.c:173:12: */
+ bp := tls.Alloc(88)
+ defer tls.Free(88)
+
+ var p uintptr = pCtx
+ var pEval uintptr
+ var rc int32
+ // var zCmd [64]int8 at bp+8, 64
+
+ // var sApi F5tApi at bp+72, 16
+
+ (*F5tApi)(unsafe.Pointer(bp + 72 /* &sApi */)).FpApi = pApi
+ (*F5tApi)(unsafe.Pointer(bp + 72 /* &sApi */)).FpFts = pFts
+ libc.Xsprintf(tls, bp+8 /* &zCmd[0] */, ts+2034 /* "f5t_2_%lld" */, libc.VaList(bp, libc.PostIncInt64(&iCmd1, 1)))
+ tcl.XTcl_CreateObjCommand(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, bp+8 /* &zCmd[0] */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{xF5tApi})), bp+72 /* &sApi */, uintptr(0))
+
+ pEval = tcl.XTcl_DuplicateObj(tls, (*F5tFunction)(unsafe.Pointer(p)).FpScript)
+ (*Tcl_Obj)(unsafe.Pointer(pEval)).FrefCount++
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, tcl.XTcl_NewStringObj(tls, bp+8 /* &zCmd[0] */, -1))
+ rc = tcl.XTcl_EvalObjEx(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, 0)
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pEval
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ tcl.XTcl_DeleteCommand(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, bp+8 /* &zCmd[0] */)
+
+ if rc == 0 {
+ rc = f5tResultToErrorCode(tls, tcl.XTcl_GetStringResult(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp))
+ }
+
+ return rc
+}
+
+var iCmd1 sqlite3_int64 = int64(0) /* fts5_tcl.c:179:24 */
+
+func xSetAuxdataDestructor(tls *libc.TLS, p uintptr) { /* fts5_tcl.c:205:13: */
+ var pData uintptr = p
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = (*F5tAuxData)(unsafe.Pointer(pData)).FpObj
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ sqlite3.Xsqlite3_free(tls, pData)
+}
+
+// api sub-command...
+//
+// Description...
+func xF5tApi(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:216:26: */
+ bp := tls.Alloc(684)
+ defer tls.Free(684)
+
+ *(*[19]Sub)(unsafe.Pointer(bp + 32 /* aSub */)) = [19]Sub{
+ {FzName: ts + 2045 /* "xColumnCount" */, FnArg: 0, FzMsg: ts + 488 /* "" */}, // 0
+ {FzName: ts + 2058 /* "xRowCount" */, FnArg: 0, FzMsg: ts + 488 /* "" */}, // 1
+ {FzName: ts + 2068 /* "xColumnTotalSize" */, FnArg: 1, FzMsg: ts + 2085 /* "COL" */}, // 2
+ {FzName: ts + 2089 /* "xTokenize" */, FnArg: 2, FzMsg: ts + 2099 /* "TEXT SCRIPT" */}, // 3
+ {FzName: ts + 2111 /* "xPhraseCount" */, FnArg: 0, FzMsg: ts + 488 /* "" */}, // 4
+ {FzName: ts + 2124 /* "xPhraseSize" */, FnArg: 1, FzMsg: ts + 2136 /* "PHRASE" */}, // 5
+ {FzName: ts + 2143 /* "xInstCount" */, FnArg: 0, FzMsg: ts + 488 /* "" */}, // 6
+ {FzName: ts + 2154 /* "xInst" */, FnArg: 1, FzMsg: ts + 2160 /* "IDX" */}, // 7
+ {FzName: ts + 2164 /* "xRowid" */, FnArg: 0, FzMsg: ts + 488 /* "" */}, // 8
+ {FzName: ts + 2171 /* "xColumnText" */, FnArg: 1, FzMsg: ts + 2085 /* "COL" */}, // 9
+ {FzName: ts + 2183 /* "xColumnSize" */, FnArg: 1, FzMsg: ts + 2085 /* "COL" */}, // 10
+ {FzName: ts + 2195 /* "xQueryPhrase" */, FnArg: 2, FzMsg: ts + 2208 /* "PHRASE SCRIPT" */}, // 11
+ {FzName: ts + 2222 /* "xSetAuxdata" */, FnArg: 1, FzMsg: ts + 2234 /* "VALUE" */}, // 12
+ {FzName: ts + 2240 /* "xGetAuxdata" */, FnArg: 1, FzMsg: ts + 2252 /* "CLEAR" */}, // 13
+ {FzName: ts + 2258 /* "xSetAuxdataInt" */, FnArg: 1, FzMsg: ts + 2273 /* "INTEGER" */}, // 14
+ {FzName: ts + 2281 /* "xGetAuxdataInt" */, FnArg: 1, FzMsg: ts + 2252 /* "CLEAR" */}, // 15
+ {FzName: ts + 2296 /* "xPhraseForeach" */, FnArg: 4, FzMsg: ts + 2311 /* "IPHRASE COLVAR O..." */}, // 16
+ {FzName: ts + 2340 /* "xPhraseColumnFor..." */, FnArg: 3, FzMsg: ts + 2361 /* "IPHRASE COLVAR S..." */}, // 17
+ {FzName: uintptr(0), FnArg: 0, FzMsg: uintptr(0)},
+ }
+ var rc int32
+ *(*int32)(unsafe.Pointer(bp + 488 /* iSub */)) = 0
+ var p uintptr = clientData
+
+ if objc < 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2383 /* "SUB-COMMAND" */)
+ return 1
+ }
+
+ rc = tcl.XTcl_GetIndexFromObjStruct(tls,
+ interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+32 /* &aSub[0] */, int32(unsafe.Sizeof(Sub{})), ts+2383 /* "SUB-COMMAND" */, 0, bp+488 /* &iSub */)
+ if rc != 0 {
+ return rc
+ }
+ if (*Sub)(unsafe.Pointer(bp+32 /* &aSub */ +uintptr(*(*int32)(unsafe.Pointer(bp + 488 /* iSub */)))*24)).FnArg != (objc - 2) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, (*Sub)(unsafe.Pointer(bp+32 /* &aSub */ +uintptr(*(*int32)(unsafe.Pointer(bp + 488 /* iSub */)))*24)).FzMsg)
+ return 1
+ }
+
+ switch *(*int32)(unsafe.Pointer(bp + 488 /* iSub */)) {
+ case 0:
+ {
+ var nCol int32
+ nCol = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 16 /* &.xColumnCount */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, nCol))
+ }
+ break
+ }
+ case 1:
+ {
+ // var nRow sqlite3_int64 at bp+496, 8
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 24 /* &.xRowCount */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, bp+496 /* &nRow */)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(*(*sqlite3_int64)(unsafe.Pointer(bp + 496 /* nRow */)))))
+ }
+ break
+ }
+ case 2:
+ {
+ // var iCol int32 at bp+504, 4
+
+ // var nSize sqlite3_int64 at bp+512, 8
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+504 /* &iCol */) != 0 {
+ return 1
+ }
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 32 /* &.xColumnTotalSize */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 504 /* iCol */)), bp+512 /* &nSize */)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(*(*sqlite3_int64)(unsafe.Pointer(bp + 512 /* nSize */)))))
+ }
+ break
+ }
+ case 3:
+ {
+ // var nText int32 at bp+520, 4
+
+ var zText uintptr = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+520 /* &nText */)
+ // var ctx F5tFunction at bp+528, 16
+
+ (*F5tFunction)(unsafe.Pointer(bp + 528 /* &ctx */)).Finterp = interp
+ (*F5tFunction)(unsafe.Pointer(bp + 528 /* &ctx */)).FpScript = *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 40 /* &.xTokenize */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, zText, *(*int32)(unsafe.Pointer(bp + 520 /* nText */)), bp+528 /* &ctx */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32
+ }{xTokenizeCb})))
+ if rc == 0 {
+ tcl.XTcl_ResetResult(tls, interp)
+ }
+ return rc
+ }
+ case 4:
+ {
+ var nPhrase int32
+ nPhrase = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 48 /* &.xPhraseCount */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, nPhrase))
+ }
+ break
+ }
+ case 5:
+ {
+ // var iPhrase int32 at bp+544, 4
+
+ var sz int32
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+544 /* &iPhrase */) != 0 {
+ return 1
+ }
+ sz = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 56 /* &.xPhraseSize */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 544 /* iPhrase */)))
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, sz))
+ }
+ break
+ }
+ case 6:
+ {
+ // var nInst int32 at bp+548, 4
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 64 /* &.xInstCount */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, bp+548 /* &nInst */)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 548 /* nInst */))))
+ }
+ break
+ }
+ case 7:
+ {
+ // var iIdx int32 at bp+552, 4
+
+ // var ip int32 at bp+556, 4
+
+ // var ic int32 at bp+560, 4
+
+ // var io int32 at bp+564, 4
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+552 /* &iIdx */) != 0 {
+ return 1
+ }
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 72 /* &.xInst */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 552 /* iIdx */)), bp+556 /* &ip */, bp+560 /* &ic */, bp+564 /* &io */)
+ if rc == 0 {
+ var pList uintptr = tcl.XTcl_NewObj(tls)
+ tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 556 /* ip */))))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 560 /* ic */))))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 564 /* io */))))
+ tcl.XTcl_SetObjResult(tls, interp, pList)
+ }
+ break
+ }
+ case 8:
+ {
+ var iRowid sqlite3_int64 = (*(*func(*libc.TLS, uintptr) sqlite3_int64)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 80 /* &.xRowid */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(iRowid)))
+ break
+ }
+ case 9:
+ {
+ *(*uintptr)(unsafe.Pointer(bp + 576 /* z */)) = uintptr(0)
+ *(*int32)(unsafe.Pointer(bp + 584 /* n */)) = 0
+ // var iCol int32 at bp+568, 4
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+568 /* &iCol */) != 0 {
+ return 1
+ }
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 88 /* &.xColumnText */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 568 /* iCol */)), bp+576 /* &z */, bp+584 /* &n */)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, *(*uintptr)(unsafe.Pointer(bp + 576 /* z */)), *(*int32)(unsafe.Pointer(bp + 584 /* n */))))
+ }
+ break
+ }
+ case 10:
+ {
+ *(*int32)(unsafe.Pointer(bp + 592 /* n */)) = 0
+ // var iCol int32 at bp+588, 4
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+588 /* &iCol */) != 0 {
+ return 1
+ }
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 96 /* &.xColumnSize */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 588 /* iCol */)), bp+592 /* &n */)
+ if rc == 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 592 /* n */))))
+ }
+ break
+ }
+ case 11:
+ {
+ // var iPhrase int32 at bp+596, 4
+
+ // var ctx F5tFunction at bp+600, 16
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+596 /* &iPhrase */) != 0 {
+ return 1
+ }
+ (*F5tFunction)(unsafe.Pointer(bp + 600 /* &ctx */)).Finterp = interp
+ (*F5tFunction)(unsafe.Pointer(bp + 600 /* &ctx */)).FpScript = *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8))
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 104 /* &.xQueryPhrase */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 596 /* iPhrase */)), bp+600 /* &ctx */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
+ }{xQueryPhraseCb})))
+ if rc == 0 {
+ tcl.XTcl_ResetResult(tls, interp)
+ }
+ break
+ }
+ case 12:
+ {
+ var pData uintptr = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(F5tAuxData{})))
+ if pData == uintptr(0) {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+1929 /* "out of memory" */, 0))
+ return 1
+ }
+ (*F5tAuxData)(unsafe.Pointer(pData)).FpObj = *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))
+ (*Tcl_Obj)(unsafe.Pointer((*F5tAuxData)(unsafe.Pointer(pData)).FpObj)).FrefCount++
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 112 /* &.xSetAuxdata */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, pData, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{xSetAuxdataDestructor})))
+ break
+ }
+ case 13:
+ {
+ var pData uintptr
+ // var bClear int32 at bp+616, 4
+
+ if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+616 /* &bClear */) != 0 {
+ return 1
+ }
+ pData = (*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 120 /* &.xGetAuxdata */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 616 /* bClear */)))
+ if pData == uintptr(0) {
+ tcl.XTcl_ResetResult(tls, interp)
+ } else {
+ tcl.XTcl_SetObjResult(tls, interp, (*F5tAuxData)(unsafe.Pointer(pData)).FpObj)
+ if *(*int32)(unsafe.Pointer(bp + 616 /* bClear */)) != 0 {
+ xSetAuxdataDestructor(tls, pData)
+ }
+ }
+ break
+ }
+
+ // These two - xSetAuxdataInt and xGetAuxdataInt - are similar to the
+ // xSetAuxdata and xGetAuxdata methods implemented above. The difference
+ // is that they may only save an integer value as auxiliary data, and
+ // do not specify a destructor function.
+ case 14:
+ {
+ // var iVal int32 at bp+620, 4
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+620 /* &iVal */) != 0 {
+ return 1
+ }
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 112 /* &.xSetAuxdata */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, (uintptr(0) + uintptr(*(*int32)(unsafe.Pointer(bp + 620 /* iVal */)))), uintptr(0))
+ break
+ }
+ case 15:
+ {
+ var iVal int32
+ // var bClear int32 at bp+624, 4
+
+ if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+624 /* &bClear */) != 0 {
+ return 1
+ }
+ iVal = (int32((int64((*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 120 /* &.xGetAuxdata */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 624 /* bClear */)))) - int64(uintptr(0))) / 1))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, iVal))
+ break
+ }
+
+ case 16:
+ {
+ // var iPhrase int32 at bp+628, 4
+
+ // var iCol int32 at bp+648, 4
+
+ // var iOff int32 at bp+652, 4
+
+ var zColvar uintptr
+ var zOffvar uintptr
+ var pScript uintptr = *(*uintptr)(unsafe.Pointer(objv + uintptr(5)*8))
+ // var iter Fts5PhraseIter at bp+632, 16
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+628 /* &iPhrase */) != 0 {
+ return 1
+ }
+ zColvar = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
+ zOffvar = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)))
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 128 /* &.xPhraseFirst */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 628 /* iPhrase */)), bp+632 /* &iter */, bp+648 /* &iCol */, bp+652 /* &iOff */)
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ return 1
+ }
+ for ; *(*int32)(unsafe.Pointer(bp + 648 /* iCol */)) >= 0; (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 136 /* &.xPhraseNext */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, bp+632 /* &iter */, bp+648 /* &iCol */, bp+652 /* &iOff */) {
+ tcl.XTcl_SetVar2Ex(tls, interp, zColvar, uintptr(0), tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 648 /* iCol */))), 0)
+ tcl.XTcl_SetVar2Ex(tls, interp, zOffvar, uintptr(0), tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 652 /* iOff */))), 0)
+ rc = tcl.XTcl_EvalObjEx(tls, interp, pScript, 0)
+ if rc == 4 {
+ rc = 0
+ }
+ if rc != 0 {
+ if rc == 3 {
+ rc = 0
+ }
+ break
+ }
+ }
+
+ break
+ }
+
+ case 17:
+ {
+ // var iPhrase int32 at bp+656, 4
+
+ // var iCol int32 at bp+680, 4
+
+ var zColvar uintptr
+ var pScript uintptr = *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8))
+ // var iter Fts5PhraseIter at bp+664, 16
+
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+656 /* &iPhrase */) != 0 {
+ return 1
+ }
+ zColvar = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 144 /* &.xPhraseFirstColumn */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, *(*int32)(unsafe.Pointer(bp + 656 /* iPhrase */)), bp+664 /* &iter */, bp+680 /* &iCol */)
+ if rc != 0 {
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
+ return 1
+ }
+ for ; *(*int32)(unsafe.Pointer(bp + 680 /* iCol */)) >= 0; (*(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer(((*F5tApi)(unsafe.Pointer(p)).FpApi + 152 /* &.xPhraseNextColumn */))))(tls, (*F5tApi)(unsafe.Pointer(p)).FpFts, bp+664 /* &iter */, bp+680 /* &iCol */) {
+ tcl.XTcl_SetVar2Ex(tls, interp, zColvar, uintptr(0), tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 680 /* iCol */))), 0)
+ rc = tcl.XTcl_EvalObjEx(tls, interp, pScript, 0)
+ if rc == 4 {
+ rc = 0
+ }
+ if rc != 0 {
+ if rc == 3 {
+ rc = 0
+ }
+ break
+ }
+ }
+
+ break
+ }
+
+ default:
+
+ break
+ }
+
+ if rc != 0 {
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
+ return 1
+ }
+
+ return 0
+}
+
+type Sub = struct {
+ FzName uintptr
+ FnArg int32
+ FzMsg uintptr
+}
+
+func xF5tFunction(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* fts5_tcl.c:515:13: */
+ bp := tls.Alloc(112)
+ defer tls.Free(112)
+
+ var p uintptr = (*(*func(*libc.TLS, uintptr) uintptr)(unsafe.Pointer((pApi + 8 /* &.xUserData */))))(tls, pFts)
+ var pEval uintptr // Script to evaluate
+ var i int32
+ var rc int32
+ // var zCmd [64]int8 at bp+8, 64
+
+ // var sApi F5tApi at bp+72, 16
+
+ (*F5tApi)(unsafe.Pointer(bp + 72 /* &sApi */)).FpApi = pApi
+ (*F5tApi)(unsafe.Pointer(bp + 72 /* &sApi */)).FpFts = pFts
+
+ libc.Xsprintf(tls, bp+8 /* &zCmd[0] */, ts+2395 /* "f5t_%lld" */, libc.VaList(bp, libc.PostIncInt64(&iCmd2, 1)))
+ tcl.XTcl_CreateObjCommand(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, bp+8 /* &zCmd[0] */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{xF5tApi})), bp+72 /* &sApi */, uintptr(0))
+ pEval = tcl.XTcl_DuplicateObj(tls, (*F5tFunction)(unsafe.Pointer(p)).FpScript)
+ (*Tcl_Obj)(unsafe.Pointer(pEval)).FrefCount++
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, tcl.XTcl_NewStringObj(tls, bp+8 /* &zCmd[0] */, -1))
+
+ for i = 0; i < nVal; i++ {
+ var pObj uintptr = uintptr(0)
+ switch sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8))) {
+ case 3:
+ pObj = tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8))), -1)
+ break
+ case 4:
+ pObj = tcl.XTcl_NewByteArrayObj(tls,
+ sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8))), sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8))))
+ break
+ case 1:
+ pObj = tcl.XTcl_NewWideIntObj(tls, int64(sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8)))))
+ break
+ case 2:
+ pObj = tcl.XTcl_NewDoubleObj(tls, sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8))))
+ break
+ default:
+ pObj = tcl.XTcl_NewObj(tls)
+ break
+ }
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, pObj)
+ }
+
+ rc = tcl.XTcl_EvalObjEx(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, pEval, 1)
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pEval
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ tcl.XTcl_DeleteCommand(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp, bp+8 /* &zCmd[0] */)
+
+ if rc != 0 {
+ sqlite3.Xsqlite3_result_error(tls, pCtx, tcl.XTcl_GetStringResult(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp), -1)
+ } else {
+ var pVar uintptr = tcl.XTcl_GetObjResult(tls, (*F5tFunction)(unsafe.Pointer(p)).Finterp)
+ // var n int32 at bp+88, 4
+
+ var zType uintptr = func() uintptr {
+ if (*Tcl_Obj)(unsafe.Pointer(pVar)).FtypePtr != 0 {
+ return (*Tcl_ObjType)(unsafe.Pointer((*Tcl_Obj)(unsafe.Pointer(pVar)).FtypePtr)).Fname
+ }
+ return ts + 488 /* "" */
+ }()
+ var c int8 = *(*int8)(unsafe.Pointer(zType + uintptr(0)))
+ if ((int32(c) == 'b') && (libc.Xstrcmp(tls, zType, ts+2404 /* "bytearray" */) == 0)) && ((*Tcl_Obj)(unsafe.Pointer(pVar)).Fbytes == uintptr(0)) {
+ // Only return a BLOB type if the Tcl variable is a bytearray and
+ // has no string representation.
+ var data uintptr = tcl.XTcl_GetByteArrayFromObj(tls, pVar, bp+88 /* &n */)
+ sqlite3.Xsqlite3_result_blob(tls, pCtx, data, *(*int32)(unsafe.Pointer(bp + 88 /* n */)), libc.UintptrFromInt32(-1))
+ } else if (int32(c) == 'b') && (libc.Xstrcmp(tls, zType, ts+2414 /* "boolean" */) == 0) {
+ tcl.XTcl_GetIntFromObj(tls, uintptr(0), pVar, bp+88 /* &n */)
+ sqlite3.Xsqlite3_result_int(tls, pCtx, *(*int32)(unsafe.Pointer(bp + 88 /* n */)))
+ } else if (int32(c) == 'd') && (libc.Xstrcmp(tls, zType, ts+2422 /* "double" */) == 0) {
+ // var r float64 at bp+96, 8
+
+ tcl.XTcl_GetDoubleFromObj(tls, uintptr(0), pVar, bp+96 /* &r */)
+ sqlite3.Xsqlite3_result_double(tls, pCtx, *(*float64)(unsafe.Pointer(bp + 96 /* r */)))
+ } else if ((int32(c) == 'w') && (libc.Xstrcmp(tls, zType, ts+2429 /* "wideInt" */) == 0)) || ((int32(c) == 'i') && (libc.Xstrcmp(tls, zType, ts+2437 /* "int" */) == 0)) {
+ // var v Tcl_WideInt at bp+104, 8
+
+ tcl.XTcl_GetWideIntFromObj(tls, uintptr(0), pVar, bp+104 /* &v */)
+ sqlite3.Xsqlite3_result_int64(tls, pCtx, int64(*(*Tcl_WideInt)(unsafe.Pointer(bp + 104 /* v */))))
+ } else {
+ var data uintptr = tcl.XTcl_GetStringFromObj(tls, pVar, bp+88 /* &n */)
+ sqlite3.Xsqlite3_result_text(tls, pCtx, data, *(*int32)(unsafe.Pointer(bp + 88 /* n */)), libc.UintptrFromInt32(-1))
+ }
+ }
+}
+
+var iCmd2 sqlite3_int64 = int64(0) /* fts5_tcl.c:527:24 */
+
+func xF5tDestroy(tls *libc.TLS, pCtx uintptr) { /* fts5_tcl.c:598:13: */
+ var p uintptr = pCtx
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = (*F5tFunction)(unsafe.Pointer(p)).FpScript
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ tcl.XTcl_Free(tls, p)
+}
+
+// sqlite3_fts5_create_function DB NAME SCRIPT
+//
+// Description...
+func f5tCreateFunction(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:609:26: */
+ bp := tls.Alloc(40)
+ defer tls.Free(40)
+
+ var zName uintptr
+ var pScript uintptr
+ *(*uintptr)(unsafe.Pointer(bp + 24 /* db */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(bp + 32 /* pApi */)) = uintptr(0)
+ var pCtx uintptr = uintptr(0)
+ var rc int32
+
+ if objc != 4 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2441 /* "DB NAME SCRIPT" */)
+ return 1
+ }
+ if f5tDbAndApi(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+24 /* &db */, bp+32 /* &pApi */) != 0 {
+ return 1
+ }
+
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+ pScript = *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8))
+ pCtx = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(F5tFunction{})))
+ (*F5tFunction)(unsafe.Pointer(pCtx)).Finterp = interp
+ (*F5tFunction)(unsafe.Pointer(pCtx)).FpScript = pScript
+ (*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, fts5_extension_function, uintptr) int32)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(bp + 32 /* pApi */)) + 24 /* &.xCreateFunction */))))(tls,
+ *(*uintptr)(unsafe.Pointer(bp + 32 /* pApi */)), zName, pCtx, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
+ }{xF5tFunction})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{xF5tDestroy})))
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+2013 /* "error: " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* db */))), 0))
+ return 1
+ }
+
+ return 0
+}
+
+type F5tTokenizeCtx1 = struct {
+ FpRet uintptr
+ FbSubst int32
+ FzInput uintptr
+}
+
+type F5tTokenizeCtx = F5tTokenizeCtx1 /* fts5_tcl.c:646:31 */
+
+func xTokenizeCb2(tls *libc.TLS, pCtx uintptr, tflags int32, zToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* fts5_tcl.c:653:12: */
+ var p uintptr = pCtx
+ if (*F5tTokenizeCtx)(unsafe.Pointer(p)).FbSubst != 0 {
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), (*F5tTokenizeCtx)(unsafe.Pointer(p)).FpRet, tcl.XTcl_NewStringObj(tls, zToken, nToken))
+ tcl.XTcl_ListObjAppendElement(tls,
+ uintptr(0), (*F5tTokenizeCtx)(unsafe.Pointer(p)).FpRet, tcl.XTcl_NewStringObj(tls, ((*F5tTokenizeCtx)(unsafe.Pointer(p)).FzInput+uintptr(iStart)), (iEnd-iStart)))
+ } else {
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), (*F5tTokenizeCtx)(unsafe.Pointer(p)).FpRet, tcl.XTcl_NewStringObj(tls, zToken, nToken))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), (*F5tTokenizeCtx)(unsafe.Pointer(p)).FpRet, tcl.XTcl_NewIntObj(tls, iStart))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), (*F5tTokenizeCtx)(unsafe.Pointer(p)).FpRet, tcl.XTcl_NewIntObj(tls, iEnd))
+ }
+ return 0
+}
+
+// sqlite3_fts5_tokenize DB TOKENIZER TEXT
+//
+// Description...
+func f5tTokenize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:679:26: */
+ bp := tls.Alloc(200)
+ defer tls.Free(200)
+
+ var zText uintptr
+ // var nText int32 at bp+128, 4
+
+ *(*uintptr)(unsafe.Pointer(bp + 96 /* db */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(bp + 104 /* pApi */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(bp + 168 /* pTok */)) = uintptr(0)
+ // var tokenizer fts5_tokenizer at bp+144, 24
+
+ var pRet uintptr = uintptr(0)
+ // var pUserdata uintptr at bp+136, 8
+
+ var rc int32
+ // var nArg int32 at bp+112, 4
+
+ // var azArg uintptr at bp+120, 8
+
+ // var ctx F5tTokenizeCtx at bp+176, 24
+
+ if (objc != 4) && (objc != 5) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2456 /* "?-subst? DB NAME..." */)
+ return 1
+ }
+ if objc == 5 {
+ var zOpt uintptr = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
+ if libc.Xstrcmp(tls, ts+2478 /* "-subst" */, zOpt) != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+2485 /* "unrecognized opt..." */, zOpt, 0))
+ return 1
+ }
+ }
+ if f5tDbAndApi(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-3))*8)), bp+96 /* &db */, bp+104 /* &pApi */) != 0 {
+ return 1
+ }
+ if tcl.XTcl_SplitList(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-2))*8))), bp+112 /* &nArg */, bp+120 /* &azArg */) != 0 {
+ return 1
+ }
+ if *(*int32)(unsafe.Pointer(bp + 112 /* nArg */)) == 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+2507 /* "no such tokenize..." */, 0))
+ tcl.XTcl_Free(tls, *(*uintptr)(unsafe.Pointer(bp + 120 /* azArg */)))
+ return 1
+ }
+ zText = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-1))*8)), bp+128 /* &nText */)
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(bp + 104 /* pApi */)) + 16 /* &.xFindTokenizer */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 104 /* pApi */)), *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 120 /* azArg */)) + uintptr(0)*8)), bp+136 /* &pUserdata */, bp+144 /* &tokenizer */)
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, ts+2507 /* "no such tokenize..." */, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 120 /* azArg */)) + uintptr(0)*8)), 0))
+ return 1
+ }
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((bp + 144 /* &tokenizer */ /* &.xCreate */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 136 /* pUserdata */)), (*(*uintptr)(unsafe.Pointer(bp + 120 /* azArg */)) + uintptr(1)*8), (*(*int32)(unsafe.Pointer(bp + 112 /* nArg */)) - 1), bp+168 /* &pTok */)
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, ts+2527 /* "error in tokeniz..." */, 0))
+ return 1
+ }
+
+ pRet = tcl.XTcl_NewObj(tls)
+ (*Tcl_Obj)(unsafe.Pointer(pRet)).FrefCount++
+ (*F5tTokenizeCtx)(unsafe.Pointer(bp + 176 /* &ctx */)).FbSubst = (libc.Bool32(objc == 5))
+ (*F5tTokenizeCtx)(unsafe.Pointer(bp + 176 /* &ctx */)).FpRet = pRet
+ (*F5tTokenizeCtx)(unsafe.Pointer(bp + 176 /* &ctx */)).FzInput = zText
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer((bp + 144 /* &tokenizer */ + 16 /* &.xTokenize */))))(tls,
+ *(*uintptr)(unsafe.Pointer(bp + 168 /* pTok */)), bp+176 /* &ctx */, 0x0004, zText, *(*int32)(unsafe.Pointer(bp + 128 /* nText */)), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32
+ }{xTokenizeCb2})))
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((bp + 144 /* &tokenizer */ + 8 /* &.xDelete */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 168 /* pTok */)))
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+80, ts+2556 /* "error in tokeniz..." */, 0))
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pRet
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ return 1
+ }
+
+ tcl.XTcl_Free(tls, *(*uintptr)(unsafe.Pointer(bp + 120 /* azArg */)))
+ tcl.XTcl_SetObjResult(tls, interp, pRet)
+ for ok1 := true; ok1; ok1 = 0 != 0 {
+ var _objPtr uintptr = pRet
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ return 0
+}
+
+// ************************************************************************
+//
+// Start of tokenizer wrapper.
+
+type F5tTokenizerContext1 = struct {
+ FpCtx uintptr
+ FxToken uintptr
+}
+
+// ************************************************************************
+//
+// Start of tokenizer wrapper.
+
+type F5tTokenizerContext = F5tTokenizerContext1 /* fts5_tcl.c:759:36 */
+type F5tTokenizerModule1 = struct {
+ Finterp uintptr
+ FpScript uintptr
+ FpContext uintptr
+}
+
+type F5tTokenizerModule = F5tTokenizerModule1 /* fts5_tcl.c:761:35 */
+type F5tTokenizerInstance1 = struct {
+ Finterp uintptr
+ FpScript uintptr
+ FpContext uintptr
+}
+
+type F5tTokenizerInstance = F5tTokenizerInstance1 /* fts5_tcl.c:762:37 */
+
+func f5tTokenizerCreate(tls *libc.TLS, pCtx uintptr, azArg uintptr, nArg int32, ppOut uintptr) int32 { /* fts5_tcl.c:781:12: */
+ var pMod uintptr = pCtx
+ var pEval uintptr
+ var rc int32 = 0
+ var i int32
+
+ pEval = tcl.XTcl_DuplicateObj(tls, (*F5tTokenizerModule)(unsafe.Pointer(pMod)).FpScript)
+ (*Tcl_Obj)(unsafe.Pointer(pEval)).FrefCount++
+ for i = 0; (rc == 0) && (i < nArg); i++ {
+ var pObj uintptr = tcl.XTcl_NewStringObj(tls, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)), -1)
+ rc = tcl.XTcl_ListObjAppendElement(tls, (*F5tTokenizerModule)(unsafe.Pointer(pMod)).Finterp, pEval, pObj)
+ }
+
+ if rc == 0 {
+ rc = tcl.XTcl_EvalObjEx(tls, (*F5tTokenizerModule)(unsafe.Pointer(pMod)).Finterp, pEval, 1)
+ }
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pEval
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+
+ if rc == 0 {
+ var pInst uintptr
+ pInst = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(F5tTokenizerInstance{})))
+ libc.Xmemset(tls, pInst, 0, uint64(unsafe.Sizeof(F5tTokenizerInstance{})))
+ (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).Finterp = (*F5tTokenizerModule)(unsafe.Pointer(pMod)).Finterp
+ (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpScript = tcl.XTcl_GetObjResult(tls, (*F5tTokenizerModule)(unsafe.Pointer(pMod)).Finterp)
+ (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext = (*F5tTokenizerModule)(unsafe.Pointer(pMod)).FpContext
+ (*Tcl_Obj)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpScript)).FrefCount++
+ *(*uintptr)(unsafe.Pointer(ppOut)) = pInst
+ }
+
+ return rc
+}
+
+func f5tTokenizerDelete(tls *libc.TLS, p uintptr) { /* fts5_tcl.c:819:13: */
+ var pInst uintptr = p
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpScript
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ tcl.XTcl_Free(tls, pInst)
+}
+
+func f5tTokenizerTokenize(tls *libc.TLS, p uintptr, pCtx uintptr, flags int32, pText uintptr, nText int32, xToken uintptr) int32 { /* fts5_tcl.c:825:12: */
+ var pInst uintptr = p
+ var pOldCtx uintptr
+ var xOldToken uintptr
+ var pEval uintptr
+ var rc int32
+ var zFlags uintptr
+
+ pOldCtx = (*F5tTokenizerContext)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext)).FpCtx
+ xOldToken = (*F5tTokenizerContext)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext)).FxToken
+
+ (*F5tTokenizerContext)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext)).FpCtx = pCtx
+ (*F5tTokenizerContext)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext)).FxToken = xToken
+
+ pEval = tcl.XTcl_DuplicateObj(tls, (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpScript)
+ (*Tcl_Obj)(unsafe.Pointer(pEval)).FrefCount++
+ switch flags {
+ case 0x0004:
+ zFlags = ts + 2587 /* "document" */
+ break
+ case 0x0008:
+ zFlags = ts + 2596 /* "aux" */
+ break
+ case 0x0001:
+ zFlags = ts + 2600 /* "query" */
+ break
+ case (0x0002 | 0x0001):
+ zFlags = ts + 2606 /* "prefixquery" */
+ break
+ default:
+
+ zFlags = ts + 2618 /* "invalid" */
+ break
+ }
+
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).Finterp, pEval, tcl.XTcl_NewStringObj(tls, zFlags, -1))
+ tcl.XTcl_ListObjAppendElement(tls, (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).Finterp, pEval, tcl.XTcl_NewStringObj(tls, pText, nText))
+ rc = tcl.XTcl_EvalObjEx(tls, (*F5tTokenizerInstance)(unsafe.Pointer(pInst)).Finterp, pEval, 1)
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pEval
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+
+ (*F5tTokenizerContext)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext)).FpCtx = pOldCtx
+ (*F5tTokenizerContext)(unsafe.Pointer((*F5tTokenizerInstance)(unsafe.Pointer(pInst)).FpContext)).FxToken = xOldToken
+ return rc
+}
+
+// sqlite3_fts5_token ?-colocated? TEXT START END
+func f5tTokenizerReturn(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:885:26: */
+ bp := tls.Alloc(32)
+ defer tls.Free(32)
+
+ var p uintptr
+ // var iStart int32 at bp+24, 4
+
+ // var iEnd int32 at bp+28, 4
+
+ // var nToken int32 at bp+20, 4
+
+ var tflags int32
+ var zToken uintptr
+ var rc int32
+ // var nArg int32 at bp+16, 4
+
+ var zArg uintptr
+ p = clientData
+ tflags = 0
+
+ if !(objc == 5) {
+ goto __1
+ }
+ zArg = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+16 /* &nArg */)
+ if !(((*(*int32)(unsafe.Pointer(bp + 16 /* nArg */)) <= 10) && (*(*int32)(unsafe.Pointer(bp + 16 /* nArg */)) >= 2)) && (libc.Xmemcmp(tls, ts+2626 /* "-colocated" */, zArg, uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nArg */)))) == 0)) {
+ goto __3
+ }
+ tflags = tflags | (0x0001)
+ goto __4
+__3:
+ goto usage
+__4:
+ ;
+ goto __2
+__1:
+ if !(objc != 4) {
+ goto __5
+ }
+ goto usage
+__5:
+ ;
+__2:
+ ;
+
+ zToken = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-3))*8)), bp+20 /* &nToken */)
+ if !((tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-2))*8)), bp+24 /* &iStart */) != 0) ||
+ (tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-1))*8)), bp+28 /* &iEnd */) != 0)) {
+ goto __6
+ }
+ return 1
+__6:
+ ;
+
+ if !((*F5tTokenizerContext)(unsafe.Pointer(p)).FxToken == uintptr(0)) {
+ goto __7
+ }
+ tcl.XTcl_AppendResult(tls, interp,
+ libc.VaList(bp, ts+2637 /* "sqlite3_fts5_tok..." */, 0))
+ return 1
+__7:
+ ;
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32)(unsafe.Pointer((p + 8 /* &.xToken */))))(tls, (*F5tTokenizerContext)(unsafe.Pointer(p)).FpCtx, tflags, zToken, *(*int32)(unsafe.Pointer(bp + 20 /* nToken */)), *(*int32)(unsafe.Pointer(bp + 24 /* iStart */)), *(*int32)(unsafe.Pointer(bp + 28 /* iEnd */)))
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
+ if rc == 0 {
+ return 0
+ }
+ return 1
+
+usage:
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2695 /* "?-colocated? TEX..." */)
+ return 1
+}
+
+func f5tDelTokenizer(tls *libc.TLS, pCtx uintptr) { /* fts5_tcl.c:934:13: */
+ var pMod uintptr = pCtx
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = (*F5tTokenizerModule)(unsafe.Pointer(pMod)).FpScript
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+ tcl.XTcl_Free(tls, pMod)
+}
+
+// sqlite3_fts5_create_tokenizer DB NAME SCRIPT
+//
+// Register a tokenizer named NAME implemented by script SCRIPT. When
+// a tokenizer instance is created (fts5_tokenizer.xCreate), any tokenizer
+// arguments are appended to SCRIPT and the result executed.
+//
+// The value returned by (SCRIPT + args) is itself a tcl script. This
+// script - call it SCRIPT2 - is executed to tokenize text using the
+// tokenizer instance "returned" by SCRIPT. Specifically, to tokenize
+// text SCRIPT2 is invoked with a single argument appended to it - the
+// text to tokenize.
+//
+// SCRIPT2 should invoke the [sqlite3_fts5_token] command once for each
+// token within the tokenized text.
+func f5tCreateTokenizer(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:956:26: */
+ bp := tls.Alloc(56)
+ defer tls.Free(56)
+
+ var pContext uintptr = clientData
+ // var db uintptr at bp+16, 8
+
+ // var pApi uintptr at bp+24, 8
+
+ var zName uintptr
+ var pScript uintptr
+ // var t fts5_tokenizer at bp+32, 24
+
+ var pMod uintptr
+ var rc int32
+
+ if objc != 4 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2441 /* "DB NAME SCRIPT" */)
+ return 1
+ }
+ if f5tDbAndApi(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+16 /* &db */, bp+24 /* &pApi */) != 0 {
+ return 1
+ }
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+ pScript = *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8))
+
+ (*fts5_tokenizer)(unsafe.Pointer(bp + 32 /* &t */)).FxCreate = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{f5tTokenizerCreate}))
+ (*fts5_tokenizer)(unsafe.Pointer(bp + 32 /* &t */)).FxTokenize = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32
+ }{f5tTokenizerTokenize}))
+ (*fts5_tokenizer)(unsafe.Pointer(bp + 32 /* &t */)).FxDelete = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{f5tTokenizerDelete}))
+
+ pMod = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(F5tTokenizerModule{})))
+ (*F5tTokenizerModule)(unsafe.Pointer(pMod)).Finterp = interp
+ (*F5tTokenizerModule)(unsafe.Pointer(pMod)).FpScript = pScript
+ (*F5tTokenizerModule)(unsafe.Pointer(pMod)).FpContext = pContext
+ (*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(bp + 24 /* pApi */)) + 8 /* &.xCreateTokenizer */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pApi */)), zName, pMod, bp+32 /* &t */, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{f5tDelTokenizer})))
+ if rc != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+2723 /* "error in fts5_ap..." */, 0))
+ return 1
+ }
+
+ return 0
+}
+
+func xF5tFree(tls *libc.TLS, clientData ClientData) { /* fts5_tcl.c:999:27: */
+ tcl.XTcl_Free(tls, clientData)
+}
+
+// sqlite3_fts5_may_be_corrupt BOOLEAN
+//
+// Set or clear the global "may-be-corrupt" flag. Return the old value.
+func f5tMayBeCorrupt(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:1008:26: */
+ bp := tls.Alloc(4)
+ defer tls.Free(4)
+
+ var bOld int32 = sqlite3.Xsqlite3_fts5_may_be_corrupt
+
+ if (objc != 2) && (objc != 1) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2760 /* "?BOOLEAN?" */)
+ return 1
+ }
+ if objc == 2 {
+ // var bNew int32 at bp, 4
+
+ if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &bNew */) != 0 {
+ return 1
+ }
+ sqlite3.Xsqlite3_fts5_may_be_corrupt = *(*int32)(unsafe.Pointer(bp /* bNew */))
+ }
+
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, bOld))
+ return 0
+}
+
+func f5t_fts5HashKey(tls *libc.TLS, nSlot int32, p uintptr, n int32) uint32 { /* fts5_tcl.c:1031:21: */
+ var i int32
+ var h uint32 = uint32(13)
+ for i = (n - 1); i >= 0; i-- {
+ h = (((h << 3) ^ h) ^ uint32(*(*int8)(unsafe.Pointer(p + uintptr(i)))))
+ }
+ return (h % uint32(nSlot))
+}
+
+func f5tTokenHash(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:1040:26: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ var z uintptr
+ // var n int32 at bp+4, 4
+
+ var iVal uint32
+ // var nSlot int32 at bp, 4
+
+ if objc != 3 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2770 /* "NSLOT TOKEN" */)
+ return 1
+ }
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &nSlot */) != 0 {
+ return 1
+ }
+ z = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+4 /* &n */)
+
+ iVal = f5t_fts5HashKey(tls, *(*int32)(unsafe.Pointer(bp /* nSlot */)), z, *(*int32)(unsafe.Pointer(bp + 4 /* n */)))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, int32(iVal)))
+ return 0
+}
+
+func f5tRegisterMatchinfo(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:1065:26: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ var rc int32
+ *(*uintptr)(unsafe.Pointer(bp /* db */)) = uintptr(0)
+
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+1910 /* "DB" */)
+ return 1
+ }
+ if f5tDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &db */) != 0 {
+ return 1
+ }
+
+ rc = sqlite3Fts5TestRegisterMatchinfo(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)))
+ if rc != 0 {
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
+ return 1
+ }
+ return 0
+}
+
+func f5tRegisterTok(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* fts5_tcl.c:1090:26: */
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+
+ var rc int32
+ *(*uintptr)(unsafe.Pointer(bp /* db */)) = uintptr(0)
+ *(*uintptr)(unsafe.Pointer(bp + 8 /* pApi */)) = uintptr(0)
+
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+1910 /* "DB" */)
+ return 1
+ }
+ if f5tDbAndApi(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &db */, bp+8 /* &pApi */) != 0 {
+ return 1
+ }
+
+ rc = sqlite3Fts5TestRegisterTok(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), *(*uintptr)(unsafe.Pointer(bp + 8 /* pApi */)))
+ if rc != 0 {
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
+ return 1
+ }
+ return 0
+}
+
+// Entry point.
+func Fts5tcl_Init(tls *libc.TLS, interp uintptr) int32 { /* fts5_tcl.c:1119:5: */
+ var i int32
+ var pContext uintptr
+
+ pContext = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(F5tTokenizerContext{})))
+ libc.Xmemset(tls, pContext, 0, uint64(unsafe.Sizeof(F5tTokenizerContext{})))
+
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd)) / uint64(unsafe.Sizeof(struct {
+ FzName uintptr
+ FxProc uintptr
+ FbTokenizeCtx int32
+ _ [4]byte
+ }{}))); i++ {
+ var p uintptr = (uintptr(unsafe.Pointer(&aCmd)) + uintptr(i)*24)
+ var pCtx uintptr = uintptr(0)
+ if (*struct {
+ FzName uintptr
+ FxProc uintptr
+ FbTokenizeCtx int32
+ _ [4]byte
+ })(unsafe.Pointer(p)).FbTokenizeCtx != 0 {
+ pCtx = pContext
+ }
+ tcl.XTcl_CreateObjCommand(tls, interp, (*struct {
+ FzName uintptr
+ FxProc uintptr
+ FbTokenizeCtx int32
+ _ [4]byte
+ })(unsafe.Pointer(p)).FzName, (*struct {
+ FzName uintptr
+ FxProc uintptr
+ FbTokenizeCtx int32
+ _ [4]byte
+ })(unsafe.Pointer(p)).FxProc, pCtx, func() uintptr {
+ if i != 0 {
+ return uintptr(0)
+ }
+ return *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, ClientData) }{xF5tFree}))
+ }())
+ }
+
+ return 0
+}
+
+var aCmd = [8]struct {
+ FzName uintptr
+ FxProc uintptr
+ FbTokenizeCtx int32
+ _ [4]byte
+}{
+ {FzName: ts + 2782 /* "sqlite3_fts5_cre..." */, FxProc: 0, FbTokenizeCtx: 1},
+ {FzName: ts + 2812 /* "sqlite3_fts5_tok..." */, FxProc: 0, FbTokenizeCtx: 1},
+ {FzName: ts + 2831 /* "sqlite3_fts5_tok..." */, FxProc: 0, FbTokenizeCtx: 0},
+ {FzName: ts + 2853 /* "sqlite3_fts5_cre..." */, FxProc: 0, FbTokenizeCtx: 0},
+ {FzName: ts + 2882 /* "sqlite3_fts5_may..." */, FxProc: 0, FbTokenizeCtx: 0},
+ {FzName: ts + 2910 /* "sqlite3_fts5_tok..." */, FxProc: 0, FbTokenizeCtx: 0},
+ {FzName: ts + 2934 /* "sqlite3_fts5_reg..." */, FxProc: 0, FbTokenizeCtx: 0},
+ {FzName: ts + 2966 /* "sqlite3_fts5_reg..." */, FxProc: 0, FbTokenizeCtx: 0},
+} /* fts5_tcl.c:1124:5 */
+
+type Fts5MatchinfoCtx1 = struct {
+ FnCol int32
+ FnPhrase int32
+ FzArg uintptr
+ FnRet int32
+ FaRet uintptr
+}
+
+type Fts5MatchinfoCtx = Fts5MatchinfoCtx1 /* fts5_test_mi.c:50:33 */
+
+type u32 = uint32 /* fts5_test_mi.c:53:22 */
+
+// Return a pointer to the fts5_api pointer for database connection db.
+// If an error occurs, return NULL and leave an error in the database
+// handle (accessible using sqlite3_errcode()/errmsg()).
+func fts5_api_from_db(tls *libc.TLS, db uintptr, ppApi uintptr) int32 { /* fts5_test_mi.c:71:12: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ *(*uintptr)(unsafe.Pointer(bp /* pStmt */)) = uintptr(0)
+ var rc int32
+
+ *(*uintptr)(unsafe.Pointer(ppApi)) = uintptr(0)
+ rc = sqlite3.Xsqlite3_prepare(tls, db, ts+1997 /* "SELECT fts5(?1)" */, -1, bp /* &pStmt */, uintptr(0))
+ if rc == 0 {
+ sqlite3.Xsqlite3_bind_pointer(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), 1, ppApi, ts+2021 /* "fts5_api_ptr" */, uintptr(0))
+ sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)))
+ rc = sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)))
+ }
+
+ return rc
+}
+
+// Argument f should be a flag accepted by matchinfo() (a valid character
+// in the string passed as the second argument). If it is not, -1 is
+// returned. Otherwise, if f is a valid matchinfo flag, the value returned
+// is the number of 32-bit integers added to the output array if the
+// table has nCol columns and the query nPhrase phrases.
+func fts5MatchinfoFlagsize(tls *libc.TLS, nCol int32, nPhrase int32, f int8) int32 { /* fts5_test_mi.c:94:12: */
+ var ret int32 = -1
+ switch int32(f) {
+ case 'p':
+ ret = 1
+ break
+ case 'c':
+ ret = 1
+ break
+ case 'x':
+ ret = ((3 * nCol) * nPhrase)
+ break
+ case 'y':
+ ret = (nCol * nPhrase)
+ break
+ case 'b':
+ ret = (((nCol + 31) / 32) * nPhrase)
+ break
+ case 'n':
+ ret = 1
+ break
+ case 'a':
+ ret = nCol
+ break
+ case 'l':
+ ret = nCol
+ break
+ case 's':
+ ret = nCol
+ break
+ }
+ return ret
+}
+
+func fts5MatchinfoIter(tls *libc.TLS, pApi uintptr, pFts uintptr, p uintptr, x uintptr) int32 { /* fts5_test_mi.c:110:12: */
+ var i int32
+ var n int32 = 0
+ var rc int32 = 0
+ var f int8
+ for i = 0; libc.AssignInt8(&f, *(*int8)(unsafe.Pointer((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FzArg + uintptr(i)))) != 0; i++ {
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int8, uintptr) int32)(unsafe.Pointer(&x)))(tls, pApi, pFts, p, f, ((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FaRet + uintptr(n)*4))
+ if rc != 0 {
+ break
+ }
+ n = n + (fts5MatchinfoFlagsize(tls, (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol, (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase, f))
+ }
+ return rc
+}
+
+func fts5MatchinfoXCb(tls *libc.TLS, pApi uintptr, pFts uintptr, pUserData uintptr) int32 { /* fts5_test_mi.c:128:12: */
+ bp := tls.Alloc(24)
+ defer tls.Free(24)
+
+ // var iter Fts5PhraseIter at bp, 16
+
+ // var iCol int32 at bp+16, 4
+
+ // var iOff int32 at bp+20, 4
+
+ var aOut uintptr = pUserData
+ var iPrev int32 = -1
+
+ for (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 128 /* &.xPhraseFirst */))))(tls, pFts, 0, bp /* &iter */, bp+16 /* &iCol */, bp+20 /* &iOff */); *(*int32)(unsafe.Pointer(bp + 16 /* iCol */)) >= 0; (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer((pApi + 136 /* &.xPhraseNext */))))(tls, pFts, bp /* &iter */, bp+16 /* &iCol */, bp+20 /* &iOff */) {
+ *(*u32)(unsafe.Pointer(aOut + uintptr(((*(*int32)(unsafe.Pointer(bp + 16 /* iCol */))*3)+1))*4))++
+ if *(*int32)(unsafe.Pointer(bp + 16 /* iCol */)) != iPrev {
+ *(*u32)(unsafe.Pointer(aOut + uintptr(((*(*int32)(unsafe.Pointer(bp + 16 /* iCol */))*3)+2))*4))++
+ }
+ iPrev = *(*int32)(unsafe.Pointer(bp + 16 /* iCol */))
+ }
+
+ return 0
+}
+
+func fts5MatchinfoGlobalCb(tls *libc.TLS, pApi uintptr, pFts uintptr, p uintptr, f int8, aOut uintptr) int32 { /* fts5_test_mi.c:150:12: */
+ bp := tls.Alloc(24)
+ defer tls.Free(24)
+
+ var rc int32 = 0
+ switch int32(f) {
+ case 'p':
+ *(*u32)(unsafe.Pointer(aOut + uintptr(0)*4)) = u32((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase)
+ break
+
+ case 'c':
+ *(*u32)(unsafe.Pointer(aOut + uintptr(0)*4)) = u32((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol)
+ break
+
+ case 'x':
+ {
+ var i int32
+ for i = 0; (i < (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase) && (rc == 0); i++ {
+ var pPtr uintptr = (aOut + uintptr(((i*(*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol)*3))*4)
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 104 /* &.xQueryPhrase */))))(tls, pFts, i, pPtr, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
+ }{fts5MatchinfoXCb})))
+ }
+ break
+ }
+
+ case 'n':
+ {
+ // var nRow sqlite3_int64 at bp, 8
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 24 /* &.xRowCount */))))(tls, pFts, bp /* &nRow */)
+ *(*u32)(unsafe.Pointer(aOut + uintptr(0)*4)) = u32(*(*sqlite3_int64)(unsafe.Pointer(bp /* nRow */)))
+ break
+ }
+
+ case 'a':
+ {
+ *(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* nRow */)) = int64(0)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 24 /* &.xRowCount */))))(tls, pFts, bp+8 /* &nRow */)
+ if *(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* nRow */)) == int64(0) {
+ libc.Xmemset(tls, aOut, 0, (uint64(unsafe.Sizeof(u32(0))) * uint64((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol)))
+ } else {
+ var i int32
+ for i = 0; (rc == 0) && (i < (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol); i++ {
+ // var nToken sqlite3_int64 at bp+16, 8
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pApi + 32 /* &.xColumnTotalSize */))))(tls, pFts, i, bp+16 /* &nToken */)
+ if rc == 0 {
+ *(*u32)(unsafe.Pointer(aOut + uintptr(i)*4)) = (u32(((int64(2) * *(*sqlite3_int64)(unsafe.Pointer(bp + 16 /* nToken */))) + *(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* nRow */))) / (int64(2) * *(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* nRow */)))))
+ }
+ }
+ }
+ break
+ }
+ }
+ return rc
+}
+
+func fts5MatchinfoLocalCb(tls *libc.TLS, pApi uintptr, pFts uintptr, p uintptr, f int8, aOut uintptr) int32 { /* fts5_test_mi.c:205:12: */
+ bp := tls.Alloc(80)
+ defer tls.Free(80)
+
+ var i int32
+ var rc int32 = 0
+
+ switch int32(f) {
+ case 'b':
+ {
+ var iPhrase int32
+ var nInt int32 = ((((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol + 31) / 32) * (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase)
+ for i = 0; i < nInt; i++ {
+ *(*u32)(unsafe.Pointer(aOut + uintptr(i)*4)) = u32(0)
+ }
+
+ for iPhrase = 0; iPhrase < (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase; iPhrase++ {
+ // var iter Fts5PhraseIter at bp, 16
+
+ // var iCol int32 at bp+16, 4
+
+ for (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 144 /* &.xPhraseFirstColumn */))))(tls, pFts, iPhrase, bp /* &iter */, bp+16 /* &iCol */); *(*int32)(unsafe.Pointer(bp + 16 /* iCol */)) >= 0; (*(*func(*libc.TLS, uintptr, uintptr, uintptr))(unsafe.Pointer((pApi + 152 /* &.xPhraseNextColumn */))))(tls, pFts, bp /* &iter */, bp+16 /* &iCol */) {
+ *(*u32)(unsafe.Pointer(aOut + uintptr(((iPhrase*(((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol+31)/32))+(*(*int32)(unsafe.Pointer(bp + 16 /* iCol */))/32)))*4)) |= (u32(u32(1)) << (*(*int32)(unsafe.Pointer(bp + 16 /* iCol */)) % 32))
+ }
+ }
+
+ break
+ }
+
+ case 'x':
+ fallthrough
+ case 'y':
+ {
+ var nMul int32 = func() int32 {
+ if int32(f) == 'x' {
+ return 3
+ }
+ return 1
+ }()
+ var iPhrase int32
+
+ for i = 0; i < ((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol * (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase); i++ {
+ *(*u32)(unsafe.Pointer(aOut + uintptr((i*nMul))*4)) = u32(0)
+ }
+
+ for iPhrase = 0; iPhrase < (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase; iPhrase++ {
+ // var iter Fts5PhraseIter at bp+24, 16
+
+ // var iOff int32 at bp+44, 4
+
+ // var iCol int32 at bp+40, 4
+
+ for (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 128 /* &.xPhraseFirst */))))(tls, pFts, iPhrase, bp+24 /* &iter */, bp+40 /* &iCol */, bp+44 /* &iOff */); *(*int32)(unsafe.Pointer(bp + 44 /* iOff */)) >= 0; (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr))(unsafe.Pointer((pApi + 136 /* &.xPhraseNext */))))(tls, pFts, bp+24 /* &iter */, bp+40 /* &iCol */, bp+44 /* &iOff */) {
+ *(*u32)(unsafe.Pointer(aOut + uintptr((nMul*(*(*int32)(unsafe.Pointer(bp + 40 /* iCol */))+(iPhrase*(*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol))))*4))++
+ }
+ }
+
+ break
+ }
+
+ case 'l':
+ {
+ for i = 0; (rc == 0) && (i < (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol); i++ {
+ // var nToken int32 at bp+48, 4
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pApi + 96 /* &.xColumnSize */))))(tls, pFts, i, bp+48 /* &nToken */)
+ *(*u32)(unsafe.Pointer(aOut + uintptr(i)*4)) = u32(*(*int32)(unsafe.Pointer(bp + 48 /* nToken */)))
+ }
+ break
+ }
+
+ case 's':
+ {
+ // var nInst int32 at bp+52, 4
+
+ libc.Xmemset(tls, aOut, 0, (uint64(unsafe.Sizeof(u32(0))) * uint64((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol)))
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 64 /* &.xInstCount */))))(tls, pFts, bp+52 /* &nInst */)
+ for i = 0; (rc == 0) && (i < *(*int32)(unsafe.Pointer(bp + 52 /* nInst */))); i++ {
+ // var iPhrase int32 at bp+56, 4
+
+ // var iOff int32 at bp+64, 4
+
+ *(*int32)(unsafe.Pointer(bp + 60 /* iCol */)) = 0
+ var iNextPhrase int32
+ var iNextOff int32
+ var nSeq u32 = u32(1)
+ var j int32
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 72 /* &.xInst */))))(tls, pFts, i, bp+56 /* &iPhrase */, bp+60 /* &iCol */, bp+64 /* &iOff */)
+ iNextPhrase = (*(*int32)(unsafe.Pointer(bp + 56 /* iPhrase */)) + 1)
+ iNextOff = (*(*int32)(unsafe.Pointer(bp + 64 /* iOff */)) + (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((pApi + 56 /* &.xPhraseSize */))))(tls, pFts, 0))
+ for j = (i + 1); (rc == 0) && (j < *(*int32)(unsafe.Pointer(bp + 52 /* nInst */))); j++ {
+ // var ip int32 at bp+68, 4
+
+ // var ic int32 at bp+72, 4
+
+ // var io int32 at bp+76, 4
+
+ rc = (*(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 72 /* &.xInst */))))(tls, pFts, j, bp+68 /* &ip */, bp+72 /* &ic */, bp+76 /* &io */)
+ if (*(*int32)(unsafe.Pointer(bp + 72 /* ic */)) != *(*int32)(unsafe.Pointer(bp + 60 /* iCol */))) || (*(*int32)(unsafe.Pointer(bp + 76 /* io */)) > iNextOff) {
+ break
+ }
+ if (*(*int32)(unsafe.Pointer(bp + 68 /* ip */)) == iNextPhrase) && (*(*int32)(unsafe.Pointer(bp + 76 /* io */)) == iNextOff) {
+ nSeq++
+ iNextPhrase = (*(*int32)(unsafe.Pointer(bp + 68 /* ip */)) + 1)
+ iNextOff = (*(*int32)(unsafe.Pointer(bp + 76 /* io */)) + (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((pApi + 56 /* &.xPhraseSize */))))(tls, pFts, *(*int32)(unsafe.Pointer(bp + 68 /* ip */))))
+ }
+ }
+
+ if nSeq > *(*u32)(unsafe.Pointer(aOut + uintptr(*(*int32)(unsafe.Pointer(bp + 60 /* iCol */)))*4)) {
+ *(*u32)(unsafe.Pointer(aOut + uintptr(*(*int32)(unsafe.Pointer(bp + 60 /* iCol */)))*4)) = nSeq
+ }
+ }
+
+ break
+ }
+ }
+ return rc
+}
+
+func fts5MatchinfoNew(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, zArg uintptr) uintptr { /* fts5_test_mi.c:301:25: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ var p uintptr
+ var nCol int32
+ var nPhrase int32
+ var i int32
+ var nInt int32
+ var nByte sqlite3_int64
+ var rc int32
+
+ nCol = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((pApi + 16 /* &.xColumnCount */))))(tls, pFts)
+ nPhrase = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((pApi + 48 /* &.xPhraseCount */))))(tls, pFts)
+
+ nInt = 0
+ for i = 0; *(*int8)(unsafe.Pointer(zArg + uintptr(i))) != 0; i++ {
+ var n int32 = fts5MatchinfoFlagsize(tls, nCol, nPhrase, *(*int8)(unsafe.Pointer(zArg + uintptr(i))))
+ if n < 0 {
+ var zErr uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+3001 /* "unrecognized mat..." */, libc.VaList(bp, int32(*(*int8)(unsafe.Pointer(zArg + uintptr(i))))))
+ sqlite3.Xsqlite3_result_error(tls, pCtx, zErr, -1)
+ sqlite3.Xsqlite3_free(tls, zErr)
+ return uintptr(0)
+ }
+ nInt = nInt + (n)
+ }
+
+ nByte = (sqlite3_int64((uint64(unsafe.Sizeof(Fts5MatchinfoCtx{})) + // The struct itself
+ (uint64(unsafe.Sizeof(u32(0))) * uint64(nInt))) + // The p->aRet[] array
+ (uint64(i + 1)))) // The p->zArg string
+ p = sqlite3.Xsqlite3_malloc64(tls, uint64(nByte))
+ if p == uintptr(0) {
+ sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
+ return uintptr(0)
+ }
+ libc.Xmemset(tls, p, 0, uint64(nByte))
+
+ (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnCol = nCol
+ (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnPhrase = nPhrase
+ (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FaRet = (p + uintptr(1)*32)
+ (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnRet = nInt
+ (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FzArg = ((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FaRet + uintptr(nInt)*4)
+ libc.Xmemcpy(tls, (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FzArg, zArg, uint64(i))
+
+ rc = fts5MatchinfoIter(tls, pApi, pFts, p, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int8, uintptr) int32
+ }{fts5MatchinfoGlobalCb})))
+ if rc != 0 {
+ sqlite3.Xsqlite3_result_error_code(tls, pCtx, rc)
+ sqlite3.Xsqlite3_free(tls, p)
+ p = uintptr(0)
+ }
+
+ return p
+}
+
+func fts5MatchinfoFunc(tls *libc.TLS, pApi uintptr, pFts uintptr, pCtx uintptr, nVal int32, apVal uintptr) { /* fts5_test_mi.c:357:13: */
+ var zArg uintptr
+ var p uintptr
+ var rc int32 = 0
+
+ if nVal > 0 {
+ zArg = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(0)*8)))
+ } else {
+ zArg = ts + 3033 /* "pcx" */
+ }
-func Fts5tcl_Init(tls *crt.TLS, interp uintptr) int32 { /* fts5_tcl.c:1150:5: */
+ p = (*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer((pApi + 120 /* &.xGetAuxdata */))))(tls, pFts, 0)
+ if (p == uintptr(0)) || (sqlite3.Xsqlite3_stricmp(tls, zArg, (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FzArg) != 0) {
+ p = fts5MatchinfoNew(tls, pApi, pFts, pCtx, zArg)
+ if p == uintptr(0) {
+ rc = 7
+ } else {
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 112 /* &.xSetAuxdata */))))(tls, pFts, p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ }
+ }
+
+ if rc == 0 {
+ rc = fts5MatchinfoIter(tls, pApi, pFts, p, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int8, uintptr) int32
+ }{fts5MatchinfoLocalCb})))
+ }
+ if rc != 0 {
+ sqlite3.Xsqlite3_result_error_code(tls, pCtx, rc)
+ } else {
+ // No errors has occured, so return a copy of the array of integers.
+ var nByte int32 = (int32(uint64((*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FnRet) * uint64(unsafe.Sizeof(u32(0)))))
+ sqlite3.Xsqlite3_result_blob(tls, pCtx, (*Fts5MatchinfoCtx)(unsafe.Pointer(p)).FaRet, nByte, libc.UintptrFromInt32(-1))
+ }
+}
+
+func sqlite3Fts5TestRegisterMatchinfo(tls *libc.TLS, db uintptr) int32 { /* fts5_test_mi.c:396:5: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ var rc int32 // Return code
+ // var pApi uintptr at bp, 8
+ // FTS5 API functions
+
+ // Extract the FTS5 API pointer from the database handle. The
+ // fts5_api_from_db() function above is copied verbatim from the
+ // FTS5 documentation. Refer there for details.
+ rc = fts5_api_from_db(tls, db, bp /* &pApi */)
+ if rc != 0 {
+ return rc
+ }
+
+ /* If fts5_api_from_db() returns NULL, then either FTS5 is not registered
+ ** with this database handle, or an error (OOM perhaps?) has occurred.
+ **
+ ** Also check that the fts5_api object is version 2 or newer.
+ */
+ if (*(*uintptr)(unsafe.Pointer(bp /* pApi */)) == uintptr(0)) || ((*fts5_api)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* pApi */)))).FiVersion < 2) {
+ return 1
+ }
+
+ // Register the implementation of matchinfo()
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, fts5_extension_function, uintptr) int32)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(bp /* pApi */)) + 24 /* &.xCreateFunction */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* pApi */)), ts+3037 /* "matchinfo" */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr)
+ }{fts5MatchinfoFunc})), uintptr(0))
+
+ return rc
+}
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.2 Diagnostics <assert.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// void assert (int expression);
+//
+// If NDEBUG is defined, do nothing.
+// If not, and EXPRESSION is zero, print an error message and abort.
+
+// void assert_perror (int errnum);
+//
+// If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an
+// error message with the error text for ERRNUM and abort.
+// (This is a GNU extension.)
+
+type Fts5tokTable1 = struct {
+ Fbase sqlite3_vtab
+ Ftok fts5_tokenizer
+ FpTok uintptr
+}
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.2 Diagnostics <assert.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// void assert (int expression);
+//
+// If NDEBUG is defined, do nothing.
+// If not, and EXPRESSION is zero, print an error message and abort.
+
+// void assert_perror (int errnum);
+//
+// If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an
+// error message with the error text for ERRNUM and abort.
+// (This is a GNU extension.)
+
+type Fts5tokTable = Fts5tokTable1 /* fts5_test_tok.c:47:29 */
+type Fts5tokCursor1 = struct {
+ Fbase sqlite3_vtab_cursor
+ FiRowid int32
+ FzInput uintptr
+ FnRow int32
+ FaRow uintptr
+}
+
+type Fts5tokCursor = Fts5tokCursor1 /* fts5_test_tok.c:48:30 */
+type Fts5tokRow1 = struct {
+ FzToken uintptr
+ FiStart int32
+ FiEnd int32
+ FiPos int32
+ _ [4]byte
+}
+
+type Fts5tokRow = Fts5tokRow1 /* fts5_test_tok.c:49:27 */
+
+func fts5tokDequote(tls *libc.TLS, z uintptr) { /* fts5_test_tok.c:81:13: */
+ var q int8 = *(*int8)(unsafe.Pointer(z + uintptr(0)))
+
+ if (((int32(q) == '[') || (int32(q) == '\'')) || (int32(q) == '"')) || (int32(q) == '`') {
+ var iIn int32 = 1
+ var iOut int32 = 0
+ if int32(q) == '[' {
+ q = int8(']')
+ }
+
+ for *(*int8)(unsafe.Pointer(z + uintptr(iIn))) != 0 {
+ if int32(*(*int8)(unsafe.Pointer(z + uintptr(iIn)))) == int32(q) {
+ if int32(*(*int8)(unsafe.Pointer(z + uintptr((iIn + 1))))) != int32(q) {
+ // Character iIn was the close quote.
+ iIn++
+ break
+ } else {
+ // Character iIn and iIn+1 form an escaped quote character. Skip
+ // the input cursor past both and copy a single quote character
+ // to the output buffer.
+ iIn = iIn + (2)
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = q
+ }
+ } else {
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iIn, 1))))
+ }
+ }
+
+ *(*int8)(unsafe.Pointer(z + uintptr(iOut))) = int8(0)
+ }
+}
+
+// The second argument, argv[], is an array of pointers to nul-terminated
+// strings. This function makes a copy of the array and strings into a
+// single block of memory. It then dequotes any of the strings that appear
+// to be quoted.
+//
+// If successful, output parameter *pazDequote is set to point at the
+// array of dequoted strings and SQLITE_OK is returned. The caller is
+// responsible for eventually calling sqlite3_free() to free the array
+// in this case. Or, if an error occurs, an SQLite error code is returned.
+// The final value of *pazDequote is undefined in this case.
+func fts5tokDequoteArray(tls *libc.TLS, argc int32, argv uintptr, pazDequote uintptr) int32 { /* fts5_test_tok.c:123:12: */
+ var rc int32 = 0 // Return code
+ if argc == 0 {
+ *(*uintptr)(unsafe.Pointer(pazDequote)) = uintptr(0)
+ } else {
+ var i int32
+ var nByte int32 = 0
+ var azDequote uintptr
+
+ for i = 0; i < argc; i++ {
+ nByte = nByte + (int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) + uint64(1)))
+ }
+
+ *(*uintptr)(unsafe.Pointer(pazDequote)) = libc.AssignUintptr(&azDequote, sqlite3.Xsqlite3_malloc64(tls, (uint64((uint64(unsafe.Sizeof(uintptr(0)))*uint64(argc))+uint64(nByte)))))
+ if azDequote == uintptr(0) {
+ rc = 7
+ } else {
+ var pSpace uintptr = (azDequote + uintptr(argc)*8)
+ for i = 0; i < argc; i++ {
+ var n int32 = int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
+ *(*uintptr)(unsafe.Pointer(azDequote + uintptr(i)*8)) = pSpace
+ libc.Xmemcpy(tls, pSpace, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), (uint64(n + 1)))
+ fts5tokDequote(tls, pSpace)
+ pSpace += (uintptr(n + 1))
+ }
+ }
+ }
+
+ return rc
+}
+
+// Schema of the tokenizer table.
+
+// This function does all the work for both the xConnect and xCreate methods.
+// These tables have no persistent representation of their own, so xConnect
+// and xCreate are identical operations.
+//
+// argv[0]: module name
+// argv[1]: database name
+// argv[2]: table name
+// argv[3]: first argument (tokenizer name)
+func fts5tokConnectMethod(tls *libc.TLS, db uintptr, pCtx uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* fts5_test_tok.c:173:12: */
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+
+ var pApi uintptr = pCtx
+ var pTab uintptr = uintptr(0)
+ var rc int32
+ *(*uintptr)(unsafe.Pointer(bp /* azDequote */)) = uintptr(0)
+ var nDequote int32 = 0
+
+ rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
+ ts+3047 /* "CREATE TABLE x(i..." */)
+
+ if rc == 0 {
+ nDequote = (argc - 3)
+ rc = fts5tokDequoteArray(tls, nDequote, (argv + uintptr(3)*8), bp /* &azDequote */)
+ }
+
+ if rc == 0 {
+ pTab = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Fts5tokTable{})))
+ if pTab == uintptr(0) {
+ rc = 7
+ } else {
+ libc.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(Fts5tokTable{})))
+ }
+ }
+
+ if rc == 0 {
+ *(*uintptr)(unsafe.Pointer(bp + 8 /* pTokCtx */)) = uintptr(0)
+ var zModule uintptr = uintptr(0)
+ if nDequote > 0 {
+ zModule = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* azDequote */)) + uintptr(0)*8))
+ }
+
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((pApi + 16 /* &.xFindTokenizer */))))(tls, pApi, zModule, bp+8 /* &pTokCtx */, (pTab + 24 /* &.tok */))
+ if rc == 0 {
+ var azArg uintptr = (*(*uintptr)(unsafe.Pointer(bp /* azDequote */)) + uintptr(1)*8)
+ var nArg int32
+ if nDequote > 0 {
+ nArg = (nDequote - 1)
+ } else {
+ nArg = 0
+ }
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pTab + 24 /* &.tok */ /* &.xCreate */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pTokCtx */)), azArg, nArg, (pTab + 48 /* &.pTok */))
+ }
+ }
+
+ if rc != 0 {
+ sqlite3.Xsqlite3_free(tls, pTab)
+ pTab = uintptr(0)
+ }
+
+ *(*uintptr)(unsafe.Pointer(ppVtab)) = pTab
+ sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp /* azDequote */)))
+ return rc
+}
+
+// This function does the work for both the xDisconnect and xDestroy methods.
+// These tables have no persistent representation of their own, so xDisconnect
+// and xDestroy are identical operations.
+func fts5tokDisconnectMethod(tls *libc.TLS, pVtab uintptr) int32 { /* fts5_test_tok.c:235:12: */
+ var pTab uintptr = pVtab
+ if (*Fts5tokTable)(unsafe.Pointer(pTab)).FpTok != 0 {
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((pTab + 24 /* &.tok */ + 8 /* &.xDelete */))))(tls, (*Fts5tokTable)(unsafe.Pointer(pTab)).FpTok)
+ }
+ sqlite3.Xsqlite3_free(tls, pTab)
+ return 0
+}
+
+// xBestIndex - Analyze a WHERE and ORDER BY clause.
+func fts5tokBestIndexMethod(tls *libc.TLS, pVTab uintptr, pInfo uintptr) int32 { /* fts5_test_tok.c:247:12: */
+ var i int32
+
+ for i = 0; i < (*sqlite3_index_info)(unsafe.Pointer(pInfo)).FnConstraint; i++ {
+ if (((*sqlite3_index_constraint)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pInfo)).FaConstraint+uintptr(i)*12)).Fusable != 0) &&
+ ((*sqlite3_index_constraint)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pInfo)).FaConstraint+uintptr(i)*12)).FiColumn == 0)) &&
+ (int32((*sqlite3_index_constraint)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pInfo)).FaConstraint+uintptr(i)*12)).Fop) == 2) {
+ (*sqlite3_index_info)(unsafe.Pointer(pInfo)).FidxNum = 1
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = 1
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pInfo)).FaConstraintUsage + uintptr(i)*8)).Fomit = uint8(1)
+ (*sqlite3_index_info)(unsafe.Pointer(pInfo)).FestimatedCost = float64(1)
+ return 0
+ }
+ }
+
+ (*sqlite3_index_info)(unsafe.Pointer(pInfo)).FidxNum = 0
+
+ return 0
+}
+
+// xOpen - Open a cursor.
+func fts5tokOpenMethod(tls *libc.TLS, pVTab uintptr, ppCsr uintptr) int32 { /* fts5_test_tok.c:275:12: */
+ var pCsr uintptr
+
+ pCsr = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Fts5tokCursor{})))
+ if pCsr == uintptr(0) {
+ return 7
+ }
+ libc.Xmemset(tls, pCsr, 0, uint64(unsafe.Sizeof(Fts5tokCursor{})))
+
+ *(*uintptr)(unsafe.Pointer(ppCsr)) = pCsr
+ return 0
+}
+
+// Reset the tokenizer cursor passed as the only argument. As if it had
+// just been returned by fts5tokOpenMethod().
+func fts5tokResetCursor(tls *libc.TLS, pCsr uintptr) { /* fts5_test_tok.c:292:13: */
+ var i int32
+ for i = 0; i < (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow; i++ {
+ sqlite3.Xsqlite3_free(tls, (*Fts5tokRow)(unsafe.Pointer((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow+uintptr(i)*24)).FzToken)
+ }
+ sqlite3.Xsqlite3_free(tls, (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput)
+ sqlite3.Xsqlite3_free(tls, (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow)
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput = uintptr(0)
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow = uintptr(0)
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow = 0
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FiRowid = 0
+}
+
+// xClose - Close a cursor.
+func fts5tokCloseMethod(tls *libc.TLS, pCursor uintptr) int32 { /* fts5_test_tok.c:308:12: */
+ var pCsr uintptr = pCursor
+ fts5tokResetCursor(tls, pCsr)
+ sqlite3.Xsqlite3_free(tls, pCsr)
+ return 0
+}
+
+// xNext - Advance the cursor to the next row, if any.
+func fts5tokNextMethod(tls *libc.TLS, pCursor uintptr) int32 { /* fts5_test_tok.c:318:12: */
+ var pCsr uintptr = pCursor
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FiRowid++
return 0
}
+func fts5tokCb(tls *libc.TLS, pCtx uintptr, tflags int32, pToken uintptr, nToken int32, iStart int32, iEnd int32) int32 { /* fts5_test_tok.c:324:12: */
+ var pCsr uintptr = pCtx
+ var pRow uintptr
+
+ if ((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow & ((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow - 1)) == 0 {
+ var nNew int32
+ if (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow != 0 {
+ nNew = ((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow * 2)
+ } else {
+ nNew = 32
+ }
+ var aNew uintptr
+ aNew = sqlite3.Xsqlite3_realloc64(tls, (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow, (uint64(uint64(nNew) * uint64(unsafe.Sizeof(Fts5tokRow{})))))
+ if aNew == uintptr(0) {
+ return 7
+ }
+ libc.Xmemset(tls, (aNew + uintptr((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow)*24), 0, (uint64(unsafe.Sizeof(Fts5tokRow{})) * (uint64(nNew - (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow))))
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow = aNew
+ }
+
+ pRow = ((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow + uintptr((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow)*24)
+ (*Fts5tokRow)(unsafe.Pointer(pRow)).FiStart = iStart
+ (*Fts5tokRow)(unsafe.Pointer(pRow)).FiEnd = iEnd
+ if (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow != 0 {
+ (*Fts5tokRow)(unsafe.Pointer(pRow)).FiPos = ((*Fts5tokRow)(unsafe.Pointer(pRow+libc.UintptrFromInt32(-1)*24)).FiPos + (func() int32 {
+ if (tflags & 0x0001) != 0 {
+ return 0
+ }
+ return 1
+ }()))
+ }
+ (*Fts5tokRow)(unsafe.Pointer(pRow)).FzToken = sqlite3.Xsqlite3_malloc(tls, (nToken + 1))
+ if (*Fts5tokRow)(unsafe.Pointer(pRow)).FzToken == uintptr(0) {
+ return 7
+ }
+ libc.Xmemcpy(tls, (*Fts5tokRow)(unsafe.Pointer(pRow)).FzToken, pToken, uint64(nToken))
+ *(*int8)(unsafe.Pointer((*Fts5tokRow)(unsafe.Pointer(pRow)).FzToken + uintptr(nToken))) = int8(0)
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow++
+
+ return 0
+}
+
+// xFilter - Initialize a cursor to point at the start of its data.
+func fts5tokFilterMethod(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, nVal int32, apVal uintptr) int32 { /* fts5_test_tok.c:362:12: */
+ var rc int32 = 1
+ var pCsr uintptr = pCursor
+ var pTab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
+
+ fts5tokResetCursor(tls, pCsr)
+ if idxNum == 1 {
+ var zByte uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(0)*8)))
+ var nByte int32 = sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(0)*8)))
+ (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput = sqlite3.Xsqlite3_malloc(tls, (nByte + 1))
+ if (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput == uintptr(0) {
+ rc = 7
+ } else {
+ if nByte > 0 {
+ libc.Xmemcpy(tls, (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput, zByte, uint64(nByte))
+ }
+ *(*int8)(unsafe.Pointer((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput + uintptr(nByte))) = int8(0)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer((pTab + 24 /* &.tok */ + 16 /* &.xTokenize */))))(tls,
+ (*Fts5tokTable)(unsafe.Pointer(pTab)).FpTok, pCsr, 0, zByte, nByte, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, int32, int32) int32
+ }{fts5tokCb})))
+ }
+ }
+
+ if rc != 0 {
+ return rc
+ }
+ return fts5tokNextMethod(tls, pCursor)
+}
+
+// xEof - Return true if the cursor is at EOF, or false otherwise.
+func fts5tokEofMethod(tls *libc.TLS, pCursor uintptr) int32 { /* fts5_test_tok.c:396:12: */
+ var pCsr uintptr = pCursor
+ return (libc.Bool32((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FiRowid > (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FnRow))
+}
+
+// xColumn - Return a column value.
+func fts5tokColumnMethod(tls *libc.TLS, pCursor uintptr, pCtx uintptr, iCol int32) int32 { /* fts5_test_tok.c:404:12: */
+ var pCsr uintptr = pCursor
+ var pRow uintptr = ((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FaRow + uintptr(((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FiRowid-1))*24)
+
+ // CREATE TABLE x(input, token, start, end, position)
+ switch iCol {
+ case 0:
+ sqlite3.Xsqlite3_result_text(tls, pCtx, (*Fts5tokCursor)(unsafe.Pointer(pCsr)).FzInput, -1, libc.UintptrFromInt32(-1))
+ break
+ case 1:
+ sqlite3.Xsqlite3_result_text(tls, pCtx, (*Fts5tokRow)(unsafe.Pointer(pRow)).FzToken, -1, libc.UintptrFromInt32(-1))
+ break
+ case 2:
+ sqlite3.Xsqlite3_result_int(tls, pCtx, (*Fts5tokRow)(unsafe.Pointer(pRow)).FiStart)
+ break
+ case 3:
+ sqlite3.Xsqlite3_result_int(tls, pCtx, (*Fts5tokRow)(unsafe.Pointer(pRow)).FiEnd)
+ break
+ default:
+
+ sqlite3.Xsqlite3_result_int(tls, pCtx, (*Fts5tokRow)(unsafe.Pointer(pRow)).FiPos)
+ break
+ }
+ return 0
+}
+
+// xRowid - Return the current rowid for the cursor.
+func fts5tokRowidMethod(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* fts5_test_tok.c:437:12: */
+ var pCsr uintptr = pCursor
+ *(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3_int64((*Fts5tokCursor)(unsafe.Pointer(pCsr)).FiRowid)
+ return 0
+}
+
+// Register the fts5tok module with database connection db. Return SQLITE_OK
+// if successful or an error code if sqlite3_create_module() fails.
+func sqlite3Fts5TestRegisterTok(tls *libc.TLS, db uintptr, pApi uintptr) int32 { /* fts5_test_tok.c:450:5: */
+ var rc int32 // Return code
+
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3105 /* "fts5tokenize" */, uintptr(unsafe.Pointer(&fts5tok_module)), pApi)
+ return rc
+}
+
+var fts5tok_module = sqlite3_module{FiVersion: 0, FxCreate: // iVersion
+0, FxConnect:// xCreate
+0, FxBestIndex:// xConnect
+0, FxDisconnect:// xBestIndex
+0, FxDestroy:// xDisconnect
+0, FxOpen:// xDestroy
+0, FxClose:// xOpen
+0, FxFilter:// xClose
+0, FxNext:// xFilter
+0, FxEof:// xNext
+0, FxColumn:// xEof
+0, FxRowid:// xColumn
+0, FxUpdate:// xRowid
+uintptr(0), FxBegin:// xUpdate
+uintptr(0), FxSync:// xBegin
+uintptr(0), FxCommit:// xSync
+uintptr(0), FxRollback:// xCommit
+uintptr(0), FxFindFunction:// xRollback
+uintptr(0), FxRename:// xFindFunction
+uintptr(0), FxSavepoint:// xRename
+uintptr(0), FxRelease:// xSavepoint
+uintptr(0), FxRollbackTo:// xRelease
+uintptr(0), FxShadowName:// xRollbackTo
+uintptr(0), // xShadowName
+} /* fts5_test_tok.c:451:31 */
+
// CAPI3REF: Loadable Extension Thunk
//
// A pointer to the opaque sqlite3_api_routines structure is passed as
// the third parameter to entry points of [loadable extensions]. This
// structure must be typedefed in order to work around compiler warnings
// on some platforms.
-type sqlite3_api_routines = sqlite3_api_routines1 /* sqlite3.h:1193:37 */
+type sqlite3_api_routines = sqlite3_api_routines1 /* sqlite3.h:1196:37 */
// This is the function signature used for all extension entry points. It
// is also defined in the file "loadext.c".
@@ -11983,7 +14498,7 @@ type amatch_avl = amatch_avl1 /* amatch.c:176:27 */
// Recompute the amatch_avl.height and amatch_avl.imbalance fields for p.
// Assume that the children of p have correct heights.
-func amatchAvlRecomputeHeight(tls *crt.TLS, p uintptr) { /* amatch.c:199:13: */
+func amatchAvlRecomputeHeight(tls *libc.TLS, p uintptr) { /* amatch.c:199:13: */
var hBefore int16
if (*amatch_avl)(unsafe.Pointer(p)).FpBefore != 0 {
hBefore = (*amatch_avl)(unsafe.Pointer((*amatch_avl)(unsafe.Pointer(p)).FpBefore)).Fheight
@@ -12009,7 +14524,7 @@ func amatchAvlRecomputeHeight(tls *crt.TLS, p uintptr) { /* amatch.c:199:13: */
// / \ / ** B Z ==> X P
// / \ / ** X Y Y Z
//
-func amatchAvlRotateBefore(tls *crt.TLS, pP uintptr) uintptr { /* amatch.c:214:19: */
+func amatchAvlRotateBefore(tls *libc.TLS, pP uintptr) uintptr { /* amatch.c:214:19: */
var pB uintptr = (*amatch_avl)(unsafe.Pointer(pP)).FpBefore
var pY uintptr = (*amatch_avl)(unsafe.Pointer(pB)).FpAfter
(*amatch_avl)(unsafe.Pointer(pB)).FpUp = (*amatch_avl)(unsafe.Pointer(pP)).FpUp
@@ -12028,7 +14543,7 @@ func amatchAvlRotateBefore(tls *crt.TLS, pP uintptr) uintptr { /* amatch.c:214:1
// / \ / ** X A ==> P Z
// / \ / ** Y Z X Y
//
-func amatchAvlRotateAfter(tls *crt.TLS, pP uintptr) uintptr { /* amatch.c:235:19: */
+func amatchAvlRotateAfter(tls *libc.TLS, pP uintptr) uintptr { /* amatch.c:235:19: */
var pA uintptr = (*amatch_avl)(unsafe.Pointer(pP)).FpAfter
var pY uintptr = (*amatch_avl)(unsafe.Pointer(pA)).FpBefore
(*amatch_avl)(unsafe.Pointer(pA)).FpUp = (*amatch_avl)(unsafe.Pointer(pP)).FpUp
@@ -12045,7 +14560,7 @@ func amatchAvlRotateAfter(tls *crt.TLS, pP uintptr) uintptr { /* amatch.c:235:19
// Return a pointer to the pBefore or pAfter pointer in the parent
// of p that points to p. Or if p is the root node, return pp.
-func amatchAvlFromPtr(tls *crt.TLS, p uintptr, pp uintptr) uintptr { /* amatch.c:252:19: */
+func amatchAvlFromPtr(tls *libc.TLS, p uintptr, pp uintptr) uintptr { /* amatch.c:252:19: */
var pUp uintptr = (*amatch_avl)(unsafe.Pointer(p)).FpUp
if pUp == uintptr(0) {
return pp
@@ -12058,7 +14573,7 @@ func amatchAvlFromPtr(tls *crt.TLS, p uintptr, pp uintptr) uintptr { /* amatch.c
// Rebalance all nodes starting with p and working up to the root.
// Return the new root.
-func amatchAvlBalance(tls *crt.TLS, p uintptr) uintptr { /* amatch.c:263:19: */
+func amatchAvlBalance(tls *libc.TLS, p uintptr) uintptr { /* amatch.c:263:19: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = p
@@ -12073,14 +14588,14 @@ func amatchAvlBalance(tls *crt.TLS, p uintptr) uintptr { /* amatch.c:263:19: */
(*amatch_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpBefore = amatchAvlRotateAfter(tls, pB)
}
pp = amatchAvlFromPtr(tls, *(*uintptr)(unsafe.Pointer(bp /* p */)), bp /* &p */)
- *(*uintptr)(unsafe.Pointer(bp /* p */)) = crt.AssignPtrUintptr(pp, amatchAvlRotateBefore(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
+ *(*uintptr)(unsafe.Pointer(bp /* p */)) = libc.AssignPtrUintptr(pp, amatchAvlRotateBefore(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
} else if int32((*amatch_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).Fimbalance) <= (-2) {
var pA uintptr = (*amatch_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpAfter
if int32((*amatch_avl)(unsafe.Pointer(pA)).Fimbalance) > 0 {
(*amatch_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpAfter = amatchAvlRotateBefore(tls, pA)
}
pp = amatchAvlFromPtr(tls, *(*uintptr)(unsafe.Pointer(bp /* p */)), bp /* &p */)
- *(*uintptr)(unsafe.Pointer(bp /* p */)) = crt.AssignPtrUintptr(pp, amatchAvlRotateAfter(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
+ *(*uintptr)(unsafe.Pointer(bp /* p */)) = libc.AssignPtrUintptr(pp, amatchAvlRotateAfter(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
}
pTop = *(*uintptr)(unsafe.Pointer(bp /* p */))
*(*uintptr)(unsafe.Pointer(bp /* p */)) = (*amatch_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpUp
@@ -12090,9 +14605,9 @@ func amatchAvlBalance(tls *crt.TLS, p uintptr) uintptr { /* amatch.c:263:19: */
// Search the tree rooted at p for an entry with zKey. Return a pointer
// to the entry or return NULL.
-func amatchAvlSearch(tls *crt.TLS, p uintptr, zKey uintptr) uintptr { /* amatch.c:288:19: */
+func amatchAvlSearch(tls *libc.TLS, p uintptr, zKey uintptr) uintptr { /* amatch.c:288:19: */
var c int32
- for (p != 0) && ((crt.AssignInt32(&c, crt.Xstrcmp(tls, zKey, (*amatch_avl)(unsafe.Pointer(p)).FzKey))) != 0) {
+ for (p != 0) && ((libc.AssignInt32(&c, libc.Xstrcmp(tls, zKey, (*amatch_avl)(unsafe.Pointer(p)).FzKey))) != 0) {
if c < 0 {
p = (*amatch_avl)(unsafe.Pointer(p)).FpBefore
} else {
@@ -12103,7 +14618,7 @@ func amatchAvlSearch(tls *crt.TLS, p uintptr, zKey uintptr) uintptr { /* amatch.
}
// Find the first node (the one with the smallest key).
-func amatchAvlFirst(tls *crt.TLS, p uintptr) uintptr { /* amatch.c:298:19: */
+func amatchAvlFirst(tls *libc.TLS, p uintptr) uintptr { /* amatch.c:298:19: */
if p != 0 {
for (*amatch_avl)(unsafe.Pointer(p)).FpBefore != 0 {
p = (*amatch_avl)(unsafe.Pointer(p)).FpBefore
@@ -12115,7 +14630,7 @@ func amatchAvlFirst(tls *crt.TLS, p uintptr) uintptr { /* amatch.c:298:19: */
// Insert a new node pNew. Return NULL on success. If the key is not
// unique, then do not perform the insert but instead leave pNew unchanged
// and return a pointer to an existing node with the same key.
-func amatchAvlInsert(tls *crt.TLS, ppHead uintptr, pNew uintptr) uintptr { /* amatch.c:356:19: */
+func amatchAvlInsert(tls *libc.TLS, ppHead uintptr, pNew uintptr) uintptr { /* amatch.c:356:19: */
var c int32
var p uintptr = *(*uintptr)(unsafe.Pointer(ppHead))
if p == uintptr(0) {
@@ -12123,7 +14638,7 @@ func amatchAvlInsert(tls *crt.TLS, ppHead uintptr, pNew uintptr) uintptr { /* am
(*amatch_avl)(unsafe.Pointer(pNew)).FpUp = uintptr(0)
} else {
for p != 0 {
- c = crt.Xstrcmp(tls, (*amatch_avl)(unsafe.Pointer(pNew)).FzKey, (*amatch_avl)(unsafe.Pointer(p)).FzKey)
+ c = libc.Xstrcmp(tls, (*amatch_avl)(unsafe.Pointer(pNew)).FzKey, (*amatch_avl)(unsafe.Pointer(p)).FzKey)
if c < 0 {
if (*amatch_avl)(unsafe.Pointer(p)).FpBefore != 0 {
p = (*amatch_avl)(unsafe.Pointer(p)).FpBefore
@@ -12157,7 +14672,7 @@ func amatchAvlInsert(tls *crt.TLS, ppHead uintptr, pNew uintptr) uintptr { /* am
// Remove node pOld from the tree. pOld must be an element of the tree or
// the AVL tree will become corrupt.
-func amatchAvlRemove(tls *crt.TLS, ppHead uintptr, pOld uintptr) { /* amatch.c:399:13: */
+func amatchAvlRemove(tls *libc.TLS, ppHead uintptr, pOld uintptr) { /* amatch.c:399:13: */
var ppParent uintptr
var pBalance uintptr = uintptr(0)
// assert( amatchAvlSearch(*ppHead, pOld->zKey)==pOld );
@@ -12181,17 +14696,17 @@ func amatchAvlRemove(tls *crt.TLS, ppHead uintptr, pOld uintptr) { /* amatch.c:3
pBalance = pX
}
- (*amatch_avl)(unsafe.Pointer(pX)).FpBefore = crt.AssignUintptr(&pY, (*amatch_avl)(unsafe.Pointer(pOld)).FpBefore)
+ (*amatch_avl)(unsafe.Pointer(pX)).FpBefore = libc.AssignUintptr(&pY, (*amatch_avl)(unsafe.Pointer(pOld)).FpBefore)
if pY != 0 {
(*amatch_avl)(unsafe.Pointer(pY)).FpUp = pX
}
(*amatch_avl)(unsafe.Pointer(pX)).FpUp = (*amatch_avl)(unsafe.Pointer(pOld)).FpUp
*(*uintptr)(unsafe.Pointer(ppParent)) = pX
} else if (*amatch_avl)(unsafe.Pointer(pOld)).FpBefore == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(ppParent)) = crt.AssignUintptr(&pBalance, (*amatch_avl)(unsafe.Pointer(pOld)).FpAfter)
+ *(*uintptr)(unsafe.Pointer(ppParent)) = libc.AssignUintptr(&pBalance, (*amatch_avl)(unsafe.Pointer(pOld)).FpAfter)
(*amatch_avl)(unsafe.Pointer(pBalance)).FpUp = (*amatch_avl)(unsafe.Pointer(pOld)).FpUp
} else if (*amatch_avl)(unsafe.Pointer(pOld)).FpAfter == uintptr(0) {
- *(*uintptr)(unsafe.Pointer(ppParent)) = crt.AssignUintptr(&pBalance, (*amatch_avl)(unsafe.Pointer(pOld)).FpBefore)
+ *(*uintptr)(unsafe.Pointer(ppParent)) = libc.AssignUintptr(&pBalance, (*amatch_avl)(unsafe.Pointer(pOld)).FpBefore)
(*amatch_avl)(unsafe.Pointer(pBalance)).FpUp = (*amatch_avl)(unsafe.Pointer(pOld)).FpUp
}
*(*uintptr)(unsafe.Pointer(ppHead)) = amatchAvlBalance(tls, pBalance)
@@ -12220,7 +14735,7 @@ type amatch_langid = int32 /* amatch.c:454:13 */
// The two input rule lists are both sorted in order of increasing
// cost. Merge them together into a single list, sorted by cost, and
// return a pointer to the head of that list.
-func amatchMergeRules(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* amatch.c:534:20: */
+func amatchMergeRules(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* amatch.c:534:20: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -12255,7 +14770,7 @@ func amatchMergeRules(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* amatch.
// If successful, *ppRule is set to point to the new object and SQLITE_OK
// is returned. Otherwise, *ppRule is zeroed, *pzErr may be set to point
// to an error message and an SQLite error code returned.
-func amatchLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, pzErr uintptr) int32 { /* amatch.c:567:12: */
+func amatchLoadOneRule(tls *libc.TLS, p uintptr, pStmt uintptr, ppRule uintptr, pzErr uintptr) int32 { /* amatch.c:567:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -12275,11 +14790,11 @@ func amatchLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
if zTo == uintptr(0) {
zTo = ts + 488 /* "" */
}
- nFrom = int32(crt.Xstrlen(tls, zFrom))
- nTo = int32(crt.Xstrlen(tls, zTo))
+ nFrom = int32(libc.Xstrlen(tls, zFrom))
+ nTo = int32(libc.Xstrlen(tls, zTo))
// Silently ignore null transformations
- if crt.Xstrcmp(tls, zFrom, zTo) == 0 {
+ if libc.Xstrcmp(tls, zFrom, zTo) == 0 {
if (int32(*(*int8)(unsafe.Pointer(zFrom + uintptr(0)))) == '?') && (int32(*(*int8)(unsafe.Pointer(zFrom + uintptr(1)))) == 0) {
if ((*amatch_vtab)(unsafe.Pointer(p)).FrSub == 0) || ((*amatch_vtab)(unsafe.Pointer(p)).FrSub > rCost) {
(*amatch_vtab)(unsafe.Pointer(p)).FrSub = rCost
@@ -12290,22 +14805,22 @@ func amatchLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
}
if (rCost <= 0) || (rCost > 1000) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+1962, /* "%s: cost must be..." */
- crt.VaList(bp, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, 1000))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3118, /* "%s: cost must be..." */
+ libc.VaList(bp, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, 1000))
rc = 1
} else if (nFrom > 50) || (nTo > 50) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+1996, /* "%s: maximum stri..." */
- crt.VaList(bp+16, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, 50))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3152, /* "%s: maximum stri..." */
+ libc.VaList(bp+16, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, 50))
rc = 1
} else if (iLang < int64(0)) || (iLang > int64(2147483647)) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2028, /* "%s: iLang must b..." */
- crt.VaList(bp+32, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, 2147483647))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3184, /* "%s: iLang must b..." */
+ libc.VaList(bp+32, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, 2147483647))
rc = 1
- } else if (crt.Xstrcmp(tls, zFrom, ts+488 /* "" */) == 0) && (crt.Xstrcmp(tls, zTo, ts+2063 /* "?" */) == 0) {
+ } else if (libc.Xstrcmp(tls, zFrom, ts+488 /* "" */) == 0) && (libc.Xstrcmp(tls, zTo, ts+3219 /* "?" */) == 0) {
if ((*amatch_vtab)(unsafe.Pointer(p)).FrIns == 0) || ((*amatch_vtab)(unsafe.Pointer(p)).FrIns > rCost) {
(*amatch_vtab)(unsafe.Pointer(p)).FrIns = rCost
}
- } else if (crt.Xstrcmp(tls, zFrom, ts+2063 /* "?" */) == 0) && (crt.Xstrcmp(tls, zTo, ts+488 /* "" */) == 0) {
+ } else if (libc.Xstrcmp(tls, zFrom, ts+3219 /* "?" */) == 0) && (libc.Xstrcmp(tls, zTo, ts+488 /* "" */) == 0) {
if ((*amatch_vtab)(unsafe.Pointer(p)).FrDel == 0) || ((*amatch_vtab)(unsafe.Pointer(p)).FrDel > rCost) {
(*amatch_vtab)(unsafe.Pointer(p)).FrDel = rCost
}
@@ -12314,11 +14829,11 @@ func amatchLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
if pRule == uintptr(0) {
rc = 7
} else {
- crt.Xmemset(tls, pRule, 0, uint64(unsafe.Sizeof(amatch_rule{})))
+ libc.Xmemset(tls, pRule, 0, uint64(unsafe.Sizeof(amatch_rule{})))
(*amatch_rule)(unsafe.Pointer(pRule)).FzFrom = ((pRule + 26 /* &.zTo */) + uintptr((nTo + 1)))
(*amatch_rule)(unsafe.Pointer(pRule)).FnFrom = amatch_len(nFrom)
- crt.Xmemcpy(tls, (*amatch_rule)(unsafe.Pointer(pRule)).FzFrom, zFrom, (uint64(nFrom + 1)))
- crt.Xmemcpy(tls, pRule+26 /* &.zTo */, zTo, (uint64(nTo + 1)))
+ libc.Xmemcpy(tls, (*amatch_rule)(unsafe.Pointer(pRule)).FzFrom, zFrom, (uint64(nFrom + 1)))
+ libc.Xmemcpy(tls, pRule+26 /* &.zTo */, zTo, (uint64(nTo + 1)))
(*amatch_rule)(unsafe.Pointer(pRule)).FnTo = amatch_len(nTo)
(*amatch_rule)(unsafe.Pointer(pRule)).FrCost = rCost
(*amatch_rule)(unsafe.Pointer(pRule)).FiLang = int32(iLang)
@@ -12330,7 +14845,7 @@ func amatchLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
}
// Free all the content in the edit-cost-table
-func amatchFreeRules(tls *crt.TLS, p uintptr) { /* amatch.c:644:13: */
+func amatchFreeRules(tls *libc.TLS, p uintptr) { /* amatch.c:644:13: */
for (*amatch_vtab)(unsafe.Pointer(p)).FpRule != 0 {
var pRule uintptr = (*amatch_vtab)(unsafe.Pointer(p)).FpRule
(*amatch_vtab)(unsafe.Pointer(p)).FpRule = (*amatch_rule)(unsafe.Pointer(pRule)).FpNext
@@ -12340,7 +14855,7 @@ func amatchFreeRules(tls *crt.TLS, p uintptr) { /* amatch.c:644:13: */
}
// Load the content of the amatch data table into memory.
-func amatchLoadRules(tls *crt.TLS, db uintptr, p uintptr, pzErr uintptr) int32 { /* amatch.c:656:12: */
+func amatchLoadRules(tls *libc.TLS, db uintptr, p uintptr, pzErr uintptr) int32 { /* amatch.c:656:12: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -12348,7 +14863,7 @@ func amatchLoadRules(tls *crt.TLS, db uintptr, p uintptr, pzErr uintptr) int32 {
var zSql uintptr // SELECT used to read from rules table
var pHead uintptr = uintptr(0)
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+2065 /* "SELECT * FROM %Q..." */, crt.VaList(bp, (*amatch_vtab)(unsafe.Pointer(p)).FzDb, (*amatch_vtab)(unsafe.Pointer(p)).FzCostTab))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+3221 /* "SELECT * FROM %Q..." */, libc.VaList(bp, (*amatch_vtab)(unsafe.Pointer(p)).FzDb, (*amatch_vtab)(unsafe.Pointer(p)).FzCostTab))
if zSql == uintptr(0) {
rc = 7
} else {
@@ -12356,10 +14871,10 @@ func amatchLoadRules(tls *crt.TLS, db uintptr, p uintptr, pzErr uintptr) int32 {
*(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)) = uintptr(0)
rc = sqlite3.Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+56 /* &pStmt */, uintptr(0))
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2085 /* "%s: %s" */, crt.VaList(bp+16, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, sqlite3.Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3241 /* "%s: %s" */, libc.VaList(bp+16, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, sqlite3.Xsqlite3_errmsg(tls, db)))
} else if sqlite3.Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */))) != 4 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2092, /* "%s: %s has %d co..." */
- crt.VaList(bp+32, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, (*amatch_vtab)(unsafe.Pointer(p)).FzCostTab, sqlite3.Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3248, /* "%s: %s has %d co..." */
+ libc.VaList(bp+32, (*amatch_vtab)(unsafe.Pointer(p)).FzClassName, (*amatch_vtab)(unsafe.Pointer(p)).FzCostTab, sqlite3.Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))))
rc = 1
} else {
for (rc == 0) && (100 == sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))) {
@@ -12389,7 +14904,7 @@ func amatchLoadRules(tls *crt.TLS, db uintptr, p uintptr, pzErr uintptr) int32 {
for i = uint32(0); uint64(i) < (uint64(unsafe.Sizeof([15]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0)))); i++ {
*(*uintptr)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(i)*8)) = uintptr(0)
}
- for (crt.AssignUintptr(&pX, pHead)) != uintptr(0) {
+ for (libc.AssignUintptr(&pX, pHead)) != uintptr(0) {
pHead = (*amatch_rule)(unsafe.Pointer(pX)).FpNext
(*amatch_rule)(unsafe.Pointer(pX)).FpNext = uintptr(0)
for i = uint32(0); (*(*uintptr)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(i)*8)) != 0) && (uint64(i) < ((uint64(unsafe.Sizeof([15]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0)))) - uint64(1))); i++ {
@@ -12425,17 +14940,17 @@ func amatchLoadRules(tls *crt.TLS, db uintptr, p uintptr, pzErr uintptr) int32 {
// 'xyz' becomes xyz
// [pqr] becomes pqr
// `mno` becomes mno
-func amatchDequote(tls *crt.TLS, zIn uintptr) uintptr { /* amatch.c:740:13: */
+func amatchDequote(tls *libc.TLS, zIn uintptr) uintptr { /* amatch.c:740:13: */
var nIn sqlite3_int64 // Size of input string, in bytes
var zOut uintptr // Output (dequoted) string
- nIn = sqlite3_int64(crt.Xstrlen(tls, zIn))
+ nIn = sqlite3_int64(libc.Xstrlen(tls, zIn))
zOut = sqlite3.Xsqlite3_malloc64(tls, (uint64(nIn + int64(1))))
if zOut != 0 {
var q int8 = *(*int8)(unsafe.Pointer(zIn + uintptr(0))) // Quote character (if any )
if (((int32(q) != '[') && (int32(q) != '\'')) && (int32(q) != '"')) && (int32(q) != '`') {
- crt.Xmemcpy(tls, zOut, zIn, (size_t(nIn + int64(1))))
+ libc.Xmemcpy(tls, zOut, zIn, (size_t(nIn + int64(1))))
} else {
var iOut int32 = 0 // Index of next byte to write to output
var iIn int32 // Index of next byte to read from input
@@ -12447,7 +14962,7 @@ func amatchDequote(tls *crt.TLS, zIn uintptr) uintptr { /* amatch.c:740:13: */
if int32(*(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))) == int32(q) {
iIn++
}
- *(*int8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
+ *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
}
}
}
@@ -12455,7 +14970,7 @@ func amatchDequote(tls *crt.TLS, zIn uintptr) uintptr { /* amatch.c:740:13: */
}
// Deallocate the pVCheck prepared statement.
-func amatchVCheckClear(tls *crt.TLS, p uintptr) { /* amatch.c:769:13: */
+func amatchVCheckClear(tls *libc.TLS, p uintptr) { /* amatch.c:769:13: */
if (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck != 0 {
sqlite3.Xsqlite3_finalize(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck)
(*amatch_vtab)(unsafe.Pointer(p)).FpVCheck = uintptr(0)
@@ -12463,7 +14978,7 @@ func amatchVCheckClear(tls *crt.TLS, p uintptr) { /* amatch.c:769:13: */
}
// Deallocate an amatch_vtab object
-func amatchFree(tls *crt.TLS, p uintptr) { /* amatch.c:779:13: */
+func amatchFree(tls *libc.TLS, p uintptr) { /* amatch.c:779:13: */
if p != 0 {
amatchFreeRules(tls, p)
amatchVCheckClear(tls, p)
@@ -12474,13 +14989,13 @@ func amatchFree(tls *crt.TLS, p uintptr) { /* amatch.c:779:13: */
sqlite3.Xsqlite3_free(tls, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabWord)
sqlite3.Xsqlite3_free(tls, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabLang)
sqlite3.Xsqlite3_free(tls, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(amatch_vtab{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(amatch_vtab{})))
sqlite3.Xsqlite3_free(tls, p)
}
}
// xDisconnect/xDestroy method for the amatch module.
-func amatchDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* amatch.c:798:12: */
+func amatchDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* amatch.c:798:12: */
var p uintptr = pVtab
amatchFree(tls, p)
@@ -12493,23 +15008,23 @@ func amatchDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* amatch.c:798:12: *
//
// If it is, return a pointer to the first character of VALUE.
// If not, return NULL. Spaces around the = are ignored.
-func amatchValueOfKey(tls *crt.TLS, zKey uintptr, zStr uintptr) uintptr { /* amatch.c:813:19: */
- var nKey int32 = int32(crt.Xstrlen(tls, zKey))
- var nStr int32 = int32(crt.Xstrlen(tls, zStr))
+func amatchValueOfKey(tls *libc.TLS, zKey uintptr, zStr uintptr) uintptr { /* amatch.c:813:19: */
+ var nKey int32 = int32(libc.Xstrlen(tls, zKey))
+ var nStr int32 = int32(libc.Xstrlen(tls, zStr))
var i int32
if nStr < (nKey + 1) {
return uintptr(0)
}
- if crt.Xmemcmp(tls, zStr, zKey, uint64(nKey)) != 0 {
+ if libc.Xmemcmp(tls, zStr, zKey, uint64(nKey)) != 0 {
return uintptr(0)
}
- for i = nKey; (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0; i++ {
+ for i = nKey; (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0; i++ {
}
if int32(*(*int8)(unsafe.Pointer(zStr + uintptr(i)))) != '=' {
return uintptr(0)
}
i++
- for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0 {
+ for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0 {
i++
}
return (zStr + uintptr(i))
@@ -12521,7 +15036,7 @@ func amatchValueOfKey(tls *crt.TLS, zKey uintptr, zStr uintptr) uintptr { /* ama
// argv[1] -> database name
// argv[2] -> table name
// argv[3...] -> arguments
-func amatchConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* amatch.c:834:12: */
+func amatchConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* amatch.c:834:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -12546,23 +15061,23 @@ func amatchConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
__1:
;
rc = 7
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(amatch_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(amatch_vtab{})))
(*amatch_vtab)(unsafe.Pointer(pNew)).Fdb = db
- (*amatch_vtab)(unsafe.Pointer(pNew)).FzClassName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zModule))
+ (*amatch_vtab)(unsafe.Pointer(pNew)).FzClassName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zModule))
if !((*amatch_vtab)(unsafe.Pointer(pNew)).FzClassName == uintptr(0)) {
goto __2
}
goto amatchConnectError
__2:
;
- (*amatch_vtab)(unsafe.Pointer(pNew)).FzDb = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, zDb))
+ (*amatch_vtab)(unsafe.Pointer(pNew)).FzDb = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, zDb))
if !((*amatch_vtab)(unsafe.Pointer(pNew)).FzDb == uintptr(0)) {
goto __3
}
goto amatchConnectError
__3:
;
- (*amatch_vtab)(unsafe.Pointer(pNew)).FzSelf = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ (*amatch_vtab)(unsafe.Pointer(pNew)).FzSelf = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
if !((*amatch_vtab)(unsafe.Pointer(pNew)).FzSelf == uintptr(0)) {
goto __4
}
@@ -12574,7 +15089,7 @@ __5:
if !(i < argc) {
goto __7
}
- zVal = amatchValueOfKey(tls, ts+2126 /* "vocabulary_table" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = amatchValueOfKey(tls, ts+3282 /* "vocabulary_table" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __8
}
@@ -12589,7 +15104,7 @@ __9:
goto __6
__8:
;
- zVal = amatchValueOfKey(tls, ts+2143 /* "vocabulary_word" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = amatchValueOfKey(tls, ts+3299 /* "vocabulary_word" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __10
}
@@ -12604,7 +15119,7 @@ __11:
goto __6
__10:
;
- zVal = amatchValueOfKey(tls, ts+2159 /* "vocabulary_langu..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = amatchValueOfKey(tls, ts+3315 /* "vocabulary_langu..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __12
}
@@ -12619,7 +15134,7 @@ __13:
goto __6
__12:
;
- zVal = amatchValueOfKey(tls, ts+2179 /* "edit_distances" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = amatchValueOfKey(tls, ts+3335 /* "edit_distances" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __14
}
@@ -12634,7 +15149,7 @@ __15:
goto __6
__14:
;
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2194 /* "unrecognized arg..." */, crt.VaList(bp+24, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3350 /* "unrecognized arg..." */, libc.VaList(bp+24, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
amatchFree(tls, pNew)
*(*uintptr)(unsafe.Pointer(ppVtab)) = uintptr(0)
return 1
@@ -12649,7 +15164,7 @@ __7:
if !((*amatch_vtab)(unsafe.Pointer(pNew)).FzCostTab == uintptr(0)) {
goto __16
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2223 /* "no edit_distance..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3379 /* "no edit_distance..." */, 0)
rc = 1
goto __17
__16:
@@ -12662,7 +15177,7 @@ __17:
sqlite3.Xsqlite3_vtab_config(tls, db, 2, 0)
rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+2257 /* "CREATE TABLE x(w..." */)
+ ts+3413 /* "CREATE TABLE x(w..." */)
__18:
;
if !(rc != 0) {
@@ -12680,14 +15195,14 @@ amatchConnectError:
}
// Open a new amatch cursor.
-func amatchOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* amatch.c:928:12: */
+func amatchOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* amatch.c:928:12: */
var p uintptr = pVTab
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(amatch_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(amatch_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(amatch_cursor{})))
(*amatch_cursor)(unsafe.Pointer(pCur)).FpVtab = p
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
(*amatch_vtab)(unsafe.Pointer(p)).FnCursor++
@@ -12696,7 +15211,7 @@ func amatchOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* amatch
// Free up all the memory allocated by a cursor. Set it rLimit to 0
// to indicate that it is at EOF.
-func amatchClearCursor(tls *crt.TLS, pCur uintptr) { /* amatch.c:944:13: */
+func amatchClearCursor(tls *libc.TLS, pCur uintptr) { /* amatch.c:944:13: */
var pWord uintptr
var pNextWord uintptr
for pWord = (*amatch_cursor)(unsafe.Pointer(pCur)).FpAllWords; pWord != 0; pWord = pNextWord {
@@ -12718,7 +15233,7 @@ func amatchClearCursor(tls *crt.TLS, pCur uintptr) { /* amatch.c:944:13: */
}
// Close a amatch cursor.
-func amatchClose(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:967:12: */
+func amatchClose(tls *libc.TLS, cur uintptr) int32 { /* amatch.c:967:12: */
var pCur uintptr = cur
amatchClearCursor(tls, pCur)
(*amatch_vtab)(unsafe.Pointer((*amatch_cursor)(unsafe.Pointer(pCur)).FpVtab)).FnCursor--
@@ -12727,17 +15242,17 @@ func amatchClose(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:967:12: */
}
// Render a 24-bit unsigned integer as a 4-byte base-64 number.
-func amatchEncodeInt(tls *crt.TLS, x int32, z uintptr) { /* amatch.c:978:13: */
+func amatchEncodeInt(tls *libc.TLS, x int32, z uintptr) { /* amatch.c:978:13: */
*(*int8)(unsafe.Pointer(z + uintptr(0))) = a[((x >> 18) & 0x3f)]
*(*int8)(unsafe.Pointer(z + uintptr(1))) = a[((x >> 12) & 0x3f)]
*(*int8)(unsafe.Pointer(z + uintptr(2))) = a[((x >> 6) & 0x3f)]
*(*int8)(unsafe.Pointer(z + uintptr(3))) = a[(x & 0x3f)]
}
-var a = *(*[65]int8)(unsafe.Pointer(ts + 2324 /* "0123456789ABCDEF..." */)) /* amatch.c:979:21 */
+var a = *(*[65]int8)(unsafe.Pointer(ts + 3480 /* "0123456789ABCDEF..." */)) /* amatch.c:979:21 */
// Write the zCost[] field for a amatch_word object
-func amatchWriteCost(tls *crt.TLS, pWord uintptr) { /* amatch.c:996:13: */
+func amatchWriteCost(tls *libc.TLS, pWord uintptr) { /* amatch.c:996:13: */
amatchEncodeInt(tls, (*amatch_word)(unsafe.Pointer(pWord)).FrCost, pWord+112 /* &.zCost */)
amatchEncodeInt(tls, (*amatch_word)(unsafe.Pointer(pWord)).FiSeq, ((pWord + 112 /* &.zCost */) + uintptr(4)))
*(*int8)(unsafe.Pointer((pWord + 112 /* &.zCost */) + uintptr(8))) = int8(0)
@@ -12745,11 +15260,11 @@ func amatchWriteCost(tls *crt.TLS, pWord uintptr) { /* amatch.c:996:13: */
// Circumvent compiler warnings about the use of strcpy() by supplying
// our own implementation.
-func amatchStrcpy(tls *crt.TLS, dest uintptr, src uintptr) { /* amatch.c:1005:13: */
- for (int32(crt.AssignPtrInt8(crt.PostIncUintptr(&dest, 1), *(*int8)(unsafe.Pointer(crt.PostIncUintptr(&src, 1)))))) != 0 {
+func amatchStrcpy(tls *libc.TLS, dest uintptr, src uintptr) { /* amatch.c:1005:13: */
+ for (int32(libc.AssignPtrInt8(libc.PostIncUintptr(&dest, 1), *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&src, 1)))))) != 0 {
}
}
-func amatchStrcat(tls *crt.TLS, dest uintptr, src uintptr) { /* amatch.c:1008:13: */
+func amatchStrcat(tls *libc.TLS, dest uintptr, src uintptr) { /* amatch.c:1008:13: */
for *(*int8)(unsafe.Pointer(dest)) != 0 {
dest++
}
@@ -12763,7 +15278,7 @@ func amatchStrcat(tls *crt.TLS, dest uintptr, src uintptr) { /* amatch.c:1008:13
// otherwise leave it unchanged. Do not add a duplicate.
//
// Do nothing if the cost exceeds threshold.
-func amatchAddWord(tls *crt.TLS, pCur uintptr, rCost amatch_cost, nMatch int32, zWordBase uintptr, zWordTail uintptr) { /* amatch.c:1022:13: */
+func amatchAddWord(tls *libc.TLS, pCur uintptr, rCost amatch_cost, nMatch int32, zWordBase uintptr, zWordTail uintptr) { /* amatch.c:1022:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -12778,8 +15293,8 @@ func amatchAddWord(tls *crt.TLS, pCur uintptr, rCost amatch_cost, nMatch int32,
if rCost > (*amatch_cursor)(unsafe.Pointer(pCur)).FrLimit {
return
}
- nBase = int32(crt.Xstrlen(tls, zWordBase))
- nTail = int32(crt.Xstrlen(tls, zWordTail))
+ nBase = int32(libc.Xstrlen(tls, zWordBase))
+ nTail = int32(libc.Xstrlen(tls, zWordTail))
if ((nBase + nTail) + 3) > (*amatch_cursor)(unsafe.Pointer(pCur)).FnBuf {
(*amatch_cursor)(unsafe.Pointer(pCur)).FnBuf = ((nBase + nTail) + 100)
(*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf = sqlite3.Xsqlite3_realloc(tls, (*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf, (*amatch_cursor)(unsafe.Pointer(pCur)).FnBuf)
@@ -12789,9 +15304,9 @@ func amatchAddWord(tls *crt.TLS, pCur uintptr, rCost amatch_cost, nMatch int32,
}
}
amatchEncodeInt(tls, nMatch, bp /* &zBuf[0] */)
- crt.Xmemcpy(tls, (*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf, (bp /* &zBuf[0] */ + uintptr(2)), uint64(2))
- crt.Xmemcpy(tls, ((*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf + uintptr(2)), zWordBase, uint64(nBase))
- crt.Xmemcpy(tls, (((*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf + uintptr(2)) + uintptr(nBase)), zWordTail, (uint64(nTail + 1)))
+ libc.Xmemcpy(tls, (*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf, (bp /* &zBuf[0] */ + uintptr(2)), uint64(2))
+ libc.Xmemcpy(tls, ((*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf + uintptr(2)), zWordBase, uint64(nBase))
+ libc.Xmemcpy(tls, (((*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf + uintptr(2)) + uintptr(nBase)), zWordTail, (uint64(nTail + 1)))
pNode = amatchAvlSearch(tls, (*amatch_cursor)(unsafe.Pointer(pCur)).FpWord, (*amatch_cursor)(unsafe.Pointer(pCur)).FzBuf)
if pNode != 0 {
pWord = (*amatch_avl)(unsafe.Pointer(pNode)).FpWord
@@ -12808,9 +15323,9 @@ func amatchAddWord(tls *crt.TLS, pCur uintptr, rCost amatch_cost, nMatch int32,
if pWord == uintptr(0) {
return
}
- crt.Xmemset(tls, pWord, 0, uint64(unsafe.Sizeof(amatch_word{})))
+ libc.Xmemset(tls, pWord, 0, uint64(unsafe.Sizeof(amatch_word{})))
(*amatch_word)(unsafe.Pointer(pWord)).FrCost = rCost
- (*amatch_word)(unsafe.Pointer(pWord)).FiSeq = crt.PostIncInt32(&(*amatch_cursor)(unsafe.Pointer(pCur)).FnWord, 1)
+ (*amatch_word)(unsafe.Pointer(pWord)).FiSeq = libc.PostIncInt32(&(*amatch_cursor)(unsafe.Pointer(pCur)).FnWord, 1)
amatchWriteCost(tls, pWord)
(*amatch_word)(unsafe.Pointer(pWord)).FnMatch = int16(nMatch)
(*amatch_word)(unsafe.Pointer(pWord)).FpNext = (*amatch_cursor)(unsafe.Pointer(pCur)).FpAllWords
@@ -12827,7 +15342,7 @@ func amatchAddWord(tls *crt.TLS, pCur uintptr, rCost amatch_cost, nMatch int32,
}
// Advance a cursor to its next row of output
-func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
+func amatchNext(tls *libc.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -12853,16 +15368,16 @@ func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
var zSql uintptr
if ((*amatch_vtab)(unsafe.Pointer(p)).FzVocabLang != 0) && (*(*int8)(unsafe.Pointer((*amatch_vtab)(unsafe.Pointer(p)).FzVocabLang + uintptr(0))) != 0) {
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+2389, /* "SELECT \"%w\" FROM..." */
+ ts+3545, /* "SELECT \"%w\" FROM..." */
- crt.VaList(bp, ts+2411, /* " WHERE \"%w\">=?1 ..." */
+ libc.VaList(bp, ts+3567, /* " WHERE \"%w\">=?1 ..." */
(*amatch_vtab)(unsafe.Pointer(p)).FzVocabWord, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabTab,
(*amatch_vtab)(unsafe.Pointer(p)).FzVocabWord, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabLang))
} else {
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+2450, /* "SELECT \"%w\" FROM..." */
- crt.VaList(bp+40, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabWord, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabTab,
+ ts+3606, /* "SELECT \"%w\" FROM..." */
+ libc.VaList(bp+40, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabWord, (*amatch_vtab)(unsafe.Pointer(p)).FzVocabTab,
(*amatch_vtab)(unsafe.Pointer(p)).FzVocabWord))
}
rc = sqlite3.Xsqlite3_prepare_v2(tls, (*amatch_vtab)(unsafe.Pointer(p)).Fdb, zSql, -1, (p + 112 /* &.pVCheck */), uintptr(0))
@@ -12882,7 +15397,7 @@ func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
pWord = (*amatch_avl)(unsafe.Pointer(pNode)).FpWord
amatchAvlRemove(tls, (pCur + 80 /* &.pCost */), (pWord + 8 /* &.sCost */))
- nWord = int32(crt.Xstrlen(tls, ((pWord + 124 /* &.zWord */) + uintptr(2))))
+ nWord = int32(libc.Xstrlen(tls, ((pWord + 124 /* &.zWord */) + uintptr(2))))
if (nWord + 20) > int32(nBuf) {
nBuf = (int8(nWord + 100))
zBuf = sqlite3.Xsqlite3_realloc(tls, zBuf, int32(nBuf))
@@ -12910,7 +15425,7 @@ func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
rc = sqlite3.Xsqlite3_step(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck)
if rc == 100 {
zW = sqlite3.Xsqlite3_column_text(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck, 0)
- if crt.Xstrncmp(tls, zBuf, zW, (uint64(nWord+nNextIn))) == 0 {
+ if libc.Xstrncmp(tls, zBuf, zW, (uint64(nWord+nNextIn))) == 0 {
amatchAddWord(tls, pCur, (*amatch_word)(unsafe.Pointer(pWord)).FrCost, (int32((*amatch_word)(unsafe.Pointer(pWord)).FnMatch) + nNextIn), zBuf, ts+488 /* "" */)
}
}
@@ -12920,14 +15435,14 @@ func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
for 1 != 0 {
amatchStrcpy(tls, (zBuf + uintptr(nWord)), bp+64 /* &zNext[0] */)
sqlite3.Xsqlite3_reset(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck)
- sqlite3.Xsqlite3_bind_text(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck, 1, zBuf, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_bind_text(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck, 1, zBuf, -1, libc.UintptrFromInt32(-1))
rc = sqlite3.Xsqlite3_step(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck)
if rc != 100 {
break
}
zW = sqlite3.Xsqlite3_column_text(tls, (*amatch_vtab)(unsafe.Pointer(p)).FpVCheck, 0)
amatchStrcpy(tls, (zBuf + uintptr(nWord)), bp+64 /* &zNext[0] */)
- if crt.Xstrncmp(tls, zW, zBuf, uint64(nWord)) != 0 {
+ if libc.Xstrncmp(tls, zW, zBuf, uint64(nWord)) != 0 {
break
}
if ((int32(*(*int8)(unsafe.Pointer(bp + 72 /* &zNextIn[0] */ + uintptr(0)))) == '*') && (int32(*(*int8)(unsafe.Pointer(bp + 72 /* &zNextIn[0] */ + uintptr(1)))) == 0)) ||
@@ -12968,7 +15483,7 @@ func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
if (*amatch_rule)(unsafe.Pointer(pRule)).FiLang != (*amatch_cursor)(unsafe.Pointer(pCur)).FiLang {
continue
}
- if crt.Xstrncmp(tls, (*amatch_rule)(unsafe.Pointer(pRule)).FzFrom, ((*amatch_cursor)(unsafe.Pointer(pCur)).FzInput+uintptr((*amatch_word)(unsafe.Pointer(pWord)).FnMatch)), uint64((*amatch_rule)(unsafe.Pointer(pRule)).FnFrom)) == 0 {
+ if libc.Xstrncmp(tls, (*amatch_rule)(unsafe.Pointer(pRule)).FzFrom, ((*amatch_cursor)(unsafe.Pointer(pCur)).FzInput+uintptr((*amatch_word)(unsafe.Pointer(pWord)).FnMatch)), uint64((*amatch_rule)(unsafe.Pointer(pRule)).FnFrom)) == 0 {
amatchAddWord(tls, pCur, ((*amatch_word)(unsafe.Pointer(pWord)).FrCost + (*amatch_rule)(unsafe.Pointer(pRule)).FrCost),
(int32((*amatch_word)(unsafe.Pointer(pWord)).FnMatch) + int32((*amatch_rule)(unsafe.Pointer(pRule)).FnFrom)), ((pWord + 124 /* &.zWord */) + uintptr(2)), pRule+26 /* &.zTo */)
}
@@ -12982,12 +15497,12 @@ func amatchNext(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1102:12: */
// Called to "rewind" a cursor back to the beginning so that
// it starts its output over again. Always called at least once
// prior to any amatchColumn, amatchRowid, or amatchEof call.
-func amatchFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* amatch.c:1251:12: */
+func amatchFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* amatch.c:1251:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pCur uintptr = pVtabCursor
- var zWord uintptr = ts + 2498 /* "*" */
+ var zWord uintptr = ts + 3654 /* "*" */
var idx int32
amatchClearCursor(tls, pCur)
@@ -13004,7 +15519,7 @@ func amatchFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
(*amatch_cursor)(unsafe.Pointer(pCur)).FiLang = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(idx)*8)))
idx++
}
- (*amatch_cursor)(unsafe.Pointer(pCur)).FzInput = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zWord))
+ (*amatch_cursor)(unsafe.Pointer(pCur)).FzInput = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zWord))
if (*amatch_cursor)(unsafe.Pointer(pCur)).FzInput == uintptr(0) {
return 7
}
@@ -13016,7 +15531,7 @@ func amatchFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
// Only the word and distance columns have values. All other columns
// return NULL
-func amatchColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* amatch.c:1286:12: */
+func amatchColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* amatch.c:1286:12: */
var pCur uintptr = cur
switch i {
case 0:
@@ -13049,16 +15564,16 @@ func amatchColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* am
}
// The rowid.
-func amatchRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* amatch.c:1316:12: */
+func amatchRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* amatch.c:1316:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*amatch_cursor)(unsafe.Pointer(pCur)).FiRowid
return 0
}
// EOF indicator
-func amatchEof(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1325:12: */
+func amatchEof(tls *libc.TLS, cur uintptr) int32 { /* amatch.c:1325:12: */
var pCur uintptr = cur
- return (crt.Bool32((*amatch_cursor)(unsafe.Pointer(pCur)).FpCurrent == uintptr(0)))
+ return (libc.Bool32((*amatch_cursor)(unsafe.Pointer(pCur)).FpCurrent == uintptr(0)))
}
// Search for terms of these forms:
@@ -13081,7 +15596,7 @@ func amatchEof(tls *crt.TLS, cur uintptr) int32 { /* amatch.c:1325:12: */
// in filter.argv[0] if bit-1 and bit-2 are both zero, is in
// filter.argv[1] if exactly one of bit-1 and bit-2 are set, and is in
// filter.argv[2] if both bit-1 and bit-2 are set.
-func amatchBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* amatch.c:1352:12: */
+func amatchBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* amatch.c:1352:12: */
var iPlan int32 = 0
var iDistTerm int32 = -1
var iLangTerm int32 = -1
@@ -13130,7 +15645,7 @@ __2:
__3:
;
if (iPlan & 2) != 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).FargvIndex = (1 + (crt.Bool32((iPlan & 1) != 0)))
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).FargvIndex = (1 + (libc.Bool32((iPlan & 1) != 0)))
}
if (iPlan & 4) != 0 {
var idx int32 = 1
@@ -13157,7 +15672,7 @@ __3:
//
// This implementation disallows DELETE and UPDATE. The only thing
// allowed is INSERT into the "command" column.
-func amatchUpdate(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRowid uintptr) int32 { /* amatch.c:1418:12: */
+func amatchUpdate(tls *libc.TLS, pVTab uintptr, argc int32, argv uintptr, pRowid uintptr) int32 { /* amatch.c:1418:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -13165,20 +15680,20 @@ func amatchUpdate(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRowid
var zCmd uintptr
_ = pRowid
if argc == 1 {
- (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+2500, /* "DELETE from %s i..." */
- crt.VaList(bp, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf))
+ (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+3656, /* "DELETE from %s i..." */
+ libc.VaList(bp, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf))
return 1
}
if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) != 5 {
- (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+2530, /* "UPDATE of %s is ..." */
- crt.VaList(bp+8, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf))
+ (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+3686, /* "UPDATE of %s is ..." */
+ libc.VaList(bp+8, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf))
return 1
}
if ((sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((2+0))*8))) != 5) ||
(sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((2+1))*8))) != 5)) ||
(sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((2+2))*8))) != 5) {
(*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls,
- ts+2558 /* "INSERT INTO %s a..." */, crt.VaList(bp+16, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf))
+ ts+3714 /* "INSERT INTO %s a..." */, libc.VaList(bp+16, (*amatch_vtab)(unsafe.Pointer(p)).FzSelf))
return 1
}
zCmd = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((2+3))*8)))
@@ -13217,19 +15732,19 @@ uintptr(0), // xShadowName
} /* amatch.c:1454:23 */
// Register the amatch virtual table
-func sqlite3_amatch_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* amatch.c:1489:5: */
+func sqlite3_amatch_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* amatch.c:1489:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Not used
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+2607 /* "approximate_matc..." */, uintptr(unsafe.Pointer(&amatchModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3763 /* "approximate_matc..." */, uintptr(unsafe.Pointer(&amatchModule)), uintptr(0))
return rc
}
// Allowed datatypes
// Names of types
-var azType = [4]uintptr{ts + 2625 /* "int32" */, ts + 2631 /* "int64" */, ts + 2637 /* "double" */, ts + 2644 /* "char*" */} /* carray.c:73:19 */
+var azType = [4]uintptr{ts + 3781 /* "int32" */, ts + 3787 /* "int64" */, ts + 2422 /* "double" */, ts + 3793 /* "char*" */} /* carray.c:73:19 */
// carray_cursor is a subclass of sqlite3_vtab_cursor which will
// serve as the underlying representation of a cursor that scans
@@ -13259,50 +15774,50 @@ type carray_cursor = carray_cursor1 /* carray.c:80:30 */
//
// (2) Tell SQLite (via the sqlite3_declare_vtab() interface) what the
// result set of queries against carray will look like.
-func carrayConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* carray.c:102:12: */
+func carrayConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* carray.c:102:12: */
var pNew uintptr
var rc int32
// Column numbers
rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+2650 /* "CREATE TABLE x(v..." */)
+ ts+3799 /* "CREATE TABLE x(v..." */)
if rc == 0 {
- pNew = crt.AssignPtrUintptr(ppVtab, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(sqlite3_vtab{}))))
+ pNew = libc.AssignPtrUintptr(ppVtab, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(sqlite3_vtab{}))))
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(sqlite3_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(sqlite3_vtab{})))
}
return rc
}
// This method is the destructor for carray_cursor objects.
-func carrayDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* carray.c:131:12: */
+func carrayDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* carray.c:131:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Constructor for a new carray_cursor object.
-func carrayOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* carray.c:139:12: */
+func carrayOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* carray.c:139:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(carray_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(carray_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(carray_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Destructor for a carray_cursor.
-func carrayClose(tls *crt.TLS, cur uintptr) int32 { /* carray.c:151:12: */
+func carrayClose(tls *libc.TLS, cur uintptr) int32 { /* carray.c:151:12: */
sqlite3.Xsqlite3_free(tls, cur)
return 0
}
// Advance a carray_cursor to its next row of output.
-func carrayNext(tls *crt.TLS, cur uintptr) int32 { /* carray.c:160:12: */
+func carrayNext(tls *libc.TLS, cur uintptr) int32 { /* carray.c:160:12: */
var pCur uintptr = cur
(*carray_cursor)(unsafe.Pointer(pCur)).FiRowid++
return 0
@@ -13310,7 +15825,7 @@ func carrayNext(tls *crt.TLS, cur uintptr) int32 { /* carray.c:160:12: */
// Return values of columns for the row at which the carray_cursor
// is currently pointing.
-func carrayColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* carray.c:170:12: */
+func carrayColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* carray.c:170:12: */
var pCur uintptr = cur
var x sqlite3_int64 = int64(0)
switch i {
@@ -13348,7 +15863,7 @@ func carrayColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* ca
case 3:
{
var p uintptr = (*carray_cursor)(unsafe.Pointer(pCur)).FpPtr
- sqlite3.Xsqlite3_result_text(tls, ctx, *(*uintptr)(unsafe.Pointer(p + uintptr(((*carray_cursor)(unsafe.Pointer(pCur)).FiRowid-int64(1)))*8)), -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, *(*uintptr)(unsafe.Pointer(p + uintptr(((*carray_cursor)(unsafe.Pointer(pCur)).FiRowid-int64(1)))*8)), -1, libc.UintptrFromInt32(-1))
return 0
}
}
@@ -13360,7 +15875,7 @@ func carrayColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* ca
// Return the rowid for the current row. In this implementation, the
// rowid is the same as the output value.
-func carrayRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* carray.c:217:12: */
+func carrayRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* carray.c:217:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*carray_cursor)(unsafe.Pointer(pCur)).FiRowid
return 0
@@ -13368,20 +15883,20 @@ func carrayRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* carray.c:
// Return TRUE if the cursor has been moved off of the last
// row of output.
-func carrayEof(tls *crt.TLS, cur uintptr) int32 { /* carray.c:227:12: */
+func carrayEof(tls *libc.TLS, cur uintptr) int32 { /* carray.c:227:12: */
var pCur uintptr = cur
- return (crt.Bool32((*carray_cursor)(unsafe.Pointer(pCur)).FiRowid > (*carray_cursor)(unsafe.Pointer(pCur)).FiCnt))
+ return (libc.Bool32((*carray_cursor)(unsafe.Pointer(pCur)).FiRowid > (*carray_cursor)(unsafe.Pointer(pCur)).FiCnt))
}
// This method is called to "rewind" the carray_cursor object back
// to the first row of output.
-func carrayFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* carray.c:236:12: */
+func carrayFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* carray.c:236:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pCur uintptr = pVtabCursor
if idxNum != 0 {
- (*carray_cursor)(unsafe.Pointer(pCur)).FpPtr = sqlite3.Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+2713 /* "carray" */)
+ (*carray_cursor)(unsafe.Pointer(pCur)).FpPtr = sqlite3.Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+3862 /* "carray" */)
(*carray_cursor)(unsafe.Pointer(pCur)).FiCnt = func() int64 {
if (*carray_cursor)(unsafe.Pointer(pCur)).FpPtr != 0 {
return sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -13400,7 +15915,7 @@ func carrayFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
}
if uint64(i) >= (uint64(unsafe.Sizeof(azType)) / uint64(unsafe.Sizeof(uintptr(0)))) {
(*sqlite3_vtab)(unsafe.Pointer((*sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls,
- ts+2720 /* "unknown datatype..." */, crt.VaList(bp, zType))
+ ts+3869 /* "unknown datatype..." */, libc.VaList(bp, zType))
return 1
} else {
(*carray_cursor)(unsafe.Pointer(pCur)).FeType = i
@@ -13425,7 +15940,7 @@ func carrayFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
// idxNum is 2 if the pointer= and count= constraints exist,
// 3 if the ctype= constraint also exists, and is 0 otherwise.
// If idxNum is 0, then carray becomes an empty table.
-func carrayBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* carray.c:282:12: */
+func carrayBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* carray.c:282:12: */
var i int32 // Loop over constraints
var ptrIdx int32 = -1 // Index of the pointer= constraint, or -1 if none
var cntIdx int32 = -1 // Index of the count= constraint, or -1 if none
@@ -13517,7 +16032,7 @@ uintptr(0), // xRename
// a pointer.
//
// This is for testing on TCL only.
-func inttoptrFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* carray.c:366:13: */
+func inttoptrFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* carray.c:366:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -13527,23 +16042,23 @@ func inttoptrFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* i64 */)) = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
if uint64(unsafe.Sizeof(sqlite3_int64(0))) == uint64(unsafe.Sizeof(uintptr(0))) {
- crt.Xmemcpy(tls, bp /* &p */, bp+8 /* &i64 */, uint64(unsafe.Sizeof(uintptr(0))))
+ libc.Xmemcpy(tls, bp /* &p */, bp+8 /* &i64 */, uint64(unsafe.Sizeof(uintptr(0))))
} else {
*(*int32)(unsafe.Pointer(bp + 16 /* i32 */)) = (int32(*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* i64 */)) & int64(0xffffffff)))
- crt.Xmemcpy(tls, bp /* &p */, bp+16 /* &i32 */, uint64(unsafe.Sizeof(uintptr(0))))
+ libc.Xmemcpy(tls, bp /* &p */, bp+16 /* &i32 */, uint64(unsafe.Sizeof(uintptr(0))))
}
- sqlite3.Xsqlite3_result_pointer(tls, context, *(*uintptr)(unsafe.Pointer(bp /* p */)), ts+2713 /* "carray" */, uintptr(0))
+ sqlite3.Xsqlite3_result_pointer(tls, context, *(*uintptr)(unsafe.Pointer(bp /* p */)), ts+3862 /* "carray" */, uintptr(0))
}
-func sqlite3_carray_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* carray.c:389:5: */
+func sqlite3_carray_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* carray.c:389:5: */
var rc int32 = 0
_ = pApi
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+2713 /* "carray" */, uintptr(unsafe.Pointer(&carrayModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3862 /* "carray" */, uintptr(unsafe.Pointer(&carrayModule)), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+2741 /* "inttoptr" */, 1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3890 /* "inttoptr" */, 1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{inttoptrFunc})), uintptr(0), uintptr(0))
}
return rc
@@ -13597,7 +16112,7 @@ type closure_avl = closure_avl1 /* closure.c:159:28 */
// Recompute the closure_avl.height and closure_avl.imbalance fields for p.
// Assume that the children of p have correct heights.
-func closureAvlRecomputeHeight(tls *crt.TLS, p uintptr) { /* closure.c:182:13: */
+func closureAvlRecomputeHeight(tls *libc.TLS, p uintptr) { /* closure.c:182:13: */
var hBefore int16
if (*closure_avl)(unsafe.Pointer(p)).FpBefore != 0 {
hBefore = (*closure_avl)(unsafe.Pointer((*closure_avl)(unsafe.Pointer(p)).FpBefore)).Fheight
@@ -13623,7 +16138,7 @@ func closureAvlRecomputeHeight(tls *crt.TLS, p uintptr) { /* closure.c:182:13: *
// / \ / ** B Z ==> X P
// / \ / ** X Y Y Z
//
-func closureAvlRotateBefore(tls *crt.TLS, pP uintptr) uintptr { /* closure.c:197:20: */
+func closureAvlRotateBefore(tls *libc.TLS, pP uintptr) uintptr { /* closure.c:197:20: */
var pB uintptr = (*closure_avl)(unsafe.Pointer(pP)).FpBefore
var pY uintptr = (*closure_avl)(unsafe.Pointer(pB)).FpAfter
(*closure_avl)(unsafe.Pointer(pB)).FpUp = (*closure_avl)(unsafe.Pointer(pP)).FpUp
@@ -13642,7 +16157,7 @@ func closureAvlRotateBefore(tls *crt.TLS, pP uintptr) uintptr { /* closure.c:197
// / \ / ** X A ==> P Z
// / \ / ** Y Z X Y
//
-func closureAvlRotateAfter(tls *crt.TLS, pP uintptr) uintptr { /* closure.c:218:20: */
+func closureAvlRotateAfter(tls *libc.TLS, pP uintptr) uintptr { /* closure.c:218:20: */
var pA uintptr = (*closure_avl)(unsafe.Pointer(pP)).FpAfter
var pY uintptr = (*closure_avl)(unsafe.Pointer(pA)).FpBefore
(*closure_avl)(unsafe.Pointer(pA)).FpUp = (*closure_avl)(unsafe.Pointer(pP)).FpUp
@@ -13659,7 +16174,7 @@ func closureAvlRotateAfter(tls *crt.TLS, pP uintptr) uintptr { /* closure.c:218:
// Return a pointer to the pBefore or pAfter pointer in the parent
// of p that points to p. Or if p is the root node, return pp.
-func closureAvlFromPtr(tls *crt.TLS, p uintptr, pp uintptr) uintptr { /* closure.c:235:20: */
+func closureAvlFromPtr(tls *libc.TLS, p uintptr, pp uintptr) uintptr { /* closure.c:235:20: */
var pUp uintptr = (*closure_avl)(unsafe.Pointer(p)).FpUp
if pUp == uintptr(0) {
return pp
@@ -13672,7 +16187,7 @@ func closureAvlFromPtr(tls *crt.TLS, p uintptr, pp uintptr) uintptr { /* closure
// Rebalance all nodes starting with p and working up to the root.
// Return the new root.
-func closureAvlBalance(tls *crt.TLS, p uintptr) uintptr { /* closure.c:246:20: */
+func closureAvlBalance(tls *libc.TLS, p uintptr) uintptr { /* closure.c:246:20: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*uintptr)(unsafe.Pointer(bp)) = p
@@ -13687,14 +16202,14 @@ func closureAvlBalance(tls *crt.TLS, p uintptr) uintptr { /* closure.c:246:20: *
(*closure_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpBefore = closureAvlRotateAfter(tls, pB)
}
pp = closureAvlFromPtr(tls, *(*uintptr)(unsafe.Pointer(bp /* p */)), bp /* &p */)
- *(*uintptr)(unsafe.Pointer(bp /* p */)) = crt.AssignPtrUintptr(pp, closureAvlRotateBefore(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
+ *(*uintptr)(unsafe.Pointer(bp /* p */)) = libc.AssignPtrUintptr(pp, closureAvlRotateBefore(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
} else if int32((*closure_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).Fimbalance) <= (-2) {
var pA uintptr = (*closure_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpAfter
if int32((*closure_avl)(unsafe.Pointer(pA)).Fimbalance) > 0 {
(*closure_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpAfter = closureAvlRotateBefore(tls, pA)
}
pp = closureAvlFromPtr(tls, *(*uintptr)(unsafe.Pointer(bp /* p */)), bp /* &p */)
- *(*uintptr)(unsafe.Pointer(bp /* p */)) = crt.AssignPtrUintptr(pp, closureAvlRotateAfter(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
+ *(*uintptr)(unsafe.Pointer(bp /* p */)) = libc.AssignPtrUintptr(pp, closureAvlRotateAfter(tls, *(*uintptr)(unsafe.Pointer(bp /* p */))))
}
pTop = *(*uintptr)(unsafe.Pointer(bp /* p */))
*(*uintptr)(unsafe.Pointer(bp /* p */)) = (*closure_avl)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* p */)))).FpUp
@@ -13704,7 +16219,7 @@ func closureAvlBalance(tls *crt.TLS, p uintptr) uintptr { /* closure.c:246:20: *
// Search the tree rooted at p for an entry with id. Return a pointer
// to the entry or return NULL.
-func closureAvlSearch(tls *crt.TLS, p uintptr, id sqlite3_int64) uintptr { /* closure.c:271:20: */
+func closureAvlSearch(tls *libc.TLS, p uintptr, id sqlite3_int64) uintptr { /* closure.c:271:20: */
for (p != 0) && (id != (*closure_avl)(unsafe.Pointer(p)).Fid) {
if id < (*closure_avl)(unsafe.Pointer(p)).Fid {
p = (*closure_avl)(unsafe.Pointer(p)).FpBefore
@@ -13716,7 +16231,7 @@ func closureAvlSearch(tls *crt.TLS, p uintptr, id sqlite3_int64) uintptr { /* cl
}
// Find the first node (the one with the smallest key).
-func closureAvlFirst(tls *crt.TLS, p uintptr) uintptr { /* closure.c:280:20: */
+func closureAvlFirst(tls *libc.TLS, p uintptr) uintptr { /* closure.c:280:20: */
if p != 0 {
for (*closure_avl)(unsafe.Pointer(p)).FpBefore != 0 {
p = (*closure_avl)(unsafe.Pointer(p)).FpBefore
@@ -13726,7 +16241,7 @@ func closureAvlFirst(tls *crt.TLS, p uintptr) uintptr { /* closure.c:280:20: */
}
// Return the node with the next larger key after p.
-func closureAvlNext(tls *crt.TLS, p uintptr) uintptr { /* closure.c:287:13: */
+func closureAvlNext(tls *libc.TLS, p uintptr) uintptr { /* closure.c:287:13: */
var pPrev uintptr = uintptr(0)
for (p != 0) && ((*closure_avl)(unsafe.Pointer(p)).FpAfter == pPrev) {
pPrev = p
@@ -13741,7 +16256,7 @@ func closureAvlNext(tls *crt.TLS, p uintptr) uintptr { /* closure.c:287:13: */
// Insert a new node pNew. Return NULL on success. If the key is not
// unique, then do not perform the insert but instead leave pNew unchanged
// and return a pointer to an existing node with the same key.
-func closureAvlInsert(tls *crt.TLS, ppHead uintptr, pNew uintptr) uintptr { /* closure.c:303:20: */
+func closureAvlInsert(tls *libc.TLS, ppHead uintptr, pNew uintptr) uintptr { /* closure.c:303:20: */
var p uintptr = *(*uintptr)(unsafe.Pointer(ppHead))
if p == uintptr(0) {
p = pNew
@@ -13778,16 +16293,16 @@ func closureAvlInsert(tls *crt.TLS, ppHead uintptr, pNew uintptr) uintptr { /* c
}
// Walk the tree can call xDestroy on each node
-func closureAvlDestroy(tls *crt.TLS, p uintptr, xDestroy uintptr) { /* closure.c:344:13: */
+func closureAvlDestroy(tls *libc.TLS, p uintptr, xDestroy uintptr) { /* closure.c:344:13: */
if p != 0 {
closureAvlDestroy(tls, (*closure_avl)(unsafe.Pointer(p)).FpBefore, xDestroy)
closureAvlDestroy(tls, (*closure_avl)(unsafe.Pointer(p)).FpAfter, xDestroy)
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer(&xDestroy)))(tls, p)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(&xDestroy)))(tls, p)
}
}
// Add a node to the end of the queue
-func queuePush(tls *crt.TLS, pQueue uintptr, pNode uintptr) { /* closure.c:389:13: */
+func queuePush(tls *libc.TLS, pQueue uintptr, pNode uintptr) { /* closure.c:389:13: */
(*closure_avl)(unsafe.Pointer(pNode)).FpList = uintptr(0)
if (*closure_queue)(unsafe.Pointer(pQueue)).FpLast != 0 {
(*closure_avl)(unsafe.Pointer((*closure_queue)(unsafe.Pointer(pQueue)).FpLast)).FpList = pNode
@@ -13798,7 +16313,7 @@ func queuePush(tls *crt.TLS, pQueue uintptr, pNode uintptr) { /* closure.c:389:1
}
// Extract the oldest element (the front element) from the queue.
-func queuePull(tls *crt.TLS, pQueue uintptr) uintptr { /* closure.c:402:20: */
+func queuePull(tls *libc.TLS, pQueue uintptr) uintptr { /* closure.c:402:20: */
var p uintptr = (*closure_queue)(unsafe.Pointer(pQueue)).FpFirst
if p != 0 {
(*closure_queue)(unsafe.Pointer(pQueue)).FpFirst = (*closure_avl)(unsafe.Pointer(p)).FpList
@@ -13820,17 +16335,17 @@ func queuePull(tls *crt.TLS, pQueue uintptr) uintptr { /* closure.c:402:20: */
// 'xyz' becomes xyz
// [pqr] becomes pqr
// `mno` becomes mno
-func closureDequote(tls *crt.TLS, zIn uintptr) uintptr { /* closure.c:424:13: */
+func closureDequote(tls *libc.TLS, zIn uintptr) uintptr { /* closure.c:424:13: */
var nIn sqlite3_int64 // Size of input string, in bytes
var zOut uintptr // Output (dequoted) string
- nIn = sqlite3_int64(crt.Xstrlen(tls, zIn))
+ nIn = sqlite3_int64(libc.Xstrlen(tls, zIn))
zOut = sqlite3.Xsqlite3_malloc64(tls, (uint64(nIn + int64(1))))
if zOut != 0 {
var q int8 = *(*int8)(unsafe.Pointer(zIn + uintptr(0))) // Quote character (if any )
if (((int32(q) != '[') && (int32(q) != '\'')) && (int32(q) != '"')) && (int32(q) != '`') {
- crt.Xmemcpy(tls, zOut, zIn, (size_t(nIn + int64(1))))
+ libc.Xmemcpy(tls, zOut, zIn, (size_t(nIn + int64(1))))
} else {
var iOut int32 = 0 // Index of next byte to write to output
var iIn int32 // Index of next byte to read from input
@@ -13842,7 +16357,7 @@ func closureDequote(tls *crt.TLS, zIn uintptr) uintptr { /* closure.c:424:13: */
if int32(*(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))) == int32(q) {
iIn++
}
- *(*int8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
+ *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
}
}
}
@@ -13850,20 +16365,20 @@ func closureDequote(tls *crt.TLS, zIn uintptr) uintptr { /* closure.c:424:13: */
}
// Deallocate an closure_vtab object
-func closureFree(tls *crt.TLS, p uintptr) { /* closure.c:453:13: */
+func closureFree(tls *libc.TLS, p uintptr) { /* closure.c:453:13: */
if p != 0 {
sqlite3.Xsqlite3_free(tls, (*closure_vtab)(unsafe.Pointer(p)).FzDb)
sqlite3.Xsqlite3_free(tls, (*closure_vtab)(unsafe.Pointer(p)).FzSelf)
sqlite3.Xsqlite3_free(tls, (*closure_vtab)(unsafe.Pointer(p)).FzTableName)
sqlite3.Xsqlite3_free(tls, (*closure_vtab)(unsafe.Pointer(p)).FzIdColumn)
sqlite3.Xsqlite3_free(tls, (*closure_vtab)(unsafe.Pointer(p)).FzParentColumn)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(closure_vtab{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(closure_vtab{})))
sqlite3.Xsqlite3_free(tls, p)
}
}
// xDisconnect/xDestroy method for the closure module.
-func closureDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* closure.c:468:12: */
+func closureDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* closure.c:468:12: */
var p uintptr = pVtab
closureFree(tls, p)
@@ -13876,23 +16391,23 @@ func closureDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* closure.c:468:12:
//
// If it is, return a pointer to the first character of VALUE.
// If not, return NULL. Spaces around the = are ignored.
-func closureValueOfKey(tls *crt.TLS, zKey uintptr, zStr uintptr) uintptr { /* closure.c:483:19: */
- var nKey int32 = int32(crt.Xstrlen(tls, zKey))
- var nStr int32 = int32(crt.Xstrlen(tls, zStr))
+func closureValueOfKey(tls *libc.TLS, zKey uintptr, zStr uintptr) uintptr { /* closure.c:483:19: */
+ var nKey int32 = int32(libc.Xstrlen(tls, zKey))
+ var nStr int32 = int32(libc.Xstrlen(tls, zStr))
var i int32
if nStr < (nKey + 1) {
return uintptr(0)
}
- if crt.Xmemcmp(tls, zStr, zKey, uint64(nKey)) != 0 {
+ if libc.Xmemcmp(tls, zStr, zKey, uint64(nKey)) != 0 {
return uintptr(0)
}
- for i = nKey; (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0; i++ {
+ for i = nKey; (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0; i++ {
}
if int32(*(*int8)(unsafe.Pointer(zStr + uintptr(i)))) != '=' {
return uintptr(0)
}
i++
- for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0 {
+ for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zStr + uintptr(i))))))*2))) & int32(_ISspace)) != 0 {
i++
}
return (zStr + uintptr(i))
@@ -13904,7 +16419,7 @@ func closureValueOfKey(tls *crt.TLS, zKey uintptr, zStr uintptr) uintptr { /* cl
// argv[1] -> database name
// argv[2] -> table name
// argv[3...] -> arguments
-func closureConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* closure.c:504:12: */
+func closureConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* closure.c:504:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -13927,16 +16442,16 @@ func closureConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uin
__1:
;
rc = 7
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(closure_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(closure_vtab{})))
(*closure_vtab)(unsafe.Pointer(pNew)).Fdb = db
- (*closure_vtab)(unsafe.Pointer(pNew)).FzDb = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zDb))
+ (*closure_vtab)(unsafe.Pointer(pNew)).FzDb = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zDb))
if !((*closure_vtab)(unsafe.Pointer(pNew)).FzDb == uintptr(0)) {
goto __2
}
goto closureConnectError
__2:
;
- (*closure_vtab)(unsafe.Pointer(pNew)).FzSelf = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ (*closure_vtab)(unsafe.Pointer(pNew)).FzSelf = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
if !((*closure_vtab)(unsafe.Pointer(pNew)).FzSelf == uintptr(0)) {
goto __3
}
@@ -13948,7 +16463,7 @@ __4:
if !(i < argc) {
goto __6
}
- zVal = closureValueOfKey(tls, ts+2750 /* "tablename" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = closureValueOfKey(tls, ts+3899 /* "tablename" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __7
}
@@ -13963,7 +16478,7 @@ __8:
goto __5
__7:
;
- zVal = closureValueOfKey(tls, ts+2760 /* "idcolumn" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = closureValueOfKey(tls, ts+3909 /* "idcolumn" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __9
}
@@ -13978,7 +16493,7 @@ __10:
goto __5
__9:
;
- zVal = closureValueOfKey(tls, ts+2769 /* "parentcolumn" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
+ zVal = closureValueOfKey(tls, ts+3918 /* "parentcolumn" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if !(zVal != 0) {
goto __11
}
@@ -13993,7 +16508,7 @@ __12:
goto __5
__11:
;
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2194 /* "unrecognized arg..." */, crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3350 /* "unrecognized arg..." */, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
closureFree(tls, pNew)
*(*uintptr)(unsafe.Pointer(ppVtab)) = uintptr(0)
return 1
@@ -14006,7 +16521,7 @@ __6:
;
rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+2782 /* "CREATE TABLE x(i..." */)
+ ts+3931 /* "CREATE TABLE x(i..." */)
if !(rc != 0) {
goto __13
}
@@ -14022,14 +16537,14 @@ closureConnectError:
}
// Open a new closure cursor.
-func closureOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* closure.c:579:12: */
+func closureOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* closure.c:579:12: */
var p uintptr = pVTab
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(closure_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(closure_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(closure_cursor{})))
(*closure_cursor)(unsafe.Pointer(pCur)).FpVtab = p
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
(*closure_vtab)(unsafe.Pointer(p)).FnCursor++
@@ -14038,8 +16553,8 @@ func closureOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* closu
// Free up all the memory allocated by a cursor. Set it rLimit to 0
// to indicate that it is at EOF.
-func closureClearCursor(tls *crt.TLS, pCur uintptr) { /* closure.c:595:13: */
- closureAvlDestroy(tls, (*closure_cursor)(unsafe.Pointer(pCur)).FpClosure, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+func closureClearCursor(tls *libc.TLS, pCur uintptr) { /* closure.c:595:13: */
+ closureAvlDestroy(tls, (*closure_cursor)(unsafe.Pointer(pCur)).FpClosure, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
sqlite3.Xsqlite3_free(tls, (*closure_cursor)(unsafe.Pointer(pCur)).FzTableName)
sqlite3.Xsqlite3_free(tls, (*closure_cursor)(unsafe.Pointer(pCur)).FzIdColumn)
sqlite3.Xsqlite3_free(tls, (*closure_cursor)(unsafe.Pointer(pCur)).FzParentColumn)
@@ -14051,7 +16566,7 @@ func closureClearCursor(tls *crt.TLS, pCur uintptr) { /* closure.c:595:13: */
}
// Close a closure cursor.
-func closureClose(tls *crt.TLS, cur uintptr) int32 { /* closure.c:610:12: */
+func closureClose(tls *libc.TLS, cur uintptr) int32 { /* closure.c:610:12: */
var pCur uintptr = cur
closureClearCursor(tls, pCur)
(*closure_vtab)(unsafe.Pointer((*closure_cursor)(unsafe.Pointer(pCur)).FpVtab)).FnCursor--
@@ -14060,19 +16575,19 @@ func closureClose(tls *crt.TLS, cur uintptr) int32 { /* closure.c:610:12: */
}
// Advance a cursor to its next row of output
-func closureNext(tls *crt.TLS, cur uintptr) int32 { /* closure.c:621:12: */
+func closureNext(tls *libc.TLS, cur uintptr) int32 { /* closure.c:621:12: */
var pCur uintptr = cur
(*closure_cursor)(unsafe.Pointer(pCur)).FpCurrent = closureAvlNext(tls, (*closure_cursor)(unsafe.Pointer(pCur)).FpCurrent)
return 0
}
// Allocate and insert a node
-func closureInsertNode(tls *crt.TLS, pQueue uintptr, pCur uintptr, id sqlite3_int64, iGeneration int32) int32 { /* closure.c:630:12: */
+func closureInsertNode(tls *libc.TLS, pQueue uintptr, pCur uintptr, id sqlite3_int64, iGeneration int32) int32 { /* closure.c:630:12: */
var pNew uintptr = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(closure_avl{})))
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(closure_avl{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(closure_avl{})))
(*closure_avl)(unsafe.Pointer(pNew)).Fid = id
(*closure_avl)(unsafe.Pointer(pNew)).FiGeneration = iGeneration
closureAvlInsert(tls, (pCur + 48 /* &.pClosure */), pNew)
@@ -14089,7 +16604,7 @@ func closureInsertNode(tls *crt.TLS, pQueue uintptr, pCur uintptr, id sqlite3_in
// See the comment at the beginning of closureBestIndex() for a
// description of the meaning of idxNum. The idxStr parameter is
// not used.
-func closureFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* closure.c:657:12: */
+func closureFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* closure.c:657:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -14110,7 +16625,7 @@ func closureFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
_ = idxStr // Unused parameter
_ = argc // Unused parameter
closureClearCursor(tls, pCur)
- crt.Xmemset(tls, bp+72 /* &sQueue */, 0, uint64(unsafe.Sizeof(closure_queue{})))
+ libc.Xmemset(tls, bp+72 /* &sQueue */, 0, uint64(unsafe.Sizeof(closure_queue{})))
if (idxNum & 1) == 0 {
// No root=$root in the WHERE clause. Return an empty set
return 0
@@ -14124,20 +16639,20 @@ func closureFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
}
if (idxNum & 0x00f00) != 0 {
zTableName = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(((idxNum>>8)&0x0f))*8)))
- (*closure_cursor)(unsafe.Pointer(pCur)).FzTableName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zTableName))
+ (*closure_cursor)(unsafe.Pointer(pCur)).FzTableName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zTableName))
}
if (idxNum & 0x0f000) != 0 {
zIdColumn = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(((idxNum>>12)&0x0f))*8)))
- (*closure_cursor)(unsafe.Pointer(pCur)).FzIdColumn = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, zIdColumn))
+ (*closure_cursor)(unsafe.Pointer(pCur)).FzIdColumn = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, zIdColumn))
}
if (idxNum & 0x0f0000) != 0 {
zParentColumn = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(((idxNum>>16)&0x0f))*8)))
- (*closure_cursor)(unsafe.Pointer(pCur)).FzParentColumn = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+16, zParentColumn))
+ (*closure_cursor)(unsafe.Pointer(pCur)).FzParentColumn = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+16, zParentColumn))
}
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+2872, /* "SELECT \"%w\".\"%w\"..." */
- crt.VaList(bp+24, zTableName, zIdColumn, zTableName, zTableName, zParentColumn))
+ ts+4021, /* "SELECT \"%w\".\"%w\"..." */
+ libc.VaList(bp+24, zTableName, zIdColumn, zTableName, zTableName, zParentColumn))
if zSql == uintptr(0) {
return 7
} else {
@@ -14145,14 +16660,14 @@ func closureFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
sqlite3.Xsqlite3_free(tls, zSql)
if rc != 0 {
sqlite3.Xsqlite3_free(tls, (*closure_vtab)(unsafe.Pointer(pVtab)).Fbase.FzErrMsg)
- (*closure_vtab)(unsafe.Pointer(pVtab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+64, sqlite3.Xsqlite3_errmsg(tls, (*closure_vtab)(unsafe.Pointer(pVtab)).Fdb)))
+ (*closure_vtab)(unsafe.Pointer(pVtab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+64, sqlite3.Xsqlite3_errmsg(tls, (*closure_vtab)(unsafe.Pointer(pVtab)).Fdb)))
return rc
}
}
if rc == 0 {
rc = closureInsertNode(tls, bp+72 /* &sQueue */, pCur, iRoot, 0)
}
- for (crt.AssignUintptr(&pAvl, queuePull(tls, bp+72 /* &sQueue */))) != uintptr(0) {
+ for (libc.AssignUintptr(&pAvl, queuePull(tls, bp+72 /* &sQueue */))) != uintptr(0) {
if (*closure_avl)(unsafe.Pointer(pAvl)).FiGeneration >= mxGen {
continue
}
@@ -14177,7 +16692,7 @@ func closureFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
// Only the word and distance columns have values. All other columns
// return NULL
-func closureColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* closure.c:743:12: */
+func closureColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* closure.c:743:12: */
var pCur uintptr = cur
switch i {
case 0:
@@ -14204,7 +16719,7 @@ func closureColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* c
}
return (*closure_vtab)(unsafe.Pointer((*closure_cursor)(unsafe.Pointer(pCur)).FpVtab)).FzTableName
}(),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
break
}
case 4:
@@ -14216,7 +16731,7 @@ func closureColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* c
}
return (*closure_vtab)(unsafe.Pointer((*closure_cursor)(unsafe.Pointer(pCur)).FpVtab)).FzIdColumn
}(),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
break
}
case 5:
@@ -14228,7 +16743,7 @@ func closureColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* c
}
return (*closure_vtab)(unsafe.Pointer((*closure_cursor)(unsafe.Pointer(pCur)).FpVtab)).FzParentColumn
}(),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
break
}
}
@@ -14236,16 +16751,16 @@ func closureColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* c
}
// The rowid. For the closure table, this is the same as the "id" column.
-func closureRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* closure.c:783:12: */
+func closureRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* closure.c:783:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*closure_avl)(unsafe.Pointer((*closure_cursor)(unsafe.Pointer(pCur)).FpCurrent)).Fid
return 0
}
// EOF indicator
-func closureEof(tls *crt.TLS, cur uintptr) int32 { /* closure.c:792:12: */
+func closureEof(tls *libc.TLS, cur uintptr) int32 { /* closure.c:792:12: */
var pCur uintptr = cur
- return (crt.Bool32((*closure_cursor)(unsafe.Pointer(pCur)).FpCurrent == uintptr(0)))
+ return (libc.Bool32((*closure_cursor)(unsafe.Pointer(pCur)).FpCurrent == uintptr(0)))
}
// Search for terms of these forms:
@@ -14271,7 +16786,7 @@ func closureEof(tls *crt.TLS, cur uintptr) int32 { /* closure.c:792:12: */
//
// There must be a term of type (A). If there is not, then the index type
// is 0 and the query will return an empty set.
-func closureBestIndex(tls *crt.TLS, pTab uintptr, pIdxInfo uintptr) int32 { /* closure.c:822:12: */
+func closureBestIndex(tls *libc.TLS, pTab uintptr, pIdxInfo uintptr) int32 { /* closure.c:822:12: */
var iPlan int32 = 0
var i int32
var idx int32 = 1
@@ -14303,7 +16818,7 @@ __1:
(int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) == 8)) ||
(int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) == 2)) {
iPlan = iPlan | (idx << 4)
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = crt.PreIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = libc.PreIncInt32(&idx, 1)
if int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) == 16 {
iPlan = iPlan | (0x000002)
}
@@ -14313,7 +16828,7 @@ __1:
((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).FiColumn == 3)) &&
(int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) == 2) {
iPlan = iPlan | (idx << 8)
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = crt.PreIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = libc.PreIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).Fomit = uint8(1)
rCost = rCost / (5.0)
}
@@ -14321,14 +16836,14 @@ __1:
((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).FiColumn == 4)) &&
(int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) == 2) {
iPlan = iPlan | (idx << 12)
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = crt.PreIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = libc.PreIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).Fomit = uint8(1)
}
if (((iPlan & 0x0f0000) == 0) &&
((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).FiColumn == 5)) &&
(int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) == 2) {
iPlan = iPlan | (idx << 16)
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = crt.PreIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).FargvIndex = libc.PreIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(i)*8)).Fomit = uint8(1)
}
}
@@ -14412,12 +16927,12 @@ uintptr(0), // xShadowName
} /* closure.c:918:23 */
// Register the closure virtual table
-func sqlite3_closure_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* closure.c:953:5: */
+func sqlite3_closure_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* closure.c:953:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+2918 /* "transitive_closu..." */, uintptr(unsafe.Pointer(&closureModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+4067 /* "transitive_closu..." */, uintptr(unsafe.Pointer(&closureModule)), uintptr(0))
return rc
}
@@ -14460,7 +16975,7 @@ type CsvReader1 = struct {
type CsvReader = CsvReader1 /* csv.c:73:26 */
// Initialize a CsvReader object
-func csv_reader_init(tls *crt.TLS, p uintptr) { /* csv.c:89:13: */
+func csv_reader_init(tls *libc.TLS, p uintptr) { /* csv.c:89:13: */
(*CsvReader)(unsafe.Pointer(p)).Fin = uintptr(0)
(*CsvReader)(unsafe.Pointer(p)).Fz = uintptr(0)
(*CsvReader)(unsafe.Pointer(p)).Fn = 0
@@ -14473,9 +16988,9 @@ func csv_reader_init(tls *crt.TLS, p uintptr) { /* csv.c:89:13: */
}
// Close and reset a CsvReader object
-func csv_reader_reset(tls *crt.TLS, p uintptr) { /* csv.c:102:13: */
+func csv_reader_reset(tls *libc.TLS, p uintptr) { /* csv.c:102:13: */
if (*CsvReader)(unsafe.Pointer(p)).Fin != 0 {
- crt.Xfclose(tls, (*CsvReader)(unsafe.Pointer(p)).Fin)
+ libc.Xfclose(tls, (*CsvReader)(unsafe.Pointer(p)).Fin)
sqlite3.Xsqlite3_free(tls, (*CsvReader)(unsafe.Pointer(p)).FzIn)
}
sqlite3.Xsqlite3_free(tls, (*CsvReader)(unsafe.Pointer(p)).Fz)
@@ -14483,7 +16998,7 @@ func csv_reader_reset(tls *crt.TLS, p uintptr) { /* csv.c:102:13: */
}
// Report an error on a CsvReader
-func csv_errmsg(tls *crt.TLS, p uintptr, zFormat uintptr, va uintptr) { /* csv.c:112:13: */
+func csv_errmsg(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) { /* csv.c:112:13: */
var ap va_list
_ = ap
ap = va
@@ -14493,7 +17008,7 @@ func csv_errmsg(tls *crt.TLS, p uintptr, zFormat uintptr, va uintptr) { /* csv.c
// Open the file associated with a CsvReader
// Return the number of errors.
-func csv_reader_open(tls *crt.TLS, p uintptr, zFilename uintptr, zData uintptr) int32 { /* csv.c:122:12: */
+func csv_reader_open(tls *libc.TLS, p uintptr, zFilename uintptr, zData uintptr) int32 { /* csv.c:122:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -14503,30 +17018,30 @@ func csv_reader_open(tls *crt.TLS, p uintptr, zFilename uintptr, zData uintptr)
csv_errmsg(tls, p, ts+1929 /* "out of memory" */, 0)
return 1
}
- (*CsvReader)(unsafe.Pointer(p)).Fin = crt.Xfopen(tls, zFilename, ts+2937 /* "rb" */)
+ (*CsvReader)(unsafe.Pointer(p)).Fin = libc.Xfopen(tls, zFilename, ts+4086 /* "rb" */)
if (*CsvReader)(unsafe.Pointer(p)).Fin == uintptr(0) {
sqlite3.Xsqlite3_free(tls, (*CsvReader)(unsafe.Pointer(p)).FzIn)
csv_reader_reset(tls, p)
- csv_errmsg(tls, p, ts+2940 /* "cannot open '%s'..." */, crt.VaList(bp, zFilename))
+ csv_errmsg(tls, p, ts+4089 /* "cannot open '%s'..." */, libc.VaList(bp, zFilename))
return 1
}
} else {
(*CsvReader)(unsafe.Pointer(p)).FzIn = zData
- (*CsvReader)(unsafe.Pointer(p)).FnIn = crt.Xstrlen(tls, zData)
+ (*CsvReader)(unsafe.Pointer(p)).FnIn = libc.Xstrlen(tls, zData)
}
return 0
}
// The input buffer has overflowed. Refill the input buffer, then
// return the next character
-func csv_getc_refill(tls *crt.TLS, p uintptr) int32 { /* csv.c:151:25: */
+func csv_getc_refill(tls *libc.TLS, p uintptr) int32 { /* csv.c:151:25: */
var got size_t
// Only called on an empty input buffer
// Only called if reading froma file
- got = crt.Xfread(tls, (*CsvReader)(unsafe.Pointer(p)).FzIn, uint64(1), uint64(1024), (*CsvReader)(unsafe.Pointer(p)).Fin)
+ got = libc.Xfread(tls, (*CsvReader)(unsafe.Pointer(p)).FzIn, uint64(1), uint64(1024), (*CsvReader)(unsafe.Pointer(p)).Fin)
if got == uint64(0) {
return -1
}
@@ -14536,26 +17051,26 @@ func csv_getc_refill(tls *crt.TLS, p uintptr) int32 { /* csv.c:151:25: */
}
// Return the next character of input. Return EOF at end of input.
-func csv_getc(tls *crt.TLS, p uintptr) int32 { /* csv.c:165:12: */
+func csv_getc(tls *libc.TLS, p uintptr) int32 { /* csv.c:165:12: */
if (*CsvReader)(unsafe.Pointer(p)).FiIn >= (*CsvReader)(unsafe.Pointer(p)).FnIn {
if (*CsvReader)(unsafe.Pointer(p)).Fin != uintptr(0) {
return csv_getc_refill(tls, p)
}
return -1
}
- return int32(*(*uint8)(unsafe.Pointer(((*CsvReader)(unsafe.Pointer(p)).FzIn) + uintptr(crt.PostIncUint64(&(*CsvReader)(unsafe.Pointer(p)).FiIn, 1)))))
+ return int32(*(*uint8)(unsafe.Pointer(((*CsvReader)(unsafe.Pointer(p)).FzIn) + uintptr(libc.PostIncUint64(&(*CsvReader)(unsafe.Pointer(p)).FiIn, 1)))))
}
// Increase the size of p->z and append character c to the end.
// Return 0 on success and non-zero if there is an OOM error
-func csv_resize_and_append(tls *crt.TLS, p uintptr, c int8) int32 { /* csv.c:175:25: */
+func csv_resize_and_append(tls *libc.TLS, p uintptr, c int8) int32 { /* csv.c:175:25: */
var zNew uintptr
var nNew int32 = (((*CsvReader)(unsafe.Pointer(p)).FnAlloc * 2) + 100)
zNew = sqlite3.Xsqlite3_realloc64(tls, (*CsvReader)(unsafe.Pointer(p)).Fz, uint64(nNew))
if zNew != 0 {
(*CsvReader)(unsafe.Pointer(p)).Fz = zNew
(*CsvReader)(unsafe.Pointer(p)).FnAlloc = nNew
- *(*int8)(unsafe.Pointer((*CsvReader)(unsafe.Pointer(p)).Fz + uintptr(crt.PostIncInt32(&(*CsvReader)(unsafe.Pointer(p)).Fn, 1)))) = c
+ *(*int8)(unsafe.Pointer((*CsvReader)(unsafe.Pointer(p)).Fz + uintptr(libc.PostIncInt32(&(*CsvReader)(unsafe.Pointer(p)).Fn, 1)))) = c
return 0
} else {
csv_errmsg(tls, p, ts+1929 /* "out of memory" */, 0)
@@ -14566,11 +17081,11 @@ func csv_resize_and_append(tls *crt.TLS, p uintptr, c int8) int32 { /* csv.c:175
// Append a single character to the CsvReader.z[] array.
// Return 0 on success and non-zero if there is an OOM error
-func csv_append(tls *crt.TLS, p uintptr, c int8) int32 { /* csv.c:192:12: */
+func csv_append(tls *libc.TLS, p uintptr, c int8) int32 { /* csv.c:192:12: */
if (*CsvReader)(unsafe.Pointer(p)).Fn >= ((*CsvReader)(unsafe.Pointer(p)).FnAlloc - 1) {
return csv_resize_and_append(tls, p, c)
}
- *(*int8)(unsafe.Pointer((*CsvReader)(unsafe.Pointer(p)).Fz + uintptr(crt.PostIncInt32(&(*CsvReader)(unsafe.Pointer(p)).Fn, 1)))) = c
+ *(*int8)(unsafe.Pointer((*CsvReader)(unsafe.Pointer(p)).Fz + uintptr(libc.PostIncInt32(&(*CsvReader)(unsafe.Pointer(p)).Fn, 1)))) = c
return 0
}
@@ -14586,7 +17101,7 @@ func csv_append(tls *crt.TLS, p uintptr, c int8) int32 { /* csv.c:192:12: */
//
// Return 0 at EOF or on OOM. On EOF, the p->cTerm character will have
// been set to EOF.
-func csv_read_one_field(tls *crt.TLS, p uintptr) uintptr { /* csv.c:211:13: */
+func csv_read_one_field(tls *libc.TLS, p uintptr) uintptr { /* csv.c:211:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -14601,7 +17116,7 @@ func csv_read_one_field(tls *crt.TLS, p uintptr) uintptr { /* csv.c:211:13: */
var pc int32
var ppc int32
var startLine int32 = (*CsvReader)(unsafe.Pointer(p)).FnLine
- pc = crt.AssignInt32(&ppc, 0)
+ pc = libc.AssignInt32(&ppc, 0)
for 1 != 0 {
c = csv_getc(tls, p)
if (c <= '"') || (pc == '"') {
@@ -14625,12 +17140,12 @@ func csv_read_one_field(tls *crt.TLS, p uintptr) uintptr { /* csv.c:211:13: */
break
}
if (pc == '"') && (c != '\r') {
- csv_errmsg(tls, p, ts+2969 /* "line %d: unescap..." */, crt.VaList(bp, (*CsvReader)(unsafe.Pointer(p)).FnLine, '"'))
+ csv_errmsg(tls, p, ts+4118 /* "line %d: unescap..." */, libc.VaList(bp, (*CsvReader)(unsafe.Pointer(p)).FnLine, '"'))
break
}
if c == (-1) {
- csv_errmsg(tls, p, ts+3001, /* "line %d: untermi..." */
- crt.VaList(bp+16, startLine, '"'))
+ csv_errmsg(tls, p, ts+4150, /* "line %d: untermi..." */
+ libc.VaList(bp+16, startLine, '"'))
(*CsvReader)(unsafe.Pointer(p)).FcTerm = int32(int8(c))
break
}
@@ -14708,16 +17223,16 @@ type CsvCursor1 = struct {
type CsvCursor = CsvCursor1 /* csv.c:326:3 */
// Transfer error message text from a reader into a CsvTable
-func csv_xfer_error(tls *crt.TLS, pTab uintptr, pRdr uintptr) { /* csv.c:329:13: */
+func csv_xfer_error(tls *libc.TLS, pTab uintptr, pRdr uintptr) { /* csv.c:329:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
sqlite3.Xsqlite3_free(tls, (*CsvTable)(unsafe.Pointer(pTab)).Fbase.FzErrMsg)
- (*CsvTable)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, pRdr+64 /* &.zErr */))
+ (*CsvTable)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, pRdr+64 /* &.zErr */))
}
// This method is the destructor fo a CsvTable object.
-func csvtabDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* csv.c:337:12: */
+func csvtabDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* csv.c:337:12: */
var p uintptr = pVtab
sqlite3.Xsqlite3_free(tls, (*CsvTable)(unsafe.Pointer(p)).FzFilename)
sqlite3.Xsqlite3_free(tls, (*CsvTable)(unsafe.Pointer(p)).FzData)
@@ -14727,24 +17242,24 @@ func csvtabDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* csv.c:337:12: */
// Skip leading whitespace. Return a pointer to the first non-whitespace
// character, or to the zero terminator if the string has only whitespace
-func csv_skip_whitespace(tls *crt.TLS, z uintptr) uintptr { /* csv.c:347:19: */
- for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr(0))))))*2))) & int32(_ISspace)) != 0 {
+func csv_skip_whitespace(tls *libc.TLS, z uintptr) uintptr { /* csv.c:347:19: */
+ for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr(0))))))*2))) & int32(_ISspace)) != 0 {
z++
}
return z
}
// Remove trailing whitespace from the end of string z[]
-func csv_trim_whitespace(tls *crt.TLS, z uintptr) { /* csv.c:353:13: */
- var n size_t = crt.Xstrlen(tls, z)
- for (n > uint64(0)) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr(n))))))*2))) & int32(_ISspace)) != 0) {
+func csv_trim_whitespace(tls *libc.TLS, z uintptr) { /* csv.c:353:13: */
+ var n size_t = libc.Xstrlen(tls, z)
+ for (n > uint64(0)) && ((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(z + uintptr(n))))))*2))) & int32(_ISspace)) != 0) {
n--
}
*(*int8)(unsafe.Pointer(z + uintptr(n))) = int8(0)
}
// Dequote the string
-func csv_dequote(tls *crt.TLS, z uintptr) { /* csv.c:360:13: */
+func csv_dequote(tls *libc.TLS, z uintptr) { /* csv.c:360:13: */
var j int32
var cQuote int8 = *(*int8)(unsafe.Pointer(z + uintptr(0)))
var i size_t
@@ -14753,7 +17268,7 @@ func csv_dequote(tls *crt.TLS, z uintptr) { /* csv.c:360:13: */
if (int32(cQuote) != '\'') && (int32(cQuote) != '"') {
return
}
- n = crt.Xstrlen(tls, z)
+ n = libc.Xstrlen(tls, z)
if (n < uint64(2)) || (int32(*(*int8)(unsafe.Pointer(z + uintptr((n - uint64(1)))))) != int32(*(*int8)(unsafe.Pointer(z + uintptr(0))))) {
return
}
@@ -14763,7 +17278,7 @@ func csv_dequote(tls *crt.TLS, z uintptr) { /* csv.c:360:13: */
if (int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == int32(cQuote)) && (int32(*(*int8)(unsafe.Pointer(z + uintptr((i + uint64(1)))))) == int32(cQuote)) {
i++
}
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(i)))
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(i)))
}
*(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0)
}
@@ -14771,9 +17286,9 @@ func csv_dequote(tls *crt.TLS, z uintptr) { /* csv.c:360:13: */
// Check to see if the string is of the form: "TAG = VALUE" with optional
// whitespace before and around tokens. If it is, return a pointer to the
// first character of VALUE. If it is not, return NULL.
-func csv_parameter(tls *crt.TLS, zTag uintptr, nTag int32, z uintptr) uintptr { /* csv.c:379:19: */
+func csv_parameter(tls *libc.TLS, zTag uintptr, nTag int32, z uintptr) uintptr { /* csv.c:379:19: */
z = csv_skip_whitespace(tls, z)
- if crt.Xstrncmp(tls, zTag, z, uint64(nTag)) != 0 {
+ if libc.Xstrncmp(tls, zTag, z, uint64(nTag)) != 0 {
return uintptr(0)
}
z = csv_skip_whitespace(tls, (z + uintptr(nTag)))
@@ -14788,21 +17303,21 @@ func csv_parameter(tls *crt.TLS, zTag uintptr, nTag int32, z uintptr) uintptr {
// Return 1 if the parameter is seen, or 0 if not. 1 is returned
// even if there is an error. If an error occurs, then an error message
// is left in p->zErr. If there are no errors, p->zErr[0]==0.
-func csv_string_parameter(tls *crt.TLS, p uintptr, zParam uintptr, zArg uintptr, pzVal uintptr) int32 { /* csv.c:393:12: */
+func csv_string_parameter(tls *libc.TLS, p uintptr, zParam uintptr, zArg uintptr, pzVal uintptr) int32 { /* csv.c:393:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var zValue uintptr
- zValue = csv_parameter(tls, zParam, int32(crt.Xstrlen(tls, zParam)), zArg)
+ zValue = csv_parameter(tls, zParam, int32(libc.Xstrlen(tls, zParam)), zArg)
if zValue == uintptr(0) {
return 0
}
*(*int8)(unsafe.Pointer((p + 64 /* &.zErr */) + uintptr(0))) = int8(0)
if *(*uintptr)(unsafe.Pointer(pzVal)) != 0 {
- csv_errmsg(tls, p, ts+3040 /* "more than one '%..." */, crt.VaList(bp, zParam))
+ csv_errmsg(tls, p, ts+4189 /* "more than one '%..." */, libc.VaList(bp, zParam))
return 1
}
- *(*uintptr)(unsafe.Pointer(pzVal)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, zValue))
+ *(*uintptr)(unsafe.Pointer(pzVal)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, zValue))
if *(*uintptr)(unsafe.Pointer(pzVal)) == uintptr(0) {
csv_errmsg(tls, p, ts+1929 /* "out of memory" */, 0)
return 1
@@ -14814,16 +17329,16 @@ func csv_string_parameter(tls *crt.TLS, p uintptr, zParam uintptr, zArg uintptr,
// Return 0 if the argument is false and 1 if it is true. Return -1 if
// we cannot really tell.
-func csv_boolean(tls *crt.TLS, z uintptr) int32 { /* csv.c:421:12: */
- if (((sqlite3.Xsqlite3_stricmp(tls, ts+3069 /* "yes" */, z) == 0) ||
- (sqlite3.Xsqlite3_stricmp(tls, ts+3073 /* "on" */, z) == 0)) ||
- (sqlite3.Xsqlite3_stricmp(tls, ts+3076 /* "true" */, z) == 0)) ||
+func csv_boolean(tls *libc.TLS, z uintptr) int32 { /* csv.c:421:12: */
+ if (((sqlite3.Xsqlite3_stricmp(tls, ts+4218 /* "yes" */, z) == 0) ||
+ (sqlite3.Xsqlite3_stricmp(tls, ts+4222 /* "on" */, z) == 0)) ||
+ (sqlite3.Xsqlite3_stricmp(tls, ts+4225 /* "true" */, z) == 0)) ||
((int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == '1') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == 0)) {
return 1
}
- if (((sqlite3.Xsqlite3_stricmp(tls, ts+3081 /* "no" */, z) == 0) ||
- (sqlite3.Xsqlite3_stricmp(tls, ts+3084 /* "off" */, z) == 0)) ||
- (sqlite3.Xsqlite3_stricmp(tls, ts+3088 /* "false" */, z) == 0)) ||
+ if (((sqlite3.Xsqlite3_stricmp(tls, ts+4230 /* "no" */, z) == 0) ||
+ (sqlite3.Xsqlite3_stricmp(tls, ts+4233 /* "off" */, z) == 0)) ||
+ (sqlite3.Xsqlite3_stricmp(tls, ts+4237 /* "false" */, z) == 0)) ||
((int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == '0') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == 0)) {
return 0
}
@@ -14834,10 +17349,10 @@ func csv_boolean(tls *crt.TLS, z uintptr) int32 { /* csv.c:421:12: */
// If it is, set *pValue to be the value of the boolean ("true" if there is
// not "= BOOLEAN" component) and return non-zero. If the input string
// does not begin with TAG, return zero.
-func csv_boolean_parameter(tls *crt.TLS, zTag uintptr, nTag int32, z uintptr, pValue uintptr) int32 { /* csv.c:444:12: */
+func csv_boolean_parameter(tls *libc.TLS, zTag uintptr, nTag int32, z uintptr, pValue uintptr) int32 { /* csv.c:444:12: */
var b int32
z = csv_skip_whitespace(tls, z)
- if crt.Xstrncmp(tls, zTag, z, uint64(nTag)) != 0 {
+ if libc.Xstrncmp(tls, zTag, z, uint64(nTag)) != 0 {
return 0
}
z = csv_skip_whitespace(tls, (z + uintptr(nTag)))
@@ -14873,7 +17388,7 @@ func csv_boolean_parameter(tls *crt.TLS, zTag uintptr, nTag int32, z uintptr, pV
// and so forth. If columns=N is omitted, then the file is opened and
// the number of columns in the first row is counted to determine the
// column count. If header=YES, then the first row is skipped.
-func csvtabConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* csv.c:486:12: */
+func csvtabConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* csv.c:486:12: */
bp := tls.Alloc(372)
defer tls.Free(372)
@@ -14902,8 +17417,8 @@ func csvtabConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
tstFlags = 0
nCol = -99 // Parameter values
- crt.Xmemset(tls, bp+80 /* &sRdr */, 0, uint64(unsafe.Sizeof(CsvReader{})))
- crt.Xmemset(tls, bp+344 /* &azPValue[0] */, 0, uint64(unsafe.Sizeof([3]uintptr{})))
+ libc.Xmemset(tls, bp+80 /* &sRdr */, 0, uint64(unsafe.Sizeof(CsvReader{})))
+ libc.Xmemset(tls, bp+344 /* &azPValue[0] */, 0, uint64(unsafe.Sizeof([3]uintptr{})))
i = 3
__1:
if !(i < argc) {
@@ -14939,47 +17454,47 @@ __10:
;
goto __9
__8:
- if !(csv_boolean_parameter(tls, ts+3094 /* "header" */, 6, z, bp+368 /* &b */) != 0) {
+ if !(csv_boolean_parameter(tls, ts+4243 /* "header" */, 6, z, bp+368 /* &b */) != 0) {
goto __11
}
if !(bHeader >= 0) {
goto __13
}
- csv_errmsg(tls, bp+80 /* &sRdr */, ts+3101 /* "more than one 'h..." */, 0)
+ csv_errmsg(tls, bp+80 /* &sRdr */, ts+4250 /* "more than one 'h..." */, 0)
goto csvtab_connect_error
__13:
;
bHeader = *(*int32)(unsafe.Pointer(bp + 368 /* b */))
goto __12
__11:
- if !((crt.AssignUintptr(&zValue, csv_parameter(tls, ts+3134 /* "testflags" */, 9, z))) != uintptr(0)) {
+ if !((libc.AssignUintptr(&zValue, csv_parameter(tls, ts+4283 /* "testflags" */, 9, z))) != uintptr(0)) {
goto __14
}
- tstFlags = int32(uint32(crt.Xatoi(tls, zValue)))
+ tstFlags = int32(uint32(libc.Xatoi(tls, zValue)))
goto __15
__14:
- if !((crt.AssignUintptr(&zValue, csv_parameter(tls, ts+3144 /* "columns" */, 7, z))) != uintptr(0)) {
+ if !((libc.AssignUintptr(&zValue, csv_parameter(tls, ts+4293 /* "columns" */, 7, z))) != uintptr(0)) {
goto __16
}
if !(nCol > 0) {
goto __18
}
- csv_errmsg(tls, bp+80 /* &sRdr */, ts+3152 /* "more than one 'c..." */, 0)
+ csv_errmsg(tls, bp+80 /* &sRdr */, ts+4301 /* "more than one 'c..." */, 0)
goto csvtab_connect_error
__18:
;
- nCol = crt.Xatoi(tls, zValue)
+ nCol = libc.Xatoi(tls, zValue)
if !(nCol <= 0) {
goto __19
}
- csv_errmsg(tls, bp+80 /* &sRdr */, ts+3186 /* "column= value mu..." */, 0)
+ csv_errmsg(tls, bp+80 /* &sRdr */, ts+4335 /* "column= value mu..." */, 0)
goto csvtab_connect_error
__19:
;
goto __17
__16:
- csv_errmsg(tls, bp+80 /* &sRdr */, ts+3217 /* "bad parameter: '..." */, crt.VaList(bp, z))
+ csv_errmsg(tls, bp+80 /* &sRdr */, ts+4366 /* "bad parameter: '..." */, libc.VaList(bp, z))
goto csvtab_connect_error
__17:
;
@@ -14996,10 +17511,10 @@ __2:
goto __3
__3:
;
- if !((crt.Bool32((*(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(0)*8))) == uintptr(0))) == (crt.Bool32((*(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(1)*8))) == uintptr(0)))) {
+ if !((libc.Bool32((*(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(0)*8))) == uintptr(0))) == (libc.Bool32((*(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(1)*8))) == uintptr(0)))) {
goto __20
}
- csv_errmsg(tls, bp+80 /* &sRdr */, ts+3237 /* "must specify eit..." */, 0)
+ csv_errmsg(tls, bp+80 /* &sRdr */, ts+4386 /* "must specify eit..." */, 0)
goto csvtab_connect_error
__20:
;
@@ -15019,7 +17534,7 @@ __21:
goto csvtab_connect_oom
__22:
;
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(CsvTable{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(CsvTable{})))
if !((*(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(2)*8))) == uintptr(0)) {
goto __23
}
@@ -15052,8 +17567,8 @@ __31:
if !(iCol < nCol) {
goto __33
}
- sqlite3.Xsqlite3_str_appendf(tls, pStr, ts+3289 /* "%sc%d TEXT" */, crt.VaList(bp+8, zSep, iCol))
- zSep = ts + 3300 /* "," */
+ sqlite3.Xsqlite3_str_appendf(tls, pStr, ts+4438 /* "%sc%d TEXT" */, libc.VaList(bp+8, zSep, iCol))
+ zSep = ts + 4449 /* "," */
goto __32
__32:
iCol++
@@ -15068,8 +17583,8 @@ __34:
if !(((nCol > 0) && (iCol < nCol)) || ((nCol < 0) && (bHeader != 0))) {
goto __37
}
- sqlite3.Xsqlite3_str_appendf(tls, pStr, ts+3302 /* "%s\"%w\" TEXT" */, crt.VaList(bp+24, zSep, z1))
- zSep = ts + 3300 /* "," */
+ sqlite3.Xsqlite3_str_appendf(tls, pStr, ts+4451 /* "%s\"%w\" TEXT" */, libc.VaList(bp+24, zSep, z1))
+ zSep = ts + 4449 /* "," */
iCol++
__37:
;
@@ -15091,8 +17606,8 @@ __40:
if !(iCol < nCol) {
goto __41
}
- sqlite3.Xsqlite3_str_appendf(tls, pStr, ts+3289 /* "%sc%d TEXT" */, crt.VaList(bp+40, zSep, crt.PreIncInt32(&iCol, 1)))
- zSep = ts + 3300 /* "," */
+ sqlite3.Xsqlite3_str_appendf(tls, pStr, ts+4438 /* "%sc%d TEXT" */, libc.VaList(bp+40, zSep, libc.PreIncInt32(&iCol, 1)))
+ zSep = ts + 4449 /* "," */
goto __40
__41:
;
@@ -15149,7 +17664,7 @@ __48:
(*CsvTable)(unsafe.Pointer(pNew)).FiStart = int64(int32((*CsvReader)(unsafe.Pointer(bp + 80 /* &sRdr */)).FiIn))
goto __51
__50:
- (*CsvTable)(unsafe.Pointer(pNew)).FiStart = int64((int32((size_t(crt.Xftell(tls, (*CsvReader)(unsafe.Pointer(bp+80 /* &sRdr */)).Fin)) - (*CsvReader)(unsafe.Pointer(bp+80 /* &sRdr */)).FnIn) + (*CsvReader)(unsafe.Pointer(bp+80 /* &sRdr */)).FiIn)))
+ (*CsvTable)(unsafe.Pointer(pNew)).FiStart = int64((int32((size_t(libc.Xftell(tls, (*CsvReader)(unsafe.Pointer(bp+80 /* &sRdr */)).Fin)) - (*CsvReader)(unsafe.Pointer(bp+80 /* &sRdr */)).FnIn) + (*CsvReader)(unsafe.Pointer(bp+80 /* &sRdr */)).FiIn)))
__51:
;
__49:
@@ -15159,7 +17674,7 @@ __49:
if !(rc != 0) {
goto __52
}
- csv_errmsg(tls, bp+80 /* &sRdr */, ts+3314 /* "bad schema: '%s'..." */, crt.VaList(bp+56, *(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(2)*8)), sqlite3.Xsqlite3_errmsg(tls, db)))
+ csv_errmsg(tls, bp+80 /* &sRdr */, ts+4463 /* "bad schema: '%s'..." */, libc.VaList(bp+56, *(*uintptr)(unsafe.Pointer(bp + 344 /* &azPValue[0] */ + uintptr(2)*8)), sqlite3.Xsqlite3_errmsg(tls, db)))
goto csvtab_connect_error
__52:
;
@@ -15214,7 +17729,7 @@ __59:
goto __60
}
sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(pzErr)))
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+72, bp+80 /* &sRdr */ +64 /* &.zErr */))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+72, bp+80 /* &sRdr */ +64 /* &.zErr */))
__60:
;
csv_reader_reset(tls, bp+80 /* &sRdr */)
@@ -15228,11 +17743,11 @@ __61:
}
var azParam = [3]uintptr{
- ts + 3336 /* "filename" */, ts + 3345 /* "data" */, ts + 3350, /* "schema" */
+ ts + 4485 /* "filename" */, ts + 4494 /* "data" */, ts + 4499, /* "schema" */
} /* csv.c:504:21 */
// Reset the current row content held by a CsvCursor.
-func csvtabCursorRowReset(tls *crt.TLS, pCur uintptr) { /* csv.c:667:13: */
+func csvtabCursorRowReset(tls *libc.TLS, pCur uintptr) { /* csv.c:667:13: */
var pTab uintptr = (*CsvCursor)(unsafe.Pointer(pCur)).Fbase.FpVtab
var i int32
for i = 0; i < (*CsvTable)(unsafe.Pointer(pTab)).FnCol; i++ {
@@ -15244,12 +17759,12 @@ func csvtabCursorRowReset(tls *crt.TLS, pCur uintptr) { /* csv.c:667:13: */
// The xConnect and xCreate methods do the same thing, but they must be
// different so that the virtual table is not an eponymous virtual table.
-func csvtabCreate(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* csv.c:681:12: */
+func csvtabCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* csv.c:681:12: */
return csvtabConnect(tls, db, pAux, argc, argv, ppVtab, pzErr)
}
// Destructor for a CsvCursor.
-func csvtabClose(tls *crt.TLS, cur uintptr) int32 { /* csv.c:694:12: */
+func csvtabClose(tls *libc.TLS, cur uintptr) int32 { /* csv.c:694:12: */
var pCur uintptr = cur
csvtabCursorRowReset(tls, pCur)
csv_reader_reset(tls, (pCur + 8 /* &.rdr */))
@@ -15258,7 +17773,7 @@ func csvtabClose(tls *crt.TLS, cur uintptr) int32 { /* csv.c:694:12: */
}
// Constructor for a new CsvTable cursor object.
-func csvtabOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* csv.c:705:12: */
+func csvtabOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* csv.c:705:12: */
var pTab uintptr = p
var pCur uintptr
var nByte size_t
@@ -15267,7 +17782,7 @@ func csvtabOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* csv.c:705:
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, nByte)
+ libc.Xmemset(tls, pCur, 0, nByte)
(*CsvCursor)(unsafe.Pointer(pCur)).FazVal = (pCur + uintptr(1)*296)
(*CsvCursor)(unsafe.Pointer(pCur)).FaLen = ((*CsvCursor)(unsafe.Pointer(pCur)).FazVal + uintptr((*CsvTable)(unsafe.Pointer(pTab)).FnCol)*8)
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
@@ -15280,7 +17795,7 @@ func csvtabOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* csv.c:705:
// Advance a CsvCursor to its next row of input.
// Set the EOF marker if we reach the end of input.
-func csvtabNext(tls *crt.TLS, cur uintptr) int32 { /* csv.c:728:12: */
+func csvtabNext(tls *libc.TLS, cur uintptr) int32 { /* csv.c:728:12: */
var pCur uintptr = cur
var pTab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
var i int32 = 0
@@ -15301,7 +17816,7 @@ func csvtabNext(tls *crt.TLS, cur uintptr) int32 { /* csv.c:728:12: */
*(*uintptr)(unsafe.Pointer((*CsvCursor)(unsafe.Pointer(pCur)).FazVal + uintptr(i)*8)) = zNew
*(*int32)(unsafe.Pointer((*CsvCursor)(unsafe.Pointer(pCur)).FaLen + uintptr(i)*4)) = ((*CsvCursor)(unsafe.Pointer(pCur)).Frdr.Fn + 1)
}
- crt.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*CsvCursor)(unsafe.Pointer(pCur)).FazVal + uintptr(i)*8)), z, (uint64((*CsvCursor)(unsafe.Pointer(pCur)).Frdr.Fn + 1)))
+ libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*CsvCursor)(unsafe.Pointer(pCur)).FazVal + uintptr(i)*8)), z, (uint64((*CsvCursor)(unsafe.Pointer(pCur)).Frdr.Fn + 1)))
i++
}
}
@@ -15321,7 +17836,7 @@ func csvtabNext(tls *crt.TLS, cur uintptr) int32 { /* csv.c:728:12: */
// Return values of columns for the row at which the CsvCursor
// is currently pointing.
-func csvtabColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* csv.c:771:12: */
+func csvtabColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* csv.c:771:12: */
var pCur uintptr = cur
var pTab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
if ((i >= 0) && (i < (*CsvTable)(unsafe.Pointer(pTab)).FnCol)) && (*(*uintptr)(unsafe.Pointer((*CsvCursor)(unsafe.Pointer(pCur)).FazVal + uintptr(i)*8)) != uintptr(0)) {
@@ -15331,7 +17846,7 @@ func csvtabColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* cs
}
// Return the rowid for the current row.
-func csvtabRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* csv.c:787:12: */
+func csvtabRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* csv.c:787:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*CsvCursor)(unsafe.Pointer(pCur)).FiRowid
return 0
@@ -15339,14 +17854,14 @@ func csvtabRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* csv.c:787
// Return TRUE if the cursor has been moved off of the last
// row of output.
-func csvtabEof(tls *crt.TLS, cur uintptr) int32 { /* csv.c:797:12: */
+func csvtabEof(tls *libc.TLS, cur uintptr) int32 { /* csv.c:797:12: */
var pCur uintptr = cur
- return (crt.Bool32((*CsvCursor)(unsafe.Pointer(pCur)).FiRowid < int64(0)))
+ return (libc.Bool32((*CsvCursor)(unsafe.Pointer(pCur)).FiRowid < int64(0)))
}
// Only a full table scan is supported. So xFilter simply rewinds to
// the beginning.
-func csvtabFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* csv.c:806:12: */
+func csvtabFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* csv.c:806:12: */
var pCur uintptr = pVtabCursor
var pTab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab
(*CsvCursor)(unsafe.Pointer(pCur)).FiRowid = int64(0)
@@ -15354,7 +17869,7 @@ func csvtabFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
(*CsvCursor)(unsafe.Pointer(pCur)).Frdr.FiIn = size_t((*CsvTable)(unsafe.Pointer(pTab)).FiStart)
} else {
- crt.Xfseek(tls, (*CsvCursor)(unsafe.Pointer(pCur)).Frdr.Fin, (*CsvTable)(unsafe.Pointer(pTab)).FiStart, 0)
+ libc.Xfseek(tls, (*CsvCursor)(unsafe.Pointer(pCur)).Frdr.Fin, (*CsvTable)(unsafe.Pointer(pTab)).FiStart, 0)
(*CsvCursor)(unsafe.Pointer(pCur)).Frdr.FiIn = uint64(0)
(*CsvCursor)(unsafe.Pointer(pCur)).Frdr.FnIn = uint64(0)
}
@@ -15365,7 +17880,7 @@ func csvtabFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
// a no-op. If CSVTEST_FIDX is set, then the presence of equality
// constraints lowers the estimated cost, which is fiction, but is useful
// for testing certain kinds of virtual table behavior.
-func csvtabBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* csv.c:833:12: */
+func csvtabBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* csv.c:833:12: */
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = float64(1000000)
if ((*CsvTable)(unsafe.Pointer((tab))).FtstFlags & uint32(0x0001)) != uint32(0) {
// The usual (and sensible) case is to always do a full table scan.
@@ -15423,7 +17938,7 @@ uintptr(0), // xRename
// For virtual table testing, make a version of the CSV virtual table
// available that has an xUpdate function. But the xUpdate always returns
// SQLITE_READONLY since the CSV file is not really writable.
-func csvtabUpdate(tls *crt.TLS, p uintptr, n int32, v uintptr, x uintptr) int32 { /* csv.c:901:12: */
+func csvtabUpdate(tls *libc.TLS, p uintptr, n int32, v uintptr, x uintptr) int32 { /* csv.c:901:12: */
return 8
}
@@ -15452,17 +17967,861 @@ uintptr(0), // xRename
// This routine is called when the extension is loaded. The new
// CSV virtual table module is registered with the calling database
// connection.
-func sqlite3_csv_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* csv.c:939:5: */
+func sqlite3_csv_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* csv.c:939:5: */
+ var rc int32
+ _ = pApi
+
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+4506 /* "csv" */, uintptr(unsafe.Pointer(&CsvModule)), uintptr(0))
+ if rc == 0 {
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+4510 /* "csv_wr" */, uintptr(unsafe.Pointer(&CsvModuleFauxWrite)), uintptr(0))
+ }
+ return rc
+}
+
+// Floating-point inline functions for stdlib.h.
+// Copyright (C) 2012-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Define some macros helping to catch buffer overflows.
+
+// Mark a function parameter as unused, to suppress nuisance compiler
+// warnings.
+
+// A decimal object
+type Decimal1 = struct {
+ Fsign int8
+ Foom int8
+ FisNull int8
+ FisInit int8
+ FnDigit int32
+ FnFrac int32
+ Fa uintptr
+}
+
+// Floating-point inline functions for stdlib.h.
+// Copyright (C) 2012-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Define some macros helping to catch buffer overflows.
+
+// Mark a function parameter as unused, to suppress nuisance compiler
+// warnings.
+
+// A decimal object
+type Decimal = Decimal1 /* decimal.c:32:24 */
+
+// Release memory held by a Decimal, but do not free the object itself.
+func decimal_clear(tls *libc.TLS, p uintptr) { /* decimal.c:46:13: */
+ sqlite3.Xsqlite3_free(tls, (*Decimal)(unsafe.Pointer(p)).Fa)
+}
+
+// Destroy a Decimal object
+func decimal_free(tls *libc.TLS, p uintptr) { /* decimal.c:53:13: */
+ if p != 0 {
+ decimal_clear(tls, p)
+ sqlite3.Xsqlite3_free(tls, p)
+ }
+}
+
+// Allocate a new Decimal object. Initialize it to the number given
+// by the input string.
+func decimal_new(tls *libc.TLS, pCtx uintptr, pIn uintptr, nAlt int32, zAlt uintptr) uintptr { /* decimal.c:64:16: */
+ var p uintptr
+ var n int32
+ var i int32
+ var zIn uintptr
+ var iExp int32
+ var j int32
+ var neg int32
+ var c int8
+ var nExtra int32
+ iExp = 0
+ p = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Decimal{})))
+ if !(p == uintptr(0)) {
+ goto __1
+ }
+ goto new_no_mem
+__1:
+ ;
+ (*Decimal)(unsafe.Pointer(p)).Fsign = int8(0)
+ (*Decimal)(unsafe.Pointer(p)).Foom = int8(0)
+ (*Decimal)(unsafe.Pointer(p)).FisInit = int8(1)
+ (*Decimal)(unsafe.Pointer(p)).FisNull = int8(0)
+ (*Decimal)(unsafe.Pointer(p)).FnDigit = 0
+ (*Decimal)(unsafe.Pointer(p)).FnFrac = 0
+ if !(zAlt != 0) {
+ goto __2
+ }
+ n = nAlt
+ zIn = zAlt
+ goto __3
+__2:
+ if !(sqlite3.Xsqlite3_value_type(tls, pIn) == 5) {
+ goto __4
+ }
+ (*Decimal)(unsafe.Pointer(p)).Fa = uintptr(0)
+ (*Decimal)(unsafe.Pointer(p)).FisNull = int8(1)
+ return p
+__4:
+ ;
+ n = sqlite3.Xsqlite3_value_bytes(tls, pIn)
+ zIn = sqlite3.Xsqlite3_value_text(tls, pIn)
+__3:
+ ;
+ (*Decimal)(unsafe.Pointer(p)).Fa = sqlite3.Xsqlite3_malloc64(tls, (uint64(n + 1)))
+ if !((*Decimal)(unsafe.Pointer(p)).Fa == uintptr(0)) {
+ goto __5
+ }
+ goto new_no_mem
+__5:
+ ;
+ i = 0
+__6:
+ if !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))))*2))) & int32(_ISspace)) != 0) {
+ goto __8
+ }
+ goto __7
+__7:
+ i++
+ goto __6
+ goto __8
+__8:
+ ;
+ if !(int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))) == '-') {
+ goto __9
+ }
+ (*Decimal)(unsafe.Pointer(p)).Fsign = int8(1)
+ i++
+ goto __10
+__9:
+ if !(int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))) == '+') {
+ goto __11
+ }
+ i++
+__11:
+ ;
+__10:
+ ;
+__12:
+ if !((i < n) && (int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(i)))) == '0')) {
+ goto __13
+ }
+ i++
+ goto __12
+__13:
+ ;
+__14:
+ if !(i < n) {
+ goto __15
+ }
+ c = int8(*(*uint8)(unsafe.Pointer(zIn + uintptr(i))))
+ if !((int32(c) >= '0') && (int32(c) <= '9')) {
+ goto __16
+ }
+ *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(libc.PostIncInt32(&(*Decimal)(unsafe.Pointer(p)).FnDigit, 1)))) = (int8(int32(c) - '0'))
+ goto __17
+__16:
+ if !(int32(c) == '.') {
+ goto __18
+ }
+ (*Decimal)(unsafe.Pointer(p)).FnFrac = ((*Decimal)(unsafe.Pointer(p)).FnDigit + 1)
+ goto __19
+__18:
+ if !((int32(c) == 'e') || (int32(c) == 'E')) {
+ goto __20
+ }
+ j = (i + 1)
+ neg = 0
+ if !(j >= n) {
+ goto __21
+ }
+ goto __15
+__21:
+ ;
+ if !(int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(j)))) == '-') {
+ goto __22
+ }
+ neg = 1
+ j++
+ goto __23
+__22:
+ if !(int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(j)))) == '+') {
+ goto __24
+ }
+ j++
+__24:
+ ;
+__23:
+ ;
+__25:
+ if !((j < n) && (iExp < 1000000)) {
+ goto __26
+ }
+ if !((int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(j)))) >= '0') && (int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(j)))) <= '9')) {
+ goto __27
+ }
+ iExp = (((iExp * 10) + int32(*(*uint8)(unsafe.Pointer(zIn + uintptr(j))))) - '0')
+__27:
+ ;
+ j++
+ goto __25
+__26:
+ ;
+ if !(neg != 0) {
+ goto __28
+ }
+ iExp = -iExp
+__28:
+ ;
+ goto __15
+__20:
+ ;
+__19:
+ ;
+__17:
+ ;
+ i++
+ goto __14
+__15:
+ ;
+ if !((*Decimal)(unsafe.Pointer(p)).FnFrac != 0) {
+ goto __29
+ }
+ (*Decimal)(unsafe.Pointer(p)).FnFrac = ((*Decimal)(unsafe.Pointer(p)).FnDigit - ((*Decimal)(unsafe.Pointer(p)).FnFrac - 1))
+__29:
+ ;
+ if !(iExp > 0) {
+ goto __30
+ }
+ if !((*Decimal)(unsafe.Pointer(p)).FnFrac > 0) {
+ goto __32
+ }
+ if !(iExp <= (*Decimal)(unsafe.Pointer(p)).FnFrac) {
+ goto __33
+ }
+ *(*int32)(unsafe.Pointer(p + 8 /* &.nFrac */)) -= (iExp)
+ iExp = 0
+ goto __34
+__33:
+ iExp = iExp - ((*Decimal)(unsafe.Pointer(p)).FnFrac)
+ (*Decimal)(unsafe.Pointer(p)).FnFrac = 0
+__34:
+ ;
+__32:
+ ;
+ if !(iExp > 0) {
+ goto __35
+ }
+ (*Decimal)(unsafe.Pointer(p)).Fa = sqlite3.Xsqlite3_realloc64(tls, (*Decimal)(unsafe.Pointer(p)).Fa, (uint64(((*Decimal)(unsafe.Pointer(p)).FnDigit + iExp) + 1)))
+ if !((*Decimal)(unsafe.Pointer(p)).Fa == uintptr(0)) {
+ goto __36
+ }
+ goto new_no_mem
+__36:
+ ;
+ libc.Xmemset(tls, ((*Decimal)(unsafe.Pointer(p)).Fa + uintptr((*Decimal)(unsafe.Pointer(p)).FnDigit)), 0, uint64(iExp))
+ *(*int32)(unsafe.Pointer(p + 4 /* &.nDigit */)) += (iExp)
+__35:
+ ;
+ goto __31
+__30:
+ if !(iExp < 0) {
+ goto __37
+ }
+ iExp = -iExp
+ nExtra = (((*Decimal)(unsafe.Pointer(p)).FnDigit - (*Decimal)(unsafe.Pointer(p)).FnFrac) - 1)
+ if !(nExtra != 0) {
+ goto __38
+ }
+ if !(nExtra >= iExp) {
+ goto __39
+ }
+ *(*int32)(unsafe.Pointer(p + 8 /* &.nFrac */)) += (iExp)
+ iExp = 0
+ goto __40
+__39:
+ iExp = iExp - (nExtra)
+ (*Decimal)(unsafe.Pointer(p)).FnFrac = ((*Decimal)(unsafe.Pointer(p)).FnDigit - 1)
+__40:
+ ;
+__38:
+ ;
+ if !(iExp > 0) {
+ goto __41
+ }
+ (*Decimal)(unsafe.Pointer(p)).Fa = sqlite3.Xsqlite3_realloc64(tls, (*Decimal)(unsafe.Pointer(p)).Fa, (uint64(((*Decimal)(unsafe.Pointer(p)).FnDigit + iExp) + 1)))
+ if !((*Decimal)(unsafe.Pointer(p)).Fa == uintptr(0)) {
+ goto __42
+ }
+ goto new_no_mem
+__42:
+ ;
+ libc.Xmemmove(tls, ((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(iExp)), (*Decimal)(unsafe.Pointer(p)).Fa, uint64((*Decimal)(unsafe.Pointer(p)).FnDigit))
+ libc.Xmemset(tls, (*Decimal)(unsafe.Pointer(p)).Fa, 0, uint64(iExp))
+ *(*int32)(unsafe.Pointer(p + 4 /* &.nDigit */)) += (iExp)
+ *(*int32)(unsafe.Pointer(p + 8 /* &.nFrac */)) += (iExp)
+__41:
+ ;
+__37:
+ ;
+__31:
+ ;
+ return p
+
+new_no_mem:
+ if !(pCtx != 0) {
+ goto __43
+ }
+ sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
+__43:
+ ;
+ sqlite3.Xsqlite3_free(tls, p)
+ return uintptr(0)
+}
+
+// Make the given Decimal the result.
+func decimal_result(tls *libc.TLS, pCtx uintptr, p uintptr) { /* decimal.c:183:13: */
+ var z uintptr
+ var i int32
+ var j int32
+ var n int32
+ if (p == uintptr(0)) || ((*Decimal)(unsafe.Pointer(p)).Foom != 0) {
+ sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
+ return
+ }
+ if (*Decimal)(unsafe.Pointer(p)).FisNull != 0 {
+ sqlite3.Xsqlite3_result_null(tls, pCtx)
+ return
+ }
+ z = sqlite3.Xsqlite3_malloc(tls, ((*Decimal)(unsafe.Pointer(p)).FnDigit + 4))
+ if z == uintptr(0) {
+ sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
+ return
+ }
+ i = 0
+ if ((*Decimal)(unsafe.Pointer(p)).FnDigit == 0) || (((*Decimal)(unsafe.Pointer(p)).FnDigit == 1) && (int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(0)))) == 0)) {
+ (*Decimal)(unsafe.Pointer(p)).Fsign = int8(0)
+ }
+ if (*Decimal)(unsafe.Pointer(p)).Fsign != 0 {
+ *(*int8)(unsafe.Pointer(z + uintptr(0))) = int8('-')
+ i = 1
+ }
+ n = ((*Decimal)(unsafe.Pointer(p)).FnDigit - (*Decimal)(unsafe.Pointer(p)).FnFrac)
+ if n <= 0 {
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&i, 1)))) = int8('0')
+ }
+ j = 0
+ for (n > 1) && (int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(j)))) == 0) {
+ j++
+ n--
+ }
+ for n > 0 {
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&i, 1)))) = (int8(int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(j)))) + '0'))
+ j++
+ n--
+ }
+ if (*Decimal)(unsafe.Pointer(p)).FnFrac != 0 {
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&i, 1)))) = int8('.')
+ for ok := true; ok; ok = (j < (*Decimal)(unsafe.Pointer(p)).FnDigit) {
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&i, 1)))) = (int8(int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(j)))) + '0'))
+ j++
+ }
+ }
+ *(*int8)(unsafe.Pointer(z + uintptr(i))) = int8(0)
+ sqlite3.Xsqlite3_result_text(tls, pCtx, z, i, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+}
+
+// SQL Function: decimal(X)
+//
+// Convert input X into decimal and then back into text
+func decimalFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:238:13: */
+ var p uintptr = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ _ = argc
+ decimal_result(tls, context, p)
+ decimal_free(tls, p)
+}
+
+// Compare to Decimal objects. Return negative, 0, or positive if the
+// first object is less than, equal to, or greater than the second.
+//
+// Preconditions for this routine:
+//
+// pA!=0
+// pA->isNull==0
+// pB!=0
+// pB->isNull==0
+func decimal_cmp(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* decimal.c:260:12: */
+ var nASig int32
+ var nBSig int32
+ var rc int32
+ var n int32
+ if int32((*Decimal)(unsafe.Pointer(pA)).Fsign) != int32((*Decimal)(unsafe.Pointer(pB)).Fsign) {
+ if (*Decimal)(unsafe.Pointer(pA)).Fsign != 0 {
+ return -1
+ }
+ return +1
+ }
+ if (*Decimal)(unsafe.Pointer(pA)).Fsign != 0 {
+ var pTemp uintptr = pA
+ pA = pB
+ pB = pTemp
+ }
+ nASig = ((*Decimal)(unsafe.Pointer(pA)).FnDigit - (*Decimal)(unsafe.Pointer(pA)).FnFrac)
+ nBSig = ((*Decimal)(unsafe.Pointer(pB)).FnDigit - (*Decimal)(unsafe.Pointer(pB)).FnFrac)
+ if nASig != nBSig {
+ return (nASig - nBSig)
+ }
+ n = (*Decimal)(unsafe.Pointer(pA)).FnDigit
+ if n > (*Decimal)(unsafe.Pointer(pB)).FnDigit {
+ n = (*Decimal)(unsafe.Pointer(pB)).FnDigit
+ }
+ rc = libc.Xmemcmp(tls, (*Decimal)(unsafe.Pointer(pA)).Fa, (*Decimal)(unsafe.Pointer(pB)).Fa, uint64(n))
+ if rc == 0 {
+ rc = ((*Decimal)(unsafe.Pointer(pA)).FnDigit - (*Decimal)(unsafe.Pointer(pB)).FnDigit)
+ }
+ return rc
+}
+
+// SQL Function: decimal_cmp(X, Y)
+//
+// Return negative, zero, or positive if X is less then, equal to, or
+// greater than Y.
+func decimalCmpFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:290:13: */
+ var pA uintptr
+ var pB uintptr
var rc int32
+ pA = uintptr(0)
+ pB = uintptr(0)
+
+ _ = argc
+ pA = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ if !((pA == uintptr(0)) || ((*Decimal)(unsafe.Pointer(pA)).FisNull != 0)) {
+ goto __1
+ }
+ goto cmp_done
+__1:
+ ;
+ pB = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), 0, uintptr(0))
+ if !((pB == uintptr(0)) || ((*Decimal)(unsafe.Pointer(pB)).FisNull != 0)) {
+ goto __2
+ }
+ goto cmp_done
+__2:
+ ;
+ rc = decimal_cmp(tls, pA, pB)
+ if !(rc < 0) {
+ goto __3
+ }
+ rc = -1
+ goto __4
+__3:
+ if !(rc > 0) {
+ goto __5
+ }
+ rc = +1
+__5:
+ ;
+__4:
+ ;
+ sqlite3.Xsqlite3_result_int(tls, context, rc)
+cmp_done:
+ decimal_free(tls, pA)
+ decimal_free(tls, pB)
+}
+
+// Expand the Decimal so that it has a least nDigit digits and nFrac
+// digits to the right of the decimal point.
+func decimal_expand(tls *libc.TLS, p uintptr, nDigit int32, nFrac int32) { /* decimal.c:316:13: */
+ var nAddSig int32
+ var nAddFrac int32
+ if p == uintptr(0) {
+ return
+ }
+ nAddFrac = (nFrac - (*Decimal)(unsafe.Pointer(p)).FnFrac)
+ nAddSig = ((nDigit - (*Decimal)(unsafe.Pointer(p)).FnDigit) - nAddFrac)
+ if (nAddFrac == 0) && (nAddSig == 0) {
+ return
+ }
+ (*Decimal)(unsafe.Pointer(p)).Fa = sqlite3.Xsqlite3_realloc64(tls, (*Decimal)(unsafe.Pointer(p)).Fa, (uint64(nDigit + 1)))
+ if (*Decimal)(unsafe.Pointer(p)).Fa == uintptr(0) {
+ (*Decimal)(unsafe.Pointer(p)).Foom = int8(1)
+ return
+ }
+ if nAddSig != 0 {
+ libc.Xmemmove(tls, ((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(nAddSig)), (*Decimal)(unsafe.Pointer(p)).Fa, uint64((*Decimal)(unsafe.Pointer(p)).FnDigit))
+ libc.Xmemset(tls, (*Decimal)(unsafe.Pointer(p)).Fa, 0, uint64(nAddSig))
+ *(*int32)(unsafe.Pointer(p + 4 /* &.nDigit */)) += (nAddSig)
+ }
+ if nAddFrac != 0 {
+ libc.Xmemset(tls, ((*Decimal)(unsafe.Pointer(p)).Fa + uintptr((*Decimal)(unsafe.Pointer(p)).FnDigit)), 0, uint64(nAddFrac))
+ *(*int32)(unsafe.Pointer(p + 4 /* &.nDigit */)) += (nAddFrac)
+ *(*int32)(unsafe.Pointer(p + 8 /* &.nFrac */)) += (nAddFrac)
+ }
+}
+
+// Add the value pB into pA.
+//
+// Both pA and pB might become denormalized by this routine.
+func decimal_add(tls *libc.TLS, pA uintptr, pB uintptr) { /* decimal.c:345:13: */
+ var nSig int32
+ var nFrac int32
+ var nDigit int32
+ var i int32
+ var rc int32
+ if pA == uintptr(0) {
+ return
+ }
+ if (((*Decimal)(unsafe.Pointer(pA)).Foom != 0) || (pB == uintptr(0))) || ((*Decimal)(unsafe.Pointer(pB)).Foom != 0) {
+ (*Decimal)(unsafe.Pointer(pA)).Foom = int8(1)
+ return
+ }
+ if ((*Decimal)(unsafe.Pointer(pA)).FisNull != 0) || ((*Decimal)(unsafe.Pointer(pB)).FisNull != 0) {
+ (*Decimal)(unsafe.Pointer(pA)).FisNull = int8(1)
+ return
+ }
+ nSig = ((*Decimal)(unsafe.Pointer(pA)).FnDigit - (*Decimal)(unsafe.Pointer(pA)).FnFrac)
+ if (nSig != 0) && (int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(0)))) == 0) {
+ nSig--
+ }
+ if nSig < ((*Decimal)(unsafe.Pointer(pB)).FnDigit - (*Decimal)(unsafe.Pointer(pB)).FnFrac) {
+ nSig = ((*Decimal)(unsafe.Pointer(pB)).FnDigit - (*Decimal)(unsafe.Pointer(pB)).FnFrac)
+ }
+ nFrac = (*Decimal)(unsafe.Pointer(pA)).FnFrac
+ if nFrac < (*Decimal)(unsafe.Pointer(pB)).FnFrac {
+ nFrac = (*Decimal)(unsafe.Pointer(pB)).FnFrac
+ }
+ nDigit = ((nSig + nFrac) + 1)
+ decimal_expand(tls, pA, nDigit, nFrac)
+ decimal_expand(tls, pB, nDigit, nFrac)
+ if ((*Decimal)(unsafe.Pointer(pA)).Foom != 0) || ((*Decimal)(unsafe.Pointer(pB)).Foom != 0) {
+ (*Decimal)(unsafe.Pointer(pA)).Foom = int8(1)
+ } else {
+ if int32((*Decimal)(unsafe.Pointer(pA)).Fsign) == int32((*Decimal)(unsafe.Pointer(pB)).Fsign) {
+ var carry int32 = 0
+ for i = (nDigit - 1); i >= 0; i-- {
+ var x int32 = ((int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(i)))) + int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pB)).Fa + uintptr(i))))) + carry)
+ if x >= 10 {
+ carry = 1
+ *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(i))) = (int8(x - 10))
+ } else {
+ carry = 0
+ *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(i))) = int8(x)
+ }
+ }
+ } else {
+ var aA uintptr
+ var aB uintptr
+ var borrow int32 = 0
+ rc = libc.Xmemcmp(tls, (*Decimal)(unsafe.Pointer(pA)).Fa, (*Decimal)(unsafe.Pointer(pB)).Fa, uint64(nDigit))
+ if rc < 0 {
+ aA = (*Decimal)(unsafe.Pointer(pB)).Fa
+ aB = (*Decimal)(unsafe.Pointer(pA)).Fa
+ (*Decimal)(unsafe.Pointer(pA)).Fsign = libc.BoolInt8(!((*Decimal)(unsafe.Pointer(pA)).Fsign != 0))
+ } else {
+ aA = (*Decimal)(unsafe.Pointer(pA)).Fa
+ aB = (*Decimal)(unsafe.Pointer(pB)).Fa
+ }
+ for i = (nDigit - 1); i >= 0; i-- {
+ var x int32 = ((int32(*(*int8)(unsafe.Pointer(aA + uintptr(i)))) - int32(*(*int8)(unsafe.Pointer(aB + uintptr(i))))) - borrow)
+ if x < 0 {
+ *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(i))) = (int8(x + 10))
+ borrow = 1
+ } else {
+ *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(i))) = int8(x)
+ borrow = 0
+ }
+ }
+ }
+ }
+}
+
+// Compare text in decimal order.
+func decimalCollFunc(tls *libc.TLS, notUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* decimal.c:413:12: */
+ var zA uintptr = pKey1
+ var zB uintptr = pKey2
+ var pA uintptr = decimal_new(tls, uintptr(0), uintptr(0), nKey1, zA)
+ var pB uintptr = decimal_new(tls, uintptr(0), uintptr(0), nKey2, zB)
+ var rc int32
+ _ = notUsed
+ if (pA == uintptr(0)) || (pB == uintptr(0)) {
+ rc = 0
+ } else {
+ rc = decimal_cmp(tls, pA, pB)
+ }
+ decimal_free(tls, pA)
+ decimal_free(tls, pB)
+ return rc
+}
+
+// SQL Function: decimal_add(X, Y)
+// decimal_sub(X, Y)
+//
+// Return the sum or difference of X and Y.
+func decimalAddFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:441:13: */
+ var pA uintptr = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ var pB uintptr = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), 0, uintptr(0))
+ _ = argc
+ decimal_add(tls, pA, pB)
+ decimal_result(tls, context, pA)
+ decimal_free(tls, pA)
+ decimal_free(tls, pB)
+}
+func decimalSubFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:454:13: */
+ var pA uintptr = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ var pB uintptr = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), 0, uintptr(0))
+ _ = argc
+ if pB == uintptr(0) {
+ return
+ }
+ (*Decimal)(unsafe.Pointer(pB)).Fsign = libc.BoolInt8(!((*Decimal)(unsafe.Pointer(pB)).Fsign != 0))
+ decimal_add(tls, pA, pB)
+ decimal_result(tls, context, pA)
+ decimal_free(tls, pA)
+ decimal_free(tls, pB)
+}
+
+// Aggregate funcion: decimal_sum(X)
+//
+// Works like sum() except that it uses decimal arithmetic for unlimited
+// precision.
+func decimalSumStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:475:13: */
+ var p uintptr
+ var pArg uintptr
+ _ = argc
+ p = sqlite3.Xsqlite3_aggregate_context(tls, context, int32(unsafe.Sizeof(Decimal{})))
+ if p == uintptr(0) {
+ return
+ }
+ if !(int32((*Decimal)(unsafe.Pointer(p)).FisInit) != 0) {
+ (*Decimal)(unsafe.Pointer(p)).FisInit = int8(1)
+ (*Decimal)(unsafe.Pointer(p)).Fa = sqlite3.Xsqlite3_malloc(tls, 2)
+ if (*Decimal)(unsafe.Pointer(p)).Fa == uintptr(0) {
+ (*Decimal)(unsafe.Pointer(p)).Foom = int8(1)
+ } else {
+ *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(p)).Fa + uintptr(0))) = int8(0)
+ }
+ (*Decimal)(unsafe.Pointer(p)).FnDigit = 1
+ (*Decimal)(unsafe.Pointer(p)).FnFrac = 0
+ }
+ if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 5 {
+ return
+ }
+ pArg = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ decimal_add(tls, p, pArg)
+ decimal_free(tls, pArg)
+}
+func decimalSumInverse(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:501:13: */
+ var p uintptr
+ var pArg uintptr
+ _ = argc
+ p = sqlite3.Xsqlite3_aggregate_context(tls, context, int32(unsafe.Sizeof(Decimal{})))
+ if p == uintptr(0) {
+ return
+ }
+ if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 5 {
+ return
+ }
+ pArg = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ if pArg != 0 {
+ (*Decimal)(unsafe.Pointer(pArg)).Fsign = libc.BoolInt8(!((*Decimal)(unsafe.Pointer(pArg)).Fsign != 0))
+ }
+ decimal_add(tls, p, pArg)
+ decimal_free(tls, pArg)
+}
+func decimalSumValue(tls *libc.TLS, context uintptr) { /* decimal.c:517:13: */
+ var p uintptr = sqlite3.Xsqlite3_aggregate_context(tls, context, 0)
+ if p == uintptr(0) {
+ return
+ }
+ decimal_result(tls, context, p)
+}
+func decimalSumFinalize(tls *libc.TLS, context uintptr) { /* decimal.c:522:13: */
+ var p uintptr = sqlite3.Xsqlite3_aggregate_context(tls, context, 0)
+ if p == uintptr(0) {
+ return
+ }
+ decimal_result(tls, context, p)
+ decimal_clear(tls, p)
+}
+
+// SQL Function: decimal_mul(X, Y)
+//
+// Return the product of X and Y.
+//
+// All significant digits after the decimal point are retained.
+// Trailing zeros after the decimal point are omitted as long as
+// the number of digits after the decimal point is no less than
+// either the number of digits in either input.
+func decimalMulFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* decimal.c:539:13: */
+ var pA uintptr
+ var pB uintptr
+ var acc uintptr
+ var i int32
+ var j int32
+ var k int32
+ var minFrac int32
+ var f int8
+ var carry int32
+ var x int32
+ pA = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 0, uintptr(0))
+ pB = decimal_new(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), 0, uintptr(0))
+ acc = uintptr(0)
+ _ = argc
+ if !((((((pA == uintptr(0)) || ((*Decimal)(unsafe.Pointer(pA)).Foom != 0)) || ((*Decimal)(unsafe.Pointer(pA)).FisNull != 0)) ||
+ (pB == uintptr(0))) || ((*Decimal)(unsafe.Pointer(pB)).Foom != 0)) || ((*Decimal)(unsafe.Pointer(pB)).FisNull != 0)) {
+ goto __1
+ }
+ goto mul_end
+__1:
+ ;
+ acc = sqlite3.Xsqlite3_malloc64(tls, (uint64(((*Decimal)(unsafe.Pointer(pA)).FnDigit + (*Decimal)(unsafe.Pointer(pB)).FnDigit) + 2)))
+ if !(acc == uintptr(0)) {
+ goto __2
+ }
+ sqlite3.Xsqlite3_result_error_nomem(tls, context)
+ goto mul_end
+__2:
+ ;
+ libc.Xmemset(tls, acc, 0, (uint64(((*Decimal)(unsafe.Pointer(pA)).FnDigit + (*Decimal)(unsafe.Pointer(pB)).FnDigit) + 2)))
+ minFrac = (*Decimal)(unsafe.Pointer(pA)).FnFrac
+ if !((*Decimal)(unsafe.Pointer(pB)).FnFrac < minFrac) {
+ goto __3
+ }
+ minFrac = (*Decimal)(unsafe.Pointer(pB)).FnFrac
+__3:
+ ;
+ i = ((*Decimal)(unsafe.Pointer(pA)).FnDigit - 1)
+__4:
+ if !(i >= 0) {
+ goto __6
+ }
+ f = *(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(i)))
+ carry = 0
+ j = ((*Decimal)(unsafe.Pointer(pB)).FnDigit - 1)
+ k = ((i + j) + 3)
+__7:
+ if !(j >= 0) {
+ goto __9
+ }
+ x = ((int32(*(*int8)(unsafe.Pointer(acc + uintptr(k)))) + (int32(f) * int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pB)).Fa + uintptr(j)))))) + carry)
+ *(*int8)(unsafe.Pointer(acc + uintptr(k))) = (int8(x % 10))
+ carry = (x / 10)
+ goto __8
+__8:
+ j--
+ k--
+ goto __7
+ goto __9
+__9:
+ ;
+ x = (int32(*(*int8)(unsafe.Pointer(acc + uintptr(k)))) + carry)
+ *(*int8)(unsafe.Pointer(acc + uintptr(k))) = (int8(x % 10))
+ *(*int8)(unsafe.Pointer(acc + uintptr((k - 1)))) += int8((x / 10))
+ goto __5
+__5:
+ i--
+ goto __4
+ goto __6
+__6:
+ ;
+ sqlite3.Xsqlite3_free(tls, (*Decimal)(unsafe.Pointer(pA)).Fa)
+ (*Decimal)(unsafe.Pointer(pA)).Fa = acc
+ acc = uintptr(0)
+ *(*int32)(unsafe.Pointer(pA + 4 /* &.nDigit */)) += ((*Decimal)(unsafe.Pointer(pB)).FnDigit + 2)
+ *(*int32)(unsafe.Pointer(pA + 8 /* &.nFrac */)) += ((*Decimal)(unsafe.Pointer(pB)).FnFrac)
+ *(*int8)(unsafe.Pointer(pA /* &.sign */)) ^= int8((int32((*Decimal)(unsafe.Pointer(pB)).Fsign)))
+__10:
+ if !(((*Decimal)(unsafe.Pointer(pA)).FnFrac > minFrac) && (int32(*(*int8)(unsafe.Pointer((*Decimal)(unsafe.Pointer(pA)).Fa + uintptr(((*Decimal)(unsafe.Pointer(pA)).FnDigit - 1))))) == 0)) {
+ goto __11
+ }
+ (*Decimal)(unsafe.Pointer(pA)).FnFrac--
+ (*Decimal)(unsafe.Pointer(pA)).FnDigit--
+ goto __10
+__11:
+ ;
+ decimal_result(tls, context, pA)
+
+mul_end:
+ sqlite3.Xsqlite3_free(tls, acc)
+ decimal_free(tls, pA)
+ decimal_free(tls, pB)
+}
+
+func sqlite3_decimal_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* decimal.c:596:5: */
+ var rc int32 = 0
+ var i uint32
+ _ = pzErrMsg // Unused parameter
+
_ = pApi
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3357 /* "csv" */, uintptr(unsafe.Pointer(&CsvModule)), uintptr(0))
+ for i = uint32(0); (uint64(i) < (uint64(unsafe.Sizeof(aFunc)) / uint64(unsafe.Sizeof(struct {
+ FzFuncName uintptr
+ FnArg int32
+ FxFunc uintptr
+ }{})))) && (rc == 0); i++ {
+ rc = sqlite3.Xsqlite3_create_function(tls, db, aFunc[i].FzFuncName, aFunc[i].FnArg,
+ ((1 | 0x000200000) | 0x000000800),
+ uintptr(0), aFunc[i].FxFunc, uintptr(0), uintptr(0))
+ }
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3361 /* "csv_wr" */, uintptr(unsafe.Pointer(&CsvModuleFauxWrite)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_window_function(tls, db, ts+4517 /* "decimal_sum" */, 1,
+ ((1 | 0x000200000) | 0x000000800), uintptr(0),
+ *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{decimalSumStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{decimalSumFinalize})),
+ *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{decimalSumValue})), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{decimalSumInverse})), uintptr(0))
+ }
+ if rc == 0 {
+ rc = sqlite3.Xsqlite3_create_collation(tls, db, ts+4529 /* "decimal" */, 1,
+ uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ }{decimalCollFunc})))
}
return rc
}
+var aFunc = [5]struct {
+ FzFuncName uintptr
+ FnArg int32
+ FxFunc uintptr
+}{
+ {FzFuncName: ts + 4529 /* "decimal" */, FnArg: 1, FxFunc: 0},
+ {FzFuncName: ts + 4537 /* "decimal_cmp" */, FnArg: 2, FxFunc: 0},
+ {FzFuncName: ts + 4549 /* "decimal_add" */, FnArg: 2, FxFunc: 0},
+ {FzFuncName: ts + 4561 /* "decimal_sub" */, FnArg: 2, FxFunc: 0},
+ {FzFuncName: ts + 4573 /* "decimal_mul" */, FnArg: 2, FxFunc: 0},
+} /* decimal.c:606:5 */
+
// Structure used to accumulate the output
type EvalResult = struct {
Fz uintptr
@@ -15473,7 +18832,7 @@ type EvalResult = struct {
}
// Callback from sqlite_exec() for the eval() function.
-func callback(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr, colnames uintptr) int32 { /* eval.c:34:12: */
+func callback(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr, colnames uintptr) int32 { /* eval.c:34:12: */
var p uintptr = pCtx
var i int32
if argv == uintptr(0) {
@@ -15486,7 +18845,7 @@ func callback(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr, colnames uin
} else {
z = ts + 488 /* "" */
}
- var sz size_t = crt.Xstrlen(tls, z)
+ var sz size_t = libc.Xstrlen(tls, z)
if (((sqlite3_int64(sz) + (*EvalResult)(unsafe.Pointer(p)).FnUsed) + sqlite3_int64((*EvalResult)(unsafe.Pointer(p)).FszSep)) + int64(1)) > (*EvalResult)(unsafe.Pointer(p)).FnAlloc {
var zNew uintptr
(*EvalResult)(unsafe.Pointer(p)).FnAlloc = (sqlite3_int64((((uint64((*EvalResult)(unsafe.Pointer(p)).FnAlloc * int64(2))) + uint64(sz)) + uint64((*EvalResult)(unsafe.Pointer(p)).FszSep)) + uint64(1)))
@@ -15500,16 +18859,16 @@ func callback(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr, colnames uin
}
if zNew == uintptr(0) {
sqlite3.Xsqlite3_free(tls, (*EvalResult)(unsafe.Pointer(p)).Fz)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(EvalResult{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(EvalResult{})))
return 1
}
(*EvalResult)(unsafe.Pointer(p)).Fz = zNew
}
if (*EvalResult)(unsafe.Pointer(p)).FnUsed > int64(0) {
- crt.Xmemcpy(tls, ((*EvalResult)(unsafe.Pointer(p)).Fz + uintptr((*EvalResult)(unsafe.Pointer(p)).FnUsed)), (*EvalResult)(unsafe.Pointer(p)).FzSep, uint64((*EvalResult)(unsafe.Pointer(p)).FszSep))
+ libc.Xmemcpy(tls, ((*EvalResult)(unsafe.Pointer(p)).Fz + uintptr((*EvalResult)(unsafe.Pointer(p)).FnUsed)), (*EvalResult)(unsafe.Pointer(p)).FzSep, uint64((*EvalResult)(unsafe.Pointer(p)).FszSep))
*(*sqlite3_int64)(unsafe.Pointer(p + 32 /* &.nUsed */)) += (sqlite3_int64((*EvalResult)(unsafe.Pointer(p)).FszSep))
}
- crt.Xmemcpy(tls, ((*EvalResult)(unsafe.Pointer(p)).Fz + uintptr((*EvalResult)(unsafe.Pointer(p)).FnUsed)), z, sz)
+ libc.Xmemcpy(tls, ((*EvalResult)(unsafe.Pointer(p)).Fz + uintptr((*EvalResult)(unsafe.Pointer(p)).FnUsed)), z, sz)
*(*sqlite3_int64)(unsafe.Pointer(p + 32 /* &.nUsed */)) += sqlite3_int64((uint64(sz)))
}
return 0
@@ -15519,7 +18878,7 @@ func callback(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr, colnames uin
//
// Evaluate the SQL text in X. Return the results, using string
// Y as the separator. If Y is omitted, use a single space character.
-func sqlEvalFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* eval.c:71:13: */
+func sqlEvalFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* eval.c:71:13: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -15529,8 +18888,8 @@ func sqlEvalFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* e
var rc int32
// var x EvalResult at bp, 40
- crt.Xmemset(tls, bp /* &x */, 0, uint64(unsafe.Sizeof(EvalResult{})))
- (*EvalResult)(unsafe.Pointer(bp /* &x */)).FzSep = ts + 3368 /* " " */
+ libc.Xmemset(tls, bp /* &x */, 0, uint64(unsafe.Sizeof(EvalResult{})))
+ (*EvalResult)(unsafe.Pointer(bp /* &x */)).FzSep = ts + 4585 /* " " */
zSql = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
if zSql == uintptr(0) {
return
@@ -15541,10 +18900,10 @@ func sqlEvalFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* e
return
}
}
- (*EvalResult)(unsafe.Pointer(bp /* &x */)).FszSep = int32(crt.Xstrlen(tls, (*EvalResult)(unsafe.Pointer(bp /* &x */)).FzSep))
+ (*EvalResult)(unsafe.Pointer(bp /* &x */)).FszSep = int32(libc.Xstrlen(tls, (*EvalResult)(unsafe.Pointer(bp /* &x */)).FzSep))
db = sqlite3.Xsqlite3_context_db_handle(tls, context)
rc = sqlite3.Xsqlite3_exec(tls, db, zSql, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{callback})), bp /* &x */, bp+40 /* &zErr */)
if rc != 0 {
sqlite3.Xsqlite3_result_error(tls, context, *(*uintptr)(unsafe.Pointer(bp + 40 /* zErr */)), -1)
@@ -15553,25 +18912,25 @@ func sqlEvalFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* e
sqlite3.Xsqlite3_result_error_nomem(tls, context)
sqlite3.Xsqlite3_free(tls, (*EvalResult)(unsafe.Pointer(bp /* &x */)).Fz)
} else {
- sqlite3.Xsqlite3_result_text(tls, context, (*EvalResult)(unsafe.Pointer(bp /* &x */)).Fz, int32((*EvalResult)(unsafe.Pointer(bp /* &x */)).FnUsed), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text(tls, context, (*EvalResult)(unsafe.Pointer(bp /* &x */)).Fz, int32((*EvalResult)(unsafe.Pointer(bp /* &x */)).FnUsed), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
-func sqlite3_eval_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* eval.c:108:5: */
+func sqlite3_eval_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* eval.c:108:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Unused parameter
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3370 /* "eval" */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4587 /* "eval" */, 1,
(1 | 0x000080000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{sqlEvalFunc})), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3370 /* "eval" */, 2,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4587 /* "eval" */, 2,
(1 | 0x000080000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{sqlEvalFunc})), uintptr(0), uintptr(0))
}
return rc
@@ -15616,47 +18975,47 @@ type explain_cursor = explain_cursor1 /* explain.c:48:31 */
//
// (2) Tell SQLite (via the sqlite3_declare_vtab() interface) what the
// result set of queries against explain will look like.
-func explainConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* explain.c:70:12: */
+func explainConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* explain.c:70:12: */
var pNew uintptr
var rc int32
// Column numbers
rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+3375 /* "CREATE TABLE x(a..." */)
+ ts+4592 /* "CREATE TABLE x(a..." */)
if rc == 0 {
pNew = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(explain_vtab{})))
*(*uintptr)(unsafe.Pointer(ppVtab)) = pNew
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(explain_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(explain_vtab{})))
(*explain_vtab)(unsafe.Pointer(pNew)).Fdb = db
}
return rc
}
// This method is the destructor for explain_cursor objects.
-func explainDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* explain.c:107:12: */
+func explainDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* explain.c:107:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Constructor for a new explain_cursor object.
-func explainOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* explain.c:115:12: */
+func explainOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* explain.c:115:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(explain_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(explain_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(explain_cursor{})))
(*explain_cursor)(unsafe.Pointer(pCur)).Fdb = (*explain_vtab)(unsafe.Pointer(p)).Fdb
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Destructor for a explain_cursor.
-func explainClose(tls *crt.TLS, cur uintptr) int32 { /* explain.c:128:12: */
+func explainClose(tls *libc.TLS, cur uintptr) int32 { /* explain.c:128:12: */
var pCur uintptr = cur
sqlite3.Xsqlite3_finalize(tls, (*explain_cursor)(unsafe.Pointer(pCur)).FpExplain)
sqlite3.Xsqlite3_free(tls, (*explain_cursor)(unsafe.Pointer(pCur)).FzSql)
@@ -15665,7 +19024,7 @@ func explainClose(tls *crt.TLS, cur uintptr) int32 { /* explain.c:128:12: */
}
// Advance a explain_cursor to its next row of output.
-func explainNext(tls *crt.TLS, cur uintptr) int32 { /* explain.c:140:12: */
+func explainNext(tls *libc.TLS, cur uintptr) int32 { /* explain.c:140:12: */
var pCur uintptr = cur
(*explain_cursor)(unsafe.Pointer(pCur)).Frc = sqlite3.Xsqlite3_step(tls, (*explain_cursor)(unsafe.Pointer(pCur)).FpExplain)
if ((*explain_cursor)(unsafe.Pointer(pCur)).Frc != 101) && ((*explain_cursor)(unsafe.Pointer(pCur)).Frc != 100) {
@@ -15676,10 +19035,10 @@ func explainNext(tls *crt.TLS, cur uintptr) int32 { /* explain.c:140:12: */
// Return values of columns for the row at which the explain_cursor
// is currently pointing.
-func explainColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* explain.c:151:12: */
+func explainColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* explain.c:151:12: */
var pCur uintptr = cur
if i == 8 {
- sqlite3.Xsqlite3_result_text(tls, ctx, (*explain_cursor)(unsafe.Pointer(pCur)).FzSql, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, (*explain_cursor)(unsafe.Pointer(pCur)).FzSql, -1, libc.UintptrFromInt32(-1))
} else {
sqlite3.Xsqlite3_result_value(tls, ctx, sqlite3.Xsqlite3_column_value(tls, (*explain_cursor)(unsafe.Pointer(pCur)).FpExplain, i))
}
@@ -15688,7 +19047,7 @@ func explainColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* e
// Return the rowid for the current row. In this implementation, the
// rowid is the same as the output value.
-func explainRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* explain.c:169:12: */
+func explainRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* explain.c:169:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_column_int64(tls, (*explain_cursor)(unsafe.Pointer(pCur)).FpExplain, 0)
return 0
@@ -15696,9 +19055,9 @@ func explainRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* explain.
// Return TRUE if the cursor has been moved off of the last
// row of output.
-func explainEof(tls *crt.TLS, cur uintptr) int32 { /* explain.c:179:12: */
+func explainEof(tls *libc.TLS, cur uintptr) int32 { /* explain.c:179:12: */
var pCur uintptr = cur
- return (crt.Bool32((*explain_cursor)(unsafe.Pointer(pCur)).Frc != 100))
+ return (libc.Bool32((*explain_cursor)(unsafe.Pointer(pCur)).Frc != 100))
}
// This method is called to "rewind" the explain_cursor object back
@@ -15707,7 +19066,7 @@ func explainEof(tls *crt.TLS, cur uintptr) int32 { /* explain.c:179:12: */
// explainEof().
//
// The argv[0] is the SQL statement that is to be explained.
-func explainFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* explain.c:192:12: */
+func explainFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* explain.c:192:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -15721,9 +19080,9 @@ func explainFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
return 0
}
sqlite3.Xsqlite3_free(tls, (*explain_cursor)(unsafe.Pointer(pCur)).FzSql)
- (*explain_cursor)(unsafe.Pointer(pCur)).FzSql = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))))
+ (*explain_cursor)(unsafe.Pointer(pCur)).FzSql = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))))
if (*explain_cursor)(unsafe.Pointer(pCur)).FzSql != 0 {
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+3437 /* "EXPLAIN %s" */, crt.VaList(bp+8, (*explain_cursor)(unsafe.Pointer(pCur)).FzSql))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+4654 /* "EXPLAIN %s" */, libc.VaList(bp+8, (*explain_cursor)(unsafe.Pointer(pCur)).FzSql))
}
if zSql == uintptr(0) {
rc = 7
@@ -15751,7 +19110,7 @@ func explainFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintp
// that uses the explain virtual table. This routine needs to create
// a query plan for each invocation and compute an estimated cost for that
// plan.
-func explainBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* explain.c:235:12: */
+func explainBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* explain.c:235:12: */
var i int32 // Loop counter
var idx int32 = -1 // Index of a usable == constraint against SQL
var unusable int32 = 0 // True if there are unusable constraints on SQL
@@ -15810,13 +19169,13 @@ uintptr(0), FxShadowName:// xRollbackTo
uintptr(0), // xShadowName
} /* explain.c:271:23 */
-func sqlite3ExplainVtabInit(tls *crt.TLS, db uintptr) int32 { /* explain.c:300:5: */
+func sqlite3ExplainVtabInit(tls *libc.TLS, db uintptr) int32 { /* explain.c:300:5: */
var rc int32 = 0
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3448 /* "explain" */, uintptr(unsafe.Pointer(&explainModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+4665 /* "explain" */, uintptr(unsafe.Pointer(&explainModule)), uintptr(0))
return rc
}
-func sqlite3_explain_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* explain.c:311:5: */
+func sqlite3_explain_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* explain.c:311:5: */
var rc int32 = 0
_ = pApi
@@ -16561,6 +19920,228 @@ type itimerval = struct {
}
}
+// Convenience macros for operations on timevals.
+// NOTE: `timercmp' does not work for >= or <=.
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.23 Date and time <time.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Copyright (C) 1989-2018 Free Software Foundation, Inc.
+//
+//This file is part of GCC.
+//
+//GCC is free software; you can redistribute it and/or modify
+//it under the terms of the GNU General Public License as published by
+//the Free Software Foundation; either version 3, or (at your option)
+//any later version.
+//
+//GCC is distributed in the hope that it will be useful,
+//but WITHOUT ANY WARRANTY; without even the implied warranty of
+//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+//GNU General Public License for more details.
+//
+//Under Section 7 of GPL version 3, you are granted additional
+//permissions described in the GCC Runtime Library Exception, version
+//3.1, as published by the Free Software Foundation.
+//
+//You should have received a copy of the GNU General Public License and
+//a copy of the GCC Runtime Library Exception along with this program;
+//see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+//<http://www.gnu.org/licenses/>.
+
+// ISO C Standard: 7.17 Common definitions <stddef.h>
+
+// Any one of these symbols __need_* means that GNU libc
+// wants us just to define one data type. So don't define
+// the symbols that indicate this file's entire job has been done.
+
+// This avoids lossage on SunOS but only if stdtypes.h comes first.
+// There's no way to win with the other order! Sun lossage.
+
+// On 4.3bsd-net2, make sure ansi.h is included, so we have
+// one less case to deal with in the following.
+// On FreeBSD 5, machine/ansi.h does not exist anymore...
+
+// In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
+// defined if the corresponding type is *not* defined.
+// FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
+// NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_
+
+// Sequent's header files use _PTRDIFF_T_ in some conflicting way.
+// Just ignore it.
+
+// On VxWorks, <type/vxTypesBase.h> may have defined macros like
+// _TYPE_size_t which will typedef size_t. fixincludes patched the
+// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
+// not defined, and so that defining this macro defines _GCC_SIZE_T.
+// If we find that the macros are still defined at this point, we must
+// invoke them so that the type is defined as expected.
+
+// In case nobody has defined these types, but we aren't running under
+// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
+// __WCHAR_TYPE__ have reasonable values. This can happen if the
+// parts of GCC is compiled by an older compiler, that actually
+// include gstddef.h, such as collect2.
+
+// Signed type of difference of two pointers.
+
+// Define this type if we are doing the whole job,
+// or if we want this type in particular.
+
+// Unsigned type of `sizeof' something.
+
+// Define this type if we are doing the whole job,
+// or if we want this type in particular.
+
+// Wide character type.
+// Locale-writers should change this as necessary to
+// be big enough to hold unique values not between 0 and 127,
+// and not (wchar_t) -1, for each defined multibyte character.
+
+// Define this type if we are doing the whole job,
+// or if we want this type in particular.
+
+// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
+// are already defined.
+// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
+// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
+
+// A null pointer constant.
+
+// This defines CLOCKS_PER_SEC, which is the number of processor clock
+// ticks per second, and possibly a number of other constants.
+// System-dependent timing definitions. Linux version.
+// Copyright (C) 1996-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Never include this file directly; use <time.h> instead.
+
+// bits/types.h -- definitions of __*_t types underlying *_t types.
+// Copyright (C) 2002-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Never include this file directly; use <sys/types.h> instead.
+
+// ISO/IEC 9899:1999 7.23.1: Components of time
+// The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is
+// the number per second of the value returned by the `clock' function.
+// CAE XSH, Issue 4, Version 2: <time.h>
+// The value of CLOCKS_PER_SEC is required to be 1 million on all
+// XSI-conformant systems.
+
+// Identifier for system-wide realtime clock.
+// Monotonic system-wide clock.
+// High-resolution timer from the CPU.
+// Thread-specific CPU-time clock.
+// Monotonic system-wide clock, not adjusted for frequency scaling.
+// Identifier for system-wide realtime clock, updated only on ticks.
+// Monotonic system-wide clock, updated only on ticks.
+// Monotonic system-wide clock that includes time spent in suspension.
+// Like CLOCK_REALTIME but also wakes suspended system.
+// Like CLOCK_BOOTTIME but also wakes suspended system.
+// Like CLOCK_REALTIME but in International Atomic Time.
+
+// Flag to indicate time is absolute.
+
+// Many of the typedefs and structs whose official home is this header
+// may also need to be defined by other headers.
+
+// bits/types.h -- definitions of __*_t types underlying *_t types.
+// Copyright (C) 2002-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Never include this file directly; use <sys/types.h> instead.
+
+// ISO C `broken-down time' structure.
+type tm = struct {
+ Ftm_sec int32
+ Ftm_min int32
+ Ftm_hour int32
+ Ftm_mday int32
+ Ftm_mon int32
+ Ftm_year int32
+ Ftm_wday int32
+ Ftm_yday int32
+ Ftm_isdst int32
+ Ftm_gmtoff int64
+ Ftm_zone uintptr
+}
+
// NB: Include guard matches what <linux/time.h> uses.
// bits/types.h -- definitions of __*_t types underlying *_t types.
@@ -16623,26 +20204,26 @@ type sigevent = struct {
//
// Throw an SQLITE_IOERR if there are difficulties pulling the file
// off of disk.
-func readFileContents(tls *crt.TLS, ctx uintptr, zName uintptr) { /* fileio.c:133:13: */
+func readFileContents(tls *libc.TLS, ctx uintptr, zName uintptr) { /* fileio.c:133:13: */
var in uintptr
var nIn sqlite3_int64
var pBuf uintptr
var db uintptr
var mxBlob int32
- in = crt.Xfopen(tls, zName, ts+2937 /* "rb" */)
+ in = libc.Xfopen(tls, zName, ts+4086 /* "rb" */)
if in == uintptr(0) {
// File does not exist or is unreadable. Leave the result set to NULL.
return
}
- crt.Xfseek(tls, in, int64(0), 2)
- nIn = sqlite3_int64(crt.Xftell(tls, in))
- crt.Xrewind(tls, in)
+ libc.Xfseek(tls, in, int64(0), 2)
+ nIn = sqlite3_int64(libc.Xftell(tls, in))
+ libc.Xrewind(tls, in)
db = sqlite3.Xsqlite3_context_db_handle(tls, ctx)
mxBlob = sqlite3.Xsqlite3_limit(tls, db, 0, -1)
if nIn > sqlite3_int64(mxBlob) {
sqlite3.Xsqlite3_result_error_code(tls, ctx, 18)
- crt.Xfclose(tls, in)
+ libc.Xfclose(tls, in)
return
}
pBuf = sqlite3.Xsqlite3_malloc64(tls, func() uint64 {
@@ -16653,22 +20234,22 @@ func readFileContents(tls *crt.TLS, ctx uintptr, zName uintptr) { /* fileio.c:13
}())
if pBuf == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, ctx)
- crt.Xfclose(tls, in)
+ libc.Xfclose(tls, in)
return
}
- if nIn == sqlite3_int64(crt.Xfread(tls, pBuf, uint64(1), size_t(nIn), in)) {
- sqlite3.Xsqlite3_result_blob64(tls, ctx, pBuf, uint64(nIn), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ if nIn == sqlite3_int64(libc.Xfread(tls, pBuf, uint64(1), size_t(nIn), in)) {
+ sqlite3.Xsqlite3_result_blob64(tls, ctx, pBuf, uint64(nIn), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
} else {
sqlite3.Xsqlite3_result_error_code(tls, ctx, 10)
sqlite3.Xsqlite3_free(tls, pBuf)
}
- crt.Xfclose(tls, in)
+ libc.Xfclose(tls, in)
}
// Implementation of the "readfile(X)" SQL function. The entire content
// of the file named X is read and returned as a BLOB. NULL is returned
// if the file does not exist or is unreadable.
-func readfileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* fileio.c:175:13: */
+func readfileFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* fileio.c:175:13: */
var zName uintptr
_ = argc // Unused parameter
zName = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
@@ -16680,7 +20261,7 @@ func readfileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// Set the error message contained in context ctx to the results of
// vprintf(zFmt, ...).
-func ctxErrorMsg(tls *crt.TLS, ctx uintptr, zFmt uintptr, va uintptr) { /* fileio.c:191:13: */
+func ctxErrorMsg(tls *libc.TLS, ctx uintptr, zFmt uintptr, va uintptr) { /* fileio.c:191:13: */
var zMsg uintptr = uintptr(0)
var ap va_list
_ = ap
@@ -16694,15 +20275,15 @@ func ctxErrorMsg(tls *crt.TLS, ctx uintptr, zFmt uintptr, va uintptr) { /* filei
// This function is used in place of stat(). On Windows, special handling
// is required in order for the included time to be returned as UTC. On all
// other systems, this function simply calls stat().
-func fileStat(tls *crt.TLS, zPath uintptr, pStatBuf uintptr) int32 { /* fileio.c:261:12: */
- return crt.Xstat(tls, zPath, pStatBuf)
+func fileStat(tls *libc.TLS, zPath uintptr, pStatBuf uintptr) int32 { /* fileio.c:261:12: */
+ return libc.Xstat(tls, zPath, pStatBuf)
}
// This function is used in place of lstat(). On Windows, special handling
// is required in order for the included time to be returned as UTC. On all
// other systems, this function simply calls lstat().
-func fileLinkStat(tls *crt.TLS, zPath uintptr, pStatBuf uintptr) int32 { /* fileio.c:279:12: */
- return crt.Xlstat(tls, zPath, pStatBuf)
+func fileLinkStat(tls *libc.TLS, zPath uintptr, pStatBuf uintptr) int32 { /* fileio.c:279:12: */
+ return libc.Xlstat(tls, zPath, pStatBuf)
}
// Argument zFile is the name of a file that will be created and/or written
@@ -16714,21 +20295,21 @@ func fileLinkStat(tls *crt.TLS, zPath uintptr, pStatBuf uintptr) int32 { /* file
// If an OOM condition is encountered, SQLITE_NOMEM is returned. Otherwise,
// SQLITE_OK is returned if the directory is successfully created, or
// SQLITE_ERROR otherwise.
-func makeDirectory(tls *crt.TLS, zFile uintptr) int32 { /* fileio.c:303:12: */
+func makeDirectory(tls *libc.TLS, zFile uintptr) int32 { /* fileio.c:303:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
- var zCopy uintptr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zFile))
+ var zCopy uintptr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zFile))
var rc int32 = 0
if zCopy == uintptr(0) {
rc = 7
} else {
- var nCopy int32 = int32(crt.Xstrlen(tls, zCopy))
+ var nCopy int32 = int32(libc.Xstrlen(tls, zCopy))
var i int32 = 1
for rc == 0 {
- // var sStat struct {Fst_dev uint64;Fst_ino uint64;Fst_nlink uint64;Fst_mode uint32;Fst_uid uint32;Fst_gid uint32;F__pad0 int32;Fst_rdev uint64;Fst_size int64;Fst_blksize int64;Fst_blocks int64;Fst_atim timespec;Fst_mtim timespec;Fst_ctim timespec;F__glibc_reserved [3]int64;} at bp+8, 144
+ // var sStat stat at bp+8, 144
var rc2 int32
@@ -16741,27 +20322,11 @@ func makeDirectory(tls *crt.TLS, zFile uintptr) int32 { /* fileio.c:303:12: */
rc2 = fileStat(tls, zCopy, bp+8 /* &sStat */)
if rc2 != 0 {
- if crt.Xmkdir(tls, zCopy, uint32(0777)) != 0 {
+ if libc.Xmkdir(tls, zCopy, uint32(0777)) != 0 {
rc = 1
}
} else {
- if !((((*struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
- })(unsafe.Pointer(bp + 8 /* &sStat */)).Fst_mode) & uint32(0170000)) == (uint32(0040000))) {
+ if !((((*stat)(unsafe.Pointer(bp + 8 /* &sStat */)).Fst_mode) & uint32(0170000)) == (uint32(0040000))) {
rc = 1
}
}
@@ -16777,60 +20342,28 @@ func makeDirectory(tls *crt.TLS, zFile uintptr) int32 { /* fileio.c:303:12: */
// This function does the work for the writefile() UDF. Refer to
// header comments at the top of this file for details.
-func writeFile(tls *crt.TLS, pCtx uintptr, zFile uintptr, pData uintptr, mode mode_t, mtime sqlite3_int64) int32 { /* fileio.c:343:12: */
+func writeFile(tls *libc.TLS, pCtx uintptr, zFile uintptr, pData uintptr, mode mode_t, mtime sqlite3_int64) int32 { /* fileio.c:343:12: */
bp := tls.Alloc(176)
defer tls.Free(176)
if ((mode) & mode_t(0170000)) == (mode_t(0120000)) {
var zTo uintptr = sqlite3.Xsqlite3_value_text(tls, pData)
- if crt.Xsymlink(tls, zTo, zFile) < 0 {
+ if libc.Xsymlink(tls, zTo, zFile) < 0 {
return 1
}
} else {
if ((mode) & mode_t(0170000)) == (mode_t(0040000)) {
- if crt.Xmkdir(tls, zFile, mode) != 0 {
+ if libc.Xmkdir(tls, zFile, mode) != 0 {
// The mkdir() call to create the directory failed. This might not
// be an error though - if there is already a directory at the same
// path and either the permissions already match or can be changed
// to do so using chmod(), it is not an error.
- // var sStat struct {Fst_dev uint64;Fst_ino uint64;Fst_nlink uint64;Fst_mode uint32;Fst_uid uint32;Fst_gid uint32;F__pad0 int32;Fst_rdev uint64;Fst_size int64;Fst_blksize int64;Fst_blocks int64;Fst_atim timespec;Fst_mtim timespec;Fst_ctim timespec;F__glibc_reserved [3]int64;} at bp, 144
+ // var sStat stat at bp, 144
- if ((((*(*int32)(unsafe.Pointer(crt.X__errno_location(tls)))) != 17) ||
+ if ((((*(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))) != 17) ||
(0 != fileStat(tls, zFile, bp /* &sStat */))) ||
- !((((*struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
- })(unsafe.Pointer(bp /* &sStat */)).Fst_mode) & uint32(0170000)) == (uint32(0040000)))) ||
- ((((*struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
- })(unsafe.Pointer(bp /* &sStat */)).Fst_mode & uint32(0777)) != (mode & mode_t(0777))) && (0 != crt.Xchmod(tls, zFile, (mode&mode_t(0777))))) {
+ !((((*stat)(unsafe.Pointer(bp /* &sStat */)).Fst_mode) & uint32(0170000)) == (uint32(0040000)))) ||
+ ((((*stat)(unsafe.Pointer(bp /* &sStat */)).Fst_mode & uint32(0777)) != (mode & mode_t(0777))) && (0 != libc.Xchmod(tls, zFile, (mode&mode_t(0777))))) {
return 1
}
}
@@ -16838,20 +20371,20 @@ func writeFile(tls *crt.TLS, pCtx uintptr, zFile uintptr, pData uintptr, mode mo
var nWrite sqlite3_int64 = int64(0)
var z uintptr
var rc int32 = 0
- var out uintptr = crt.Xfopen(tls, zFile, ts+3456 /* "wb" */)
+ var out uintptr = libc.Xfopen(tls, zFile, ts+4673 /* "wb" */)
if out == uintptr(0) {
return 1
}
z = sqlite3.Xsqlite3_value_blob(tls, pData)
if z != 0 {
- var n sqlite3_int64 = sqlite3_int64(crt.Xfwrite(tls, z, uint64(1), uint64(sqlite3.Xsqlite3_value_bytes(tls, pData)), out))
+ var n sqlite3_int64 = sqlite3_int64(libc.Xfwrite(tls, z, uint64(1), uint64(sqlite3.Xsqlite3_value_bytes(tls, pData)), out))
nWrite = sqlite3_int64(sqlite3.Xsqlite3_value_bytes(tls, pData))
if nWrite != n {
rc = 1
}
}
- crt.Xfclose(tls, out)
- if ((rc == 0) && (mode != 0)) && (crt.Xchmod(tls, zFile, (mode&mode_t(0777))) != 0) {
+ libc.Xfclose(tls, out)
+ if ((rc == 0) && (mode != 0)) && (libc.Xchmod(tls, zFile, (mode&mode_t(0777))) != 0) {
rc = 1
}
if rc != 0 {
@@ -16865,10 +20398,10 @@ func writeFile(tls *crt.TLS, pCtx uintptr, zFile uintptr, pData uintptr, mode mo
// Legacy unix
// var times [2]timeval at bp+144, 32
- (*timeval)(unsafe.Pointer(bp + 144 /* &times */ + uintptr(0)*16)).Ftv_usec = crt.AssignPtrInt64(bp+144 /* &times */ +uintptr(1)*16+8 /* &.tv_usec */, int64(0))
- (*timeval)(unsafe.Pointer(bp + 144 /* &times */ + uintptr(0)*16)).Ftv_sec = crt.Xtime(tls, uintptr(0))
+ (*timeval)(unsafe.Pointer(bp + 144 /* &times */ + uintptr(0)*16)).Ftv_usec = libc.AssignPtrInt64(bp+144 /* &times */ +uintptr(1)*16+8 /* &.tv_usec */, int64(0))
+ (*timeval)(unsafe.Pointer(bp + 144 /* &times */ + uintptr(0)*16)).Ftv_sec = libc.Xtime(tls, uintptr(0))
(*timeval)(unsafe.Pointer(bp + 144 /* &times */ + uintptr(1)*16)).Ftv_sec = int64(mtime)
- if crt.Xutimes(tls, zFile, bp+144 /* &times[0] */) != 0 {
+ if libc.Xutimes(tls, zFile, bp+144 /* &times[0] */) != 0 {
return 1
}
}
@@ -16878,7 +20411,7 @@ func writeFile(tls *crt.TLS, pCtx uintptr, zFile uintptr, pData uintptr, mode mo
// Implementation of the "writefile(W,X[,Y[,Z]]])" SQL function.
// Refer to header comments at the top of this file for details.
-func writefileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* fileio.c:457:13: */
+func writefileFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* fileio.c:457:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -16889,7 +20422,7 @@ func writefileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
if (argc < 2) || (argc > 4) {
sqlite3.Xsqlite3_result_error(tls, context,
- ts+3459 /* "wrong number of ..." */, -1)
+ ts+4676 /* "wrong number of ..." */, -1)
return
}
@@ -16905,7 +20438,7 @@ func writefileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
}
res = writeFile(tls, context, zFile, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), mode, mtime)
- if (res == 1) && ((*(*int32)(unsafe.Pointer(crt.X__errno_location(tls)))) == 2) {
+ if (res == 1) && ((*(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))) == 2) {
if makeDirectory(tls, zFile) == 0 {
res = writeFile(tls, context, zFile, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), mode, mtime)
}
@@ -16913,11 +20446,11 @@ func writefileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
if (argc > 2) && (res != 0) {
if ((mode) & mode_t(0170000)) == (mode_t(0120000)) {
- ctxErrorMsg(tls, context, ts+3509 /* "failed to create..." */, crt.VaList(bp, zFile))
+ ctxErrorMsg(tls, context, ts+4726 /* "failed to create..." */, libc.VaList(bp, zFile))
} else if ((mode) & mode_t(0170000)) == (mode_t(0040000)) {
- ctxErrorMsg(tls, context, ts+3538 /* "failed to create..." */, crt.VaList(bp+8, zFile))
+ ctxErrorMsg(tls, context, ts+4755 /* "failed to create..." */, libc.VaList(bp+8, zFile))
} else {
- ctxErrorMsg(tls, context, ts+3569 /* "failed to write ..." */, crt.VaList(bp+16, zFile))
+ ctxErrorMsg(tls, context, ts+4786 /* "failed to write ..." */, libc.VaList(bp+16, zFile))
}
}
}
@@ -16926,7 +20459,7 @@ func writefileFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
//
// Given a numberic st_mode from stat(), convert it into a human-readable
// text string in the style of "ls -l".
-func lsModeFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* fileio.c:507:13: */
+func lsModeFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* fileio.c:507:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -16967,7 +20500,7 @@ func lsModeFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* fi
}()
}
*(*int8)(unsafe.Pointer(bp /* &z[0] */ + uintptr(10))) = int8(0)
- sqlite3.Xsqlite3_result_text(tls, context, bp /* &z[0] */, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, bp /* &z[0] */, -1, libc.UintptrFromInt32(-1))
}
// Cursor type for recursively iterating through a directory structure.
@@ -17022,20 +20555,20 @@ type fsdir_tab1 = struct{ Fbase sqlite3_vtab }
type fsdir_tab = fsdir_tab1 /* fileio.c:564:26 */
// Construct a new fsdir virtual table object.
-func fsdirConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* fileio.c:572:12: */
+func fsdirConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* fileio.c:572:12: */
var pNew uintptr = uintptr(0)
var rc int32
_ = pAux
_ = argc
_ = argv
_ = pzErr
- rc = sqlite3.Xsqlite3_declare_vtab(tls, db, ts+3594 /* "CREATE TABLE x(n..." */)
+ rc = sqlite3.Xsqlite3_declare_vtab(tls, db, ts+4811 /* "CREATE TABLE x(n..." */)
if rc == 0 {
pNew = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(fsdir_tab{})))
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(fsdir_tab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(fsdir_tab{})))
sqlite3.Xsqlite3_vtab_config(tls, db, 3, 0)
}
*(*uintptr)(unsafe.Pointer(ppVtab)) = pNew
@@ -17043,20 +20576,20 @@ func fsdirConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
}
// This method is the destructor for fsdir vtab objects.
-func fsdirDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* fileio.c:599:12: */
+func fsdirDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* fileio.c:599:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Constructor for a new fsdir_cursor object.
-func fsdirOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* fileio.c:607:12: */
+func fsdirOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* fileio.c:607:12: */
var pCur uintptr
_ = p
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(fsdir_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(fsdir_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(fsdir_cursor{})))
(*fsdir_cursor)(unsafe.Pointer(pCur)).FiLvl = -1
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
@@ -17064,12 +20597,12 @@ func fsdirOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* fileio.c:60
// Reset a cursor back to the state it was in when first returned
// by fsdirOpen().
-func fsdirResetCursor(tls *crt.TLS, pCur uintptr) { /* fileio.c:622:13: */
+func fsdirResetCursor(tls *libc.TLS, pCur uintptr) { /* fileio.c:622:13: */
var i int32
for i = 0; i <= (*fsdir_cursor)(unsafe.Pointer(pCur)).FiLvl; i++ {
var pLvl uintptr = ((*fsdir_cursor)(unsafe.Pointer(pCur)).FaLvl + uintptr(i)*16)
if (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir != 0 {
- crt.Xclosedir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir)
+ libc.Xclosedir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir)
}
sqlite3.Xsqlite3_free(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir)
}
@@ -17085,7 +20618,7 @@ func fsdirResetCursor(tls *crt.TLS, pCur uintptr) { /* fileio.c:622:13: */
}
// Destructor for an fsdir_cursor.
-func fsdirClose(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:643:12: */
+func fsdirClose(tls *libc.TLS, cur uintptr) int32 { /* fileio.c:643:12: */
var pCur uintptr = cur
fsdirResetCursor(tls, pCur)
@@ -17095,7 +20628,7 @@ func fsdirClose(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:643:12: */
// Set the error message for the virtual table associated with cursor
// pCur to the results of vprintf(zFmt, ...).
-func fsdirSetErrmsg(tls *crt.TLS, pCur uintptr, zFmt uintptr, va uintptr) { /* fileio.c:655:13: */
+func fsdirSetErrmsg(tls *libc.TLS, pCur uintptr, zFmt uintptr, va uintptr) { /* fileio.c:655:13: */
var ap va_list
_ = ap
ap = va
@@ -17104,7 +20637,7 @@ func fsdirSetErrmsg(tls *crt.TLS, pCur uintptr, zFmt uintptr, va uintptr) { /* f
}
// Advance an fsdir_cursor to its next row of output.
-func fsdirNext(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:666:12: */
+func fsdirNext(tls *libc.TLS, cur uintptr) int32 { /* fileio.c:666:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -17123,7 +20656,7 @@ func fsdirNext(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:666:12: */
if aNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, (aNew + uintptr((*fsdir_cursor)(unsafe.Pointer(pCur)).FnLvl)*16), 0, (uint64(unsafe.Sizeof(FsdirLevel{})) * (uint64(nNew - (*fsdir_cursor)(unsafe.Pointer(pCur)).FnLvl))))
+ libc.Xmemset(tls, (aNew + uintptr((*fsdir_cursor)(unsafe.Pointer(pCur)).FnLvl)*16), 0, (uint64(unsafe.Sizeof(FsdirLevel{})) * (uint64(nNew - (*fsdir_cursor)(unsafe.Pointer(pCur)).FnLvl))))
(*fsdir_cursor)(unsafe.Pointer(pCur)).FaLvl = aNew
(*fsdir_cursor)(unsafe.Pointer(pCur)).FnLvl = nNew
}
@@ -17132,16 +20665,16 @@ func fsdirNext(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:666:12: */
(*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir = (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath
(*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = uintptr(0)
- (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir = crt.Xopendir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir)
+ (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir = libc.Xopendir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir)
if (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir == uintptr(0) {
- fsdirSetErrmsg(tls, pCur, ts+3654 /* "cannot read dire..." */, crt.VaList(bp, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath))
+ fsdirSetErrmsg(tls, pCur, ts+4871 /* "cannot read dire..." */, libc.VaList(bp, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath))
return 1
}
}
for (*fsdir_cursor)(unsafe.Pointer(pCur)).FiLvl >= 0 {
var pLvl uintptr = ((*fsdir_cursor)(unsafe.Pointer(pCur)).FaLvl + uintptr((*fsdir_cursor)(unsafe.Pointer(pCur)).FiLvl)*16)
- var pEntry uintptr = crt.Xreaddir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir)
+ var pEntry uintptr = libc.Xreaddir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir)
if pEntry != 0 {
if int32(*(*int8)(unsafe.Pointer((pEntry + 19 /* &.d_name */) + uintptr(0)))) == '.' {
if (int32(*(*int8)(unsafe.Pointer((pEntry + 19 /* &.d_name */) + uintptr(1)))) == '.') && (int32(*(*int8)(unsafe.Pointer((pEntry + 19 /* &.d_name */) + uintptr(2)))) == 0) {
@@ -17152,17 +20685,17 @@ func fsdirNext(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:666:12: */
}
}
sqlite3.Xsqlite3_free(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath)
- (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = sqlite3.Xsqlite3_mprintf(tls, ts+3680 /* "%s/%s" */, crt.VaList(bp+8, (*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir, pEntry+19 /* &.d_name */))
+ (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = sqlite3.Xsqlite3_mprintf(tls, ts+4897 /* "%s/%s" */, libc.VaList(bp+8, (*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir, pEntry+19 /* &.d_name */))
if (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath == uintptr(0) {
return 7
}
if fileLinkStat(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath, (pCur+40 /* &.sStat */)) != 0 {
- fsdirSetErrmsg(tls, pCur, ts+3686 /* "cannot stat file..." */, crt.VaList(bp+24, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath))
+ fsdirSetErrmsg(tls, pCur, ts+4903 /* "cannot stat file..." */, libc.VaList(bp+24, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath))
return 1
}
return 0
}
- crt.Xclosedir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir)
+ libc.Xclosedir(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir)
sqlite3.Xsqlite3_free(tls, (*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir)
(*FsdirLevel)(unsafe.Pointer(pLvl)).FpDir = uintptr(0)
(*FsdirLevel)(unsafe.Pointer(pLvl)).FzDir = uintptr(0)
@@ -17177,7 +20710,7 @@ func fsdirNext(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:666:12: */
// Return values of columns for the row at which the series_cursor
// is currently pointing.
-func fsdirColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fileio.c:730:12: */
+func fsdirColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fileio.c:730:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -17185,7 +20718,7 @@ func fsdirColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fil
switch i {
case 0:
{
- sqlite3.Xsqlite3_result_text(tls, ctx, ((*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath + uintptr((*fsdir_cursor)(unsafe.Pointer(pCur)).FnBase)), -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, ((*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath + uintptr((*fsdir_cursor)(unsafe.Pointer(pCur)).FnBase)), -1, libc.UintptrFromInt32(-1))
break
}
@@ -17210,7 +20743,7 @@ func fsdirColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fil
var n int32
for 1 != 0 {
- n = int32(crt.Xreadlink(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath, aBuf, uint64(nBuf)))
+ n = int32(libc.Xreadlink(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath, aBuf, uint64(nBuf)))
if sqlite3_int64(n) < nBuf {
break
}
@@ -17225,7 +20758,7 @@ func fsdirColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fil
}
}
- sqlite3.Xsqlite3_result_text(tls, ctx, aBuf, n, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, aBuf, n, libc.UintptrFromInt32(-1))
if aBuf != bp /* aStatic */ {
sqlite3.Xsqlite3_free(tls, aBuf)
}
@@ -17249,7 +20782,7 @@ func fsdirColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fil
// Return the rowid for the current row. In this implementation, the
// first row returned is assigned rowid value 1, and each subsequent
// row a value 1 more than that of the previous.
-func fsdirRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* fileio.c:795:12: */
+func fsdirRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* fileio.c:795:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*fsdir_cursor)(unsafe.Pointer(pCur)).FiRowid
return 0
@@ -17257,16 +20790,16 @@ func fsdirRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* fileio.c:7
// Return TRUE if the cursor has been moved off of the last
// row of output.
-func fsdirEof(tls *crt.TLS, cur uintptr) int32 { /* fileio.c:805:12: */
+func fsdirEof(tls *libc.TLS, cur uintptr) int32 { /* fileio.c:805:12: */
var pCur uintptr = cur
- return (crt.Bool32((*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath == uintptr(0)))
+ return (libc.Bool32((*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath == uintptr(0)))
}
// xFilter callback.
//
// idxNum==1 PATH parameter only
// idxNum==2 Both PATH and DIR supplied
-func fsdirFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* fileio.c:816:12: */
+func fsdirFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* fileio.c:816:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -17276,30 +20809,30 @@ func fsdirFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc i
fsdirResetCursor(tls, pCur)
if idxNum == 0 {
- fsdirSetErrmsg(tls, pCur, ts+3707 /* "table function f..." */, 0)
+ fsdirSetErrmsg(tls, pCur, ts+4924 /* "table function f..." */, 0)
return 1
}
zDir = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
if zDir == uintptr(0) {
- fsdirSetErrmsg(tls, pCur, ts+3749 /* "table function f..." */, 0)
+ fsdirSetErrmsg(tls, pCur, ts+4966 /* "table function f..." */, 0)
return 1
}
if argc == 2 {
(*fsdir_cursor)(unsafe.Pointer(pCur)).FzBase = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
}
if (*fsdir_cursor)(unsafe.Pointer(pCur)).FzBase != 0 {
- (*fsdir_cursor)(unsafe.Pointer(pCur)).FnBase = (int32(crt.Xstrlen(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzBase)) + 1)
- (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = sqlite3.Xsqlite3_mprintf(tls, ts+3680 /* "%s/%s" */, crt.VaList(bp, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzBase, zDir))
+ (*fsdir_cursor)(unsafe.Pointer(pCur)).FnBase = (int32(libc.Xstrlen(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzBase)) + 1)
+ (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = sqlite3.Xsqlite3_mprintf(tls, ts+4897 /* "%s/%s" */, libc.VaList(bp, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzBase, zDir))
} else {
- (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+16, zDir))
+ (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+16, zDir))
}
if (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath == uintptr(0) {
return 7
}
if fileLinkStat(tls, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath, (pCur+40 /* &.sStat */)) != 0 {
- fsdirSetErrmsg(tls, pCur, ts+3686 /* "cannot stat file..." */, crt.VaList(bp+24, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath))
+ fsdirSetErrmsg(tls, pCur, ts+4903 /* "cannot stat file..." */, libc.VaList(bp+24, (*fsdir_cursor)(unsafe.Pointer(pCur)).FzPath))
return 1
}
@@ -17318,7 +20851,7 @@ func fsdirFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc i
//
// (1) The path value is supplied by argv[0]
// (2) Path is in argv[0] and dir is in argv[1]
-func fsdirBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* fileio.c:872:12: */
+func fsdirBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* fileio.c:872:12: */
var i int32 // Loop over constraints
var idxPath int32 = -1 // Index in pIdxInfo->aConstraint of PATH=
var idxDir int32 = -1 // Index in pIdxInfo->aConstraint of DIR=
@@ -17396,9 +20929,9 @@ __3:
}
// Register the "fsdir" virtual table.
-func fsdirRegister(tls *crt.TLS, db uintptr) int32 { /* fileio.c:938:12: */
+func fsdirRegister(tls *libc.TLS, db uintptr) int32 { /* fileio.c:938:12: */
- var rc int32 = sqlite3.Xsqlite3_create_module(tls, db, ts+3799 /* "fsdir" */, uintptr(unsafe.Pointer(&fsdirModule1)), uintptr(0))
+ var rc int32 = sqlite3.Xsqlite3_create_module(tls, db, ts+5016 /* "fsdir" */, uintptr(unsafe.Pointer(&fsdirModule1)), uintptr(0))
return rc
}
@@ -17428,27 +20961,27 @@ uintptr(0), FxShadowName:// xRollbackTo
uintptr(0), // xShadowName
} /* fileio.c:939:25 */
-func sqlite3_fileio_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* fileio.c:976:5: */
+func sqlite3_fileio_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* fileio.c:976:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Unused parameter
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3805 /* "readfile" */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5022 /* "readfile" */, 1,
(1 | 0x000080000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{readfileFunc})), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3814 /* "writefile" */, -1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5031 /* "writefile" */, -1,
(1 | 0x000080000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{writefileFunc})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3824 /* "lsmode" */, 1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5041 /* "lsmode" */, 1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{lsModeFunc})), uintptr(0), uintptr(0))
}
if rc == 0 {
@@ -17531,7 +21064,7 @@ type fuzzer_ruleid = int32 /* fuzzer.c:179:13 */
// The two input rule lists are both sorted in order of increasing
// cost. Merge them together into a single list, sorted by cost, and
// return a pointer to the head of that list.
-func fuzzerMergeRules(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* fuzzer.c:261:20: */
+func fuzzerMergeRules(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* fuzzer.c:261:20: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -17566,7 +21099,7 @@ func fuzzerMergeRules(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* fuzzer.
// If successful, *ppRule is set to point to the new object and SQLITE_OK
// is returned. Otherwise, *ppRule is zeroed, *pzErr may be set to point
// to an error message and an SQLite error code returned.
-func fuzzerLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, pzErr uintptr) int32 { /* fuzzer.c:294:12: */
+func fuzzerLoadOneRule(tls *libc.TLS, p uintptr, pStmt uintptr, ppRule uintptr, pzErr uintptr) int32 { /* fuzzer.c:294:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -17586,26 +21119,26 @@ func fuzzerLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
if zTo == uintptr(0) {
zTo = ts + 488 /* "" */
}
- nFrom = int32(crt.Xstrlen(tls, zFrom))
- nTo = int32(crt.Xstrlen(tls, zTo))
+ nFrom = int32(libc.Xstrlen(tls, zFrom))
+ nTo = int32(libc.Xstrlen(tls, zTo))
// Silently ignore null transformations
- if crt.Xstrcmp(tls, zFrom, zTo) == 0 {
+ if libc.Xstrcmp(tls, zFrom, zTo) == 0 {
*(*uintptr)(unsafe.Pointer(ppRule)) = uintptr(0)
return 0
}
if (nCost <= 0) || (nCost > 1000) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+1962, /* "%s: cost must be..." */
- crt.VaList(bp, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, 1000))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3118, /* "%s: cost must be..." */
+ libc.VaList(bp, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, 1000))
rc = 1
} else if (nFrom > 50) || (nTo > 50) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+1996, /* "%s: maximum stri..." */
- crt.VaList(bp+16, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, 50))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3152, /* "%s: maximum stri..." */
+ libc.VaList(bp+16, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, 50))
rc = 1
} else if (iRuleset < int64(0)) || (iRuleset > int64(2147483647)) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3831, /* "%s: ruleset must..." */
- crt.VaList(bp+32, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, 2147483647))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+5048, /* "%s: ruleset must..." */
+ libc.VaList(bp+32, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, 2147483647))
rc = 1
} else {
@@ -17613,12 +21146,12 @@ func fuzzerLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
if pRule == uintptr(0) {
rc = 7
} else {
- crt.Xmemset(tls, pRule, 0, uint64(unsafe.Sizeof(fuzzer_rule{})))
+ libc.Xmemset(tls, pRule, 0, uint64(unsafe.Sizeof(fuzzer_rule{})))
(*fuzzer_rule)(unsafe.Pointer(pRule)).FzFrom = pRule + 28 /* &.zTo */
*(*uintptr)(unsafe.Pointer(pRule + 8 /* &.zFrom */)) += (uintptr(nTo + 1))
(*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom = fuzzer_len(nFrom)
- crt.Xmemcpy(tls, (*fuzzer_rule)(unsafe.Pointer(pRule)).FzFrom, zFrom, (uint64(nFrom + 1)))
- crt.Xmemcpy(tls, pRule+28 /* &.zTo */, zTo, (uint64(nTo + 1)))
+ libc.Xmemcpy(tls, (*fuzzer_rule)(unsafe.Pointer(pRule)).FzFrom, zFrom, (uint64(nFrom + 1)))
+ libc.Xmemcpy(tls, pRule+28 /* &.zTo */, zTo, (uint64(nTo + 1)))
(*fuzzer_rule)(unsafe.Pointer(pRule)).FnTo = fuzzer_len(nTo)
(*fuzzer_rule)(unsafe.Pointer(pRule)).FrCost = nCost
(*fuzzer_rule)(unsafe.Pointer(pRule)).FiRuleset = int32(iRuleset)
@@ -17630,7 +21163,7 @@ func fuzzerLoadOneRule(tls *crt.TLS, p uintptr, pStmt uintptr, ppRule uintptr, p
}
// Load the content of the fuzzer data table into memory.
-func fuzzerLoadRules(tls *crt.TLS, db uintptr, p uintptr, zDb uintptr, zData uintptr, pzErr uintptr) int32 { /* fuzzer.c:363:12: */
+func fuzzerLoadRules(tls *libc.TLS, db uintptr, p uintptr, zDb uintptr, zData uintptr, pzErr uintptr) int32 { /* fuzzer.c:363:12: */
bp := tls.Alloc(192)
defer tls.Free(192)
@@ -17638,7 +21171,7 @@ func fuzzerLoadRules(tls *crt.TLS, db uintptr, p uintptr, zDb uintptr, zData uin
var zSql uintptr // SELECT used to read from rules table
var pHead uintptr = uintptr(0)
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+2065 /* "SELECT * FROM %Q..." */, crt.VaList(bp, zDb, zData))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+3221 /* "SELECT * FROM %Q..." */, libc.VaList(bp, zDb, zData))
if zSql == uintptr(0) {
rc = 7
} else {
@@ -17646,10 +21179,10 @@ func fuzzerLoadRules(tls *crt.TLS, db uintptr, p uintptr, zDb uintptr, zData uin
*(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)) = uintptr(0)
rc = sqlite3.Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+56 /* &pStmt */, uintptr(0))
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2085 /* "%s: %s" */, crt.VaList(bp+16, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, sqlite3.Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3241 /* "%s: %s" */, libc.VaList(bp+16, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, sqlite3.Xsqlite3_errmsg(tls, db)))
} else if sqlite3.Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */))) != 4 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+2092, /* "%s: %s has %d co..." */
- crt.VaList(bp+32, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, zData, sqlite3.Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+3248, /* "%s: %s has %d co..." */
+ libc.VaList(bp+32, (*fuzzer_vtab)(unsafe.Pointer(p)).FzClassName, zData, sqlite3.Xsqlite3_column_count(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))))
rc = 1
} else {
for (rc == 0) && (100 == sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */)))) {
@@ -17679,7 +21212,7 @@ func fuzzerLoadRules(tls *crt.TLS, db uintptr, p uintptr, zDb uintptr, zData uin
for i = uint32(0); uint64(i) < (uint64(unsafe.Sizeof([15]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0)))); i++ {
*(*uintptr)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(i)*8)) = uintptr(0)
}
- for (crt.AssignUintptr(&pX, pHead)) != uintptr(0) {
+ for (libc.AssignUintptr(&pX, pHead)) != uintptr(0) {
pHead = (*fuzzer_rule)(unsafe.Pointer(pX)).FpNext
(*fuzzer_rule)(unsafe.Pointer(pX)).FpNext = uintptr(0)
for i = uint32(0); (*(*uintptr)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(i)*8)) != 0) && (uint64(i) < ((uint64(unsafe.Sizeof([15]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0)))) - uint64(1))); i++ {
@@ -17715,17 +21248,17 @@ func fuzzerLoadRules(tls *crt.TLS, db uintptr, p uintptr, zDb uintptr, zData uin
// 'xyz' becomes xyz
// [pqr] becomes pqr
// `mno` becomes mno
-func fuzzerDequote(tls *crt.TLS, zIn uintptr) uintptr { /* fuzzer.c:449:13: */
+func fuzzerDequote(tls *libc.TLS, zIn uintptr) uintptr { /* fuzzer.c:449:13: */
var nIn sqlite3_int64 // Size of input string, in bytes
var zOut uintptr // Output (dequoted) string
- nIn = sqlite3_int64(crt.Xstrlen(tls, zIn))
+ nIn = sqlite3_int64(libc.Xstrlen(tls, zIn))
zOut = sqlite3.Xsqlite3_malloc64(tls, (uint64(nIn + int64(1))))
if zOut != 0 {
var q int8 = *(*int8)(unsafe.Pointer(zIn + uintptr(0))) // Quote character (if any )
if (((int32(q) != '[') && (int32(q) != '\'')) && (int32(q) != '"')) && (int32(q) != '`') {
- crt.Xmemcpy(tls, zOut, zIn, (size_t(nIn + int64(1))))
+ libc.Xmemcpy(tls, zOut, zIn, (size_t(nIn + int64(1))))
} else {
var iOut int32 = 0 // Index of next byte to write to output
var iIn int32 // Index of next byte to read from input
@@ -17737,7 +21270,7 @@ func fuzzerDequote(tls *crt.TLS, zIn uintptr) uintptr { /* fuzzer.c:449:13: */
if int32(*(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))) == int32(q) {
iIn++
}
- *(*int8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
+ *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(zIn + uintptr(iIn)))
}
}
}
@@ -17745,7 +21278,7 @@ func fuzzerDequote(tls *crt.TLS, zIn uintptr) uintptr { /* fuzzer.c:449:13: */
}
// xDisconnect/xDestroy method for the fuzzer module.
-func fuzzerDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* fuzzer.c:478:12: */
+func fuzzerDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* fuzzer.c:478:12: */
var p uintptr = pVtab
for (*fuzzer_vtab)(unsafe.Pointer(p)).FpRule != 0 {
@@ -17763,7 +21296,7 @@ func fuzzerDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* fuzzer.c:478:12: *
// argv[1] -> database name
// argv[2] -> table name
// argv[3] -> fuzzer rule table name
-func fuzzerConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* fuzzer.c:498:12: */
+func fuzzerConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* fuzzer.c:498:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -17774,21 +21307,21 @@ func fuzzerConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
if argc != 4 {
*(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls,
- ts+3868 /* "%s: wrong number..." */, crt.VaList(bp, zModule))
+ ts+5085 /* "%s: wrong number..." */, libc.VaList(bp, zModule))
rc = 1
} else {
var nModule sqlite3_int64 // Length of zModule, in bytes
- nModule = sqlite3_int64(crt.Xstrlen(tls, zModule))
+ nModule = sqlite3_int64(libc.Xstrlen(tls, zModule))
pNew = sqlite3.Xsqlite3_malloc64(tls, ((uint64(unsafe.Sizeof(fuzzer_vtab{})) + uint64(nModule)) + uint64(1)))
if pNew == uintptr(0) {
rc = 7
} else {
var zTab uintptr // Dequoted name of fuzzer data table
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(fuzzer_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(fuzzer_vtab{})))
(*fuzzer_vtab)(unsafe.Pointer(pNew)).FzClassName = (pNew + uintptr(1)*48)
- crt.Xmemcpy(tls, (*fuzzer_vtab)(unsafe.Pointer(pNew)).FzClassName, zModule, (size_t(nModule + int64(1))))
+ libc.Xmemcpy(tls, (*fuzzer_vtab)(unsafe.Pointer(pNew)).FzClassName, zModule, (size_t(nModule + int64(1))))
zTab = fuzzerDequote(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)))
if zTab == uintptr(0) {
@@ -17799,7 +21332,7 @@ func fuzzerConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_declare_vtab(tls, db, ts+3919 /* "CREATE TABLE x(w..." */)
+ rc = sqlite3.Xsqlite3_declare_vtab(tls, db, ts+5136 /* "CREATE TABLE x(w..." */)
}
if rc != 0 {
fuzzerDisconnect(tls, pNew)
@@ -17815,14 +21348,14 @@ func fuzzerConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
}
// Open a new fuzzer cursor.
-func fuzzerOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* fuzzer.c:556:12: */
+func fuzzerOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* fuzzer.c:556:12: */
var p uintptr = pVTab
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(fuzzer_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(fuzzer_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(fuzzer_cursor{})))
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FpVtab = p
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
(*fuzzer_vtab)(unsafe.Pointer(p)).FnCursor++
@@ -17830,7 +21363,7 @@ func fuzzerOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* fuzzer
}
// Free all stems in a list.
-func fuzzerClearStemList(tls *crt.TLS, pStem uintptr) { /* fuzzer.c:571:13: */
+func fuzzerClearStemList(tls *libc.TLS, pStem uintptr) { /* fuzzer.c:571:13: */
for pStem != 0 {
var pNext uintptr = (*fuzzer_stem)(unsafe.Pointer(pStem)).FpNext
sqlite3.Xsqlite3_free(tls, pStem)
@@ -17840,7 +21373,7 @@ func fuzzerClearStemList(tls *crt.TLS, pStem uintptr) { /* fuzzer.c:571:13: */
// Free up all the memory allocated by a cursor. Set it rLimit to 0
// to indicate that it is at EOF.
-func fuzzerClearCursor(tls *crt.TLS, pCur uintptr, clearHash int32) { /* fuzzer.c:583:13: */
+func fuzzerClearCursor(tls *libc.TLS, pCur uintptr, clearHash int32) { /* fuzzer.c:583:13: */
var i int32
fuzzerClearStemList(tls, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem)
fuzzerClearStemList(tls, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpDone)
@@ -17852,14 +21385,14 @@ func fuzzerClearCursor(tls *crt.TLS, pCur uintptr, clearHash int32) { /* fuzzer.
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FmxQueue = 0
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem = uintptr(0)
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FpDone = uintptr(0)
- crt.Xmemset(tls, pCur+48 /* &.aQueue */, 0, uint64(unsafe.Sizeof([20]uintptr{})))
- crt.Xmemset(tls, pCur+272 /* &.apHash */, 0, uint64(unsafe.Sizeof([4001]uintptr{})))
+ libc.Xmemset(tls, pCur+48 /* &.aQueue */, 0, uint64(unsafe.Sizeof([20]uintptr{})))
+ libc.Xmemset(tls, pCur+272 /* &.apHash */, 0, uint64(unsafe.Sizeof([4001]uintptr{})))
}
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FnStem = 0
}
// Close a fuzzer cursor.
-func fuzzerClose(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:602:12: */
+func fuzzerClose(tls *libc.TLS, cur uintptr) int32 { /* fuzzer.c:602:12: */
var pCur uintptr = cur
fuzzerClearCursor(tls, pCur, 0)
sqlite3.Xsqlite3_free(tls, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FzBuf)
@@ -17869,7 +21402,7 @@ func fuzzerClose(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:602:12: */
}
// Compute the current output term for a fuzzer_stem.
-func fuzzerRender(tls *crt.TLS, pStem uintptr, pzBuf uintptr, pnBuf uintptr) int32 { /* fuzzer.c:614:12: */
+func fuzzerRender(tls *libc.TLS, pStem uintptr, pzBuf uintptr, pnBuf uintptr) int32 { /* fuzzer.c:614:12: */
var pRule uintptr = (*fuzzer_stem)(unsafe.Pointer(pStem)).FpRule
var n int32 // Size of output term without nul-term
var z uintptr // Buffer to assemble output term in
@@ -17885,11 +21418,11 @@ func fuzzerRender(tls *crt.TLS, pStem uintptr, pzBuf uintptr, pnBuf uintptr) int
n = int32((*fuzzer_stem)(unsafe.Pointer(pStem)).Fn)
z = *(*uintptr)(unsafe.Pointer(pzBuf))
if n < 0 {
- crt.Xmemcpy(tls, z, (*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis, (uint64(int32((*fuzzer_stem)(unsafe.Pointer(pStem)).FnBasis) + 1)))
+ libc.Xmemcpy(tls, z, (*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis, (uint64(int32((*fuzzer_stem)(unsafe.Pointer(pStem)).FnBasis) + 1)))
} else {
- crt.Xmemcpy(tls, z, (*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis, uint64(n))
- crt.Xmemcpy(tls, (z + uintptr(n)), pRule+28 /* &.zTo */, uint64((*fuzzer_rule)(unsafe.Pointer(pRule)).FnTo))
- crt.Xmemcpy(tls, (z + uintptr((n + int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnTo)))), ((*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis + uintptr((n + int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)))),
+ libc.Xmemcpy(tls, z, (*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis, uint64(n))
+ libc.Xmemcpy(tls, (z + uintptr(n)), pRule+28 /* &.zTo */, uint64((*fuzzer_rule)(unsafe.Pointer(pRule)).FnTo))
+ libc.Xmemcpy(tls, (z + uintptr((n + int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnTo)))), ((*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis + uintptr((n + int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)))),
(uint64(((int32((*fuzzer_stem)(unsafe.Pointer(pStem)).FnBasis) - n) - int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)) + 1)))
}
@@ -17897,23 +21430,23 @@ func fuzzerRender(tls *crt.TLS, pStem uintptr, pzBuf uintptr, pnBuf uintptr) int
}
// Compute a hash on zBasis.
-func fuzzerHash(tls *crt.TLS, z uintptr) uint32 { /* fuzzer.c:647:21: */
+func fuzzerHash(tls *libc.TLS, z uintptr) uint32 { /* fuzzer.c:647:21: */
var h uint32 = uint32(0)
for *(*int8)(unsafe.Pointer(z)) != 0 {
- h = (((h << 3) ^ (h >> 29)) ^ uint32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1)))))
+ h = (((h << 3) ^ (h >> 29)) ^ uint32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))))
}
return (h % uint32(4001))
}
// Current cost of a stem
-func fuzzerCost(tls *crt.TLS, pStem uintptr) fuzzer_cost { /* fuzzer.c:656:20: */
- return crt.AssignPtrInt32(pStem+36 /* &.rCostX */, ((*fuzzer_stem)(unsafe.Pointer(pStem)).FrBaseCost + (*fuzzer_rule)(unsafe.Pointer((*fuzzer_stem)(unsafe.Pointer(pStem)).FpRule)).FrCost))
+func fuzzerCost(tls *libc.TLS, pStem uintptr) fuzzer_cost { /* fuzzer.c:656:20: */
+ return libc.AssignPtrInt32(pStem+36 /* &.rCostX */, ((*fuzzer_stem)(unsafe.Pointer(pStem)).FrBaseCost + (*fuzzer_rule)(unsafe.Pointer((*fuzzer_stem)(unsafe.Pointer(pStem)).FpRule)).FrCost))
}
// Return 1 if the string to which the cursor is point has already
// been emitted. Return 0 if not. Return -1 on a memory allocation
// failures.
-func fuzzerSeen(tls *crt.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.c:694:12: */
+func fuzzerSeen(tls *libc.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.c:694:12: */
var h uint32
var pLookup uintptr
@@ -17922,10 +21455,10 @@ func fuzzerSeen(tls *crt.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.c:6
}
h = fuzzerHash(tls, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FzBuf)
pLookup = *(*uintptr)(unsafe.Pointer((pCur + 272 /* &.apHash */) + uintptr(h)*8))
- for (pLookup != 0) && (crt.Xstrcmp(tls, (*fuzzer_stem)(unsafe.Pointer(pLookup)).FzBasis, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FzBuf) != 0) {
+ for (pLookup != 0) && (libc.Xstrcmp(tls, (*fuzzer_stem)(unsafe.Pointer(pLookup)).FzBasis, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FzBuf) != 0) {
pLookup = (*fuzzer_stem)(unsafe.Pointer(pLookup)).FpHash
}
- return (crt.Bool32(pLookup != uintptr(0)))
+ return (libc.Bool32(pLookup != uintptr(0)))
}
// If argument pRule is NULL, this function returns false.
@@ -17934,22 +21467,22 @@ func fuzzerSeen(tls *crt.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.c:6
// should be skipped if it does not belong to rule-set iRuleset, or if
// applying it to stem pStem would create a string longer than
// FUZZER_MX_OUTPUT_LENGTH bytes.
-func fuzzerSkipRule(tls *crt.TLS, pRule uintptr, pStem uintptr, iRuleset int32) int32 { /* fuzzer.c:717:12: */
- return (crt.Bool32((pRule != 0) && (((*fuzzer_rule)(unsafe.Pointer(pRule)).FiRuleset != iRuleset) ||
+func fuzzerSkipRule(tls *libc.TLS, pRule uintptr, pStem uintptr, iRuleset int32) int32 { /* fuzzer.c:717:12: */
+ return (libc.Bool32((pRule != 0) && (((*fuzzer_rule)(unsafe.Pointer(pRule)).FiRuleset != iRuleset) ||
(((int32((*fuzzer_stem)(unsafe.Pointer(pStem)).FnBasis) + int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnTo)) - int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)) > 100))))
}
// Advance a fuzzer_stem to its next value. Return 0 if there are
// no more values that can be generated by this fuzzer_stem. Return
// -1 on a memory allocation failure.
-func fuzzerAdvance(tls *crt.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.c:733:12: */
+func fuzzerAdvance(tls *libc.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.c:733:12: */
var pRule uintptr
- for (crt.AssignUintptr(&pRule, (*fuzzer_stem)(unsafe.Pointer(pStem)).FpRule)) != uintptr(0) {
+ for (libc.AssignUintptr(&pRule, (*fuzzer_stem)(unsafe.Pointer(pStem)).FpRule)) != uintptr(0) {
for int32((*fuzzer_stem)(unsafe.Pointer(pStem)).Fn) < (int32((*fuzzer_stem)(unsafe.Pointer(pStem)).FnBasis) - int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)) {
(*fuzzer_stem)(unsafe.Pointer(pStem)).Fn++
if (int32((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom) == 0) ||
- (crt.Xmemcmp(tls, ((*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis+uintptr((*fuzzer_stem)(unsafe.Pointer(pStem)).Fn)), (*fuzzer_rule)(unsafe.Pointer(pRule)).FzFrom, uint64((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)) == 0) {
+ (libc.Xmemcmp(tls, ((*fuzzer_stem)(unsafe.Pointer(pStem)).FzBasis+uintptr((*fuzzer_stem)(unsafe.Pointer(pStem)).Fn)), (*fuzzer_rule)(unsafe.Pointer(pRule)).FzFrom, uint64((*fuzzer_rule)(unsafe.Pointer(pRule)).FnFrom)) == 0) {
// Found a rewrite case. Make sure it is not a duplicate
var rc int32 = fuzzerSeen(tls, pCur, pStem)
if rc < 0 {
@@ -17976,7 +21509,7 @@ func fuzzerAdvance(tls *crt.TLS, pCur uintptr, pStem uintptr) int32 { /* fuzzer.
// The two input stem lists are both sorted in order of increasing
// rCostX. Merge them together into a single list, sorted by rCostX, and
// return a pointer to the head of that new list.
-func fuzzerMergeStems(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* fuzzer.c:766:20: */
+func fuzzerMergeStems(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* fuzzer.c:766:20: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -18006,7 +21539,7 @@ func fuzzerMergeStems(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* fuzzer.
// Load pCur->pStem with the lowest-cost stem. Return a pointer
// to the lowest-cost stem.
-func fuzzerLowestCostStem(tls *crt.TLS, pCur uintptr) uintptr { /* fuzzer.c:794:20: */
+func fuzzerLowestCostStem(tls *libc.TLS, pCur uintptr) uintptr { /* fuzzer.c:794:20: */
var pBest uintptr
var pX uintptr
var iBest int32
@@ -18038,13 +21571,13 @@ func fuzzerLowestCostStem(tls *crt.TLS, pCur uintptr) uintptr { /* fuzzer.c:794:
// with the lowest rCostX and move it into pCur->pStem.
// list. The insert is done such the pNew is in the correct order
// according to fuzzer_stem.zBaseCost+fuzzer_stem.pRule->rCost.
-func fuzzerInsert(tls *crt.TLS, pCur uintptr, pNew uintptr) uintptr { /* fuzzer.c:825:20: */
+func fuzzerInsert(tls *libc.TLS, pCur uintptr, pNew uintptr) uintptr { /* fuzzer.c:825:20: */
var pX uintptr
var i int32
// If pCur->pStem exists and is greater than pNew, then make pNew
// the new pCur->pStem and insert the old pCur->pStem instead.
- if ((crt.AssignUintptr(&pX, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem)) != uintptr(0)) && ((*fuzzer_stem)(unsafe.Pointer(pX)).FrCostX > (*fuzzer_stem)(unsafe.Pointer(pNew)).FrCostX) {
+ if ((libc.AssignUintptr(&pX, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem)) != uintptr(0)) && ((*fuzzer_stem)(unsafe.Pointer(pX)).FrCostX > (*fuzzer_stem)(unsafe.Pointer(pNew)).FrCostX) {
(*fuzzer_stem)(unsafe.Pointer(pNew)).FpNext = uintptr(0)
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem = pNew
pNew = pX
@@ -18078,26 +21611,26 @@ func fuzzerInsert(tls *crt.TLS, pCur uintptr, pNew uintptr) uintptr { /* fuzzer.
// Allocate a new fuzzer_stem. Add it to the hash table but do not
// link it into either the pCur->pStem or pCur->pDone lists.
-func fuzzerNewStem(tls *crt.TLS, pCur uintptr, zWord uintptr, rBaseCost fuzzer_cost) uintptr { /* fuzzer.c:868:20: */
+func fuzzerNewStem(tls *libc.TLS, pCur uintptr, zWord uintptr, rBaseCost fuzzer_cost) uintptr { /* fuzzer.c:868:20: */
var pNew uintptr
var pRule uintptr
var h uint32
- pNew = sqlite3.Xsqlite3_malloc64(tls, (uint64((uint64(unsafe.Sizeof(fuzzer_stem{})) + crt.Xstrlen(tls, zWord)) + uint64(1))))
+ pNew = sqlite3.Xsqlite3_malloc64(tls, (uint64((uint64(unsafe.Sizeof(fuzzer_stem{})) + libc.Xstrlen(tls, zWord)) + uint64(1))))
if pNew == uintptr(0) {
return uintptr(0)
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(fuzzer_stem{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(fuzzer_stem{})))
(*fuzzer_stem)(unsafe.Pointer(pNew)).FzBasis = (pNew + uintptr(1)*48)
- (*fuzzer_stem)(unsafe.Pointer(pNew)).FnBasis = fuzzer_len(crt.Xstrlen(tls, zWord))
- crt.Xmemcpy(tls, (*fuzzer_stem)(unsafe.Pointer(pNew)).FzBasis, zWord, (uint64(int32((*fuzzer_stem)(unsafe.Pointer(pNew)).FnBasis) + 1)))
+ (*fuzzer_stem)(unsafe.Pointer(pNew)).FnBasis = fuzzer_len(libc.Xstrlen(tls, zWord))
+ libc.Xmemcpy(tls, (*fuzzer_stem)(unsafe.Pointer(pNew)).FzBasis, zWord, (uint64(int32((*fuzzer_stem)(unsafe.Pointer(pNew)).FnBasis) + 1)))
pRule = (*fuzzer_vtab)(unsafe.Pointer((*fuzzer_cursor)(unsafe.Pointer(pCur)).FpVtab)).FpRule
for fuzzerSkipRule(tls, pRule, pNew, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FiRuleset) != 0 {
pRule = (*fuzzer_rule)(unsafe.Pointer(pRule)).FpNext
}
(*fuzzer_stem)(unsafe.Pointer(pNew)).FpRule = pRule
(*fuzzer_stem)(unsafe.Pointer(pNew)).Fn = int8(-1)
- (*fuzzer_stem)(unsafe.Pointer(pNew)).FrBaseCost = crt.AssignPtrInt32(pNew+36 /* &.rCostX */, rBaseCost)
+ (*fuzzer_stem)(unsafe.Pointer(pNew)).FrBaseCost = libc.AssignPtrInt32(pNew+36 /* &.rCostX */, rBaseCost)
h = fuzzerHash(tls, (*fuzzer_stem)(unsafe.Pointer(pNew)).FzBasis)
(*fuzzer_stem)(unsafe.Pointer(pNew)).FpHash = *(*uintptr)(unsafe.Pointer((pCur + 272 /* &.apHash */) + uintptr(h)*8))
*(*uintptr)(unsafe.Pointer((pCur + 272 /* &.apHash */) + uintptr(h)*8)) = pNew
@@ -18106,7 +21639,7 @@ func fuzzerNewStem(tls *crt.TLS, pCur uintptr, zWord uintptr, rBaseCost fuzzer_c
}
// Advance a cursor to its next row of output
-func fuzzerNext(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:901:12: */
+func fuzzerNext(tls *libc.TLS, cur uintptr) int32 { /* fuzzer.c:901:12: */
var pCur uintptr = cur
var rc int32
var pStem uintptr
@@ -18139,14 +21672,14 @@ func fuzzerNext(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:901:12: */
// Adjust the priority queue so that the first element of the
// stem list is the next lowest cost word.
- for (crt.AssignUintptr(&pStem, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem)) != uintptr(0) {
+ for (libc.AssignUintptr(&pStem, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem)) != uintptr(0) {
var res int32 = fuzzerAdvance(tls, pCur, pStem)
if res < 0 {
return 7
} else if res > 0 {
(*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem = uintptr(0)
pStem = fuzzerInsert(tls, pCur, pStem)
- if (crt.AssignInt32(&rc, fuzzerSeen(tls, pCur, pStem))) != 0 {
+ if (libc.AssignInt32(&rc, fuzzerSeen(tls, pCur, pStem))) != 0 {
if rc < 0 {
return 7
}
@@ -18177,7 +21710,7 @@ func fuzzerNext(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:901:12: */
// Called to "rewind" a cursor back to the beginning so that
// it starts its output over again. Always called at least once
// prior to any fuzzerColumn, fuzzerRowid, or fuzzerEof call.
-func fuzzerFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* fuzzer.c:969:12: */
+func fuzzerFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* fuzzer.c:969:12: */
var pCur uintptr = pVtabCursor
var zWord uintptr = ts + 488 /* "" */
var pStem uintptr
@@ -18207,8 +21740,8 @@ func fuzzerFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
// If the query term is longer than FUZZER_MX_OUTPUT_LENGTH bytes, this
// query will return zero rows.
- if int32(crt.Xstrlen(tls, zWord)) < 100 {
- (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem = crt.AssignUintptr(&pStem, fuzzerNewStem(tls, pCur, zWord, 0))
+ if int32(libc.Xstrlen(tls, zWord)) < 100 {
+ (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem = libc.AssignUintptr(&pStem, fuzzerNewStem(tls, pCur, zWord, 0))
if pStem == uintptr(0) {
return 7
}
@@ -18223,14 +21756,14 @@ func fuzzerFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
// Only the word and distance columns have values. All other columns
// return NULL
-func fuzzerColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fuzzer.c:1020:12: */
+func fuzzerColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fuzzer.c:1020:12: */
var pCur uintptr = cur
if i == 0 {
// the "word" column
if fuzzerRender(tls, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem, (pCur+216 /* &.zBuf */), (pCur+224 /* &.nBuf */)) == 7 {
return 7
}
- sqlite3.Xsqlite3_result_text(tls, ctx, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FzBuf, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, (*fuzzer_cursor)(unsafe.Pointer(pCur)).FzBuf, -1, libc.UintptrFromInt32(-1))
} else if i == 1 {
// the "distance" column
sqlite3.Xsqlite3_result_int(tls, ctx, (*fuzzer_stem)(unsafe.Pointer((*fuzzer_cursor)(unsafe.Pointer(pCur)).FpStem)).FrCostX)
@@ -18242,7 +21775,7 @@ func fuzzerColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* fu
}
// The rowid.
-func fuzzerRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* fuzzer.c:1041:12: */
+func fuzzerRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* fuzzer.c:1041:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*fuzzer_cursor)(unsafe.Pointer(pCur)).FiRowid
return 0
@@ -18250,9 +21783,9 @@ func fuzzerRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* fuzzer.c:
// When the fuzzer_cursor.rLimit value is 0 or less, that is a signal
// that the cursor has nothing more to output.
-func fuzzerEof(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:1051:12: */
+func fuzzerEof(tls *libc.TLS, cur uintptr) int32 { /* fuzzer.c:1051:12: */
var pCur uintptr = cur
- return (crt.Bool32((*fuzzer_cursor)(unsafe.Pointer(pCur)).FrLimit <= 0))
+ return (libc.Bool32((*fuzzer_cursor)(unsafe.Pointer(pCur)).FrLimit <= 0))
}
// Search for terms of these forms:
@@ -18275,7 +21808,7 @@ func fuzzerEof(tls *crt.TLS, cur uintptr) int32 { /* fuzzer.c:1051:12: */
// in filter.argv[0] if bit-1 and bit-2 are both zero, is in
// filter.argv[1] if exactly one of bit-1 and bit-2 are set, and is in
// filter.argv[2] if both bit-1 and bit-2 are set.
-func fuzzerBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* fuzzer.c:1078:12: */
+func fuzzerBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* fuzzer.c:1078:12: */
var iPlan int32 = 0
var iDistTerm int32 = -1
var iRulesetTerm int32 = -1
@@ -18332,7 +21865,7 @@ __2:
__3:
;
if (iPlan & 2) != 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).FargvIndex = (1 + (crt.Bool32((iPlan & 1) != 0)))
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).FargvIndex = (1 + (libc.Bool32((iPlan & 1) != 0)))
}
if (iPlan & 4) != 0 {
var idx int32 = 1
@@ -18376,47 +21909,62 @@ uintptr(0), FxRename:// xFindMethod
uintptr(0), // xRename
} /* fuzzer.c:1147:23 */
-func sqlite3_fuzzer_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* fuzzer.c:1176:5: */
+func sqlite3_fuzzer_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* fuzzer.c:1176:5: */
var rc int32 = 0
_ = pApi
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+3957 /* "fuzzer" */, uintptr(unsafe.Pointer(&fuzzerModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+5174 /* "fuzzer" */, uintptr(unsafe.Pointer(&fuzzerModule)), uintptr(0))
return rc
}
+// Mark a function parameter as unused, to suppress nuisance compiler
+// warnings.
+
// Implementation of the ieee754() function
-func ieee754func(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* ieee754.c:42:13: */
- bp := tls.Alloc(152)
- defer tls.Free(152)
+func ieee754func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* ieee754.c:102:13: */
+ bp := tls.Alloc(160)
+ defer tls.Free(160)
if argc == 1 {
var m sqlite3_int64
- // var a sqlite3_int64 at bp+16, 8
+ // var a sqlite3_int64 at bp+32, 8
- // var r float64 at bp+24, 8
+ // var r float64 at bp+16, 8
var e int32
var isNeg int32
- // var zResult [100]int8 at bp+32, 100
+ // var zResult [100]int8 at bp+40, 100
- if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) != 2 {
- return
+ if (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 4) &&
+ (uint64(sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))) == uint64(unsafe.Sizeof(float64(0)))) {
+ var x uintptr = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
+ var i uint32
+ *(*sqlite3_uint64)(unsafe.Pointer(bp + 24 /* v */)) = uint64(0)
+ for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(float64(0))); i++ {
+ *(*sqlite3_uint64)(unsafe.Pointer(bp + 24 /* v */)) = ((*(*sqlite3_uint64)(unsafe.Pointer(bp + 24 /* v */)) << 8) | sqlite3_uint64(*(*uint8)(unsafe.Pointer(x + uintptr(i)))))
+ }
+ libc.Xmemcpy(tls, bp+16 /* &r */, bp+24 /* &v */, uint64(unsafe.Sizeof(float64(0))))
+ } else {
+ *(*float64)(unsafe.Pointer(bp + 16 /* r */)) = sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
}
- *(*float64)(unsafe.Pointer(bp + 24 /* r */)) = sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- if *(*float64)(unsafe.Pointer(bp + 24 /* r */)) < 0.0 {
+ if *(*float64)(unsafe.Pointer(bp + 16 /* r */)) < 0.0 {
isNeg = 1
- *(*float64)(unsafe.Pointer(bp + 24 /* r */)) = -*(*float64)(unsafe.Pointer(bp + 24 /* r */))
+ *(*float64)(unsafe.Pointer(bp + 16 /* r */)) = -*(*float64)(unsafe.Pointer(bp + 16 /* r */))
} else {
isNeg = 0
}
- crt.Xmemcpy(tls, bp+16 /* &a */, bp+24 /* &r */, uint64(unsafe.Sizeof(sqlite3_int64(0))))
- if *(*sqlite3_int64)(unsafe.Pointer(bp + 16 /* a */)) == int64(0) {
+ libc.Xmemcpy(tls, bp+32 /* &a */, bp+16 /* &r */, uint64(unsafe.Sizeof(sqlite3_int64(0))))
+ if *(*sqlite3_int64)(unsafe.Pointer(bp + 32 /* a */)) == int64(0) {
e = 0
m = int64(0)
} else {
- e = (int32(*(*sqlite3_int64)(unsafe.Pointer(bp + 16 /* a */)) >> 52))
- m = (*(*sqlite3_int64)(unsafe.Pointer(bp + 16 /* a */)) & ((sqlite3_int64((int64(1))) << 52) - int64(1)))
- m = m | (sqlite3_int64((int64(1))) << 52)
+ e = (int32(*(*sqlite3_int64)(unsafe.Pointer(bp + 32 /* a */)) >> 52))
+ m = (*(*sqlite3_int64)(unsafe.Pointer(bp + 32 /* a */)) & ((sqlite3_int64((int64(1))) << 52) - int64(1)))
+ if e == 0 {
+ m <<= 1
+ } else {
+ m = m | (sqlite3_int64((int64(1))) << 52)
+ }
for ((e < 1075) && (m > int64(0))) && ((m & int64(1)) == int64(0)) {
m >>= 1
e++
@@ -18425,15 +21973,27 @@ func ieee754func(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* i
m = -m
}
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+32 /* &zResult[0] */, ts+3964, /* "ieee754(%lld,%d)" */
- crt.VaList(bp, m, (e-1075)))
- sqlite3.Xsqlite3_result_text(tls, context, bp+32 /* &zResult[0] */, -1, crt.UintptrFromInt32(-1))
- } else if argc == 2 {
+ switch *(*int32)(unsafe.Pointer(sqlite3.Xsqlite3_user_data(tls, context))) {
+ case 0:
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+40 /* &zResult[0] */, ts+5181, /* "ieee754(%lld,%d)" */
+ libc.VaList(bp, m, (e-1075)))
+ sqlite3.Xsqlite3_result_text(tls, context, bp+40 /* &zResult[0] */, -1, libc.UintptrFromInt32(-1))
+ break
+ fallthrough
+ case 1:
+ sqlite3.Xsqlite3_result_int64(tls, context, m)
+ break
+ fallthrough
+ case 2:
+ sqlite3.Xsqlite3_result_int(tls, context, (e - 1075))
+ break
+ }
+ } else {
var m sqlite3_int64
var e sqlite3_int64
- // var a sqlite3_int64 at bp+144, 8
+ // var a sqlite3_int64 at bp+152, 8
- // var r float64 at bp+136, 8
+ // var r float64 at bp+144, 8
var isNeg int32 = 0
m = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
@@ -18444,7 +22004,7 @@ func ieee754func(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* i
if m < int64(0) {
return
}
- } else if ((m == int64(0)) && (e > int64(1000))) && (e < int64(1000)) {
+ } else if ((m == int64(0)) && (e > int64(-1000))) && (e < int64(1000)) {
sqlite3.Xsqlite3_result_double(tls, context, 0.0)
return
}
@@ -18457,42 +22017,99 @@ func ieee754func(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* i
e--
}
e = e + (int64(1075))
- if e < int64(0) {
- e = crt.AssignInt64(&m, int64(0))
- }
- if e > int64(0x7ff) {
+ if e <= int64(0) {
+ // Subnormal
+ m >>= (int64(1) - e)
+ e = int64(0)
+ } else if e > int64(0x7ff) {
e = int64(0x7ff)
}
- *(*sqlite3_int64)(unsafe.Pointer(bp + 144 /* a */)) = (m & ((sqlite3_int64((int64(1))) << 52) - int64(1)))
- *(*sqlite3_int64)(unsafe.Pointer(bp + 144 /* a */)) |= (e << 52)
+ *(*sqlite3_int64)(unsafe.Pointer(bp + 152 /* a */)) = (m & ((sqlite3_int64((int64(1))) << 52) - int64(1)))
+ *(*sqlite3_int64)(unsafe.Pointer(bp + 152 /* a */)) |= (e << 52)
if isNeg != 0 {
- *(*sqlite3_int64)(unsafe.Pointer(bp + 144 /* a */)) |= crt.Int64FromUint64((sqlite3_uint64((uint64(1))) << 63))
+ *(*sqlite3_int64)(unsafe.Pointer(bp + 152 /* a */)) |= libc.Int64FromUint64((sqlite3_uint64((uint64(1))) << 63))
}
- crt.Xmemcpy(tls, bp+136 /* &r */, bp+144 /* &a */, uint64(unsafe.Sizeof(float64(0))))
- sqlite3.Xsqlite3_result_double(tls, context, *(*float64)(unsafe.Pointer(bp + 136 /* r */)))
+ libc.Xmemcpy(tls, bp+144 /* &r */, bp+152 /* &a */, uint64(unsafe.Sizeof(float64(0))))
+ sqlite3.Xsqlite3_result_double(tls, context, *(*float64)(unsafe.Pointer(bp + 144 /* r */)))
}
}
-func sqlite3_ieee_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* ieee754.c:116:5: */
+// Functions to convert between blobs and floats.
+func ieee754func_from_blob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* ieee754.c:205:13: */
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+
+ _ = argc
+ if (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 4) &&
+ (uint64(sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))) == uint64(unsafe.Sizeof(float64(0)))) {
+ // var r float64 at bp, 8
+
+ var x uintptr = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
+ var i uint32
+ *(*sqlite3_uint64)(unsafe.Pointer(bp + 8 /* v */)) = uint64(0)
+ for i = uint32(0); uint64(i) < uint64(unsafe.Sizeof(float64(0))); i++ {
+ *(*sqlite3_uint64)(unsafe.Pointer(bp + 8 /* v */)) = ((*(*sqlite3_uint64)(unsafe.Pointer(bp + 8 /* v */)) << 8) | sqlite3_uint64(*(*uint8)(unsafe.Pointer(x + uintptr(i)))))
+ }
+ libc.Xmemcpy(tls, bp /* &r */, bp+8 /* &v */, uint64(unsafe.Sizeof(float64(0))))
+ sqlite3.Xsqlite3_result_double(tls, context, *(*float64)(unsafe.Pointer(bp /* r */)))
+ }
+}
+func ieee754func_to_blob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* ieee754.c:225:13: */
+ bp := tls.Alloc(24)
+ defer tls.Free(24)
+
+ _ = argc
+ if (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 2) ||
+ (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 1) {
+ *(*float64)(unsafe.Pointer(bp + 8 /* r */)) = sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
+ // var v sqlite3_uint64 at bp, 8
+
+ // var a [8]uint8 at bp+16, 8
+
+ var i uint32
+ libc.Xmemcpy(tls, bp /* &v */, bp+8 /* &r */, uint64(unsafe.Sizeof(float64(0))))
+ for i = uint32(1); uint64(i) <= uint64(unsafe.Sizeof(float64(0))); i++ {
+ *(*uint8)(unsafe.Pointer(bp + 16 /* &a[0] */ + uintptr((uint64(unsafe.Sizeof(float64(0))) - uint64(i))))) = (uint8(*(*sqlite3_uint64)(unsafe.Pointer(bp /* v */)) & uint64(0xff)))
+ *(*sqlite3_uint64)(unsafe.Pointer(bp /* v */)) >>= 8
+ }
+ sqlite3.Xsqlite3_result_blob(tls, context, bp+16 /* &a[0] */, int32(unsafe.Sizeof(float64(0))), libc.UintptrFromInt32(-1))
+ }
+}
+
+func sqlite3_ieee_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* ieee754.c:251:5: */
+ var i uint32
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Unused parameter
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3981 /* "ieee754" */, 1,
- (1 | 0x000200000), uintptr(0),
- *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{ieee754func})), uintptr(0), uintptr(0))
- if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+3981 /* "ieee754" */, 2,
- (1 | 0x000200000), uintptr(0),
- *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{ieee754func})), uintptr(0), uintptr(0))
+ for i = uint32(0); (uint64(i) < (uint64(unsafe.Sizeof(aFunc1)) / uint64(unsafe.Sizeof(struct {
+ FzFName uintptr
+ FnArg int32
+ FiAux int32
+ FxFunc uintptr
+ }{})))) && (rc == 0); i++ {
+ rc = sqlite3.Xsqlite3_create_function(tls, db, aFunc1[i].FzFName, aFunc1[i].FnArg,
+ (1 | 0x000200000),
+ (uintptr(unsafe.Pointer(&aFunc1)) + uintptr(i)*24 + 12 /* &.iAux */),
+ aFunc1[i].FxFunc, uintptr(0), uintptr(0))
}
return rc
}
+var aFunc1 = [6]struct {
+ FzFName uintptr
+ FnArg int32
+ FiAux int32
+ FxFunc uintptr
+}{
+ {FzFName: ts + 5198 /* "ieee754" */, FnArg: 1, FiAux: 0, FxFunc: 0},
+ {FzFName: ts + 5198 /* "ieee754" */, FnArg: 2, FiAux: 0, FxFunc: 0},
+ {FzFName: ts + 5206 /* "ieee754_mantissa" */, FnArg: 1, FiAux: 1, FxFunc: 0},
+ {FzFName: ts + 5223 /* "ieee754_exponent" */, FnArg: 1, FiAux: 2, FxFunc: 0},
+ {FzFName: ts + 5240 /* "ieee754_to_blob" */, FnArg: 1, FiAux: 0, FxFunc: 0},
+ {FzFName: ts + 5256 /* "ieee754_from_blo..." */, FnArg: 1, FiAux: 0, FxFunc: 0},
+} /* ieee754.c:261:5 */
+
//
// END OF REGISTRATION API
//
@@ -18516,7 +22133,7 @@ func sqlite3_ieee_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr)
//
// It is illegal to call this function when the database handle has an
// open transaction. SQLITE_MISUSE is returned in this case.
-func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwarm.c:37:5: */
+func sqlite3_mmap_warm(tls *libc.TLS, db uintptr, zDb uintptr) int32 { /* mmapwarm.c:37:5: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -18530,10 +22147,10 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
}
// Open a read-only transaction on the file in question
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+3989, /* "BEGIN; SELECT * ..." */
- crt.VaList(bp, func() uintptr {
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+5274, /* "BEGIN; SELECT * ..." */
+ libc.VaList(bp, func() uintptr {
if zDb != 0 {
- return ts + 4030 /* "'" */
+ return ts + 5315 /* "'" */
}
return ts + 488 /* "" */
}(), func() uintptr {
@@ -18543,7 +22160,7 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
return ts + 488 /* "" */
}(), func() uintptr {
if zDb != 0 {
- return ts + 4032 /* "'." */
+ return ts + 5317 /* "'." */
}
return ts + 488 /* "" */
}()))
@@ -18555,10 +22172,10 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
// Find the SQLite page size of the file
if rc == 0 {
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+4035, /* "PRAGMA %s%q%spag..." */
- crt.VaList(bp+24, func() uintptr {
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+5320, /* "PRAGMA %s%q%spag..." */
+ libc.VaList(bp+24, func() uintptr {
if zDb != 0 {
- return ts + 4030 /* "'" */
+ return ts + 5315 /* "'" */
}
return ts + 488 /* "" */
}(), func() uintptr {
@@ -18568,7 +22185,7 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
return ts + 488 /* "" */
}(), func() uintptr {
if zDb != 0 {
- return ts + 4032 /* "'." */
+ return ts + 5317 /* "'." */
}
return ts + 488 /* "" */
}()))
@@ -18601,7 +22218,7 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
for 1 != 0 {
// var pMap uintptr at bp+80, 8
- rc = (*(*func(*crt.TLS, uintptr, sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer((p + 136 /* &.xFetch */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pFd */)), (sqlite3_int64(pgsz) * iPg), pgsz, bp+80 /* &pMap */)
+ rc = (*(*func(*libc.TLS, uintptr, sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer((p + 136 /* &.xFetch */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pFd */)), (sqlite3_int64(pgsz) * iPg), pgsz, bp+80 /* &pMap */)
if (rc != 0) || (*(*uintptr)(unsafe.Pointer(bp + 80 /* pMap */)) == uintptr(0)) {
break
}
@@ -18609,14 +22226,14 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
nTotal = nTotal + (int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 80 /* pMap */)) + uintptr(0)))))
nTotal = nTotal + (int32(*(*uint8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 80 /* pMap */)) + uintptr((pgsz - 1))))))
- rc = (*(*func(*crt.TLS, uintptr, sqlite3_int64, uintptr) int32)(unsafe.Pointer((p + 144 /* &.xUnfetch */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pFd */)), (sqlite3_int64(pgsz) * iPg), *(*uintptr)(unsafe.Pointer(bp + 80 /* pMap */)))
+ rc = (*(*func(*libc.TLS, uintptr, sqlite3_int64, uintptr) int32)(unsafe.Pointer((p + 144 /* &.xUnfetch */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pFd */)), (sqlite3_int64(pgsz) * iPg), *(*uintptr)(unsafe.Pointer(bp + 80 /* pMap */)))
if rc != 0 {
break
}
iPg++
}
sqlite3.Xsqlite3_log(tls, 0,
- ts+4058 /* "sqlite3_mmap_war..." */, crt.VaList(bp+48, func() int64 {
+ ts+5343 /* "sqlite3_mmap_war..." */, libc.VaList(bp+48, func() int64 {
if iPg == int64(1) {
return int64(0)
}
@@ -18625,7 +22242,7 @@ func sqlite3_mmap_warm(tls *crt.TLS, db uintptr, zDb uintptr) int32 { /* mmapwar
sqlite3.Xsqlite3_db_filename(tls, db, zDb)))
}
- rc2 = sqlite3.Xsqlite3_exec(tls, db, ts+4108 /* "END" */, uintptr(0), uintptr(0), uintptr(0))
+ rc2 = sqlite3.Xsqlite3_exec(tls, db, ts+5393 /* "END" */, uintptr(0), uintptr(0), uintptr(0))
if rc == 0 {
rc = rc2
}
@@ -18654,7 +22271,7 @@ type nextCharContext = nextCharContext1 /* nextchar.c:63:32 */
// Append a result character if the character is not already in the
// result.
-func nextCharAppend(tls *crt.TLS, p uintptr, c uint32) { /* nextchar.c:80:13: */
+func nextCharAppend(tls *libc.TLS, p uintptr, c uint32) { /* nextchar.c:80:13: */
var i int32
for i = 0; i < (*nextCharContext)(unsafe.Pointer(p)).FnUsed; i++ {
if *(*uint32)(unsafe.Pointer((*nextCharContext)(unsafe.Pointer(p)).FaResult + uintptr(i)*4)) == c {
@@ -18673,12 +22290,12 @@ func nextCharAppend(tls *crt.TLS, p uintptr, c uint32) { /* nextchar.c:80:13: */
(*nextCharContext)(unsafe.Pointer(p)).FnAlloc = n
}
}
- *(*uint32)(unsafe.Pointer((*nextCharContext)(unsafe.Pointer(p)).FaResult + uintptr(crt.PostIncInt32(&(*nextCharContext)(unsafe.Pointer(p)).FnUsed, 1))*4)) = c
+ *(*uint32)(unsafe.Pointer((*nextCharContext)(unsafe.Pointer(p)).FaResult + uintptr(libc.PostIncInt32(&(*nextCharContext)(unsafe.Pointer(p)).FnUsed, 1))*4)) = c
}
// Write a character into z[] as UTF8. Return the number of bytes needed
// to hold the character
-func writeUtf8(tls *crt.TLS, z uintptr, c uint32) int32 { /* nextchar.c:104:12: */
+func writeUtf8(tls *libc.TLS, z uintptr, c uint32) int32 { /* nextchar.c:104:12: */
if c < uint32(0x00080) {
*(*uint8)(unsafe.Pointer(z + uintptr(0))) = (uint8(c & uint32(0xff)))
return 1
@@ -18703,7 +22320,7 @@ func writeUtf8(tls *crt.TLS, z uintptr, c uint32) int32 { /* nextchar.c:104:12:
// Read a UTF8 character out of z[] and write it into *pOut. Return
// the number of bytes in z[] that were used to construct the character.
-func readUtf8(tls *crt.TLS, z uintptr, pOut uintptr) int32 { /* nextchar.c:131:12: */
+func readUtf8(tls *libc.TLS, z uintptr, pOut uintptr) int32 { /* nextchar.c:131:12: */
var c uint32 = uint32(*(*uint8)(unsafe.Pointer(z + uintptr(0))))
if c < uint32(0xc0) {
*(*uint32)(unsafe.Pointer(pOut)) = c
@@ -18712,7 +22329,7 @@ func readUtf8(tls *crt.TLS, z uintptr, pOut uintptr) int32 { /* nextchar.c:131:1
var n int32 = 1
c = uint32(validBits[(c - uint32(0xc0))])
for (int32(*(*uint8)(unsafe.Pointer(z + uintptr(n)))) & 0xc0) == 0x80 {
- c = ((c << 6) + (uint32(0x3f & int32(*(*uint8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&n, 1))))))))
+ c = ((c << 6) + (uint32(0x3f & int32(*(*uint8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&n, 1))))))))
}
if ((c < uint32(0x80)) || ((c & 0xFFFFF800) == uint32(0xD800))) || ((c & 0xFFFFFFFE) == uint32(0xFFFE)) {
c = uint32(0xFFFD)
@@ -18736,7 +22353,7 @@ var validBits = [64]uint8{
// The nextCharContext structure has been set up. Add all "next" characters
// to the result set.
-func findNextChars(tls *crt.TLS, p uintptr) { /* nextchar.c:164:13: */
+func findNextChars(tls *libc.TLS, p uintptr) { /* nextchar.c:164:13: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -18778,7 +22395,7 @@ func findNextChars(tls *crt.TLS, p uintptr) { /* nextchar.c:164:13: */
// Return a string composted of all next possible characters after
// A for elements of T.F. If W is supplied, then it is an SQL expression
// that limits the elements in T.F that are considered.
-func nextCharFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* nextchar.c:201:13: */
+func nextCharFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* nextchar.c:201:13: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -18793,7 +22410,7 @@ func nextCharFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
var zSql uintptr
var rc int32
- crt.Xmemset(tls, bp+80 /* &c */, 0, uint64(unsafe.Sizeof(nextCharContext{})))
+ libc.Xmemset(tls, bp+80 /* &c */, 0, uint64(unsafe.Sizeof(nextCharContext{})))
(*nextCharContext)(unsafe.Pointer(bp + 80 /* &c */)).Fdb = sqlite3.Xsqlite3_context_db_handle(tls, context)
(*nextCharContext)(unsafe.Pointer(bp + 80 /* &c */)).FzPrefix = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
(*nextCharContext)(unsafe.Pointer(bp + 80 /* &c */)).FnPrefix = sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
@@ -18801,9 +22418,9 @@ func nextCharFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
return
}
if ((argc >= 4) &&
- ((crt.AssignUintptr(&zWhere, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))) != uintptr(0))) &&
+ ((libc.AssignUintptr(&zWhere, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))) != uintptr(0))) &&
(int32(*(*uint8)(unsafe.Pointer(zWhere + uintptr(0)))) != 0) {
- zWhereClause = sqlite3.Xsqlite3_mprintf(tls, ts+4112 /* "AND (%s)" */, crt.VaList(bp, zWhere))
+ zWhereClause = sqlite3.Xsqlite3_mprintf(tls, ts+5397 /* "AND (%s)" */, libc.VaList(bp, zWhere))
if zWhereClause == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
return
@@ -18812,9 +22429,9 @@ func nextCharFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
zWhereClause = ts + 488 /* "" */
}
if ((argc >= 5) &&
- ((crt.AssignUintptr(&zCollName, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8))))) != uintptr(0))) &&
+ ((libc.AssignUintptr(&zCollName, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8))))) != uintptr(0))) &&
(int32(*(*uint8)(unsafe.Pointer(zCollName + uintptr(0)))) != 0) {
- zColl = sqlite3.Xsqlite3_mprintf(tls, ts+4121 /* "collate \"%w\"" */, crt.VaList(bp+8, zCollName))
+ zColl = sqlite3.Xsqlite3_mprintf(tls, ts+5406 /* "collate \"%w\"" */, libc.VaList(bp+8, zCollName))
if zColl == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
if *(*int8)(unsafe.Pointer(zWhereClause + uintptr(0))) != 0 {
@@ -18829,8 +22446,8 @@ func nextCharFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// 1114111 == 0x10ffff
- ts+4134, /* "SELECT %s FROM %..." */
- crt.VaList(bp+16, zField, zTable, zField, zColl, zField, zColl, zWhereClause, zColl))
+ ts+5419, /* "SELECT %s FROM %..." */
+ libc.VaList(bp+16, zField, zTable, zField, zColl, zField, zColl, zWhereClause, zColl))
if *(*int8)(unsafe.Pointer(zWhereClause + uintptr(0))) != 0 {
sqlite3.Xsqlite3_free(tls, zWhereClause)
}
@@ -18863,35 +22480,35 @@ func nextCharFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
n = n + (writeUtf8(tls, (pRes + uintptr(n)), *(*uint32)(unsafe.Pointer((*nextCharContext)(unsafe.Pointer(bp+80 /* &c */)).FaResult + uintptr(i)*4))))
}
*(*uint8)(unsafe.Pointer(pRes + uintptr(n))) = uint8(0)
- sqlite3.Xsqlite3_result_text(tls, context, pRes, n, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text(tls, context, pRes, n, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
sqlite3.Xsqlite3_finalize(tls, (*nextCharContext)(unsafe.Pointer(bp+80 /* &c */)).FpStmt)
sqlite3.Xsqlite3_free(tls, (*nextCharContext)(unsafe.Pointer(bp+80 /* &c */)).FaResult)
}
-func sqlite3_nextchar_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* nextchar.c:292:5: */
+func sqlite3_nextchar_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* nextchar.c:292:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Unused parameter
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4242 /* "next_char" */, 3,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5527 /* "next_char" */, 3,
(1 | 0x000200000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{nextCharFunc})), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4242 /* "next_char" */, 4,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5527 /* "next_char" */, 4,
(1 | 0x000200000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{nextCharFunc})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4242 /* "next_char" */, 5,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5527 /* "next_char" */, 5,
(1 | 0x000200000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{nextCharFunc})), uintptr(0), uintptr(0))
}
return rc
@@ -19043,9 +22660,11 @@ var sqlite3CtypeMap = [256]uint8{
// Token values
+// Disable nuisence warnings about case fall-through
+
// Return the length (in bytes) of the token that begins at z[0].
// Store the token type in *tokenType before returning.
-func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* normalize.c:293:12: */
+func sqlite3GetToken(tls *libc.TLS, z uintptr, tokenType uintptr) int32 { /* normalize.c:300:12: */
var i int32
var c int32
switch int32(aiClass[*(*uint8)(unsafe.Pointer(z))]) { // Switch on the character-class of the first byte
@@ -19061,7 +22680,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
case 11:
{
if int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))) == '-' {
- for i = 2; ((crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0) && (c != '\n'); i++ {
+ for i = 2; ((libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0) && (c != '\n'); i++ {
}
*(*int32)(unsafe.Pointer(tokenType)) = 0
return i
@@ -19102,7 +22721,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
}
i = 3
c = int32(*(*uint8)(unsafe.Pointer(z + uintptr(2))))
- for ; ((c != '*') || (int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) != '/')) && ((crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0); i++ {
+ for ; ((c != '*') || (int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) != '/')) && ((libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0); i++ {
}
if c != 0 {
i++
@@ -19118,11 +22737,11 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
case 14:
{
*(*int32)(unsafe.Pointer(tokenType)) = 3
- return (1 + (crt.Bool32(int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))) == '=')))
+ return (1 + (libc.Bool32(int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))) == '=')))
}
case 12:
{
- if (crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))))) == '=' {
+ if (libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))))) == '=' {
*(*int32)(unsafe.Pointer(tokenType)) = 3
return 2
} else if c == '>' {
@@ -19139,7 +22758,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
fallthrough
case 13:
{
- if (crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))))) == '=' {
+ if (libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))))) == '=' {
*(*int32)(unsafe.Pointer(tokenType)) = 3
return 2
} else if c == '>' {
@@ -19192,7 +22811,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
{
var delim int32 = int32(*(*uint8)(unsafe.Pointer(z + uintptr(0))))
- for i = 1; (crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0; i++ {
+ for i = 1; (libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0; i++ {
if c == delim {
if int32(*(*uint8)(unsafe.Pointer(z + uintptr((i + 1))))) == delim {
i++
@@ -19221,6 +22840,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
}
// If the next character is a digit, this is a floating point
// number that begins with ".". Fall thru into the next case
+ /* no break */
}
fallthrough
case 3:
@@ -19258,7 +22878,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
{
i = 1
c = int32(*(*uint8)(unsafe.Pointer(z + uintptr(0))))
- for ; (c != ']') && ((crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0); i++ {
+ for ; (c != ']') && ((libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0); i++ {
}
*(*int32)(unsafe.Pointer(tokenType)) = func() int32 {
if c == ']' {
@@ -19282,11 +22902,11 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
var n int32 = 0
*(*int32)(unsafe.Pointer(tokenType)) = 2
- for i = 1; (crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0; i++ {
+ for i = 1; (libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0; i++ {
if (int32(sqlite3CtypeMap[uint8(c)]) & 0x46) != 0 {
n++
} else if (c == '(') && (n > 0) {
- for ok := true; ok; ok = ((((crt.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0) && !((int32(sqlite3CtypeMap[uint8(c)]) & 0x01) != 0)) && (c != ')')) {
+ for ok := true; ok; ok = ((((libc.AssignInt32(&c, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))))) != 0) && !((int32(sqlite3CtypeMap[uint8(c)]) & 0x01) != 0)) && (c != ')')) {
i++
}
if c == ')' {
@@ -19340,6 +22960,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
}
// If it is not a BLOB literal, then it must be an ID, since no
// SQL keywords start with the letter 'x'. Fall through
+ /* no break */
}
fallthrough
case 2:
@@ -19360,7 +22981,7 @@ func sqlite3GetToken(tls *crt.TLS, z uintptr, tokenType uintptr) int32 { /* norm
return i
}
-func sqlite3_normalize(tls *crt.TLS, zSql uintptr) uintptr { /* normalize.c:546:6: */
+func sqlite3_normalize(tls *libc.TLS, zSql uintptr) uintptr { /* normalize.c:555:6: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -19374,13 +22995,13 @@ func sqlite3_normalize(tls *crt.TLS, zSql uintptr) uintptr { /* normalize.c:546:
var n int32 // Size of the next token
var k int32 // Loop counter
- nSql = sqlite3_int64(crt.Xstrlen(tls, zSql))
+ nSql = sqlite3_int64(libc.Xstrlen(tls, zSql))
nZ = nSql
z = sqlite3.Xsqlite3_malloc64(tls, (uint64(nZ + int64(2))))
if z == uintptr(0) {
return uintptr(0)
}
- for i = crt.AssignInt32(&j, 0); *(*int8)(unsafe.Pointer(zSql + uintptr(i))) != 0; i = i + (n) {
+ for i = libc.AssignInt32(&j, 0); *(*int8)(unsafe.Pointer(zSql + uintptr(i))) != 0; i = i + (n) {
n = sqlite3GetToken(tls, (zSql + uintptr(i)), bp /* &tokenType */)
switch *(*int32)(unsafe.Pointer(bp /* tokenType */)) {
case 0:
@@ -19394,27 +23015,27 @@ func sqlite3_normalize(tls *crt.TLS, zSql uintptr) uintptr { /* normalize.c:546:
}
case 2:
{
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8('?')
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8('?')
break
}
case 3:
fallthrough
case 1:
{
- if (n == 4) && (sqlite3.Xsqlite3_strnicmp(tls, (zSql+uintptr(i)), ts+4252 /* "NULL" */, 4) == 0) {
- if (((j >= 3) && (crt.Xstrncmp(tls, ((z+uintptr(j))-uintptr(2)), ts+4257 /* "is" */, uint64(2)) == 0)) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr((j - 3)))))]) & 0x46) != 0)) ||
- (((j >= 4) && (crt.Xstrncmp(tls, ((z+uintptr(j))-uintptr(3)), ts+4260 /* "not" */, uint64(3)) == 0)) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr((j - 4)))))]) & 0x46) != 0)) {
+ if (n == 4) && (sqlite3.Xsqlite3_strnicmp(tls, (zSql+uintptr(i)), ts+5537 /* "NULL" */, 4) == 0) {
+ if (((j >= 3) && (libc.Xstrncmp(tls, ((z+uintptr(j))-uintptr(2)), ts+5542 /* "is" */, uint64(2)) == 0)) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr((j - 3)))))]) & 0x46) != 0)) ||
+ (((j >= 4) && (libc.Xstrncmp(tls, ((z+uintptr(j))-uintptr(3)), ts+5545 /* "not" */, uint64(3)) == 0)) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr((j - 4)))))]) & 0x46) != 0)) {
} else {
// Here the NULL is a literal value
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8('?')
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8('?')
break
}
}
if ((j > 0) && ((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr((j - 1)))))]) & 0x46) != 0)) && ((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zSql + uintptr(i))))]) & 0x46) != 0) {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8(' ')
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8(' ')
}
for k = 0; k < n; k++ {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8(sqlite3UpperToLower[uint8(*(*int8)(unsafe.Pointer(zSql + uintptr((i + k)))))])
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8(sqlite3UpperToLower[uint8(*(*int8)(unsafe.Pointer(zSql + uintptr((i + k)))))])
}
break
}
@@ -19424,26 +23045,26 @@ func sqlite3_normalize(tls *crt.TLS, zSql uintptr) uintptr { /* normalize.c:546:
j--
}
if (j > 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr((j - 1))))) != ';') {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8(';')
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8(';')
}
*(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0)
// Make a second pass converting "in(...)" where the "..." is not a
// SELECT statement into "in(?,?,?)"
for i = 0; i < j; i = n {
- var zIn uintptr = crt.Xstrstr(tls, (z + uintptr(i)), ts+4264 /* "in(" */)
+ var zIn uintptr = libc.Xstrstr(tls, (z + uintptr(i)), ts+5549 /* "in(" */)
var nParen int32
if zIn == uintptr(0) {
break
}
n = ((int32((int64(zIn) - int64(z)) / 1)) + 3) // Index of first char past "in("
- if (n != 0) && ((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zIn + crt.UintptrFromInt32(-1))))]) & 0x46) != 0) {
+ if (n != 0) && ((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zIn + libc.UintptrFromInt32(-1))))]) & 0x46) != 0) {
continue
}
- if (crt.Xstrncmp(tls, zIn, ts+4268 /* "in(select" */, uint64(9)) == 0) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(9))))]) & 0x46) != 0) {
+ if (libc.Xstrncmp(tls, zIn, ts+5553 /* "in(select" */, uint64(9)) == 0) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(9))))]) & 0x46) != 0) {
continue
}
- if (crt.Xstrncmp(tls, zIn, ts+4278 /* "in(with" */, uint64(7)) == 0) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(7))))]) & 0x46) != 0) {
+ if (libc.Xstrncmp(tls, zIn, ts+5563 /* "in(with" */, uint64(7)) == 0) && !((int32(sqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(7))))]) & 0x46) != 0) {
continue
}
nParen = 1
@@ -19465,13 +23086,13 @@ func sqlite3_normalize(tls *crt.TLS, zSql uintptr) uintptr { /* normalize.c:546:
if z == uintptr(0) {
return uintptr(0)
}
- crt.Xmemmove(tls, ((z + uintptr(n)) + uintptr(5)), ((z + uintptr(n)) + uintptr(k)), (uint64(j - (n + k))))
+ libc.Xmemmove(tls, ((z + uintptr(n)) + uintptr(5)), ((z + uintptr(n)) + uintptr(k)), (uint64(j - (n + k))))
} else if k > 5 {
- crt.Xmemmove(tls, ((z + uintptr(n)) + uintptr(5)), ((z + uintptr(n)) + uintptr(k)), (uint64(j - (n + k))))
+ libc.Xmemmove(tls, ((z + uintptr(n)) + uintptr(5)), ((z + uintptr(n)) + uintptr(k)), (uint64(j - (n + k))))
}
j = ((j - k) + 5)
*(*int8)(unsafe.Pointer(z + uintptr(j))) = int8(0)
- crt.Xmemcpy(tls, (z + uintptr(n)), ts+4286 /* "?,?,?" */, uint64(5))
+ libc.Xmemcpy(tls, (z + uintptr(n)), ts+5571 /* "?,?,?" */, uint64(5))
}
return z
}
@@ -19538,26 +23159,26 @@ type Percentile1 = struct {
type Percentile = Percentile1 /* percentile.c:71:27 */
// Return TRUE if the input floating-point number is an infinity.
-func isInfinity(tls *crt.TLS, r float64) int32 { /* percentile.c:82:12: */
+func isInfinity(tls *libc.TLS, r float64) int32 { /* percentile.c:82:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*float64)(unsafe.Pointer(bp + 8)) = r
// var u sqlite3_uint64 at bp, 8
- crt.Xmemcpy(tls, bp /* &u */, bp+8 /* &r */, uint64(unsafe.Sizeof(sqlite3_uint64(0))))
- return (crt.Bool32(((*(*sqlite3_uint64)(unsafe.Pointer(bp /* u */)) >> 52) & uint64(0x7ff)) == uint64(0x7ff)))
+ libc.Xmemcpy(tls, bp /* &u */, bp+8 /* &r */, uint64(unsafe.Sizeof(sqlite3_uint64(0))))
+ return (libc.Bool32(((*(*sqlite3_uint64)(unsafe.Pointer(bp /* u */)) >> 52) & uint64(0x7ff)) == uint64(0x7ff)))
}
// Return TRUE if two doubles differ by 0.001 or less
-func sameValue(tls *crt.TLS, a float64, b float64) int32 { /* percentile.c:92:12: */
+func sameValue(tls *libc.TLS, a float64, b float64) int32 { /* percentile.c:92:12: */
a = a - (b)
- return (crt.Bool32((a >= -0.001) && (a <= 0.001)))
+ return (libc.Bool32((a >= -0.001) && (a <= 0.001)))
}
// The "step" function for percentile(Y,P) is called once for each
// input row.
-func percentStep(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* percentile.c:101:13: */
+func percentStep(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* percentile.c:101:13: */
var p uintptr
var rPct float64
var eType int32
@@ -19569,7 +23190,7 @@ func percentStep(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* perc
if (((eType != 1) && (eType != 2)) ||
(rPct < 0.0)) || (rPct > 100.0) {
sqlite3.Xsqlite3_result_error(tls, pCtx,
- ts+4292 /* "2nd argument to ..." */, -1)
+ ts+5577 /* "2nd argument to ..." */, -1)
return
}
@@ -19585,7 +23206,7 @@ func percentStep(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* perc
(*Percentile)(unsafe.Pointer(p)).FrPct = (rPct + 1.0)
} else if !(sameValue(tls, (*Percentile)(unsafe.Pointer(p)).FrPct, (rPct+1.0)) != 0) {
sqlite3.Xsqlite3_result_error(tls, pCtx,
- ts+4359 /* "2nd argument to ..." */, -1)
+ ts+5644 /* "2nd argument to ..." */, -1)
return
}
@@ -19599,14 +23220,14 @@ func percentStep(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* perc
// Requirement 4
if (eType != 1) && (eType != 2) {
sqlite3.Xsqlite3_result_error(tls, pCtx,
- ts+4423 /* "1st argument to ..." */, -1)
+ ts+5708 /* "1st argument to ..." */, -1)
return
}
// Throw an error if the Y value is infinity or NaN
y = sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
if isInfinity(tls, y) != 0 {
- sqlite3.Xsqlite3_result_error(tls, pCtx, ts+4467 /* "Inf input to per..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, pCtx, ts+5752 /* "Inf input to per..." */, -1)
return
}
@@ -19616,18 +23237,18 @@ func percentStep(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* perc
var a uintptr = sqlite3.Xsqlite3_realloc64(tls, (*Percentile)(unsafe.Pointer(p)).Fa, (uint64(uint64(unsafe.Sizeof(float64(0))) * uint64(n))))
if a == uintptr(0) {
sqlite3.Xsqlite3_free(tls, (*Percentile)(unsafe.Pointer(p)).Fa)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Percentile{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Percentile{})))
sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
return
}
(*Percentile)(unsafe.Pointer(p)).FnAlloc = n
(*Percentile)(unsafe.Pointer(p)).Fa = a
}
- *(*float64)(unsafe.Pointer((*Percentile)(unsafe.Pointer(p)).Fa + uintptr(crt.PostIncUint32(&(*Percentile)(unsafe.Pointer(p)).FnUsed, 1))*8)) = y
+ *(*float64)(unsafe.Pointer((*Percentile)(unsafe.Pointer(p)).Fa + uintptr(libc.PostIncUint32(&(*Percentile)(unsafe.Pointer(p)).FnUsed, 1))*8)) = y
}
// Compare to doubles for sorting using qsort()
-func doubleCmp(tls *crt.TLS, pA uintptr, pB uintptr) int32 { /* percentile.c:170:25: */
+func doubleCmp(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* percentile.c:170:25: */
var a float64 = *(*float64)(unsafe.Pointer(pA))
var b float64 = *(*float64)(unsafe.Pointer(pB))
if a == b {
@@ -19641,7 +23262,7 @@ func doubleCmp(tls *crt.TLS, pA uintptr, pB uintptr) int32 { /* percentile.c:170
// Called to compute the final output of percentile() and to clean
// up all allocated memory.
-func percentFinal(tls *crt.TLS, pCtx uintptr) { /* percentile.c:182:13: */
+func percentFinal(tls *libc.TLS, pCtx uintptr) { /* percentile.c:182:13: */
var p uintptr
var i1 uint32
var i2 uint32
@@ -19657,8 +23278,8 @@ func percentFinal(tls *crt.TLS, pCtx uintptr) { /* percentile.c:182:13: */
return
}
if (*Percentile)(unsafe.Pointer(p)).FnUsed != 0 {
- crt.Xqsort(tls, (*Percentile)(unsafe.Pointer(p)).Fa, uint64((*Percentile)(unsafe.Pointer(p)).FnUsed), uint64(unsafe.Sizeof(float64(0))), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ libc.Xqsort(tls, (*Percentile)(unsafe.Pointer(p)).Fa, uint64((*Percentile)(unsafe.Pointer(p)).FnUsed), uint64(unsafe.Sizeof(float64(0))), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr) int32
}{doubleCmp})))
ix = ((((*Percentile)(unsafe.Pointer(p)).FrPct - 1.0) * (float64((*Percentile)(unsafe.Pointer(p)).FnUsed - uint32(1)))) * 0.01)
i1 = uint32(ix)
@@ -19673,19 +23294,19 @@ func percentFinal(tls *crt.TLS, pCtx uintptr) { /* percentile.c:182:13: */
sqlite3.Xsqlite3_result_double(tls, pCtx, vx)
}
sqlite3.Xsqlite3_free(tls, (*Percentile)(unsafe.Pointer(p)).Fa)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Percentile{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Percentile{})))
}
-func sqlite3_percentile_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* percentile.c:208:5: */
+func sqlite3_percentile_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* percentile.c:208:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Unused parameter
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4493 /* "percentile" */, 2,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+5778 /* "percentile" */, 2,
(1 | 0x000200000), uintptr(0),
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{percentStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{percentFinal})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{percentStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{percentFinal})))
return rc
}
@@ -19818,45 +23439,45 @@ type prefixes_cursor = prefixes_cursor1 /* prefixes.c:43:32 */
//
// (2) Tell SQLite (via the sqlite3_declare_vtab() interface) what the
// result set of queries against the virtual table will look like.
-func prefixesConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* prefixes.c:64:12: */
+func prefixesConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* prefixes.c:64:12: */
var pNew uintptr
var rc int32
rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+4504 /* "CREATE TABLE pre..." */)
+ ts+5789 /* "CREATE TABLE pre..." */)
if rc == 0 {
pNew = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(prefixes_vtab{})))
*(*uintptr)(unsafe.Pointer(ppVtab)) = pNew
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(prefixes_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(prefixes_vtab{})))
sqlite3.Xsqlite3_vtab_config(tls, db, 2, 0)
}
return rc
}
// This method is the destructor for prefixes_vtab objects.
-func prefixesDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* prefixes.c:90:12: */
+func prefixesDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* prefixes.c:90:12: */
var p uintptr = pVtab
sqlite3.Xsqlite3_free(tls, p)
return 0
}
// Constructor for a new prefixes_cursor object.
-func prefixesOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* prefixes.c:99:12: */
+func prefixesOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* prefixes.c:99:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(prefixes_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(prefixes_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(prefixes_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Destructor for a prefixes_cursor.
-func prefixesClose(tls *crt.TLS, cur uintptr) int32 { /* prefixes.c:111:12: */
+func prefixesClose(tls *libc.TLS, cur uintptr) int32 { /* prefixes.c:111:12: */
var pCur uintptr = cur
sqlite3.Xsqlite3_free(tls, (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr)
sqlite3.Xsqlite3_free(tls, pCur)
@@ -19864,7 +23485,7 @@ func prefixesClose(tls *crt.TLS, cur uintptr) int32 { /* prefixes.c:111:12: */
}
// Advance a prefixes_cursor to its next row of output.
-func prefixesNext(tls *crt.TLS, cur uintptr) int32 { /* prefixes.c:122:12: */
+func prefixesNext(tls *libc.TLS, cur uintptr) int32 { /* prefixes.c:122:12: */
var pCur uintptr = cur
(*prefixes_cursor)(unsafe.Pointer(pCur)).FiRowid++
return 0
@@ -19872,7 +23493,7 @@ func prefixesNext(tls *crt.TLS, cur uintptr) int32 { /* prefixes.c:122:12: */
// Return values of columns for the row at which the prefixes_cursor
// is currently pointing.
-func prefixesColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* prefixes.c:132:12: */
+func prefixesColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* prefixes.c:132:12: */
var pCur uintptr = cur
switch i {
case 0:
@@ -19888,7 +23509,7 @@ func prefixesColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /*
// Return the rowid for the current row. In this implementation, the
// rowid is the same as the output value.
-func prefixesRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* prefixes.c:154:12: */
+func prefixesRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* prefixes.c:154:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*prefixes_cursor)(unsafe.Pointer(pCur)).FiRowid
return 0
@@ -19896,26 +23517,26 @@ func prefixesRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* prefixe
// Return TRUE if the cursor has been moved off of the last
// row of output.
-func prefixesEof(tls *crt.TLS, cur uintptr) int32 { /* prefixes.c:164:12: */
+func prefixesEof(tls *libc.TLS, cur uintptr) int32 { /* prefixes.c:164:12: */
var pCur uintptr = cur
- return (crt.Bool32((*prefixes_cursor)(unsafe.Pointer(pCur)).FiRowid > sqlite3_int64((*prefixes_cursor)(unsafe.Pointer(pCur)).FnStr)))
+ return (libc.Bool32((*prefixes_cursor)(unsafe.Pointer(pCur)).FiRowid > sqlite3_int64((*prefixes_cursor)(unsafe.Pointer(pCur)).FnStr)))
}
// This method is called to "rewind" the prefixes_cursor object back
// to the first row of output. This method is always called at least
// once prior to any call to prefixesColumn() or prefixesRowid() or
// prefixesEof().
-func prefixesFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* prefixes.c:175:12: */
+func prefixesFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* prefixes.c:175:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pCur uintptr = pVtabCursor
sqlite3.Xsqlite3_free(tls, (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr)
if argc > 0 {
- (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))))
+ (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))))
(*prefixes_cursor)(unsafe.Pointer(pCur)).FnStr = func() int32 {
if (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr != 0 {
- return int32(crt.Xstrlen(tls, (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr))
+ return int32(libc.Xstrlen(tls, (*prefixes_cursor)(unsafe.Pointer(pCur)).FzStr))
}
return 0
}()
@@ -19931,7 +23552,7 @@ func prefixesFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uint
// that uses the virtual table. This routine needs to create
// a query plan for each invocation and compute an estimated cost for that
// plan.
-func prefixesBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* prefixes.c:199:12: */
+func prefixesBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* prefixes.c:199:12: */
// Search for a usable equality constraint against column 1
// (original_string) and use it if at all possible
var i int32
@@ -20017,7 +23638,7 @@ var prefixesModule = sqlite3_module{FiVersion:
//
// This function assumes the input is well-formed utf-8. If it is not,
// it is possible for this function to return -1.
-func prefixLengthFunc(tls *crt.TLS, ctx uintptr, nVal int32, apVal uintptr) { /* prefixes.c:279:13: */
+func prefixLengthFunc(tls *libc.TLS, ctx uintptr, nVal int32, apVal uintptr) { /* prefixes.c:279:13: */
var nByte int32 // Number of bytes to compare
var nRet int32 = 0 // Return value
var zL uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(0)*8)))
@@ -20047,15 +23668,15 @@ func prefixLengthFunc(tls *crt.TLS, ctx uintptr, nVal int32, apVal uintptr) { /*
sqlite3.Xsqlite3_result_int(tls, ctx, nRet)
}
-func sqlite3_prefixes_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* prefixes.c:305:5: */
+func sqlite3_prefixes_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* prefixes.c:305:5: */
var rc int32 = 0
_ = pApi
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+4568 /* "prefixes" */, uintptr(unsafe.Pointer(&prefixesModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+5853 /* "prefixes" */, uintptr(unsafe.Pointer(&prefixesModule)), uintptr(0))
if rc == 0 {
rc = sqlite3.Xsqlite3_create_function(tls,
- db, ts+4577 /* "prefix_length" */, 2, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ db, ts+5862 /* "prefix_length" */, 2, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{prefixLengthFunc})), uintptr(0), uintptr(0))
}
return rc
@@ -20130,29 +23751,29 @@ type ReCompiled1 = struct {
type ReCompiled = ReCompiled1 /* regexp.c:122:27 */
// Add a state to the given state set if it is not already there
-func re_add_state(tls *crt.TLS, pSet uintptr, newState int32) { /* regexp.c:136:13: */
+func re_add_state(tls *libc.TLS, pSet uintptr, newState int32) { /* regexp.c:136:13: */
var i uint32
for i = uint32(0); i < (*ReStateSet)(unsafe.Pointer(pSet)).FnState; i++ {
if int32(*(*ReStateNumber)(unsafe.Pointer((*ReStateSet)(unsafe.Pointer(pSet)).FaState + uintptr(i)*2))) == newState {
return
}
}
- *(*ReStateNumber)(unsafe.Pointer((*ReStateSet)(unsafe.Pointer(pSet)).FaState + uintptr(crt.PostIncUint32(&(*ReStateSet)(unsafe.Pointer(pSet)).FnState, 1))*2)) = ReStateNumber(newState)
+ *(*ReStateNumber)(unsafe.Pointer((*ReStateSet)(unsafe.Pointer(pSet)).FaState + uintptr(libc.PostIncUint32(&(*ReStateSet)(unsafe.Pointer(pSet)).FnState, 1))*2)) = ReStateNumber(newState)
}
// Extract the next unicode character from *pzIn and return it. Advance
// *pzIn to the first byte past the end of the character returned. To
// be clear: this routine converts utf8 to unicode. This routine is
// optimized for the common case where the next character is a single byte.
-func re_next_char(tls *crt.TLS, p uintptr) uint32 { /* regexp.c:147:17: */
+func re_next_char(tls *libc.TLS, p uintptr) uint32 { /* regexp.c:147:17: */
var c uint32
if (*ReInput)(unsafe.Pointer(p)).Fi >= (*ReInput)(unsafe.Pointer(p)).Fmx {
return uint32(0)
}
- c = uint32(*(*uint8)(unsafe.Pointer((*ReInput)(unsafe.Pointer(p)).Fz + uintptr(crt.PostIncInt32(&(*ReInput)(unsafe.Pointer(p)).Fi, 1)))))
+ c = uint32(*(*uint8)(unsafe.Pointer((*ReInput)(unsafe.Pointer(p)).Fz + uintptr(libc.PostIncInt32(&(*ReInput)(unsafe.Pointer(p)).Fi, 1)))))
if c >= uint32(0x80) {
if (((c & uint32(0xe0)) == uint32(0xc0)) && ((*ReInput)(unsafe.Pointer(p)).Fi < (*ReInput)(unsafe.Pointer(p)).Fmx)) && ((int32(*(*uint8)(unsafe.Pointer((*ReInput)(unsafe.Pointer(p)).Fz + uintptr((*ReInput)(unsafe.Pointer(p)).Fi)))) & 0xc0) == 0x80) {
- c = (((c & uint32(0x1f)) << 6) | (uint32(int32(*(*uint8)(unsafe.Pointer((*ReInput)(unsafe.Pointer(p)).Fz + uintptr(crt.PostIncInt32(&(*ReInput)(unsafe.Pointer(p)).Fi, 1))))) & 0x3f)))
+ c = (((c & uint32(0x1f)) << 6) | (uint32(int32(*(*uint8)(unsafe.Pointer((*ReInput)(unsafe.Pointer(p)).Fz + uintptr(libc.PostIncInt32(&(*ReInput)(unsafe.Pointer(p)).Fi, 1))))) & 0x3f)))
if c < uint32(0x80) {
c = uint32(0xfffd)
}
@@ -20177,7 +23798,7 @@ func re_next_char(tls *crt.TLS, p uintptr) uint32 { /* regexp.c:147:17: */
}
return c
}
-func re_next_char_nocase(tls *crt.TLS, p uintptr) uint32 { /* regexp.c:172:17: */
+func re_next_char_nocase(tls *libc.TLS, p uintptr) uint32 { /* regexp.c:172:17: */
var c uint32 = re_next_char(tls, p)
if (c >= uint32('A')) && (c <= uint32('Z')) {
c = c + (uint32('a' - 'A'))
@@ -20186,24 +23807,24 @@ func re_next_char_nocase(tls *crt.TLS, p uintptr) uint32 { /* regexp.c:172:17: *
}
// Return true if c is a perl "word" character: [A-Za-z0-9_]
-func re_word_char(tls *crt.TLS, c int32) int32 { /* regexp.c:179:12: */
- return (crt.Bool32(((((c >= '0') && (c <= '9')) || ((c >= 'a') && (c <= 'z'))) ||
+func re_word_char(tls *libc.TLS, c int32) int32 { /* regexp.c:179:12: */
+ return (libc.Bool32(((((c >= '0') && (c <= '9')) || ((c >= 'a') && (c <= 'z'))) ||
((c >= 'A') && (c <= 'Z'))) || (c == '_')))
}
// Return true if c is a "digit" character: [0-9]
-func re_digit_char(tls *crt.TLS, c int32) int32 { /* regexp.c:185:12: */
- return (crt.Bool32((c >= '0') && (c <= '9')))
+func re_digit_char(tls *libc.TLS, c int32) int32 { /* regexp.c:185:12: */
+ return (libc.Bool32((c >= '0') && (c <= '9')))
}
// Return true if c is a perl "space" character: [ \t\r\n\v\f]
-func re_space_char(tls *crt.TLS, c int32) int32 { /* regexp.c:190:12: */
- return (crt.Bool32((((((c == ' ') || (c == '\t')) || (c == '\n')) || (c == '\r')) || (c == '\v')) || (c == '\f')))
+func re_space_char(tls *libc.TLS, c int32) int32 { /* regexp.c:190:12: */
+ return (libc.Bool32((((((c == ' ') || (c == '\t')) || (c == '\n')) || (c == '\r')) || (c == '\v')) || (c == '\f')))
}
// Run a compiled regular expression on the zero-terminated input
// string zIn[]. Return true on a match and false if there is no match.
-func sqlite3re_match(tls *crt.TLS, pRe uintptr, zIn uintptr, nIn int32) int32 { /* regexp.c:197:12: */
+func sqlite3re_match(tls *libc.TLS, pRe uintptr, zIn uintptr, nIn int32) int32 { /* regexp.c:197:12: */
bp := tls.Alloc(248)
defer tls.Free(248)
@@ -20238,7 +23859,7 @@ func sqlite3re_match(tls *crt.TLS, pRe uintptr, zIn uintptr, nIn int32) int32 {
if nIn >= 0 {
return nIn
}
- return int32(crt.Xstrlen(tls, zIn))
+ return int32(libc.Xstrlen(tls, zIn))
}()
// Look for the initial prefix match, if there is one.
@@ -20248,7 +23869,7 @@ func sqlite3re_match(tls *crt.TLS, pRe uintptr, zIn uintptr, nIn int32) int32 {
x = *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(0)))
__2:
if !((((*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fi + (*ReCompiled)(unsafe.Pointer(pRe)).FnInit) <= (*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fmx) &&
- ((int32(*(*uint8)(unsafe.Pointer(zIn + uintptr((*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fi)))) != int32(x)) || (crt.Xstrncmp(tls, (zIn+uintptr((*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fi)), pRe+48 /* &.zInit */, uint64((*ReCompiled)(unsafe.Pointer(pRe)).FnInit)) != 0))) {
+ ((int32(*(*uint8)(unsafe.Pointer(zIn + uintptr((*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fi)))) != int32(x)) || (libc.Xstrncmp(tls, (zIn+uintptr((*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fi)), pRe+48 /* &.zInit */, uint64((*ReCompiled)(unsafe.Pointer(pRe)).FnInit)) != 0))) {
goto __3
}
(*ReInput)(unsafe.Pointer(bp+232 /* &in */)).Fi++
@@ -20290,7 +23911,7 @@ __8:
goto __9
}
cPrev = c
- c = int32((*(*func(*crt.TLS, uintptr) uint32)(unsafe.Pointer((pRe + 40 /* &.xNextChar */))))(tls, bp+232 /* &in */))
+ c = int32((*(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer((pRe + 40 /* &.xNextChar */))))(tls, bp+232 /* &in */))
pThis = pNext
pNext = (bp /* &aStateSet */ + uintptr(iSwap)*16)
iSwap = (uint32(1) - iSwap)
@@ -20459,7 +24080,7 @@ __39:
if !(int32(*(*int8)(unsafe.Pointer((*ReCompiled)(unsafe.Pointer(pRe)).FaOp + uintptr(x1)))) == 8) {
goto __45
}
- hit = crt.BoolInt32(!(hit != 0))
+ hit = libc.BoolInt32(!(hit != 0))
__45:
;
if !(hit != 0) {
@@ -20506,7 +24127,7 @@ re_match_end:
}
// Resize the opcode and argument arrays for an RE under construction.
-func re_resize(tls *crt.TLS, p uintptr, N int32) int32 { /* regexp.c:337:12: */
+func re_resize(tls *libc.TLS, p uintptr, N int32) int32 { /* regexp.c:337:12: */
var aOp uintptr
var aArg uintptr
aOp = sqlite3.Xsqlite3_realloc64(tls, (*ReCompiled)(unsafe.Pointer(p)).FaOp, (uint64(uint64(N) * uint64(unsafe.Sizeof(int8(0))))))
@@ -20525,7 +24146,7 @@ func re_resize(tls *crt.TLS, p uintptr, N int32) int32 { /* regexp.c:337:12: */
// Insert a new opcode and argument into an RE under construction. The
// insertion point is just prior to existing opcode iBefore.
-func re_insert(tls *crt.TLS, p uintptr, iBefore int32, op int32, arg int32) int32 { /* regexp.c:353:12: */
+func re_insert(tls *libc.TLS, p uintptr, iBefore int32, op int32, arg int32) int32 { /* regexp.c:353:12: */
var i int32
if ((*ReCompiled)(unsafe.Pointer(p)).FnAlloc <= (*ReCompiled)(unsafe.Pointer(p)).FnState) && (re_resize(tls, p, (int32((*ReCompiled)(unsafe.Pointer(p)).FnAlloc*uint32(2)))) != 0) {
return 0
@@ -20541,25 +24162,25 @@ func re_insert(tls *crt.TLS, p uintptr, iBefore int32, op int32, arg int32) int3
}
// Append a new opcode and argument to the end of the RE under construction.
-func re_append(tls *crt.TLS, p uintptr, op int32, arg int32) int32 { /* regexp.c:368:12: */
+func re_append(tls *libc.TLS, p uintptr, op int32, arg int32) int32 { /* regexp.c:368:12: */
return re_insert(tls, p, int32((*ReCompiled)(unsafe.Pointer(p)).FnState), op, arg)
}
// Make a copy of N opcodes starting at iStart onto the end of the RE
// under construction.
-func re_copy(tls *crt.TLS, p uintptr, iStart int32, N int32) { /* regexp.c:375:13: */
+func re_copy(tls *libc.TLS, p uintptr, iStart int32, N int32) { /* regexp.c:375:13: */
if (((*ReCompiled)(unsafe.Pointer(p)).FnState + uint32(N)) >= (*ReCompiled)(unsafe.Pointer(p)).FnAlloc) && (re_resize(tls, p, (int32(((*ReCompiled)(unsafe.Pointer(p)).FnAlloc*uint32(2))+uint32(N)))) != 0) {
return
}
- crt.Xmemcpy(tls, ((*ReCompiled)(unsafe.Pointer(p)).FaOp + uintptr((*ReCompiled)(unsafe.Pointer(p)).FnState)), ((*ReCompiled)(unsafe.Pointer(p)).FaOp + uintptr(iStart)), (uint64(N) * uint64(unsafe.Sizeof(int8(0)))))
- crt.Xmemcpy(tls, ((*ReCompiled)(unsafe.Pointer(p)).FaArg + uintptr((*ReCompiled)(unsafe.Pointer(p)).FnState)*4), ((*ReCompiled)(unsafe.Pointer(p)).FaArg + uintptr(iStart)*4), (uint64(N) * uint64(unsafe.Sizeof(int32(0)))))
+ libc.Xmemcpy(tls, ((*ReCompiled)(unsafe.Pointer(p)).FaOp + uintptr((*ReCompiled)(unsafe.Pointer(p)).FnState)), ((*ReCompiled)(unsafe.Pointer(p)).FaOp + uintptr(iStart)), (uint64(N) * uint64(unsafe.Sizeof(int8(0)))))
+ libc.Xmemcpy(tls, ((*ReCompiled)(unsafe.Pointer(p)).FaArg + uintptr((*ReCompiled)(unsafe.Pointer(p)).FnState)*4), ((*ReCompiled)(unsafe.Pointer(p)).FaArg + uintptr(iStart)*4), (uint64(N) * uint64(unsafe.Sizeof(int32(0)))))
*(*uint32)(unsafe.Pointer(p + 64 /* &.nState */)) += (uint32(N))
}
// Return true if c is a hexadecimal digit character: [0-9a-fA-F]
// If c is a hex digit, also set *pV = (*pV)*16 + valueof(c). If
// c is not a hex digit *pV is unchanged.
-func re_hex(tls *crt.TLS, c int32, pV uintptr) int32 { /* regexp.c:386:12: */
+func re_hex(tls *libc.TLS, c int32, pV uintptr) int32 { /* regexp.c:386:12: */
if (c >= '0') && (c <= '9') {
c = c - ('0')
} else if (c >= 'a') && (c <= 'f') {
@@ -20575,7 +24196,7 @@ func re_hex(tls *crt.TLS, c int32, pV uintptr) int32 { /* regexp.c:386:12: */
// A backslash character has been seen, read the next character and
// return its interpretation.
-func re_esc_char(tls *crt.TLS, p uintptr) uint32 { /* regexp.c:403:17: */
+func re_esc_char(tls *libc.TLS, p uintptr) uint32 { /* regexp.c:403:17: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -20612,16 +24233,16 @@ func re_esc_char(tls *crt.TLS, p uintptr) uint32 { /* regexp.c:403:17: */
}
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
} else {
- (*ReCompiled)(unsafe.Pointer(p)).FzErr = ts + 4591 /* "unknown \\ escape" */
+ (*ReCompiled)(unsafe.Pointer(p)).FzErr = ts + 5876 /* "unknown \\ escape" */
}
return uint32(c)
}
-var zEsc = *(*[21]int8)(unsafe.Pointer(ts + 4608 /* "afnrtv\\()*.+?[$^..." */)) /* regexp.c:404:21 */
-var zTrans = *(*[7]int8)(unsafe.Pointer(ts + 4629 /* "\a\f\n\r\t\v" */)) /* regexp.c:405:21 */
+var zEsc = *(*[21]int8)(unsafe.Pointer(ts + 5893 /* "afnrtv\\()*.+?[$^..." */)) /* regexp.c:404:21 */
+var zTrans = *(*[7]int8)(unsafe.Pointer(ts + 5914 /* "\a\f\n\r\t\v" */)) /* regexp.c:405:21 */
// Peek at the next byte of input
-func rePeek(tls *crt.TLS, p uintptr) uint8 { /* regexp.c:444:22: */
+func rePeek(tls *libc.TLS, p uintptr) uint8 { /* regexp.c:444:22: */
if (*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi < (*ReCompiled)(unsafe.Pointer(p)).FsIn.Fmx {
return *(*uint8)(unsafe.Pointer((*ReCompiled)(unsafe.Pointer(p)).FsIn.Fz + uintptr((*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi)))
}
@@ -20631,7 +24252,7 @@ func rePeek(tls *crt.TLS, p uintptr) uint8 { /* regexp.c:444:22: */
// Compile RE text into a sequence of opcodes. Continue up to the
// first unmatched ")" character, then return. If an error is found,
// return a pointer to the error message string.
-func re_subcompile_re(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:452:19: */
+func re_subcompile_re(tls *libc.TLS, p uintptr) uintptr { /* regexp.c:452:19: */
var zErr uintptr
var iStart int32
var iEnd int32
@@ -20658,12 +24279,12 @@ func re_subcompile_re(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:452:19: */
// Compile an element of regular expression text (anything that can be
// an operand to the "|" operator). Return NULL on success or a pointer
// to the error message if there is a problem.
-func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19: */
+func re_subcompile_string(tls *libc.TLS, p uintptr) uintptr { /* regexp.c:474:19: */
var iPrev int32 = -1
var iStart int32
var c uint32
var zErr uintptr
- for (crt.AssignUint32(&c, (*(*func(*crt.TLS, uintptr) uint32)(unsafe.Pointer((p + 40 /* &.xNextChar */))))(tls, (p /* &.sIn */)))) != uint32(0) {
+ for (libc.AssignUint32(&c, (*(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer((p + 40 /* &.xNextChar */))))(tls, (p /* &.sIn */)))) != uint32(0) {
iStart = int32((*ReCompiled)(unsafe.Pointer(p)).FnState)
switch c {
case uint32('|'):
@@ -20682,7 +24303,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
return zErr
}
if int32(rePeek(tls, p)) != ')' {
- return ts + 4636 /* "unmatched '('" */
+ return ts + 5921 /* "unmatched '('" */
}
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
break
@@ -20700,7 +24321,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
case uint32('*'):
{
if iPrev < 0 {
- return ts + 4650 /* "'*' without oper..." */
+ return ts + 5935 /* "'*' without oper..." */
}
re_insert(tls, p, iPrev, 5, (int32(((*ReCompiled)(unsafe.Pointer(p)).FnState - uint32(iPrev)) + uint32(1))))
re_append(tls, p, 4, (int32((uint32(iPrev) - (*ReCompiled)(unsafe.Pointer(p)).FnState) + uint32(1))))
@@ -20709,7 +24330,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
case uint32('+'):
{
if iPrev < 0 {
- return ts + 4670 /* "'+' without oper..." */
+ return ts + 5955 /* "'+' without oper..." */
}
re_append(tls, p, 4, (int32(uint32(iPrev) - (*ReCompiled)(unsafe.Pointer(p)).FnState)))
break
@@ -20717,7 +24338,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
case uint32('?'):
{
if iPrev < 0 {
- return ts + 4690 /* "'?' without oper..." */
+ return ts + 5975 /* "'?' without oper..." */
}
re_insert(tls, p, iPrev, 4, (int32(((*ReCompiled)(unsafe.Pointer(p)).FnState - uint32(iPrev)) + uint32(1))))
break
@@ -20729,9 +24350,9 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
var sz int32
var j int32
if iPrev < 0 {
- return ts + 4710 /* "'{m,n}' without ..." */
+ return ts + 5995 /* "'{m,n}' without ..." */
}
- for ((crt.AssignUint32(&c, uint32(rePeek(tls, p)))) >= uint32('0')) && (c <= uint32('9')) {
+ for ((libc.AssignUint32(&c, uint32(rePeek(tls, p)))) >= uint32('0')) && (c <= uint32('9')) {
m = (int32(((uint32(m * 10)) + c) - uint32('0')))
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
}
@@ -20739,22 +24360,22 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
if c == uint32(',') {
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
n = 0
- for ((crt.AssignUint32(&c, uint32(rePeek(tls, p)))) >= uint32('0')) && (c <= uint32('9')) {
+ for ((libc.AssignUint32(&c, uint32(rePeek(tls, p)))) >= uint32('0')) && (c <= uint32('9')) {
n = (int32(((uint32(n * 10)) + c) - uint32('0')))
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
}
}
if c != uint32('}') {
- return ts + 4734 /* "unmatched '{'" */
+ return ts + 6019 /* "unmatched '{'" */
}
if (n > 0) && (n < m) {
- return ts + 4748 /* "n less than m in..." */
+ return ts + 6033 /* "n less than m in..." */
}
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
sz = (int32((*ReCompiled)(unsafe.Pointer(p)).FnState - uint32(iPrev)))
if m == 0 {
if n == 0 {
- return ts + 4773 /* "both m and n are..." */
+ return ts + 6058 /* "both m and n are..." */
}
re_insert(tls, p, iPrev, 4, (sz + 1))
n--
@@ -20781,9 +24402,9 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
} else {
re_append(tls, p, 7, 0)
}
- for (crt.AssignUint32(&c, (*(*func(*crt.TLS, uintptr) uint32)(unsafe.Pointer((p + 40 /* &.xNextChar */))))(tls, (p /* &.sIn */)))) != uint32(0) {
+ for (libc.AssignUint32(&c, (*(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer((p + 40 /* &.xNextChar */))))(tls, (p /* &.sIn */)))) != uint32(0) {
if (c == uint32('[')) && (int32(rePeek(tls, p)) == ':') {
- return ts + 4806 /* "POSIX character ..." */
+ return ts + 6091 /* "POSIX character ..." */
}
if c == uint32('\\') {
c = re_esc_char(tls, p)
@@ -20791,7 +24412,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
if int32(rePeek(tls, p)) == '-' {
re_append(tls, p, 10, int32(c))
(*ReCompiled)(unsafe.Pointer(p)).FsIn.Fi++
- c = (*(*func(*crt.TLS, uintptr) uint32)(unsafe.Pointer((p + 40 /* &.xNextChar */))))(tls, (p /* &.sIn */))
+ c = (*(*func(*libc.TLS, uintptr) uint32)(unsafe.Pointer((p + 40 /* &.xNextChar */))))(tls, (p /* &.sIn */))
if c == uint32('\\') {
c = re_esc_char(tls, p)
}
@@ -20805,7 +24426,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
}
}
if c == uint32(0) {
- return ts + 4844 /* "unclosed '['" */
+ return ts + 6129 /* "unclosed '['" */
}
*(*int32)(unsafe.Pointer((*ReCompiled)(unsafe.Pointer(p)).FaArg + uintptr(iFirst)*4)) = (int32((*ReCompiled)(unsafe.Pointer(p)).FnState - uint32(iFirst)))
break
@@ -20859,7 +24480,7 @@ func re_subcompile_string(tls *crt.TLS, p uintptr) uintptr { /* regexp.c:474:19:
// Free and reclaim all the memory used by a previously compiled
// regular expression. Applications should invoke this routine once
// for every call to re_compile() to avoid memory leaks.
-func sqlite3re_free(tls *crt.TLS, pRe uintptr) { /* regexp.c:613:13: */
+func sqlite3re_free(tls *libc.TLS, pRe uintptr) { /* regexp.c:613:13: */
if pRe != 0 {
sqlite3.Xsqlite3_free(tls, (*ReCompiled)(unsafe.Pointer(pRe)).FaOp)
sqlite3.Xsqlite3_free(tls, (*ReCompiled)(unsafe.Pointer(pRe)).FaArg)
@@ -20871,7 +24492,7 @@ func sqlite3re_free(tls *crt.TLS, pRe uintptr) { /* regexp.c:613:13: */
// expression suitable for us by re_match() and return a pointer to the
// compiled regular expression in *ppRe. Return NULL on success or an
// error message if something goes wrong.
-func sqlite3re_compile(tls *crt.TLS, ppRe uintptr, zIn uintptr, noCase int32) uintptr { /* regexp.c:627:19: */
+func sqlite3re_compile(tls *libc.TLS, ppRe uintptr, zIn uintptr, noCase int32) uintptr { /* regexp.c:627:19: */
var pRe uintptr
var zErr uintptr
var i int32
@@ -20882,15 +24503,15 @@ func sqlite3re_compile(tls *crt.TLS, ppRe uintptr, zIn uintptr, noCase int32) ui
if pRe == uintptr(0) {
return ts + 1929 /* "out of memory" */
}
- crt.Xmemset(tls, pRe, 0, uint64(unsafe.Sizeof(ReCompiled{})))
+ libc.Xmemset(tls, pRe, 0, uint64(unsafe.Sizeof(ReCompiled{})))
(*ReCompiled)(unsafe.Pointer(pRe)).FxNextChar = func() uintptr {
if noCase != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr) uint32
+ f func(*libc.TLS, uintptr) uint32
}{re_next_char_nocase}))
}
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr) uint32
+ f func(*libc.TLS, uintptr) uint32
}{re_next_char}))
}()
if re_resize(tls, pRe, 30) != 0 {
@@ -20904,7 +24525,7 @@ func sqlite3re_compile(tls *crt.TLS, ppRe uintptr, zIn uintptr, noCase int32) ui
}
(*ReCompiled)(unsafe.Pointer(pRe)).FsIn.Fz = zIn
(*ReCompiled)(unsafe.Pointer(pRe)).FsIn.Fi = 0
- (*ReCompiled)(unsafe.Pointer(pRe)).FsIn.Fmx = int32(crt.Xstrlen(tls, zIn))
+ (*ReCompiled)(unsafe.Pointer(pRe)).FsIn.Fmx = int32(libc.Xstrlen(tls, zIn))
zErr = re_subcompile_re(tls, pRe)
if zErr != 0 {
sqlite3re_free(tls, pRe)
@@ -20919,7 +24540,7 @@ func sqlite3re_compile(tls *crt.TLS, ppRe uintptr, zIn uintptr, noCase int32) ui
*(*uintptr)(unsafe.Pointer(ppRe)) = pRe
} else {
sqlite3re_free(tls, pRe)
- return ts + 4857 /* "unrecognized cha..." */
+ return ts + 6142 /* "unrecognized cha..." */
}
// The following is a performance optimization. If the regex begins with
@@ -20936,14 +24557,14 @@ func sqlite3re_compile(tls *crt.TLS, ppRe uintptr, zIn uintptr, noCase int32) ui
for ; (uint64(j) < (uint64(unsafe.Sizeof([12]uint8{})) - uint64(2))) && (int32(*(*int8)(unsafe.Pointer((*ReCompiled)(unsafe.Pointer(pRe)).FaOp + uintptr(i)))) == 1); i++ {
var x uint32 = uint32(*(*int32)(unsafe.Pointer((*ReCompiled)(unsafe.Pointer(pRe)).FaArg + uintptr(i)*4)))
if x <= uint32(127) {
- *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(crt.PostIncInt32(&j, 1)))) = uint8(x)
+ *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(libc.PostIncInt32(&j, 1)))) = uint8(x)
} else if x <= uint32(0xfff) {
- *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(crt.PostIncInt32(&j, 1)))) = (uint8(uint32(0xc0) | (x >> 6)))
- *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(crt.PostIncInt32(&j, 1)))) = (uint8(uint32(0x80) | (x & uint32(0x3f))))
+ *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(libc.PostIncInt32(&j, 1)))) = (uint8(uint32(0xc0) | (x >> 6)))
+ *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(libc.PostIncInt32(&j, 1)))) = (uint8(uint32(0x80) | (x & uint32(0x3f))))
} else if x <= uint32(0xffff) {
- *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(crt.PostIncInt32(&j, 1)))) = (uint8(uint32(0xd0) | (x >> 12)))
- *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(crt.PostIncInt32(&j, 1)))) = (uint8(uint32(0x80) | ((x >> 6) & uint32(0x3f))))
- *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(crt.PostIncInt32(&j, 1)))) = (uint8(uint32(0x80) | (x & uint32(0x3f))))
+ *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(libc.PostIncInt32(&j, 1)))) = (uint8(uint32(0xd0) | (x >> 12)))
+ *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(libc.PostIncInt32(&j, 1)))) = (uint8(uint32(0x80) | ((x >> 6) & uint32(0x3f))))
+ *(*uint8)(unsafe.Pointer((pRe + 48 /* &.zInit */) + uintptr(libc.PostIncInt32(&j, 1)))) = (uint8(uint32(0x80) | (x & uint32(0x3f))))
} else {
break
}
@@ -20963,7 +24584,7 @@ func sqlite3re_compile(tls *crt.TLS, ppRe uintptr, zIn uintptr, noCase int32) ui
// A REGEXP B
//
// is implemented as regexp(B,A).
-func re_sql_func(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* regexp.c:707:13: */
+func re_sql_func(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* regexp.c:707:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -20997,19 +24618,19 @@ func re_sql_func(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* r
sqlite3.Xsqlite3_result_int(tls, context, sqlite3re_match(tls, *(*uintptr)(unsafe.Pointer(bp /* pRe */)), zStr, -1))
}
if setAux != 0 {
- sqlite3.Xsqlite3_set_auxdata(tls, context, 0, *(*uintptr)(unsafe.Pointer(bp /* pRe */)), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3re_free})))
+ sqlite3.Xsqlite3_set_auxdata(tls, context, 0, *(*uintptr)(unsafe.Pointer(bp /* pRe */)), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3re_free})))
}
}
// Invoke this routine to register the regexp() function with the
// SQLite database connection.
-func sqlite3_regexp_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* regexp.c:750:5: */
+func sqlite3_regexp_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* regexp.c:750:5: */
var rc int32 = 0
_ = pApi
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4880 /* "regexp" */, 2, (1 | 0x000200000),
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6165 /* "regexp" */, 2, (1 | 0x000200000),
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{re_sql_func})), uintptr(0), uintptr(0))
return rc
}
@@ -21442,25 +25063,25 @@ func sqlite3_regexp_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintpt
//
// Return the integer value V. Also save the value of V in a
// C-language variable whose address is PTR.
-func rememberFunc(tls *crt.TLS, pCtx uintptr, argc int32, argv uintptr) { /* remember.c:45:13: */
+func rememberFunc(tls *libc.TLS, pCtx uintptr, argc int32, argv uintptr) { /* remember.c:45:13: */
var v sqlite3_int64
var ptr uintptr
v = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- ptr = sqlite3.Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+2713 /* "carray" */)
+ ptr = sqlite3.Xsqlite3_value_pointer(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+3862 /* "carray" */)
if ptr != 0 {
*(*sqlite3_int64)(unsafe.Pointer(ptr)) = v
}
sqlite3.Xsqlite3_result_int64(tls, pCtx, v)
}
-func sqlite3_remember_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* remember.c:62:5: */
+func sqlite3_remember_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* remember.c:62:5: */
var rc int32 = 0
_ = pApi
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+4887 /* "remember" */, 2, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6172 /* "remember" */, 2, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{rememberFunc})), uintptr(0), uintptr(0))
return rc
}
@@ -21494,51 +25115,51 @@ type series_cursor = series_cursor1 /* series.c:83:30 */
//
// (2) Tell SQLite (via the sqlite3_declare_vtab() interface) what the
// result set of queries against generate_series will look like.
-func seriesConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* series.c:107:12: */
+func seriesConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* series.c:107:12: */
var pNew uintptr
var rc int32
// Column numbers
rc = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+4896 /* "CREATE TABLE x(v..." */)
+ ts+6181 /* "CREATE TABLE x(v..." */)
if rc == 0 {
- pNew = crt.AssignPtrUintptr(ppVtab, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(sqlite3_vtab{}))))
+ pNew = libc.AssignPtrUintptr(ppVtab, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(sqlite3_vtab{}))))
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(sqlite3_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(sqlite3_vtab{})))
sqlite3.Xsqlite3_vtab_config(tls, db, 2, 0)
}
return rc
}
// This method is the destructor for series_cursor objects.
-func seriesDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* series.c:137:12: */
+func seriesDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* series.c:137:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Constructor for a new series_cursor object.
-func seriesOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* series.c:145:12: */
+func seriesOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* series.c:145:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(series_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(series_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(series_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Destructor for a series_cursor.
-func seriesClose(tls *crt.TLS, cur uintptr) int32 { /* series.c:157:12: */
+func seriesClose(tls *libc.TLS, cur uintptr) int32 { /* series.c:157:12: */
sqlite3.Xsqlite3_free(tls, cur)
return 0
}
// Advance a series_cursor to its next row of output.
-func seriesNext(tls *crt.TLS, cur uintptr) int32 { /* series.c:166:12: */
+func seriesNext(tls *libc.TLS, cur uintptr) int32 { /* series.c:166:12: */
var pCur uintptr = cur
if (*series_cursor)(unsafe.Pointer(pCur)).FisDesc != 0 {
*(*sqlite3_int64)(unsafe.Pointer(pCur + 24 /* &.iValue */)) -= ((*series_cursor)(unsafe.Pointer(pCur)).FiStep)
@@ -21551,7 +25172,7 @@ func seriesNext(tls *crt.TLS, cur uintptr) int32 { /* series.c:166:12: */
// Return values of columns for the row at which the series_cursor
// is currently pointing.
-func seriesColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* series.c:181:12: */
+func seriesColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* series.c:181:12: */
var pCur uintptr = cur
var x sqlite3_int64 = int64(0)
switch i {
@@ -21575,7 +25196,7 @@ func seriesColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* se
// Return the rowid for the current row. In this implementation, the
// first row returned is assigned rowid value 1, and each subsequent
// row a value 1 more than that of the previous.
-func seriesRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* series.c:203:12: */
+func seriesRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* series.c:203:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*series_cursor)(unsafe.Pointer(pCur)).FiRowid
return 0
@@ -21583,12 +25204,12 @@ func seriesRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* series.c:
// Return TRUE if the cursor has been moved off of the last
// row of output.
-func seriesEof(tls *crt.TLS, cur uintptr) int32 { /* series.c:213:12: */
+func seriesEof(tls *libc.TLS, cur uintptr) int32 { /* series.c:213:12: */
var pCur uintptr = cur
if (*series_cursor)(unsafe.Pointer(pCur)).FisDesc != 0 {
- return (crt.Bool32((*series_cursor)(unsafe.Pointer(pCur)).FiValue < (*series_cursor)(unsafe.Pointer(pCur)).FmnValue))
+ return (libc.Bool32((*series_cursor)(unsafe.Pointer(pCur)).FiValue < (*series_cursor)(unsafe.Pointer(pCur)).FmnValue))
} else {
- return (crt.Bool32((*series_cursor)(unsafe.Pointer(pCur)).FiValue > (*series_cursor)(unsafe.Pointer(pCur)).FmxValue))
+ return (libc.Bool32((*series_cursor)(unsafe.Pointer(pCur)).FiValue > (*series_cursor)(unsafe.Pointer(pCur)).FmxValue))
}
return int32(0)
}
@@ -21616,21 +25237,21 @@ func seriesEof(tls *crt.TLS, cur uintptr) int32 { /* series.c:213:12: */
// This routine should initialize the cursor and position it so that it
// is pointing at the first row, or pointing off the end of the table
// (so that seriesEof() will return true) if the table is empty.
-func seriesFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* series.c:251:12: */
+func seriesFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* series.c:251:12: */
var pCur uintptr = pVtabCursor
var i int32 = 0
if (idxNum & 1) != 0 {
- (*series_cursor)(unsafe.Pointer(pCur)).FmnValue = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&i, 1))*8)))
+ (*series_cursor)(unsafe.Pointer(pCur)).FmnValue = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&i, 1))*8)))
} else {
(*series_cursor)(unsafe.Pointer(pCur)).FmnValue = int64(0)
}
if (idxNum & 2) != 0 {
- (*series_cursor)(unsafe.Pointer(pCur)).FmxValue = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&i, 1))*8)))
+ (*series_cursor)(unsafe.Pointer(pCur)).FmxValue = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&i, 1))*8)))
} else {
(*series_cursor)(unsafe.Pointer(pCur)).FmxValue = int64(0xffffffff)
}
if (idxNum & 4) != 0 {
- (*series_cursor)(unsafe.Pointer(pCur)).FiStep = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&i, 1))*8)))
+ (*series_cursor)(unsafe.Pointer(pCur)).FiStep = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&i, 1))*8)))
if (*series_cursor)(unsafe.Pointer(pCur)).FiStep < int64(1) {
(*series_cursor)(unsafe.Pointer(pCur)).FiStep = int64(1)
}
@@ -21674,7 +25295,7 @@ func seriesFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
// (2) stop = $value -- constraint exists
// (4) step = $value -- constraint exists
// (8) output in descending order
-func seriesBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* series.c:313:12: */
+func seriesBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* series.c:313:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -21690,7 +25311,7 @@ func seriesBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* ser
// This implementation assumes that the start, stop, and step columns
// are the last three columns in the virtual table.
- *(*int32)(unsafe.Pointer(bp /* &aIdx[0] */ + uintptr(0)*4)) = crt.AssignPtrInt32(bp /* &aIdx */ +uintptr(1)*4, crt.AssignPtrInt32(bp /* &aIdx */ +uintptr(2)*4, -1))
+ *(*int32)(unsafe.Pointer(bp /* &aIdx[0] */ + uintptr(0)*4)) = libc.AssignPtrInt32(bp /* &aIdx */ +uintptr(1)*4, libc.AssignPtrInt32(bp /* &aIdx */ +uintptr(2)*4, -1))
pConstraint = (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint
i = 0
__1:
@@ -21723,9 +25344,9 @@ __2:
__3:
;
for i = 0; i < 3; i++ {
- if (crt.AssignInt32(&j, *(*int32)(unsafe.Pointer(bp /* &aIdx[0] */ + uintptr(i)*4)))) >= 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(j)*8)).FargvIndex = crt.PreIncInt32(&nArg, 1)
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(j)*8)).Fomit = crt.BoolUint8(!(1 != 0))
+ if (libc.AssignInt32(&j, *(*int32)(unsafe.Pointer(bp /* &aIdx[0] */ + uintptr(i)*4)))) >= 0 {
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(j)*8)).FargvIndex = libc.PreIncInt32(&nArg, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(j)*8)).Fomit = libc.BoolUint8(!(1 != 0))
}
}
if (unusableMask & ^idxNum) != 0 {
@@ -21737,7 +25358,7 @@ __3:
if (idxNum & 3) == 3 {
// Both start= and stop= boundaries are available. This is the
// the preferred case
- (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = (float64(2 - (crt.Bool32((idxNum & 4) != 0))))
+ (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = (float64(2 - (libc.Bool32((idxNum & 4) != 0))))
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedRows = int64(1000)
if (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnOrderBy == 1 {
if (*sqlite3_index_orderby)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaOrderBy+uintptr(0)*8)).Fdesc != 0 {
@@ -21779,16 +25400,16 @@ uintptr(0), FxRename:// xFindMethod
uintptr(0), // xRename
} /* series.c:380:23 */
-func sqlite3_series_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* series.c:408:5: */
+func sqlite3_series_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* series.c:408:5: */
var rc int32 = 0
_ = pApi
if sqlite3.Xsqlite3_libversion_number(tls) < 3008012 {
*(*uintptr)(unsafe.Pointer(pzErrMsg)) = sqlite3.Xsqlite3_mprintf(tls,
- ts+4955 /* "generate_series(..." */, 0)
+ ts+6240 /* "generate_series(..." */, 0)
return 1
}
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+5005 /* "generate_series" */, uintptr(unsafe.Pointer(&seriesModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+6290 /* "generate_series" */, uintptr(unsafe.Pointer(&seriesModule)), uintptr(0))
return rc
}
@@ -21977,7 +25598,7 @@ var initClass = [128]uint8{
// Mapping from the character class number (0-13) to a symbol for each
// character class. Note that initClass[] can be used to map the class
// symbol back into the class number.
-var className = *(*[14]uint8)(unsafe.Pointer(ts + 5021 /* ".ABCDHLRMY9 ?" */)) /* spellfix.c:176:28 */
+var className = *(*[14]uint8)(unsafe.Pointer(ts + 6306 /* ".ABCDHLRMY9 ?" */)) /* spellfix.c:176:28 */
// Generate a "phonetic hash" from a string of ASCII characters
// in zIn[0..nIn-1].
@@ -21993,7 +25614,7 @@ var className = *(*[14]uint8)(unsafe.Pointer(ts + 5021 /* ".ABCDHLRMY9 ?" */)) /
// Space to hold the result is obtained from sqlite3_malloc()
//
// Return NULL if memory allocation fails.
-func phoneticHash(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c:194:22: */
+func phoneticHash(tls *libc.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c:194:22: */
var zOut uintptr = sqlite3.Xsqlite3_malloc64(tls, (uint64(nIn + 1)))
var i int32
var nOut int32 = 0
@@ -22055,7 +25676,7 @@ func phoneticHash(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c:
c = className[c]
if (nOut == 0) || (int32(c) != int32(*(*uint8)(unsafe.Pointer(zOut + uintptr((nOut - 1)))))) {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = c
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = c
}
}
*(*uint8)(unsafe.Pointer(zOut + uintptr(nOut))) = uint8(0)
@@ -22064,7 +25685,7 @@ func phoneticHash(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c:
// This is an SQL function wrapper around phoneticHash(). See
// the description of phoneticHash() for additional information.
-func phoneticHashSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:246:13: */
+func phoneticHashSqlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:246:13: */
var zIn uintptr
var zOut uintptr
@@ -22076,13 +25697,13 @@ func phoneticHashSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr
if zOut == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
} else {
- sqlite3.Xsqlite3_result_text(tls, context, zOut, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text(tls, context, zOut, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
// Return the character class number for a character given its
// context.
-func characterClass(tls *crt.TLS, cPrev int8, c int8) int8 { /* spellfix.c:268:13: */
+func characterClass(tls *libc.TLS, cPrev int8, c int8) int8 { /* spellfix.c:268:13: */
if int32(cPrev) == 0 {
return int8(initClass[(int32(c) & 0x7f)])
}
@@ -22092,7 +25713,7 @@ func characterClass(tls *crt.TLS, cPrev int8, c int8) int8 { /* spellfix.c:268:1
// Return the cost of inserting or deleting character c immediately
// following character cPrev. If cPrev==0, that means c is the first
// character of the word.
-func insertOrDeleteCost(tls *crt.TLS, cPrev int8, c int8, cNext int8) int32 { /* spellfix.c:277:12: */
+func insertOrDeleteCost(tls *libc.TLS, cPrev int8, c int8, cNext int8) int32 { /* spellfix.c:277:12: */
var classC int8 = characterClass(tls, cPrev, c)
var classCprev int8
@@ -22128,7 +25749,7 @@ func insertOrDeleteCost(tls *crt.TLS, cPrev int8, c int8, cNext int8) int32 { /*
// Return the cost of substituting cTo in place of cFrom assuming
// the previous character is cPrev. If cPrev==0 then cTo is the first
// character of the word.
-func substituteCost(tls *crt.TLS, cPrev int8, cFrom int8, cTo int8) int32 { /* spellfix.c:318:12: */
+func substituteCost(tls *libc.TLS, cPrev int8, cFrom int8, cTo int8) int32 { /* spellfix.c:318:12: */
var classFrom int8
var classTo int8
if int32(cFrom) == int32(cTo) {
@@ -22171,7 +25792,7 @@ func substituteCost(tls *crt.TLS, cPrev int8, cFrom int8, cTo int8) int32 { /* s
// then this value is always the number of bytes in zB (i.e. strlen(zB)).
// If zA does end in a '*', then it is the number of bytes in the prefix
// of zB that was deemed to match zA.
-func editdist1(tls *crt.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /* spellfix.c:362:12: */
+func editdist1(tls *libc.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /* spellfix.c:362:12: */
bp := tls.Alloc(300)
defer tls.Free(300)
@@ -22229,7 +25850,7 @@ func editdist1(tls *crt.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /*
// Special processing if either string is empty
if nA == 0 {
cBprev = int8(dc)
- for xB = crt.AssignInt32(&res, 0); (int32(crt.AssignInt8(&cB, *(*int8)(unsafe.Pointer(zB + uintptr(xB)))))) != 0; xB++ {
+ for xB = libc.AssignInt32(&res, 0); (int32(libc.AssignInt8(&cB, *(*int8)(unsafe.Pointer(zB + uintptr(xB)))))) != 0; xB++ {
res = res + (insertOrDeleteCost(tls, cBprev, cB, *(*int8)(unsafe.Pointer(zB + uintptr((xB + 1))))) / 4)
cBprev = cB
}
@@ -22237,7 +25858,7 @@ func editdist1(tls *crt.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /*
}
if nB == 0 {
cAprev = int8(dc)
- for xA = crt.AssignInt32(&res, 0); (int32(crt.AssignInt8(&cA, *(*int8)(unsafe.Pointer(zA + uintptr(xA)))))) != 0; xA++ {
+ for xA = libc.AssignInt32(&res, 0); (int32(libc.AssignInt8(&cA, *(*int8)(unsafe.Pointer(zA + uintptr(xA)))))) != 0; xA++ {
res = res + (insertOrDeleteCost(tls, cAprev, cA, *(*int8)(unsafe.Pointer(zA + uintptr((xA + 1))))))
cAprev = cA
}
@@ -22253,7 +25874,7 @@ func editdist1(tls *crt.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /*
if uint64(nB) < ((uint64(unsafe.Sizeof([75]int32{})) * uint64(4)) / (uint64(unsafe.Sizeof(int32(0))) * uint64(5))) {
m = bp /* &mStack[0] */
} else {
- m = crt.AssignUintptr(&toFree, sqlite3.Xsqlite3_malloc64(tls, (uint64(((uint64((nB+1)*5))*uint64(unsafe.Sizeof(int32(0))))/uint64(4)))))
+ m = libc.AssignUintptr(&toFree, sqlite3.Xsqlite3_malloc64(tls, (uint64(((uint64((nB+1)*5))*uint64(unsafe.Sizeof(int32(0))))/uint64(4)))))
if m == uintptr(0) {
return -3
}
@@ -22273,7 +25894,7 @@ func editdist1(tls *crt.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /*
}
cAprev = int8(dc)
for xA = 1; xA <= nA; xA++ {
- var lastA int32 = (crt.Bool32(xA == nA))
+ var lastA int32 = (libc.Bool32(xA == nA))
cA = *(*int8)(unsafe.Pointer(zA + uintptr((xA - 1))))
cAnext = *(*int8)(unsafe.Pointer(zA + uintptr(xA)))
if (int32(cA) == '*') && (lastA != 0) {
@@ -22351,7 +25972,7 @@ func editdist1(tls *crt.TLS, zA uintptr, zB uintptr, pnMatch uintptr) int32 { /*
// must be pure ASCII text. If A ends with '*' then it is assumed to be
// a prefix of B and extra characters on the end of B have minimal additional
// cost.
-func editdistSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:518:13: */
+func editdistSqlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:518:13: */
var res int32 = editdist1(tls,
sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))),
sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))),
@@ -22360,9 +25981,9 @@ func editdistSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
if res == (-3) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
} else if res == (-2) {
- sqlite3.Xsqlite3_result_error(tls, context, ts+5035 /* "non-ASCII input ..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, context, ts+6320 /* "non-ASCII input ..." */, -1)
} else {
- sqlite3.Xsqlite3_result_error(tls, context, ts+5065 /* "NULL input to ed..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, context, ts+6350 /* "NULL input to ed..." */, -1)
}
} else {
sqlite3.Xsqlite3_result_int(tls, context, res)
@@ -22440,7 +26061,7 @@ var editDist3Lang = EditDist3Lang{FiLang: 0, FiInsCost: 100, FiDelCost: 100, FiS
// Clear or delete an instance of the object that records all edit-distance
// weights.
-func editDist3ConfigClear(tls *crt.TLS, p uintptr) { /* spellfix.c:640:13: */
+func editDist3ConfigClear(tls *libc.TLS, p uintptr) { /* spellfix.c:640:13: */
var i int32
if p == uintptr(0) {
return
@@ -22456,9 +26077,9 @@ func editDist3ConfigClear(tls *crt.TLS, p uintptr) { /* spellfix.c:640:13: */
}
}
sqlite3.Xsqlite3_free(tls, (*EditDist3Config)(unsafe.Pointer(p)).Fa)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(EditDist3Config{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(EditDist3Config{})))
}
-func editDist3ConfigDelete(tls *crt.TLS, pIn uintptr) { /* spellfix.c:655:13: */
+func editDist3ConfigDelete(tls *libc.TLS, pIn uintptr) { /* spellfix.c:655:13: */
var p uintptr = pIn
editDist3ConfigClear(tls, p)
sqlite3.Xsqlite3_free(tls, p)
@@ -22467,13 +26088,13 @@ func editDist3ConfigDelete(tls *crt.TLS, pIn uintptr) { /* spellfix.c:655:13: */
// Compare the FROM values of two EditDist3Cost objects, for sorting.
// Return negative, zero, or positive if the A is less than, equal to,
// or greater than B.
-func editDist3CostCompare(tls *crt.TLS, pA uintptr, pB uintptr) int32 { /* spellfix.c:665:12: */
+func editDist3CostCompare(tls *libc.TLS, pA uintptr, pB uintptr) int32 { /* spellfix.c:665:12: */
var n int32 = int32((*EditDist3Cost)(unsafe.Pointer(pA)).FnFrom)
var rc int32
if n > int32((*EditDist3Cost)(unsafe.Pointer(pB)).FnFrom) {
n = int32((*EditDist3Cost)(unsafe.Pointer(pB)).FnFrom)
}
- rc = crt.Xstrncmp(tls, pA+12 /* &.a */, pB+12 /* &.a */, uint64(n))
+ rc = libc.Xstrncmp(tls, pA+12 /* &.a */, pB+12 /* &.a */, uint64(n))
if rc == 0 {
rc = (int32((*EditDist3Cost)(unsafe.Pointer(pA)).FnFrom) - int32((*EditDist3Cost)(unsafe.Pointer(pB)).FnFrom))
}
@@ -22482,7 +26103,7 @@ func editDist3CostCompare(tls *crt.TLS, pA uintptr, pB uintptr) int32 { /* spell
// Merge together two sorted lists of EditDist3Cost objects, in order
// of increasing FROM.
-func editDist3CostMerge(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* spellfix.c:678:22: */
+func editDist3CostMerge(tls *libc.TLS, pA uintptr, pB uintptr) uintptr { /* spellfix.c:678:22: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -22509,7 +26130,7 @@ func editDist3CostMerge(tls *crt.TLS, pA uintptr, pB uintptr) uintptr { /* spell
}
// Sort a list of EditDist3Cost objects into order of increasing FROM
-func editDist3CostSort(tls *crt.TLS, pList uintptr) uintptr { /* spellfix.c:707:22: */
+func editDist3CostSort(tls *libc.TLS, pList uintptr) uintptr { /* spellfix.c:707:22: */
bp := tls.Alloc(480)
defer tls.Free(480)
@@ -22544,7 +26165,7 @@ func editDist3CostSort(tls *crt.TLS, pList uintptr) uintptr { /* spellfix.c:707:
}
// Load all edit-distance weights from a table.
-func editDist3ConfigLoad(tls *crt.TLS, p uintptr, db uintptr, zTable uintptr) int32 { /* spellfix.c:737:12: */
+func editDist3ConfigLoad(tls *libc.TLS, p uintptr, db uintptr, zTable uintptr) int32 { /* spellfix.c:737:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -22557,7 +26178,7 @@ func editDist3ConfigLoad(tls *crt.TLS, p uintptr, db uintptr, zTable uintptr) in
var pLang uintptr = uintptr(0)
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+5090 /* "SELECT iLang, cF..." */, crt.VaList(bp, zTable))
+ ts+6375 /* "SELECT iLang, cF..." */, libc.VaList(bp, zTable))
if zSql == uintptr(0) {
return 7
}
@@ -22631,8 +26252,8 @@ func editDist3ConfigLoad(tls *crt.TLS, p uintptr, db uintptr, zTable uintptr) in
(*EditDist3Cost)(unsafe.Pointer(pCost)).FnFrom = u8(nFrom)
(*EditDist3Cost)(unsafe.Pointer(pCost)).FnTo = u8(nTo)
(*EditDist3Cost)(unsafe.Pointer(pCost)).FiCost = u16(iCost)
- crt.Xmemcpy(tls, pCost+12 /* &.a */, zFrom, uint64(nFrom))
- crt.Xmemcpy(tls, ((pCost + 12 /* &.a */) + uintptr(nFrom)), zTo, uint64(nTo))
+ libc.Xmemcpy(tls, pCost+12 /* &.a */, zFrom, uint64(nFrom))
+ libc.Xmemcpy(tls, ((pCost + 12 /* &.a */) + uintptr(nFrom)), zTo, uint64(nTo))
(*EditDist3Cost)(unsafe.Pointer(pCost)).FpNext = (*EditDist3Lang)(unsafe.Pointer(pLang)).FpCost
(*EditDist3Lang)(unsafe.Pointer(pLang)).FpCost = pCost
}
@@ -22652,7 +26273,7 @@ func editDist3ConfigLoad(tls *crt.TLS, p uintptr, db uintptr, zTable uintptr) in
// Return the length (in bytes) of a utf-8 character. Or return a maximum
// of N.
-func utf8Len(tls *crt.TLS, c uint8, N int32) int32 { /* spellfix.c:818:12: */
+func utf8Len(tls *libc.TLS, c uint8, N int32) int32 { /* spellfix.c:818:12: */
var len int32 = 1
if int32(c) > 0x7f {
if (int32(c) & 0xe0) == 0xc0 {
@@ -22671,7 +26292,7 @@ func utf8Len(tls *crt.TLS, c uint8, N int32) int32 { /* spellfix.c:818:12: */
// Return TRUE (non-zero) if the To side of the given cost matches
// the given string.
-func matchTo(tls *crt.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.c:837:12: */
+func matchTo(tls *libc.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.c:837:12: */
if int32(*(*int8)(unsafe.Pointer((p + 12 /* &.a */) + uintptr((*EditDist3Cost)(unsafe.Pointer(p)).FnFrom)))) != int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) {
return 0
@@ -22679,7 +26300,7 @@ func matchTo(tls *crt.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.c:
if int32((*EditDist3Cost)(unsafe.Pointer(p)).FnTo) > n {
return 0
}
- if crt.Xstrncmp(tls, ((p+12 /* &.a */)+uintptr((*EditDist3Cost)(unsafe.Pointer(p)).FnFrom)), z, uint64((*EditDist3Cost)(unsafe.Pointer(p)).FnTo)) != 0 {
+ if libc.Xstrncmp(tls, ((p+12 /* &.a */)+uintptr((*EditDist3Cost)(unsafe.Pointer(p)).FnFrom)), z, uint64((*EditDist3Cost)(unsafe.Pointer(p)).FnTo)) != 0 {
return 0
}
return 1
@@ -22687,13 +26308,13 @@ func matchTo(tls *crt.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.c:
// Return TRUE (non-zero) if the From side of the given cost matches
// the given string.
-func matchFrom(tls *crt.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.c:849:12: */
+func matchFrom(tls *libc.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.c:849:12: */
if (*EditDist3Cost)(unsafe.Pointer(p)).FnFrom != 0 {
if int32(*(*int8)(unsafe.Pointer((p + 12 /* &.a */) + uintptr(0)))) != int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) {
return 0
}
- if crt.Xstrncmp(tls, p+12 /* &.a */, z, uint64((*EditDist3Cost)(unsafe.Pointer(p)).FnFrom)) != 0 {
+ if libc.Xstrncmp(tls, p+12 /* &.a */, z, uint64((*EditDist3Cost)(unsafe.Pointer(p)).FnFrom)) != 0 {
return 0
}
}
@@ -22702,7 +26323,7 @@ func matchFrom(tls *crt.TLS, p uintptr, z uintptr, n int32) int32 { /* spellfix.
// Return TRUE (non-zero) of the next FROM character and the next TO
// character are the same.
-func matchFromTo(tls *crt.TLS, pStr uintptr, n1 int32, z2 uintptr, n2 int32) int32 { /* spellfix.c:862:12: */
+func matchFromTo(tls *libc.TLS, pStr uintptr, n1 int32, z2 uintptr, n2 int32) int32 { /* spellfix.c:862:12: */
var b1 int32 = (*EditDist3From)(unsafe.Pointer((*EditDist3FromString)(unsafe.Pointer(pStr)).Fa + uintptr(n1)*32)).FnByte
if b1 > n2 {
return 0
@@ -22711,14 +26332,14 @@ func matchFromTo(tls *crt.TLS, pStr uintptr, n1 int32, z2 uintptr, n2 int32) int
if int32(*(*int8)(unsafe.Pointer((*EditDist3FromString)(unsafe.Pointer(pStr)).Fz + uintptr(n1)))) != int32(*(*int8)(unsafe.Pointer(z2 + uintptr(0)))) {
return 0
}
- if crt.Xstrncmp(tls, ((*EditDist3FromString)(unsafe.Pointer(pStr)).Fz+uintptr(n1)), z2, uint64(b1)) != 0 {
+ if libc.Xstrncmp(tls, ((*EditDist3FromString)(unsafe.Pointer(pStr)).Fz+uintptr(n1)), z2, uint64(b1)) != 0 {
return 0
}
return 1
}
// Delete an EditDist3FromString objecct
-func editDist3FromStringDelete(tls *crt.TLS, p uintptr) { /* spellfix.c:879:13: */
+func editDist3FromStringDelete(tls *libc.TLS, p uintptr) { /* spellfix.c:879:13: */
var i int32
if p != 0 {
for i = 0; i < (*EditDist3FromString)(unsafe.Pointer(p)).Fn; i++ {
@@ -22730,7 +26351,7 @@ func editDist3FromStringDelete(tls *crt.TLS, p uintptr) { /* spellfix.c:879:13:
}
// Create a EditDist3FromString object.
-func editDist3FromStringNew(tls *crt.TLS, pLang uintptr, z uintptr, n int32) uintptr { /* spellfix.c:893:28: */
+func editDist3FromStringNew(tls *libc.TLS, pLang uintptr, z uintptr, n int32) uintptr { /* spellfix.c:893:28: */
var pStr uintptr
var p uintptr
var i int32
@@ -22739,17 +26360,17 @@ func editDist3FromStringNew(tls *crt.TLS, pLang uintptr, z uintptr, n int32) uin
return uintptr(0)
}
if n < 0 {
- n = int32(crt.Xstrlen(tls, z))
+ n = int32(libc.Xstrlen(tls, z))
}
pStr = sqlite3.Xsqlite3_malloc64(tls, (uint64(((uint64(unsafe.Sizeof(EditDist3FromString{})) + (uint64(unsafe.Sizeof(EditDist3From{})) * uint64(n))) + uint64(n)) + uint64(1))))
if pStr == uintptr(0) {
return uintptr(0)
}
(*EditDist3FromString)(unsafe.Pointer(pStr)).Fa = (pStr + uintptr(1)*24)
- crt.Xmemset(tls, (*EditDist3FromString)(unsafe.Pointer(pStr)).Fa, 0, (uint64(unsafe.Sizeof(EditDist3From{})) * uint64(n)))
+ libc.Xmemset(tls, (*EditDist3FromString)(unsafe.Pointer(pStr)).Fa, 0, (uint64(unsafe.Sizeof(EditDist3From{})) * uint64(n)))
(*EditDist3FromString)(unsafe.Pointer(pStr)).Fn = n
(*EditDist3FromString)(unsafe.Pointer(pStr)).Fz = ((*EditDist3FromString)(unsafe.Pointer(pStr)).Fa + uintptr(n)*32)
- crt.Xmemcpy(tls, (*EditDist3FromString)(unsafe.Pointer(pStr)).Fz, z, (uint64(n + 1)))
+ libc.Xmemcpy(tls, (*EditDist3FromString)(unsafe.Pointer(pStr)).Fz, z, (uint64(n + 1)))
if (n != 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr((n - 1))))) == '*') {
(*EditDist3FromString)(unsafe.Pointer(pStr)).FisPrefix = 1
n--
@@ -22761,7 +26382,7 @@ func editDist3FromStringNew(tls *crt.TLS, pLang uintptr, z uintptr, n int32) uin
for i = 0; i < n; i++ {
var pFrom uintptr = ((*EditDist3FromString)(unsafe.Pointer(pStr)).Fa + uintptr(i)*32)
- crt.Xmemset(tls, pFrom, 0, uint64(unsafe.Sizeof(EditDist3From{})))
+ libc.Xmemset(tls, pFrom, 0, uint64(unsafe.Sizeof(EditDist3From{})))
(*EditDist3From)(unsafe.Pointer(pFrom)).FnByte = utf8Len(tls, uint8(*(*int8)(unsafe.Pointer(z + uintptr(i)))), (n - i))
for p = (*EditDist3Lang)(unsafe.Pointer(pLang)).FpCost; p != 0; p = (*EditDist3Cost)(unsafe.Pointer(p)).FpNext {
var apNew uintptr
@@ -22778,7 +26399,7 @@ func editDist3FromStringNew(tls *crt.TLS, pLang uintptr, z uintptr, n int32) uin
break
}
(*EditDist3From)(unsafe.Pointer(pFrom)).FapDel = apNew
- *(*uintptr)(unsafe.Pointer(apNew + uintptr(crt.PostIncInt32(&(*EditDist3From)(unsafe.Pointer(pFrom)).FnDel, 1))*8)) = p
+ *(*uintptr)(unsafe.Pointer(apNew + uintptr(libc.PostIncInt32(&(*EditDist3From)(unsafe.Pointer(pFrom)).FnDel, 1))*8)) = p
} else {
apNew = sqlite3.Xsqlite3_realloc64(tls, (*EditDist3From)(unsafe.Pointer(pFrom)).FapSubst,
(uint64(uint64(unsafe.Sizeof(uintptr(0))) * (uint64((*EditDist3From)(unsafe.Pointer(pFrom)).FnSubst + 1)))))
@@ -22786,7 +26407,7 @@ func editDist3FromStringNew(tls *crt.TLS, pLang uintptr, z uintptr, n int32) uin
break
}
(*EditDist3From)(unsafe.Pointer(pFrom)).FapSubst = apNew
- *(*uintptr)(unsafe.Pointer(apNew + uintptr(crt.PostIncInt32(&(*EditDist3From)(unsafe.Pointer(pFrom)).FnSubst, 1))*8)) = p
+ *(*uintptr)(unsafe.Pointer(apNew + uintptr(libc.PostIncInt32(&(*EditDist3From)(unsafe.Pointer(pFrom)).FnSubst, 1))*8)) = p
}
}
if p != 0 {
@@ -22800,7 +26421,7 @@ func editDist3FromStringNew(tls *crt.TLS, pLang uintptr, z uintptr, n int32) uin
// Update entry m[i] such that it is the minimum of its current value
// and m[j]+iCost.
-func updateCost(tls *crt.TLS, m uintptr, i int32, j int32, iCost int32) { /* spellfix.c:955:13: */
+func updateCost(tls *libc.TLS, m uintptr, i int32, j int32, iCost int32) { /* spellfix.c:955:13: */
var b uint32
b = (*(*uint32)(unsafe.Pointer(m + uintptr(j)*4)) + uint32(iCost))
@@ -22825,7 +26446,7 @@ func updateCost(tls *crt.TLS, m uintptr, i int32, j int32, iCost int32) { /* spe
// of characters in z2. If pFrom does contain a prefix search pattern, then
// it is the number of characters in the prefix of z2 that was deemed to
// match pFrom.
-func editDist3Core(tls *crt.TLS, pFrom uintptr, z2 uintptr, n2 int32, pLang uintptr, pnMatch uintptr) int32 { /* spellfix.c:990:12: */
+func editDist3Core(tls *libc.TLS, pFrom uintptr, z2 uintptr, n2 int32, pLang uintptr, pnMatch uintptr) int32 { /* spellfix.c:990:12: */
bp := tls.Alloc(1048)
defer tls.Free(1048)
@@ -22859,7 +26480,7 @@ func editDist3Core(tls *crt.TLS, pFrom uintptr, z2 uintptr, n2 int32, pLang uint
// allocate the Wagner matrix and the aTo[] array for the TO string
n = (((*EditDist3FromString)(unsafe.Pointer(bp+1024 /* &f */)).Fn + 1) * (n2 + 1))
- n = ((n + 1) & ^int32(crt.Int32FromInt32(1)))
+ n = ((n + 1) & ^int32(libc.Int32FromInt32(1)))
nByte = (sqlite3_uint64((uint64(n) * uint64(unsafe.Sizeof(uint32(0)))) + (uint64(unsafe.Sizeof(EditDist3To{})) * uint64(n2))))
if !(nByte <= sqlite3_uint64(unsafe.Sizeof([256]uint32{}))) {
goto __1
@@ -22868,7 +26489,7 @@ func editDist3Core(tls *crt.TLS, pFrom uintptr, z2 uintptr, n2 int32, pLang uint
pToFree = uintptr(0)
goto __2
__1:
- m = crt.AssignUintptr(&pToFree, sqlite3.Xsqlite3_malloc64(tls, nByte))
+ m = libc.AssignUintptr(&pToFree, sqlite3.Xsqlite3_malloc64(tls, nByte))
if !(m == uintptr(0)) {
goto __3
}
@@ -22878,7 +26499,7 @@ __3:
__2:
;
a2 = (m + uintptr(n)*4)
- crt.Xmemset(tls, a2, 0, (uint64(unsafe.Sizeof(EditDist3To{})) * uint64(n2)))
+ libc.Xmemset(tls, a2, 0, (uint64(unsafe.Sizeof(EditDist3To{})) * uint64(n2)))
// Fill in the a1[] matrix for all characters of the TO string
i2 = 0
@@ -22944,7 +26565,7 @@ __6:
// Prepare to compute the minimum edit distance
szRow = ((*EditDist3FromString)(unsafe.Pointer(bp+1024 /* &f */)).Fn + 1)
- crt.Xmemset(tls, m, 0x01, ((uint64((n2 + 1) * szRow)) * uint64(unsafe.Sizeof(uint32(0)))))
+ libc.Xmemset(tls, m, 0x01, ((uint64((n2 + 1) * szRow)) * uint64(unsafe.Sizeof(uint32(0)))))
*(*uint32)(unsafe.Pointer(m + uintptr(0)*4)) = uint32(0)
// First fill in the top-row of the matrix with FROM deletion costs
@@ -23141,7 +26762,7 @@ __50:
}
// Get an appropriate EditDist3Lang object.
-func editDist3FindLang(tls *crt.TLS, pConfig uintptr, iLang int32) uintptr { /* spellfix.c:1150:28: */
+func editDist3FindLang(tls *libc.TLS, pConfig uintptr, iLang int32) uintptr { /* spellfix.c:1150:28: */
var i int32
for i = 0; i < (*EditDist3Config)(unsafe.Pointer(pConfig)).FnLang; i++ {
if (*EditDist3Lang)(unsafe.Pointer((*EditDist3Config)(unsafe.Pointer(pConfig)).Fa+uintptr(i)*24)).FiLang == iLang {
@@ -23158,7 +26779,7 @@ func editDist3FindLang(tls *crt.TLS, pConfig uintptr, iLang int32) uintptr { /*
// weights for iLang.
//
// The second form loads edit weights into memory from a table.
-func editDist3SqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:1170:13: */
+func editDist3SqlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:1170:13: */
var pConfig uintptr = sqlite3.Xsqlite3_user_data(tls, context)
var db uintptr = sqlite3.Xsqlite3_context_db_handle(tls, context)
var rc int32
@@ -23199,31 +26820,31 @@ func editDist3SqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
}
// Register the editDist3 function with SQLite
-func editDist3Install(tls *crt.TLS, db uintptr) int32 { /* spellfix.c:1210:12: */
+func editDist3Install(tls *libc.TLS, db uintptr) int32 { /* spellfix.c:1210:12: */
var rc int32
var pConfig uintptr = sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(EditDist3Config{})))
if pConfig == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pConfig, 0, uint64(unsafe.Sizeof(EditDist3Config{})))
- rc = sqlite3.Xsqlite3_create_function_v2(tls, db, ts+5162, /* "editdist3" */
+ libc.Xmemset(tls, pConfig, 0, uint64(unsafe.Sizeof(EditDist3Config{})))
+ rc = sqlite3.Xsqlite3_create_function_v2(tls, db, ts+6447, /* "editdist3" */
2, (1 | 0x000000800), pConfig,
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{editDist3SqlFunc})), uintptr(0), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function_v2(tls, db, ts+5162, /* "editdist3" */
+ rc = sqlite3.Xsqlite3_create_function_v2(tls, db, ts+6447, /* "editdist3" */
3, (1 | 0x000000800), pConfig,
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{editDist3SqlFunc})), uintptr(0), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function_v2(tls, db, ts+5162, /* "editdist3" */
+ rc = sqlite3.Xsqlite3_create_function_v2(tls, db, ts+6447, /* "editdist3" */
1, (1 | 0x000000800), pConfig,
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{editDist3SqlFunc})), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{editDist3ConfigDelete})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{editDist3SqlFunc})), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{editDist3ConfigDelete})))
} else {
sqlite3.Xsqlite3_free(tls, pConfig)
}
@@ -23249,21 +26870,21 @@ var sqlite3Utf8Trans1 = [64]uint8{
} /* spellfix.c:1243:28 */
// Return the value of the first UTF-8 character in the string.
-func utf8Read(tls *crt.TLS, z uintptr, n int32, pSize uintptr) int32 { /* spellfix.c:1258:12: */
+func utf8Read(tls *libc.TLS, z uintptr, n int32, pSize uintptr) int32 { /* spellfix.c:1258:12: */
var c int32
var i int32
// All callers to this routine (in the current implementation)
// always have n>0.
if 0 != 0 {
- c = crt.AssignInt32(&i, 0)
+ c = libc.AssignInt32(&i, 0)
} else {
c = int32(*(*uint8)(unsafe.Pointer(z + uintptr(0))))
i = 1
if c >= 0xc0 {
c = int32(sqlite3Utf8Trans1[(c - 0xc0)])
for (i < n) && ((int32(*(*uint8)(unsafe.Pointer(z + uintptr(i)))) & 0xc0) == 0x80) {
- c = ((c << 6) + (0x3f & int32(*(*uint8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&i, 1)))))))
+ c = ((c << 6) + (0x3f & int32(*(*uint8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&i, 1)))))))
}
}
}
@@ -23273,7 +26894,7 @@ func utf8Read(tls *crt.TLS, z uintptr, n int32, pSize uintptr) int32 { /* spellf
// Return the number of characters in the utf-8 string in the nIn byte
// buffer pointed to by zIn.
-func utf8Charlen(tls *crt.TLS, zIn uintptr, nIn int32) int32 { /* spellfix.c:1283:12: */
+func utf8Charlen(tls *libc.TLS, zIn uintptr, nIn int32) int32 { /* spellfix.c:1283:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -23691,7 +27312,7 @@ var translit = [389]Transliteration{
{FcFrom: uint16(0xFB06), FcTo0: uint8(0x73), FcTo1: uint8(0x74), FcTo2: uint8(0x00), FcTo3: uint8(0x00)}, // st to st
} /* spellfix.c:1306:30 */
-func spellfixFindTranslit(tls *crt.TLS, c int32, pxTop uintptr) uintptr { /* spellfix.c:1698:30: */
+func spellfixFindTranslit(tls *libc.TLS, c int32, pxTop uintptr) uintptr { /* spellfix.c:1698:30: */
*(*int32)(unsafe.Pointer(pxTop)) = (int32((uint64(unsafe.Sizeof(translit)) / uint64(unsafe.Sizeof(Transliteration{}))) - uint64(1)))
return uintptr(unsafe.Pointer(&translit))
}
@@ -23704,7 +27325,7 @@ func spellfixFindTranslit(tls *crt.TLS, c int32, pxTop uintptr) uintptr { /* spe
//
// Space to hold the returned string comes from sqlite3_malloc() and
// should be freed by the caller.
-func transliterate(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c:1713:22: */
+func transliterate(tls *libc.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c:1713:22: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -23722,7 +27343,7 @@ func transliterate(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c
zIn += uintptr(*(*int32)(unsafe.Pointer(bp /* sz */)))
nIn = nIn - (*(*int32)(unsafe.Pointer(bp /* sz */)))
if c <= 127 {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = uint8(c)
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = uint8(c)
} else {
// var xTop int32 at bp+4, 4
@@ -23733,13 +27354,13 @@ func transliterate(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c
for *(*int32)(unsafe.Pointer(bp + 4 /* xTop */)) >= xBtm {
x = ((*(*int32)(unsafe.Pointer(bp + 4 /* xTop */)) + xBtm) / 2)
if int32((*Transliteration)(unsafe.Pointer(tbl+uintptr(x)*6)).FcFrom) == c {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo0
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo0
if (*Transliteration)(unsafe.Pointer(tbl+uintptr(x)*6)).FcTo1 != 0 {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo1
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo1
if (*Transliteration)(unsafe.Pointer(tbl+uintptr(x)*6)).FcTo2 != 0 {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo2
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo2
if (*Transliteration)(unsafe.Pointer(tbl+uintptr(x)*6)).FcTo3 != 0 {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo3
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = (*Transliteration)(unsafe.Pointer(tbl + uintptr(x)*6)).FcTo3
}
}
}
@@ -23752,7 +27373,7 @@ func transliterate(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c
}
}
if c != 0 {
- *(*uint8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&nOut, 1)))) = uint8('?')
+ *(*uint8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&nOut, 1)))) = uint8('?')
}
}
}
@@ -23764,7 +27385,7 @@ func transliterate(tls *crt.TLS, zIn uintptr, nIn int32) uintptr { /* spellfix.c
// string that transliterates to an ASCII string nTrans bytes or longer.
// Or, if the transliteration of the input string is less than nTrans
// bytes in size, return the number of characters in the input string.
-func translen_to_charlen(tls *crt.TLS, zIn uintptr, nIn int32, nTrans int32) int32 { /* spellfix.c:1771:12: */
+func translen_to_charlen(tls *libc.TLS, zIn uintptr, nIn int32, nTrans int32) int32 { /* spellfix.c:1771:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -23775,7 +27396,7 @@ func translen_to_charlen(tls *crt.TLS, zIn uintptr, nIn int32, nTrans int32) int
var nOut int32
var nChar int32
- i = crt.AssignInt32(&nOut, 0)
+ i = libc.AssignInt32(&nOut, 0)
for nChar = 0; (i < nIn) && (nOut < nTrans); nChar++ {
c = utf8Read(tls, (zIn + uintptr(i)), (nIn - i), bp /* &sz */)
i = i + (*(*int32)(unsafe.Pointer(bp /* sz */)))
@@ -23817,14 +27438,14 @@ func translen_to_charlen(tls *crt.TLS, zIn uintptr, nIn int32, nTrans int32) int
//
// Convert a string that contains non-ASCII Roman characters into
// pure ASCII.
-func transliterateSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:1817:13: */
+func transliterateSqlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:1817:13: */
var zIn uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
var nIn int32 = sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
var zOut uintptr = transliterate(tls, zIn, nIn)
if zOut == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
} else {
- sqlite3.Xsqlite3_result_text(tls, context, zOut, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text(tls, context, zOut, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
@@ -23842,7 +27463,7 @@ func transliterateSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintpt
// This routine will return 998 if the input X contains characters from
// two or more of the above scripts or 999 if X contains no characters
// from any of the above scripts.
-func scriptCodeSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:1848:13: */
+func scriptCodeSqlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* spellfix.c:1848:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -23966,7 +27587,7 @@ type spellfix1_row = struct {
// into *pRc.
//
// If *pRc is initially non-zero then this routine is a no-op.
-func spellfix1DbExec(tls *crt.TLS, pRc uintptr, db uintptr, zFormat uintptr, va uintptr) { /* spellfix.c:1955:13: */
+func spellfix1DbExec(tls *libc.TLS, pRc uintptr, db uintptr, zFormat uintptr, va uintptr) { /* spellfix.c:1955:13: */
var ap va_list
_ = ap
var zSql uintptr
@@ -23985,7 +27606,7 @@ func spellfix1DbExec(tls *crt.TLS, pRc uintptr, db uintptr, zFormat uintptr, va
}
// xDisconnect/xDestroy method for the fuzzy-search module.
-func spellfix1Uninit(tls *crt.TLS, isDestroy int32, pVTab uintptr) int32 { /* spellfix.c:1978:12: */
+func spellfix1Uninit(tls *libc.TLS, isDestroy int32, pVTab uintptr) int32 { /* spellfix.c:1978:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -23993,8 +27614,8 @@ func spellfix1Uninit(tls *crt.TLS, isDestroy int32, pVTab uintptr) int32 { /* sp
*(*int32)(unsafe.Pointer(bp + 16 /* rc */)) = 0
if isDestroy != 0 {
var db uintptr = (*spellfix1_vtab)(unsafe.Pointer(p)).Fdb
- spellfix1DbExec(tls, bp+16 /* &rc */, db, ts+5172, /* "DROP TABLE IF EX..." */
- crt.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName))
+ spellfix1DbExec(tls, bp+16 /* &rc */, db, ts+6457, /* "DROP TABLE IF EX..." */
+ libc.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName))
}
if *(*int32)(unsafe.Pointer(bp + 16 /* rc */)) == 0 {
sqlite3.Xsqlite3_free(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName)
@@ -24004,16 +27625,16 @@ func spellfix1Uninit(tls *crt.TLS, isDestroy int32, pVTab uintptr) int32 { /* sp
}
return *(*int32)(unsafe.Pointer(bp + 16 /* rc */))
}
-func spellfix1Disconnect(tls *crt.TLS, pVTab uintptr) int32 { /* spellfix.c:1994:12: */
+func spellfix1Disconnect(tls *libc.TLS, pVTab uintptr) int32 { /* spellfix.c:1994:12: */
return spellfix1Uninit(tls, 0, pVTab)
}
-func spellfix1Destroy(tls *crt.TLS, pVTab uintptr) int32 { /* spellfix.c:1997:12: */
+func spellfix1Destroy(tls *libc.TLS, pVTab uintptr) int32 { /* spellfix.c:1997:12: */
return spellfix1Uninit(tls, 1, pVTab)
}
// Make a copy of a string. Remove leading and trailing whitespace
// and dequote it.
-func spellfix1Dequote(tls *crt.TLS, zIn uintptr) uintptr { /* spellfix.c:2005:13: */
+func spellfix1Dequote(tls *libc.TLS, zIn uintptr) uintptr { /* spellfix.c:2005:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -24021,21 +27642,21 @@ func spellfix1Dequote(tls *crt.TLS, zIn uintptr) uintptr { /* spellfix.c:2005:13
var i int32
var j int32
var c int8
- for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(0))))))*2))) & int32(_ISspace)) != 0 {
+ for (int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zIn + uintptr(0))))))*2))) & int32(_ISspace)) != 0 {
zIn++
}
- zOut = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zIn))
+ zOut = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zIn))
if zOut == uintptr(0) {
return uintptr(0)
}
- i = int32(crt.Xstrlen(tls, zOut))
+ i = int32(libc.Xstrlen(tls, zOut))
*(*int8)(unsafe.Pointer(zOut + uintptr(i))) = int8(0)
c = *(*int8)(unsafe.Pointer(zOut + uintptr(0)))
if (int32(c) == '\'') || (int32(c) == '"') {
i = 1
j = 0
for ; 1 != 0; i++ {
- *(*int8)(unsafe.Pointer(zOut + uintptr(crt.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(zOut + uintptr(i)))
+ *(*int8)(unsafe.Pointer(zOut + uintptr(libc.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(zOut + uintptr(i)))
if int32(*(*int8)(unsafe.Pointer(zOut + uintptr(i)))) == int32(c) {
if int32(*(*int8)(unsafe.Pointer(zOut + uintptr((i + 1))))) == int32(c) {
i++
@@ -24055,7 +27676,7 @@ func spellfix1Dequote(tls *crt.TLS, zIn uintptr) uintptr { /* spellfix.c:2005:13
// argv[1] -> database name
// argv[2] -> table name
// argv[3].. -> optional arguments (i.e. "edit_cost_table" parameter)
-func spellfix1Init(tls *crt.TLS, isCreate int32, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* spellfix.c:2043:12: */
+func spellfix1Init(tls *libc.TLS, isCreate int32, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* spellfix.c:2043:12: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -24067,15 +27688,15 @@ func spellfix1Init(tls *crt.TLS, isCreate int32, db uintptr, pAux uintptr, argc
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = 0
var i int32
- nDbName = int32(crt.Xstrlen(tls, zDbName))
+ nDbName = int32(libc.Xstrlen(tls, zDbName))
pNew = sqlite3.Xsqlite3_malloc64(tls, (uint64((uint64(unsafe.Sizeof(spellfix1_vtab{})) + uint64(nDbName)) + uint64(1))))
if pNew == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = 7
} else {
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(spellfix1_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(spellfix1_vtab{})))
(*spellfix1_vtab)(unsafe.Pointer(pNew)).FzDbName = (pNew + uintptr(1)*64)
- crt.Xmemcpy(tls, (*spellfix1_vtab)(unsafe.Pointer(pNew)).FzDbName, zDbName, (uint64(nDbName + 1)))
- (*spellfix1_vtab)(unsafe.Pointer(pNew)).FzTableName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zTableName))
+ libc.Xmemcpy(tls, (*spellfix1_vtab)(unsafe.Pointer(pNew)).FzDbName, zDbName, (uint64(nDbName + 1)))
+ (*spellfix1_vtab)(unsafe.Pointer(pNew)).FzTableName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zTableName))
(*spellfix1_vtab)(unsafe.Pointer(pNew)).Fdb = db
if (*spellfix1_vtab)(unsafe.Pointer(pNew)).FzTableName == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = 7
@@ -24083,27 +27704,27 @@ func spellfix1Init(tls *crt.TLS, isCreate int32, db uintptr, pAux uintptr, argc
sqlite3.Xsqlite3_vtab_config(tls, db, 2, 0)
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+5209 /* "CREATE TABLE x(w..." */)
+ ts+6494 /* "CREATE TABLE x(w..." */)
}
if (*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) == 0) && (isCreate != 0) {
spellfix1DbExec(tls, bp+56 /* &rc */, db,
- ts+5363, /* "CREATE TABLE IF ..." */
- crt.VaList(bp+8, zDbName, zTableName))
+ ts+6648, /* "CREATE TABLE IF ..." */
+ libc.VaList(bp+8, zDbName, zTableName))
spellfix1DbExec(tls, bp+56 /* &rc */, db,
- ts+5497, /* "CREATE INDEX IF ..." */
- crt.VaList(bp+24, zDbName, zTableName, zTableName))
+ ts+6782, /* "CREATE INDEX IF ..." */
+ libc.VaList(bp+24, zDbName, zTableName, zTableName))
}
for i = 3; (*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) == 0) && (i < argc); i++ {
- if (crt.Xstrncmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), ts+5582 /* "edit_cost_table=" */, uint64(16)) == 0) && ((*spellfix1_vtab)(unsafe.Pointer(pNew)).FzCostTable == uintptr(0)) {
+ if (libc.Xstrncmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), ts+6867 /* "edit_cost_table=" */, uint64(16)) == 0) && ((*spellfix1_vtab)(unsafe.Pointer(pNew)).FzCostTable == uintptr(0)) {
(*spellfix1_vtab)(unsafe.Pointer(pNew)).FzCostTable = spellfix1Dequote(tls, (*(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) + uintptr(16)))
if (*spellfix1_vtab)(unsafe.Pointer(pNew)).FzCostTable == uintptr(0) {
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = 7
}
continue
}
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+5599 /* "bad argument to ..." */, crt.VaList(bp+48, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6884 /* "bad argument to ..." */, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
*(*int32)(unsafe.Pointer(bp + 56 /* rc */)) = 1
}
}
@@ -24118,15 +27739,15 @@ func spellfix1Init(tls *crt.TLS, isCreate int32, db uintptr, pAux uintptr, argc
}
// The xConnect and xCreate methods
-func spellfix1Connect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* spellfix.c:2133:12: */
+func spellfix1Connect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* spellfix.c:2133:12: */
return spellfix1Init(tls, 0, db, pAux, argc, argv, ppVTab, pzErr)
}
-func spellfix1Create(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* spellfix.c:2142:12: */
+func spellfix1Create(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVTab uintptr, pzErr uintptr) int32 { /* spellfix.c:2142:12: */
return spellfix1Init(tls, 1, db, pAux, argc, argv, ppVTab, pzErr)
}
// Clear all of the content from a cursor.
-func spellfix1ResetCursor(tls *crt.TLS, pCur uintptr) { /* spellfix.c:2155:13: */
+func spellfix1ResetCursor(tls *libc.TLS, pCur uintptr) { /* spellfix.c:2155:13: */
var i int32
for i = 0; i < (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow; i++ {
sqlite3.Xsqlite3_free(tls, (*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa+uintptr(i)*64)).FzWord)
@@ -24141,7 +27762,7 @@ func spellfix1ResetCursor(tls *crt.TLS, pCur uintptr) { /* spellfix.c:2155:13: *
}
// Resize the cursor to hold up to N rows of content
-func spellfix1ResizeCursor(tls *crt.TLS, pCur uintptr, N int32) { /* spellfix.c:2172:13: */
+func spellfix1ResizeCursor(tls *libc.TLS, pCur uintptr, N int32) { /* spellfix.c:2172:13: */
var aNew uintptr
aNew = sqlite3.Xsqlite3_realloc64(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa, (uint64(uint64(unsafe.Sizeof(spellfix1_row{})) * uint64(N))))
@@ -24157,7 +27778,7 @@ func spellfix1ResizeCursor(tls *crt.TLS, pCur uintptr, N int32) { /* spellfix.c:
}
// Close a fuzzy-search cursor.
-func spellfix1Close(tls *crt.TLS, cur uintptr) int32 { /* spellfix.c:2191:12: */
+func spellfix1Close(tls *libc.TLS, cur uintptr) int32 { /* spellfix.c:2191:12: */
var pCur uintptr = cur
spellfix1ResetCursor(tls, pCur)
spellfix1ResizeCursor(tls, pCur, 0)
@@ -24172,7 +27793,7 @@ func spellfix1Close(tls *crt.TLS, cur uintptr) int32 { /* spellfix.c:2191:12: */
//
// filter.argv[*] values contains $str, $langid, $top, $scope and $rowid
// if specified and in that order.
-func spellfix1BestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* spellfix.c:2217:12: */
+func spellfix1BestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* spellfix.c:2217:12: */
var iPlan int32 = 0
var iLangTerm int32 = -1
var iTopTerm int32 = -1
@@ -24263,19 +27884,19 @@ __3:
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).ForderByConsumed = 1
}
if (iPlan & 0x02) != 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iLangTerm)*8)).FargvIndex = crt.PostIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iLangTerm)*8)).FargvIndex = libc.PostIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iLangTerm)*8)).Fomit = uint8(1)
}
if (iPlan & 0x04) != 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iTopTerm)*8)).FargvIndex = crt.PostIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iTopTerm)*8)).FargvIndex = libc.PostIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iTopTerm)*8)).Fomit = uint8(1)
}
if (iPlan & 0x08) != 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iScopeTerm)*8)).FargvIndex = crt.PostIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iScopeTerm)*8)).FargvIndex = libc.PostIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iScopeTerm)*8)).Fomit = uint8(1)
}
if (iPlan & (0x10 | 0x20)) != 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).FargvIndex = crt.PostIncInt32(&idx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).FargvIndex = libc.PostIncInt32(&idx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iDistTerm)*8)).Fomit = uint8(1)
}
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = 1e5
@@ -24292,14 +27913,14 @@ __3:
}
// Open a new fuzzy-search cursor.
-func spellfix1Open(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* spellfix.c:2331:12: */
+func spellfix1Open(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* spellfix.c:2331:12: */
var p uintptr = pVTab
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(spellfix1_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(spellfix1_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(spellfix1_cursor{})))
(*spellfix1_cursor)(unsafe.Pointer(pCur)).FpVTab = p
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
@@ -24307,7 +27928,7 @@ func spellfix1Open(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* spe
// Adjust a distance measurement by the words rank in order to show
// preference to common words.
-func spellfix1Score(tls *crt.TLS, iDistance int32, iRank int32) int32 { /* spellfix.c:2346:12: */
+func spellfix1Score(tls *libc.TLS, iDistance int32, iRank int32) int32 { /* spellfix.c:2346:12: */
var iLog2 int32
iLog2 = 0
__1:
@@ -24329,7 +27950,7 @@ __3:
// Compare two spellfix1_row objects for sorting purposes in qsort() such
// that they sort in order of increasing distance.
-func spellfix1RowCompare(tls *crt.TLS, A uintptr, B uintptr) int32 { /* spellfix.c:2356:25: */
+func spellfix1RowCompare(tls *libc.TLS, A uintptr, B uintptr) int32 { /* spellfix.c:2356:25: */
var a uintptr = A
var b uintptr = B
return ((*spellfix1_row)(unsafe.Pointer(a)).FiScore - (*spellfix1_row)(unsafe.Pointer(b)).FiScore)
@@ -24361,7 +27982,7 @@ type MatchQuery = MatchQuery1 /* spellfix.c:2381:3 */
// Run a query looking for the best matches against zPattern using
// zHash as the character class seed hash.
-func spellfix1RunQuery(tls *crt.TLS, p uintptr, zQuery uintptr, nQuery int32) { /* spellfix.c:2387:13: */
+func spellfix1RunQuery(tls *libc.TLS, p uintptr, zQuery uintptr, nQuery int32) { /* spellfix.c:2387:13: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -24393,7 +28014,7 @@ func spellfix1RunQuery(tls *crt.TLS, p uintptr, zQuery uintptr, nQuery int32) {
(*MatchQuery)(unsafe.Pointer(p)).Frc = 7
return
}
- nClass = int32(crt.Xstrlen(tls, zClass))
+ nClass = int32(libc.Xstrlen(tls, zClass))
if nClass > (32 - 2) {
nClass = (32 - 2)
*(*int8)(unsafe.Pointer(zClass + uintptr(nClass))) = int8(0)
@@ -24405,14 +28026,14 @@ func spellfix1RunQuery(tls *crt.TLS, p uintptr, zQuery uintptr, nQuery int32) {
iScope = nClass
}
}
- crt.Xmemcpy(tls, bp+8 /* &zHash1[0] */, zClass, uint64(iScope))
+ libc.Xmemcpy(tls, bp+8 /* &zHash1[0] */, zClass, uint64(iScope))
sqlite3.Xsqlite3_free(tls, zClass)
*(*int8)(unsafe.Pointer(bp + 8 /* &zHash1[0] */ + uintptr(iScope))) = int8(0)
- crt.Xmemcpy(tls, bp+40 /* &zHash2[0] */, bp+8 /* &zHash1[0] */, uint64(iScope))
+ libc.Xmemcpy(tls, bp+40 /* &zHash2[0] */, bp+8 /* &zHash1[0] */, uint64(iScope))
*(*int8)(unsafe.Pointer(bp + 40 /* &zHash2[0] */ + uintptr(iScope))) = int8('Z')
*(*int8)(unsafe.Pointer(bp + 40 /* &zHash2[0] */ + uintptr((iScope + 1)))) = int8(0)
- crt.Xmemcpy(tls, ((p + 108 /* &.azPrior */) + uintptr(crt.PostIncInt32(&(*MatchQuery)(unsafe.Pointer(p)).FnRun, 1))*32), bp+8 /* &zHash1[0] */, (uint64(iScope + 1)))
+ libc.Xmemcpy(tls, ((p + 108 /* &.azPrior */) + uintptr(libc.PostIncInt32(&(*MatchQuery)(unsafe.Pointer(p)).FnRun, 1))*32), bp+8 /* &zHash1[0] */, (uint64(iScope + 1)))
if (sqlite3.Xsqlite3_bind_text(tls, pStmt, 1, bp+8 /* &zHash1[0] */, -1, uintptr(0)) == 7) ||
(sqlite3.Xsqlite3_bind_text(tls, pStmt, 2, bp+40 /* &zHash2[0] */, -1, uintptr(0)) == 7) {
(*MatchQuery)(unsafe.Pointer(p)).Frc = 7
@@ -24467,7 +28088,7 @@ func spellfix1RunQuery(tls *crt.TLS, p uintptr, zQuery uintptr, nQuery int32) {
continue
}
- (*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr(idx)*64)).FzWord = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_column_text(tls, pStmt, 1)))
+ (*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr(idx)*64)).FzWord = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_column_text(tls, pStmt, 1)))
if (*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa+uintptr(idx)*64)).FzWord == uintptr(0) {
(*MatchQuery)(unsafe.Pointer(p)).Frc = 7
break
@@ -24477,7 +28098,7 @@ func spellfix1RunQuery(tls *crt.TLS, p uintptr, zQuery uintptr, nQuery int32) {
(*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr(idx)*64)).FiDistance = iDist
(*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr(idx)*64)).FiScore = iScore
(*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr(idx)*64)).FiMatchlen = *(*int32)(unsafe.Pointer(bp + 72 /* iMatchlen */))
- crt.Xmemcpy(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa+uintptr(idx)*64+32 /* &.zHash */, bp+8 /* &zHash1[0] */, (uint64(iScope + 1)))
+ libc.Xmemcpy(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa+uintptr(idx)*64+32 /* &.zHash */, bp+8 /* &zHash1[0] */, (uint64(iScope + 1)))
if (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow < (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnAlloc {
(*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow++
}
@@ -24501,7 +28122,7 @@ func spellfix1RunQuery(tls *crt.TLS, p uintptr, zQuery uintptr, nQuery int32) {
// This version of the xFilter method work if the MATCH term is present
// and we are doing a scan.
-func spellfix1FilterForMatch(tls *crt.TLS, pCur uintptr, argc int32, argv uintptr) int32 { /* spellfix.c:2526:12: */
+func spellfix1FilterForMatch(tls *libc.TLS, pCur uintptr, argc int32, argv uintptr) int32 { /* spellfix.c:2526:12: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -24540,7 +28161,7 @@ func spellfix1FilterForMatch(tls *crt.TLS, pCur uintptr, argc int32, argv uintpt
return 7
__2:
;
- crt.Xmemset(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3, 0, uint64(unsafe.Sizeof(EditDist3Config{})))
+ libc.Xmemset(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3, 0, uint64(unsafe.Sizeof(EditDist3Config{})))
rc = editDist3ConfigLoad(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3, (*spellfix1_vtab)(unsafe.Pointer(p)).Fdb, (*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable)
if !(rc != 0) {
goto __3
@@ -24550,20 +28171,20 @@ __3:
;
__1:
;
- crt.Xmemset(tls, bp+24 /* &x */, 0, uint64(unsafe.Sizeof(MatchQuery{})))
+ libc.Xmemset(tls, bp+24 /* &x */, 0, uint64(unsafe.Sizeof(MatchQuery{})))
(*MatchQuery)(unsafe.Pointer(bp + 24 /* &x */)).FiScope = 3 // Default scope if none specified by "WHERE scope=N"
(*MatchQuery)(unsafe.Pointer(bp + 24 /* &x */)).FiMaxDist = -1 // Maximum allowed edit distance
if !((idxNum & 2) != 0) {
goto __4
}
- iLang = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&idx, 1))*8)))
+ iLang = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&idx, 1))*8)))
__4:
;
if !((idxNum & 4) != 0) {
goto __5
}
- iLimit = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&idx, 1))*8)))
+ iLimit = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&idx, 1))*8)))
if !(iLimit < 1) {
goto __6
}
@@ -24575,7 +28196,7 @@ __5:
if !((idxNum & 8) != 0) {
goto __7
}
- (*MatchQuery)(unsafe.Pointer(bp + 24 /* &x */)).FiScope = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&idx, 1))*8)))
+ (*MatchQuery)(unsafe.Pointer(bp + 24 /* &x */)).FiScope = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&idx, 1))*8)))
if !((*MatchQuery)(unsafe.Pointer(bp+24 /* &x */)).FiScope < 1) {
goto __8
}
@@ -24593,7 +28214,7 @@ __7:
if !((idxNum & (16 | 32)) != 0) {
goto __10
}
- (*MatchQuery)(unsafe.Pointer(bp + 24 /* &x */)).FiMaxDist = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(crt.PostIncInt32(&idx, 1))*8)))
+ (*MatchQuery)(unsafe.Pointer(bp + 24 /* &x */)).FiMaxDist = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(libc.PostIncInt32(&idx, 1))*8)))
if !((idxNum & 16) != 0) {
goto __11
}
@@ -24644,7 +28265,7 @@ __15:
goto filter_exit
__17:
;
- nPattern = int32(crt.Xstrlen(tls, zPattern))
+ nPattern = int32(libc.Xstrlen(tls, zPattern))
if !(int32(*(*int8)(unsafe.Pointer(zPattern + uintptr((nPattern - 1))))) == '*') {
goto __18
}
@@ -24653,8 +28274,8 @@ __18:
;
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+5633, /* "SELECT id, word,..." */
- crt.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, iLang))
+ ts+6918, /* "SELECT id, word,..." */
+ libc.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, iLang))
if !(zSql == uintptr(0)) {
goto __19
}
@@ -24684,8 +28305,8 @@ __20:
if !((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa != 0) {
goto __21
}
- crt.Xqsort(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa, uint64((*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow), uint64(unsafe.Sizeof(spellfix1_row{})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ libc.Xqsort(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa, uint64((*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow), uint64(unsafe.Sizeof(spellfix1_row{})), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr) int32
}{spellfix1RowCompare})))
(*spellfix1_cursor)(unsafe.Pointer(pCur)).FiTop = iLimit
(*spellfix1_cursor)(unsafe.Pointer(pCur)).FiScope = iScope
@@ -24702,7 +28323,7 @@ filter_exit:
}
// This version of xFilter handles a full-table scan case
-func spellfix1FilterForFullScan(tls *crt.TLS, pCur uintptr, argc int32, argv uintptr) int32 { /* spellfix.c:2641:12: */
+func spellfix1FilterForFullScan(tls *libc.TLS, pCur uintptr, argc int32, argv uintptr) int32 { /* spellfix.c:2641:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -24713,11 +28334,11 @@ func spellfix1FilterForFullScan(tls *crt.TLS, pCur uintptr, argc int32, argv uin
spellfix1ResetCursor(tls, pCur)
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+5733, /* "SELECT word, ran..." */
- crt.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(pVTab)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(pVTab)).FzTableName,
+ ts+7018, /* "SELECT word, ran..." */
+ libc.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(pVTab)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(pVTab)).FzTableName,
func() uintptr {
if (idxNum & 64) != 0 {
- return ts + 5792 /* " WHERE rowid=?" */
+ return ts + 7077 /* " WHERE rowid=?" */
}
return ts + 488 /* "" */
}()))
@@ -24730,7 +28351,7 @@ func spellfix1FilterForFullScan(tls *crt.TLS, pCur uintptr, argc int32, argv uin
rc = sqlite3.Xsqlite3_bind_value(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).FpFullScan, 1, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
}
- (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow = crt.AssignPtrInt32(pCur+36 /* &.iRow */, 0)
+ (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow = libc.AssignPtrInt32(pCur+36 /* &.iRow */, 0)
if rc == 0 {
rc = sqlite3.Xsqlite3_step(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).FpFullScan)
if rc == 100 {
@@ -24749,7 +28370,7 @@ func spellfix1FilterForFullScan(tls *crt.TLS, pCur uintptr, argc int32, argv uin
// Called to "rewind" a cursor back to the beginning so that
// it starts its output over again. Always called at least once
// prior to any spellfix1Column, spellfix1Rowid, or spellfix1Eof call.
-func spellfix1Filter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* spellfix.c:2681:12: */
+func spellfix1Filter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* spellfix.c:2681:12: */
var pCur uintptr = cur
var rc int32
(*spellfix1_cursor)(unsafe.Pointer(pCur)).FidxNum = idxNum
@@ -24762,7 +28383,7 @@ func spellfix1Filter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, ar
}
// Advance a cursor to its next row of output
-func spellfix1Next(tls *crt.TLS, cur uintptr) int32 { /* spellfix.c:2701:12: */
+func spellfix1Next(tls *libc.TLS, cur uintptr) int32 { /* spellfix.c:2701:12: */
var pCur uintptr = cur
var rc int32 = 0
if (*spellfix1_cursor)(unsafe.Pointer(pCur)).FiRow < (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow {
@@ -24782,13 +28403,13 @@ func spellfix1Next(tls *crt.TLS, cur uintptr) int32 { /* spellfix.c:2701:12: */
}
// Return TRUE if we are at the end-of-file
-func spellfix1Eof(tls *crt.TLS, cur uintptr) int32 { /* spellfix.c:2719:12: */
+func spellfix1Eof(tls *libc.TLS, cur uintptr) int32 { /* spellfix.c:2719:12: */
var pCur uintptr = cur
- return (crt.Bool32((*spellfix1_cursor)(unsafe.Pointer(pCur)).FiRow >= (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow))
+ return (libc.Bool32((*spellfix1_cursor)(unsafe.Pointer(pCur)).FiRow >= (*spellfix1_cursor)(unsafe.Pointer(pCur)).FnRow))
}
// Return columns from the current row.
-func spellfix1Column(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* spellfix.c:2727:12: */
+func spellfix1Column(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* spellfix.c:2727:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -24831,9 +28452,9 @@ func spellfix1Column(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /*
{
*(*int32)(unsafe.Pointer(bp /* iMatchlen */)) = (*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr((*spellfix1_cursor)(unsafe.Pointer(pCur)).FiRow)*64)).FiMatchlen
if *(*int32)(unsafe.Pointer(bp /* iMatchlen */)) < 0 {
- var nPattern int32 = int32(crt.Xstrlen(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).FzPattern))
+ var nPattern int32 = int32(libc.Xstrlen(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).FzPattern))
var zWord uintptr = (*spellfix1_row)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).Fa + uintptr((*spellfix1_cursor)(unsafe.Pointer(pCur)).FiRow)*64)).FzWord
- var nWord int32 = int32(crt.Xstrlen(tls, zWord))
+ var nWord int32 = int32(libc.Xstrlen(tls, zWord))
if (nPattern > 0) && (int32(*(*int8)(unsafe.Pointer((*spellfix1_cursor)(unsafe.Pointer(pCur)).FzPattern + uintptr((nPattern - 1))))) == '*') {
var zTranslit uintptr
@@ -24886,7 +28507,7 @@ func spellfix1Column(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /*
}
// The rowid.
-func spellfix1Rowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* spellfix.c:2813:12: */
+func spellfix1Rowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* spellfix.c:2813:12: */
var pCur uintptr = cur
if (*spellfix1_cursor)(unsafe.Pointer(pCur)).FpFullScan != 0 {
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_column_int64(tls, (*spellfix1_cursor)(unsafe.Pointer(pCur)).FpFullScan, 4)
@@ -24899,7 +28520,7 @@ func spellfix1Rowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* spellf
// This function is called by the xUpdate() method. It returns a string
// containing the conflict mode that xUpdate() should use for the current
// operation. One of: "ROLLBACK", "IGNORE", "ABORT" or "REPLACE".
-func spellfix1GetConflict(tls *crt.TLS, db uintptr) uintptr { /* spellfix.c:2828:19: */
+func spellfix1GetConflict(tls *libc.TLS, db uintptr) uintptr { /* spellfix.c:2828:19: */
var eConflict int32 = sqlite3.Xsqlite3_vtab_on_conflict(tls, db)
return azConflict[(eConflict - 1)]
@@ -24907,11 +28528,11 @@ func spellfix1GetConflict(tls *crt.TLS, db uintptr) uintptr { /* spellfix.c:2828
var azConflict = [5]uintptr{
// Note: Instead of "FAIL" - "ABORT".
- ts + 5807 /* "ROLLBACK" */, ts + 5816 /* "IGNORE" */, ts + 5823 /* "ABORT" */, ts + 5823 /* "ABORT" */, ts + 5829, /* "REPLACE" */
+ ts + 7092 /* "ROLLBACK" */, ts + 7101 /* "IGNORE" */, ts + 7108 /* "ABORT" */, ts + 7108 /* "ABORT" */, ts + 7114, /* "REPLACE" */
} /* spellfix.c:2829:21 */
// The xUpdate() method.
-func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRowid uintptr) int32 { /* spellfix.c:2851:12: */
+func spellfix1Update(tls *libc.TLS, pVTab uintptr, argc int32, argv uintptr, pRowid uintptr) int32 { /* spellfix.c:2851:12: */
bp := tls.Alloc(284)
defer tls.Free(284)
@@ -24923,10 +28544,10 @@ func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRow
if argc == 1 {
// A delete operation on the rowid given by argv[0]
- rowid = crt.AssignPtrInt64(pRowid, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))))
+ rowid = libc.AssignPtrInt64(pRowid, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))))
spellfix1DbExec(tls, bp+280 /* &rc */, db,
- ts+5837, /* "DELETE FROM \"%w\"..." */
- crt.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, rowid))
+ ts+7122, /* "DELETE FROM \"%w\"..." */
+ libc.VaList(bp, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, rowid))
} else {
var zWord uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((0+2))*8)))
var nWord int32 = sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((0+2))*8)))
@@ -24946,17 +28567,17 @@ func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRow
// what special actions to take
var zCmd uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr((11+2))*8)))
if zCmd == uintptr(0) {
- (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+5880, /* "NOT NULL constra..." */
- crt.VaList(bp+24, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName))
+ (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+7165, /* "NOT NULL constra..." */
+ libc.VaList(bp+24, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName))
return (19 | (int32(5) << 8))
}
- if crt.Xstrcmp(tls, zCmd, ts+5916 /* "reset" */) == 0 {
+ if libc.Xstrcmp(tls, zCmd, ts+7201 /* "reset" */) == 0 {
// Reset the edit cost table (if there is one).
editDist3ConfigDelete(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3)
(*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3 = uintptr(0)
return 0
}
- if crt.Xstrncmp(tls, zCmd, ts+5582 /* "edit_cost_table=" */, uint64(16)) == 0 {
+ if libc.Xstrncmp(tls, zCmd, ts+6867 /* "edit_cost_table=" */, uint64(16)) == 0 {
editDist3ConfigDelete(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3)
(*spellfix1_vtab)(unsafe.Pointer(p)).FpConfig3 = uintptr(0)
sqlite3.Xsqlite3_free(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable)
@@ -24964,14 +28585,14 @@ func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRow
if (*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable == uintptr(0) {
return 7
}
- if (int32(*(*int8)(unsafe.Pointer((*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable + uintptr(0)))) == 0) || (sqlite3.Xsqlite3_stricmp(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable, ts+5922 /* "null" */) == 0) {
+ if (int32(*(*int8)(unsafe.Pointer((*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable + uintptr(0)))) == 0) || (sqlite3.Xsqlite3_stricmp(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable, ts+7207 /* "null" */) == 0) {
sqlite3.Xsqlite3_free(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable)
(*spellfix1_vtab)(unsafe.Pointer(p)).FzCostTable = uintptr(0)
}
return 0
}
- (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+5927, /* "unknown value fo..." */
- crt.VaList(bp+32, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, zCmd))
+ (*sqlite3_vtab)(unsafe.Pointer(pVTab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+7212, /* "unknown value fo..." */
+ libc.VaList(bp+32, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, zCmd))
return 1
}
if iRank < 1 {
@@ -24985,7 +28606,7 @@ func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRow
if zK1 == uintptr(0) {
return 7
}
- for i = 0; (int32(crt.AssignInt8(&c, *(*int8)(unsafe.Pointer(zK1 + uintptr(i)))))) != 0; i++ {
+ for i = 0; (int32(libc.AssignInt8(&c, *(*int8)(unsafe.Pointer(zK1 + uintptr(i)))))) != 0; i++ {
if (int32(c) >= 'A') && (int32(c) <= 'Z') {
*(*int8)(unsafe.Pointer(zK1 + uintptr(i))) += int8(('a' - 'A'))
}
@@ -24999,25 +28620,25 @@ func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRow
if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))) == 5 {
spellfix1DbExec(tls, bp+280 /* &rc */, db,
- ts+5962, /* "INSERT INTO \"%w\"..." */
- crt.VaList(bp+48, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName,
+ ts+7247, /* "INSERT INTO \"%w\"..." */
+ libc.VaList(bp+48, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName,
iRank, iLang, zWord, zK1, zWord, zK2))
} else {
newRowid = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
spellfix1DbExec(tls, bp+280 /* &rc */, db,
- ts+6048, /* "INSERT OR %s INT..." */
- crt.VaList(bp+112, zConflict, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName,
+ ts+7333, /* "INSERT OR %s INT..." */
+ libc.VaList(bp+112, zConflict, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName,
newRowid, iRank, iLang, zWord, zK1, zWord, zK2))
}
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_last_insert_rowid(tls, db)
} else {
rowid = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- newRowid = crt.AssignPtrInt64(pRowid, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
+ newRowid = libc.AssignPtrInt64(pRowid, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
spellfix1DbExec(tls, bp+280 /* &rc */, db,
- ts+6148, /* "UPDATE OR %s \"%w..." */
- crt.VaList(bp+192, zConflict, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, newRowid, iRank, iLang,
+ ts+7433, /* "UPDATE OR %s \"%w..." */
+ libc.VaList(bp+192, zConflict, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, newRowid, iRank, iLang,
zWord, zK1, zWord, zK2, rowid))
}
sqlite3.Xsqlite3_free(tls, zK1)
@@ -25027,20 +28648,20 @@ func spellfix1Update(tls *crt.TLS, pVTab uintptr, argc int32, argv uintptr, pRow
}
// Rename the spellfix1 table.
-func spellfix1Rename(tls *crt.TLS, pVTab uintptr, zNew uintptr) int32 { /* spellfix.c:2966:12: */
+func spellfix1Rename(tls *libc.TLS, pVTab uintptr, zNew uintptr) int32 { /* spellfix.c:2966:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
var p uintptr = pVTab
var db uintptr = (*spellfix1_vtab)(unsafe.Pointer(p)).Fdb
*(*int32)(unsafe.Pointer(bp + 32 /* rc */)) = 0
- var zNewName uintptr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zNew))
+ var zNewName uintptr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zNew))
if zNewName == uintptr(0) {
return 7
}
spellfix1DbExec(tls, bp+32 /* &rc */, db,
- ts+6257, /* "ALTER TABLE \"%w\"..." */
- crt.VaList(bp+8, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, zNewName))
+ ts+7542, /* "ALTER TABLE \"%w\"..." */
+ libc.VaList(bp+8, (*spellfix1_vtab)(unsafe.Pointer(p)).FzDbName, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName, zNewName))
if *(*int32)(unsafe.Pointer(bp + 32 /* rc */)) == 0 {
sqlite3.Xsqlite3_free(tls, (*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName)
(*spellfix1_vtab)(unsafe.Pointer(p)).FzTableName = zNewName
@@ -25074,37 +28695,37 @@ uintptr(0), FxRename:// xFindMethod
} /* spellfix.c:2991:23 */
// Register the various functions and the virtual table.
-func spellfix1Register(tls *crt.TLS, db uintptr) int32 { /* spellfix.c:3017:12: */
+func spellfix1Register(tls *libc.TLS, db uintptr) int32 { /* spellfix.c:3017:12: */
var rc int32 = 0
var i int32
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6306 /* "spellfix1_transl..." */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7591 /* "spellfix1_transl..." */, 1,
(1 | 0x000000800), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{transliterateSqlFunc})), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6325 /* "spellfix1_editdi..." */, 2,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7610 /* "spellfix1_editdi..." */, 2,
(1 | 0x000000800), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{editdistSqlFunc})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6344 /* "spellfix1_phoneh..." */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7629 /* "spellfix1_phoneh..." */, 1,
(1 | 0x000000800), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{phoneticHashSqlFunc})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6364 /* "spellfix1_script..." */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7649 /* "spellfix1_script..." */, 1,
(1 | 0x000000800), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{scriptCodeSqlFunc})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+6385 /* "spellfix1" */, uintptr(unsafe.Pointer(&spellfix1Module)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+7670 /* "spellfix1" */, uintptr(unsafe.Pointer(&spellfix1Module)), uintptr(0))
}
if rc == 0 {
rc = editDist3Install(tls, db)
@@ -25118,7 +28739,7 @@ func spellfix1Register(tls *crt.TLS, db uintptr) int32 { /* spellfix.c:3017:12:
}
// Extension load function.
-func sqlite3_spellfix_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* spellfix.c:3061:5: */
+func sqlite3_spellfix_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* spellfix.c:3061:5: */
_ = pApi
return spellfix1Register(tls, db)
@@ -25133,13 +28754,13 @@ func sqlite3_spellfix_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uint
// compilers.
// Return TRUE if character c is a whitespace character
-func totypeIsspace(tls *crt.TLS, c uint8) int32 { /* totype.c:70:12: */
- return (crt.Bool32((((((int32(c) == ' ') || (int32(c) == '\t')) || (int32(c) == '\n')) || (int32(c) == '\v')) || (int32(c) == '\f')) || (int32(c) == '\r')))
+func totypeIsspace(tls *libc.TLS, c uint8) int32 { /* totype.c:70:12: */
+ return (libc.Bool32((((((int32(c) == ' ') || (int32(c) == '\t')) || (int32(c) == '\n')) || (int32(c) == '\v')) || (int32(c) == '\f')) || (int32(c) == '\r')))
}
// Return TRUE if character c is a digit
-func totypeIsdigit(tls *crt.TLS, c uint8) int32 { /* totype.c:77:12: */
- return (crt.Bool32((int32(c) >= '0') && (int32(c) <= '9')))
+func totypeIsdigit(tls *libc.TLS, c uint8) int32 { /* totype.c:77:12: */
+ return (libc.Bool32((int32(c) >= '0') && (int32(c) <= '9')))
}
// Compare the 19-character string zNum against the text representation
@@ -25154,11 +28775,11 @@ func totypeIsdigit(tls *crt.TLS, c uint8) int32 { /* totype.c:77:12: */
// totypeCompare2pow63("9223372036854775800")
//
// will return -8.
-func totypeCompare2pow63(tls *crt.TLS, zNum uintptr) int32 { /* totype.c:95:12: */
+func totypeCompare2pow63(tls *libc.TLS, zNum uintptr) int32 { /* totype.c:95:12: */
var c int32 = 0
var i int32
// 012345678901234567
- var pow63 uintptr = ts + 6395 /* "9223372036854775..." */
+ var pow63 uintptr = ts + 7680 /* "9223372036854775..." */
for i = 0; (c == 0) && (i < 18); i++ {
c = ((int32(*(*int8)(unsafe.Pointer(zNum + uintptr(i)))) - int32(*(*int8)(unsafe.Pointer(pow63 + uintptr(i))))) * 10)
}
@@ -25182,7 +28803,7 @@ func totypeCompare2pow63(tls *crt.TLS, zNum uintptr) int32 { /* totype.c:95:12:
// then return 1.
//
// The string is not necessarily zero-terminated.
-func totypeAtoi64(tls *crt.TLS, zNum uintptr, pNum uintptr, length int32) int32 { /* totype.c:125:12: */
+func totypeAtoi64(tls *libc.TLS, zNum uintptr, pNum uintptr, length int32) int32 { /* totype.c:125:12: */
var u sqlite3_uint64 = uint64(0)
var neg int32 = 0 // assume positive
var i int32
@@ -25206,7 +28827,7 @@ func totypeAtoi64(tls *crt.TLS, zNum uintptr, pNum uintptr, length int32) int32
for (zNum < zEnd) && (int32(*(*int8)(unsafe.Pointer(zNum + uintptr(0)))) == '0') {
zNum++
} // Skip leading zeros.
- for i = 0; (((zNum + uintptr(i)) < zEnd) && ((crt.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(zNum + uintptr(i)))))) >= '0')) && (c <= '9'); i++ {
+ for i = 0; (((zNum + uintptr(i)) < zEnd) && ((libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(zNum + uintptr(i)))))) >= '0')) && (c <= '9'); i++ {
u = (((u * uint64(10)) + sqlite3_uint64(c)) - uint64('0'))
}
if u > (uint64(int64(0xffffffff) | (sqlite3_int64((int64(0x7fffffff))) << 32))) {
@@ -25266,7 +28887,7 @@ func totypeAtoi64(tls *crt.TLS, zNum uintptr, pNum uintptr, length int32) int32
// If some prefix of the input string is a valid number, this routine
// returns FALSE but it still converts the prefix and writes the result
// into *pResult.
-func totypeAtoF(tls *crt.TLS, z uintptr, pResult uintptr, length int32) int32 { /* totype.c:204:12: */
+func totypeAtoF(tls *libc.TLS, z uintptr, pResult uintptr, length int32) int32 { /* totype.c:204:12: */
var zEnd uintptr
// sign * significand * (10 ^ (esign * exponent))
var sign int32 // sign of significand
@@ -25485,7 +29106,7 @@ __31:
// In the IEEE 754 standard, zero is signed.
// Add the sign if we've seen at least one digit
if (sign < 0) && (nDigits != 0) {
- result = -crt.Float64FromFloat64(float64(0))
+ result = -libc.Float64FromFloat64(float64(0))
} else {
result = float64(0)
}
@@ -25566,7 +29187,7 @@ __42:
result = (0.0 * float64(s))
goto __51
__50:
- result = ((crt.Float64(1e308) * crt.Float64(1e308)) * float64(s))
+ result = ((libc.Float64(1e308) * libc.Float64(1e308)) * float64(s))
__51:
;
goto __49
@@ -25616,13 +29237,13 @@ __33:
*(*float64)(unsafe.Pointer(pResult)) = result
// return true if number and no extra non-whitespace chracters after
- return (crt.Bool32((((z >= zEnd) && (nDigits > 0)) && (eValid != 0)) && (nonNum == 0)))
+ return (libc.Bool32((((z >= zEnd) && (nDigits > 0)) && (eValid != 0)) && (nonNum == 0)))
}
// tointeger(X): If X is any value (integer, double, blob, or string) that
// can be losslessly converted into an integer, then make the conversion and
// return the result. Otherwise, return NULL.
-func tointegerFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* totype.c:358:13: */
+func tointegerFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* totype.c:358:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -25657,9 +29278,9 @@ func tointegerFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
for i = 0; uint64(i) < uint64(unsafe.Sizeof(sqlite3_int64(0))); i++ {
*(*uint8)(unsafe.Pointer(bp /* &zBlobRev[0] */ + uintptr(i))) = *(*uint8)(unsafe.Pointer(zBlob + uintptr(((uint64(unsafe.Sizeof(sqlite3_int64(0))) - uint64(1)) - uint64(i)))))
}
- crt.Xmemcpy(tls, bp+8 /* &iVal */, bp /* &zBlobRev[0] */, uint64(unsafe.Sizeof(sqlite3_int64(0))))
+ libc.Xmemcpy(tls, bp+8 /* &iVal */, bp /* &zBlobRev[0] */, uint64(unsafe.Sizeof(sqlite3_int64(0))))
} else {
- crt.Xmemcpy(tls, bp+8 /* &iVal */, zBlob, uint64(unsafe.Sizeof(sqlite3_int64(0))))
+ libc.Xmemcpy(tls, bp+8 /* &iVal */, zBlob, uint64(unsafe.Sizeof(sqlite3_int64(0))))
}
sqlite3.Xsqlite3_result_int64(tls, context, *(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* iVal */)))
}
@@ -25692,7 +29313,7 @@ func tointegerFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// toreal(X): If X is any value (integer, double, blob, or string) that can
// be losslessly converted into a real number, then do so and return that
// real number. Otherwise return NULL.
-func torealFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* totype.c:428:13: */
+func torealFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* totype.c:428:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -25727,9 +29348,9 @@ func torealFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* to
for i = 0; uint64(i) < uint64(unsafe.Sizeof(float64(0))); i++ {
*(*uint8)(unsafe.Pointer(bp /* &zBlobRev[0] */ + uintptr(i))) = *(*uint8)(unsafe.Pointer(zBlob + uintptr(((uint64(unsafe.Sizeof(float64(0))) - uint64(1)) - uint64(i)))))
}
- crt.Xmemcpy(tls, bp+8 /* &rVal */, bp /* &zBlobRev[0] */, uint64(unsafe.Sizeof(float64(0))))
+ libc.Xmemcpy(tls, bp+8 /* &rVal */, bp /* &zBlobRev[0] */, uint64(unsafe.Sizeof(float64(0))))
} else {
- crt.Xmemcpy(tls, bp+8 /* &rVal */, zBlob, uint64(unsafe.Sizeof(float64(0))))
+ libc.Xmemcpy(tls, bp+8 /* &rVal */, zBlob, uint64(unsafe.Sizeof(float64(0))))
}
sqlite3.Xsqlite3_result_double(tls, context, *(*float64)(unsafe.Pointer(bp + 8 /* rVal */)))
}
@@ -25760,21 +29381,21 @@ func torealFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* to
}
}
-func sqlite3_totype_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* totype.c:497:5: */
+func sqlite3_totype_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* totype.c:497:5: */
var rc int32 = 0
_ = pApi
_ = pzErrMsg // Unused parameter
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6414 /* "tointeger" */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7699 /* "tointeger" */, 1,
((1 | 0x000000800) | 0x000200000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tointegerFunc})), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+6424 /* "toreal" */, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7709 /* "toreal" */, 1,
((1 | 0x000000800) | 0x000200000), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{torealFunc})), uintptr(0), uintptr(0))
}
return rc
@@ -25890,13 +29511,13 @@ type UnionSrc = UnionSrc1 /* unionvtab.c:183:25 */
// a pointer to nByte bytes of zeroed memory. If the memory allocation
// is attempted but fails, NULL is returned and *pRc is set to
// SQLITE_NOMEM.
-func unionMalloc(tls *crt.TLS, pRc uintptr, nByte sqlite3_int64) uintptr { /* unionvtab.c:253:13: */
+func unionMalloc(tls *libc.TLS, pRc uintptr, nByte sqlite3_int64) uintptr { /* unionvtab.c:253:13: */
var pRet uintptr
if *(*int32)(unsafe.Pointer(pRc)) == 0 {
pRet = sqlite3.Xsqlite3_malloc64(tls, uint64(nByte))
if pRet != 0 {
- crt.Xmemset(tls, pRet, 0, size_t(nByte))
+ libc.Xmemset(tls, pRet, 0, size_t(nByte))
} else {
*(*int32)(unsafe.Pointer(pRc)) = 7
}
@@ -25911,13 +29532,13 @@ func unionMalloc(tls *crt.TLS, pRc uintptr, nByte sqlite3_int64) uintptr { /* un
// a copy of the nul-terminated string passed as the second argument.
// If the allocation is attempted but fails, NULL is returned and *pRc is
// set to SQLITE_NOMEM.
-func unionStrdup(tls *crt.TLS, pRc uintptr, zIn uintptr) uintptr { /* unionvtab.c:276:13: */
+func unionStrdup(tls *libc.TLS, pRc uintptr, zIn uintptr) uintptr { /* unionvtab.c:276:13: */
var zRet uintptr = uintptr(0)
if zIn != 0 {
- var nByte sqlite3_int64 = (sqlite3_int64(crt.Xstrlen(tls, zIn) + uint64(1)))
+ var nByte sqlite3_int64 = (sqlite3_int64(libc.Xstrlen(tls, zIn) + uint64(1)))
zRet = unionMalloc(tls, pRc, nByte)
if zRet != 0 {
- crt.Xmemcpy(tls, zRet, zIn, size_t(nByte))
+ libc.Xmemcpy(tls, zRet, zIn, size_t(nByte))
}
}
return zRet
@@ -25930,7 +29551,7 @@ func unionStrdup(tls *crt.TLS, pRc uintptr, zIn uintptr) uintptr { /* unionvtab.
//
// If the first character of the input is not an open quote, then this
// function is a no-op.
-func unionDequote(tls *crt.TLS, z uintptr) { /* unionvtab.c:297:13: */
+func unionDequote(tls *libc.TLS, z uintptr) { /* unionvtab.c:297:13: */
if z != 0 {
var q int8 = *(*int8)(unsafe.Pointer(z + uintptr(0)))
@@ -25952,10 +29573,10 @@ func unionDequote(tls *crt.TLS, z uintptr) { /* unionvtab.c:297:13: */
// the input cursor past both and copy a single quote character
// to the output buffer.
iIn = iIn + (2)
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iOut, 1)))) = q
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = q
}
} else {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iIn, 1))))
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iIn, 1))))
}
}
*(*int8)(unsafe.Pointer(z + uintptr(iOut))) = int8(0)
@@ -25974,7 +29595,7 @@ func unionDequote(tls *crt.TLS, z uintptr) { /* unionvtab.c:297:13: */
// compilation fails, NULL is returned, *pRc is set to an SQLite error
// code and *pzErr may be set to an error message buffer allocated by
// sqlite3_malloc().
-func unionPrepare(tls *crt.TLS, pRc uintptr, db uintptr, zSql uintptr, pzErr uintptr) uintptr { /* unionvtab.c:341:21: */
+func unionPrepare(tls *libc.TLS, pRc uintptr, db uintptr, zSql uintptr, pzErr uintptr) uintptr { /* unionvtab.c:341:21: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -25983,7 +29604,7 @@ func unionPrepare(tls *crt.TLS, pRc uintptr, db uintptr, zSql uintptr, pzErr uin
if *(*int32)(unsafe.Pointer(pRc)) == 0 {
var rc int32 = sqlite3.Xsqlite3_prepare_v2(tls, db, zSql, -1, bp+8 /* &pRet */, uintptr(0))
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6431 /* "sql error: %s" */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7716 /* "sql error: %s" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
*(*int32)(unsafe.Pointer(pRc)) = rc
}
}
@@ -25992,7 +29613,7 @@ func unionPrepare(tls *crt.TLS, pRc uintptr, db uintptr, zSql uintptr, pzErr uin
// Like unionPrepare(), except prepare the results of vprintf(zFmt, ...)
// instead of a constant SQL string.
-func unionPreparePrintf(tls *crt.TLS, pRc uintptr, pzErr uintptr, db uintptr, zFmt uintptr, va uintptr) uintptr { /* unionvtab.c:363:21: */
+func unionPreparePrintf(tls *libc.TLS, pRc uintptr, pzErr uintptr, db uintptr, zFmt uintptr, va uintptr) uintptr { /* unionvtab.c:363:21: */
var pRet uintptr = uintptr(0)
var zSql uintptr
var ap va_list
@@ -26022,7 +29643,7 @@ func unionPreparePrintf(tls *crt.TLS, pRc uintptr, pzErr uintptr, db uintptr, zF
// Call sqlite3_finalize() on SQL statement pStmt. If *pRc is set to
// SQLITE_OK when this function is called, then it is set to the
// value returned by sqlite3_finalize() before this function exits.
-func unionFinalize(tls *crt.TLS, pRc uintptr, pStmt uintptr, pzErr uintptr) { /* unionvtab.c:414:13: */
+func unionFinalize(tls *libc.TLS, pRc uintptr, pStmt uintptr, pzErr uintptr) { /* unionvtab.c:414:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -26031,7 +29652,7 @@ func unionFinalize(tls *crt.TLS, pRc uintptr, pStmt uintptr, pzErr uintptr) { /*
if *(*int32)(unsafe.Pointer(pRc)) == 0 {
*(*int32)(unsafe.Pointer(pRc)) = rc
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
}
}
}
@@ -26044,7 +29665,7 @@ func unionFinalize(tls *crt.TLS, pRc uintptr, pStmt uintptr, pzErr uintptr) { /*
// case if argument pzErr is not NULL, also set (*pzErr) to an English
// language error message. The caller is responsible for eventually freeing
// any error message using sqlite3_free().
-func unionInvokeOpenClose(tls *crt.TLS, pTab uintptr, pSrc uintptr, bClose int32, pzErr uintptr) int32 { /* unionvtab.c:435:12: */
+func unionInvokeOpenClose(tls *libc.TLS, pTab uintptr, pSrc uintptr, bClose int32, pzErr uintptr) int32 { /* unionvtab.c:435:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -26056,9 +29677,9 @@ func unionInvokeOpenClose(tls *crt.TLS, pTab uintptr, pSrc uintptr, bClose int32
}
sqlite3.Xsqlite3_bind_int(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpOpenClose, (2 + (*UnionTab)(unsafe.Pointer(pTab)).FbHasContext), bClose)
sqlite3.Xsqlite3_step(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpOpenClose)
- if 0 != (crt.AssignInt32(&rc, sqlite3.Xsqlite3_reset(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpOpenClose))) {
+ if 0 != (libc.AssignInt32(&rc, sqlite3.Xsqlite3_reset(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpOpenClose))) {
if pzErr != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, (*UnionTab)(unsafe.Pointer(pTab)).Fdb)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, (*UnionTab)(unsafe.Pointer(pTab)).Fdb)))
}
}
}
@@ -26068,7 +29689,7 @@ func unionInvokeOpenClose(tls *crt.TLS, pTab uintptr, pSrc uintptr, bClose int32
// This function is a no-op for unionvtab. For swarmvtab, it attempts to
// close open database files until at most nMax are open. An SQLite error
// code is returned if an error occurs, or SQLITE_OK otherwise.
-func unionCloseSources(tls *crt.TLS, pTab uintptr, nMax int32) { /* unionvtab.c:463:13: */
+func unionCloseSources(tls *libc.TLS, pTab uintptr, nMax int32) { /* unionvtab.c:463:13: */
for ((*UnionTab)(unsafe.Pointer(pTab)).FpClosable != 0) && ((*UnionTab)(unsafe.Pointer(pTab)).FnOpen > nMax) {
var p uintptr
var pp uintptr
@@ -26085,13 +29706,13 @@ func unionCloseSources(tls *crt.TLS, pTab uintptr, nMax int32) { /* unionvtab.c:
}
// xDisconnect method.
-func unionDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* unionvtab.c:481:12: */
+func unionDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* unionvtab.c:481:12: */
if pVtab != 0 {
var pTab uintptr = pVtab
var i int32
for i = 0; i < (*UnionTab)(unsafe.Pointer(pTab)).FnSrc; i++ {
var pSrc uintptr = ((*UnionTab)(unsafe.Pointer(pTab)).FaSrc + uintptr(i)*72)
- var bHaveSrcDb int32 = (crt.Bool32((*UnionSrc)(unsafe.Pointer(pSrc)).Fdb != uintptr(0)))
+ var bHaveSrcDb int32 = (libc.Bool32((*UnionSrc)(unsafe.Pointer(pSrc)).Fdb != uintptr(0)))
sqlite3.Xsqlite3_close(tls, (*UnionSrc)(unsafe.Pointer(pSrc)).Fdb)
if bHaveSrcDb != 0 {
unionInvokeOpenClose(tls, pTab, pSrc, 1, uintptr(0))
@@ -26114,7 +29735,7 @@ func unionDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* unionvtab.c:481:12:
// return SQLITE_ERROR and set (*pzErr) to point to an English language
// error message. If the table is a rowid table and no error occurs,
// return SQLITE_OK and leave (*pzErr) unmodified.
-func unionIsIntkeyTable(tls *crt.TLS, db uintptr, pSrc uintptr, pzErr uintptr) int32 { /* unionvtab.c:512:12: */
+func unionIsIntkeyTable(tls *libc.TLS, db uintptr, pSrc uintptr, pzErr uintptr) int32 { /* unionvtab.c:512:12: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -26123,13 +29744,13 @@ func unionIsIntkeyTable(tls *crt.TLS, db uintptr, pSrc uintptr, pzErr uintptr) i
var rc int32
sqlite3.Xsqlite3_table_column_metadata(tls,
- db, (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab, ts+6445 /* "_rowid_" */, bp+24 /* &zType */, uintptr(0), uintptr(0), bp+32 /* &bPk */, uintptr(0))
+ db, (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab, ts+7730 /* "_rowid_" */, bp+24 /* &zType */, uintptr(0), uintptr(0), bp+32 /* &bPk */, uintptr(0))
rc = sqlite3.Xsqlite3_errcode(tls, db)
if (rc == 1) ||
- ((rc == 0) && (!(*(*int32)(unsafe.Pointer(bp + 32 /* bPk */)) != 0) || (sqlite3.Xsqlite3_stricmp(tls, ts+6453 /* "integer" */, *(*uintptr)(unsafe.Pointer(bp + 24 /* zType */))) != 0))) {
+ ((rc == 0) && (!(*(*int32)(unsafe.Pointer(bp + 32 /* bPk */)) != 0) || (sqlite3.Xsqlite3_stricmp(tls, ts+7738 /* "integer" */, *(*uintptr)(unsafe.Pointer(bp + 24 /* zType */))) != 0))) {
rc = 1
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6461, /* "no such rowid ta..." */
- crt.VaList(bp, func() uintptr {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7746, /* "no such rowid ta..." */
+ libc.VaList(bp, func() uintptr {
if (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb != 0 {
return (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb
}
@@ -26137,7 +29758,7 @@ func unionIsIntkeyTable(tls *crt.TLS, db uintptr, pSrc uintptr, pzErr uintptr) i
}(),
func() uintptr {
if (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb != 0 {
- return ts + 6489 /* "." */
+ return ts + 7774 /* "." */
}
return ts + 488 /* "" */
}(),
@@ -26161,7 +29782,7 @@ func unionIsIntkeyTable(tls *crt.TLS, db uintptr, pSrc uintptr, pzErr uintptr) i
// cause this function to return identical strings. Is is the responsibility
// of the caller to free the returned string using sqlite3_free() when
// it is no longer required.
-func unionSourceToStr(tls *crt.TLS, pRc uintptr, pTab uintptr, pSrc uintptr, pzErr uintptr) uintptr { /* unionvtab.c:555:13: */
+func unionSourceToStr(tls *libc.TLS, pRc uintptr, pTab uintptr, pSrc uintptr, pzErr uintptr) uintptr { /* unionvtab.c:555:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -26176,7 +29797,7 @@ func unionSourceToStr(tls *crt.TLS, pRc uintptr, pTab uintptr, pSrc uintptr, pzE
*(*int32)(unsafe.Pointer(bp /* rc */)) = unionIsIntkeyTable(tls, db, pSrc, pzErr)
var pStmt uintptr = unionPrepare(tls, bp /* &rc */, db,
- ts+6491 /* "SELECT group_con..." */, pzErr)
+ ts+7776 /* "SELECT group_con..." */, pzErr)
if *(*int32)(unsafe.Pointer(bp /* rc */)) == 0 {
sqlite3.Xsqlite3_bind_text(tls, pStmt, 1, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab, -1, uintptr(0))
sqlite3.Xsqlite3_bind_text(tls, pStmt, 2, (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb, -1, uintptr(0))
@@ -26198,7 +29819,7 @@ func unionSourceToStr(tls *crt.TLS, pRc uintptr, pTab uintptr, pSrc uintptr, pzE
// to point to an error message buffer allocated by sqlite3_mprintf().
// Or, if no problems regarding the source tables are detected and no
// other error occurs, SQLITE_OK is returned.
-func unionSourceCheck(tls *crt.TLS, pTab uintptr, pzErr uintptr) int32 { /* unionvtab.c:592:12: */
+func unionSourceCheck(tls *libc.TLS, pTab uintptr, pzErr uintptr) int32 { /* unionvtab.c:592:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -26210,7 +29831,7 @@ func unionSourceCheck(tls *crt.TLS, pTab uintptr, pzErr uintptr) int32 { /* unio
for i = 1; i < (*UnionTab)(unsafe.Pointer(pTab)).FnSrc; i++ {
var z uintptr = unionSourceToStr(tls, bp /* &rc */, pTab, ((*UnionTab)(unsafe.Pointer(pTab)).FaSrc + uintptr(i)*72), pzErr)
if (*(*int32)(unsafe.Pointer(bp /* rc */)) == 0) && (sqlite3.Xsqlite3_stricmp(tls, z, z0) != 0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6575 /* "source table sch..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7860 /* "source table sch..." */, 0)
*(*int32)(unsafe.Pointer(bp /* rc */)) = 1
}
sqlite3.Xsqlite3_free(tls, z)
@@ -26222,7 +29843,7 @@ func unionSourceCheck(tls *crt.TLS, pTab uintptr, pzErr uintptr) int32 { /* unio
// Try to open the swarmvtab database. If initially unable, invoke the
// not-found callback UDF and then try again.
-func unionOpenDatabaseInner(tls *crt.TLS, pTab uintptr, pSrc uintptr, pzErr uintptr) int32 { /* unionvtab.c:616:12: */
+func unionOpenDatabaseInner(tls *libc.TLS, pTab uintptr, pSrc uintptr, pzErr uintptr) int32 { /* unionvtab.c:616:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -26245,14 +29866,14 @@ func unionOpenDatabaseInner(tls *crt.TLS, pTab uintptr, pSrc uintptr, pzErr uint
sqlite3.Xsqlite3_bind_text(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpNotFound, 2, (*UnionSrc)(unsafe.Pointer(pSrc)).FzContext, -1, uintptr(0))
}
sqlite3.Xsqlite3_step(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpNotFound)
- if 0 != (crt.AssignInt32(&rc, sqlite3.Xsqlite3_reset(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpNotFound))) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, (*UnionTab)(unsafe.Pointer(pTab)).Fdb)))
+ if 0 != (libc.AssignInt32(&rc, sqlite3.Xsqlite3_reset(tls, (*UnionTab)(unsafe.Pointer(pTab)).FpNotFound))) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, (*UnionTab)(unsafe.Pointer(pTab)).Fdb)))
return rc
}
rc = sqlite3.Xsqlite3_open_v2(tls, (*UnionSrc)(unsafe.Pointer(pSrc)).FzFile, (pSrc + 56 /* &.db */), openFlags, uintptr(0))
}
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, sqlite3.Xsqlite3_errmsg(tls, (*UnionSrc)(unsafe.Pointer(pSrc)).Fdb)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, sqlite3.Xsqlite3_errmsg(tls, (*UnionSrc)(unsafe.Pointer(pSrc)).Fdb)))
}
return rc
}
@@ -26272,7 +29893,7 @@ var openFlags int32 = (0x00000001 | 0x00000040) /* unionvtab.c:617:20 */
// may be set to point to an English language error message. In this case it is
// the responsibility of the caller to eventually free the error message buffer
// using sqlite3_free().
-func unionOpenDatabase(tls *crt.TLS, pTab uintptr, iSrc int32, pzErr uintptr) int32 { /* unionvtab.c:660:12: */
+func unionOpenDatabase(tls *libc.TLS, pTab uintptr, iSrc int32, pzErr uintptr) int32 { /* unionvtab.c:660:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -26289,7 +29910,7 @@ func unionOpenDatabase(tls *crt.TLS, pTab uintptr, iSrc int32, pzErr uintptr) in
(*UnionTab)(unsafe.Pointer(pTab)).FzSourceStr = z
} else {
if sqlite3.Xsqlite3_stricmp(tls, z, (*UnionTab)(unsafe.Pointer(pTab)).FzSourceStr) != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6575 /* "source table sch..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7860 /* "source table sch..." */, 0)
*(*int32)(unsafe.Pointer(bp /* rc */)) = 1
}
sqlite3.Xsqlite3_free(tls, z)
@@ -26315,7 +29936,7 @@ func unionOpenDatabase(tls *crt.TLS, pTab uintptr, iSrc int32, pzErr uintptr) in
// the reference count for source table iTab. If the reference count was
// zero before it was incremented, also remove the source from the closable
// list.
-func unionIncrRefcount(tls *crt.TLS, pTab uintptr, iTab int32) { /* unionvtab.c:704:13: */
+func unionIncrRefcount(tls *libc.TLS, pTab uintptr, iTab int32) { /* unionvtab.c:704:13: */
if (*UnionTab)(unsafe.Pointer(pTab)).FbSwarm != 0 {
var pSrc uintptr = ((*UnionTab)(unsafe.Pointer(pTab)).FaSrc + uintptr(iTab)*72)
@@ -26336,7 +29957,7 @@ func unionIncrRefcount(tls *crt.TLS, pTab uintptr, iTab int32) { /* unionvtab.c:
// NULL when this function was called, also decrement the reference
// count on the associated source table. If this means the source tables
// refcount is now zero, add it to the closable list.
-func unionFinalizeCsrStmt(tls *crt.TLS, pCsr uintptr) int32 { /* unionvtab.c:726:12: */
+func unionFinalizeCsrStmt(tls *libc.TLS, pCsr uintptr) int32 { /* unionvtab.c:726:12: */
var rc int32 = 0
if (*UnionCsr)(unsafe.Pointer(pCsr)).FpStmt != 0 {
var pTab uintptr = (*UnionCsr)(unsafe.Pointer(pCsr)).Fbase.FpVtab
@@ -26357,14 +29978,14 @@ func unionFinalizeCsrStmt(tls *crt.TLS, pCsr uintptr) int32 { /* unionvtab.c:726
}
// Return true if the argument is a space, tab, CR or LF character.
-func union_isspace(tls *crt.TLS, c int8) int32 { /* unionvtab.c:749:12: */
- return (crt.Bool32((((int32(c) == ' ') || (int32(c) == '\n')) || (int32(c) == '\r')) || (int32(c) == '\t')))
+func union_isspace(tls *libc.TLS, c int8) int32 { /* unionvtab.c:749:12: */
+ return (libc.Bool32((((int32(c) == ' ') || (int32(c) == '\n')) || (int32(c) == '\r')) || (int32(c) == '\t')))
}
// Return true if the argument is an alphanumeric character in the
// ASCII range.
-func union_isidchar(tls *crt.TLS, c int8) int32 { /* unionvtab.c:757:12: */
- return (crt.Bool32((((int32(c) >= 'a') && (int32(c) <= 'z')) || ((int32(c) >= 'A') && (int32(c) < 'Z'))) || ((int32(c) >= '0') && (int32(c) <= '9'))))
+func union_isidchar(tls *libc.TLS, c int8) int32 { /* unionvtab.c:757:12: */
+ return (libc.Bool32((((int32(c) >= 'a') && (int32(c) <= 'z')) || ((int32(c) >= 'A') && (int32(c) < 'Z'))) || ((int32(c) >= '0') && (int32(c) <= '9'))))
}
// This function is called to handle all arguments following the first
@@ -26381,14 +30002,14 @@ func union_isidchar(tls *crt.TLS, c int8) int32 { /* unionvtab.c:757:12: */
// code. In this case *pzErr may be set to point to a buffer containing
// an English language error message. It is the responsibility of the
// caller to eventually free the buffer using sqlite3_free().
-func unionConfigureVtab(tls *crt.TLS, pRc uintptr, pTab uintptr, pStmt uintptr, nArg int32, azArg uintptr, pzErr uintptr) { /* unionvtab.c:777:13: */
+func unionConfigureVtab(tls *libc.TLS, pRc uintptr, pTab uintptr, pStmt uintptr, nArg int32, azArg uintptr, pzErr uintptr) { /* unionvtab.c:777:13: */
bp := tls.Alloc(68)
defer tls.Free(68)
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = *(*int32)(unsafe.Pointer(pRc))
var i int32
if *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) == 0 {
- (*UnionTab)(unsafe.Pointer(pTab)).FbHasContext = (crt.Bool32(sqlite3.Xsqlite3_column_count(tls, pStmt) > 4))
+ (*UnionTab)(unsafe.Pointer(pTab)).FbHasContext = (libc.Bool32(sqlite3.Xsqlite3_column_count(tls, pStmt) > 4))
}
for i = 0; (*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) == 0) && (i < nArg); i++ {
var zArg uintptr = unionStrdup(tls, bp+64 /* &rc */, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8)))
@@ -26428,47 +30049,47 @@ func unionConfigureVtab(tls *crt.TLS, pRc uintptr, pTab uintptr, pStmt uintptr,
var iParam int32 = sqlite3.Xsqlite3_bind_parameter_index(tls, pStmt, zOpt)
if iParam == 0 {
*(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls,
- ts+6604 /* "swarmvtab: no su..." */, crt.VaList(bp, zOpt))
+ ts+7889 /* "swarmvtab: no su..." */, libc.VaList(bp, zOpt))
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 1
} else {
- *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = sqlite3.Xsqlite3_bind_text(tls, pStmt, iParam, zVal, -1, crt.UintptrFromInt32(-1))
+ *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = sqlite3.Xsqlite3_bind_text(tls, pStmt, iParam, zVal, -1, libc.UintptrFromInt32(-1))
}
- } else if (nOpt == 7) && (0 == sqlite3.Xsqlite3_strnicmp(tls, zOpt, ts+6641 /* "maxopen" */, 7)) {
- (*UnionTab)(unsafe.Pointer(pTab)).FnMaxOpen = crt.Xatoi(tls, zVal)
+ } else if (nOpt == 7) && (0 == sqlite3.Xsqlite3_strnicmp(tls, zOpt, ts+7926 /* "maxopen" */, 7)) {
+ (*UnionTab)(unsafe.Pointer(pTab)).FnMaxOpen = libc.Xatoi(tls, zVal)
if (*UnionTab)(unsafe.Pointer(pTab)).FnMaxOpen <= 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6649 /* "swarmvtab: illeg..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7934 /* "swarmvtab: illeg..." */, 0)
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 1
}
- } else if (nOpt == 7) && (0 == sqlite3.Xsqlite3_strnicmp(tls, zOpt, ts+6682 /* "missing" */, 7)) {
+ } else if (nOpt == 7) && (0 == sqlite3.Xsqlite3_strnicmp(tls, zOpt, ts+7967 /* "missing" */, 7)) {
if (*UnionTab)(unsafe.Pointer(pTab)).FpNotFound != 0 {
*(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls,
- ts+6690 /* "swarmvtab: dupli..." */, 0)
+ ts+7975 /* "swarmvtab: dupli..." */, 0)
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 1
} else {
(*UnionTab)(unsafe.Pointer(pTab)).FpNotFound = unionPreparePrintf(tls, bp+64 /* &rc */, pzErr, (*UnionTab)(unsafe.Pointer(pTab)).Fdb,
- ts+6728 /* "SELECT \"%w\"(?%s)" */, crt.VaList(bp+8, zVal, func() uintptr {
+ ts+8013 /* "SELECT \"%w\"(?%s)" */, libc.VaList(bp+8, zVal, func() uintptr {
if (*UnionTab)(unsafe.Pointer(pTab)).FbHasContext != 0 {
- return ts + 6745 /* ",?" */
+ return ts + 8030 /* ",?" */
}
return ts + 488 /* "" */
}()))
}
- } else if (nOpt == 9) && (0 == sqlite3.Xsqlite3_strnicmp(tls, zOpt, ts+6748 /* "openclose" */, 9)) {
+ } else if (nOpt == 9) && (0 == sqlite3.Xsqlite3_strnicmp(tls, zOpt, ts+8033 /* "openclose" */, 9)) {
if (*UnionTab)(unsafe.Pointer(pTab)).FpOpenClose != 0 {
*(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls,
- ts+6758 /* "swarmvtab: dupli..." */, 0)
+ ts+8043 /* "swarmvtab: dupli..." */, 0)
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 1
} else {
(*UnionTab)(unsafe.Pointer(pTab)).FpOpenClose = unionPreparePrintf(tls, bp+64 /* &rc */, pzErr, (*UnionTab)(unsafe.Pointer(pTab)).Fdb,
- ts+6798 /* "SELECT \"%w\"(?,?%..." */, crt.VaList(bp+24, zVal, func() uintptr {
+ ts+8083 /* "SELECT \"%w\"(?,?%..." */, libc.VaList(bp+24, zVal, func() uintptr {
if (*UnionTab)(unsafe.Pointer(pTab)).FbHasContext != 0 {
- return ts + 6745 /* ",?" */
+ return ts + 8030 /* ",?" */
}
return ts + 488 /* "" */
}()))
}
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6817 /* "swarmvtab: unrec..." */, crt.VaList(bp+40, zOpt))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8102 /* "swarmvtab: unrec..." */, libc.VaList(bp+40, zOpt))
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 1
}
sqlite3.Xsqlite3_free(tls, zVal)
@@ -26476,9 +30097,9 @@ func unionConfigureVtab(tls *crt.TLS, pRc uintptr, pTab uintptr, pStmt uintptr,
} else {
if (i == 0) && (nArg == 1) {
(*UnionTab)(unsafe.Pointer(pTab)).FpNotFound = unionPreparePrintf(tls, bp+64 /* &rc */, pzErr, (*UnionTab)(unsafe.Pointer(pTab)).Fdb,
- ts+6852 /* "SELECT \"%w\"(?)" */, crt.VaList(bp+48, zArg))
+ ts+8137 /* "SELECT \"%w\"(?)" */, libc.VaList(bp+48, zArg))
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6867 /* "swarmvtab: parse..." */, crt.VaList(bp+56, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8))))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8152 /* "swarmvtab: parse..." */, libc.VaList(bp+56, *(*uintptr)(unsafe.Pointer(azArg + uintptr(i)*8))))
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 1
}
}
@@ -26497,7 +30118,7 @@ func unionConfigureVtab(tls *crt.TLS, pRc uintptr, pTab uintptr, pStmt uintptr,
// argv[2] -> table name
// argv[3] -> SQL statement
// argv[4] -> not-found callback UDF name
-func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* unionvtab.c:883:12: */
+func unionConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* unionvtab.c:883:12: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -26511,17 +30132,17 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
}()
var zVtab uintptr = func() uintptr {
if bSwarm != 0 {
- return ts + 6894 /* "swarmvtab" */
+ return ts + 8179 /* "swarmvtab" */
}
- return ts + 6904 /* "unionvtab" */
+ return ts + 8189 /* "unionvtab" */
}()
- if sqlite3.Xsqlite3_stricmp(tls, ts+6914 /* "temp" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))) != 0 {
+ if sqlite3.Xsqlite3_stricmp(tls, ts+8199 /* "temp" */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))) != 0 {
// unionvtab tables may only be created in the temp schema
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6919 /* "%s tables must b..." */, crt.VaList(bp, zVtab))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8204 /* "%s tables must b..." */, libc.VaList(bp, zVtab))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 1
} else if (argc < 4) || ((argc > 4) && (bSwarm == 0)) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+6960 /* "wrong number of ..." */, crt.VaList(bp+8, zVtab))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8245 /* "wrong number of ..." */, libc.VaList(bp+8, zVtab))
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 1
} else {
var nAlloc int32 = 0 // Allocated size of pTab->aSrc[]
@@ -26534,7 +30155,7 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
// and that the UnionTab.aSrc[] array is always sorted by rowid.
unionDequote(tls, zArg)
pStmt = unionPreparePrintf(tls, bp+40 /* &rc */, pzErr, db,
- ts+6993 /* "SELECT * FROM (%..." */, crt.VaList(bp+16, zArg))
+ ts+8278 /* "SELECT * FROM (%..." */, libc.VaList(bp+16, zArg))
// Allocate the UnionTab structure
pTab = unionMalloc(tls, bp+40 /* &rc */, int64(unsafe.Sizeof(UnionTab{})))
@@ -26573,7 +30194,7 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 7
break
} else {
- crt.Xmemset(tls, (aNew + uintptr((*UnionTab)(unsafe.Pointer(pTab)).FnSrc)*72), 0, ((uint64(nNew - (*UnionTab)(unsafe.Pointer(pTab)).FnSrc)) * uint64(unsafe.Sizeof(UnionSrc{}))))
+ libc.Xmemset(tls, (aNew + uintptr((*UnionTab)(unsafe.Pointer(pTab)).FnSrc)*72), 0, ((uint64(nNew - (*UnionTab)(unsafe.Pointer(pTab)).FnSrc)) * uint64(unsafe.Sizeof(UnionSrc{}))))
(*UnionTab)(unsafe.Pointer(pTab)).FaSrc = aNew
nAlloc = nNew
}
@@ -26581,12 +30202,12 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
// Check for problems with the specified range of rowids
if (iMax < iMin) || (((*UnionTab)(unsafe.Pointer(pTab)).FnSrc > 0) && (iMin <= (*UnionSrc)(unsafe.Pointer((*UnionTab)(unsafe.Pointer(pTab)).FaSrc+uintptr(((*UnionTab)(unsafe.Pointer(pTab)).FnSrc-1))*72)).FiMax)) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7023 /* "rowid range mism..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8308 /* "rowid range mism..." */, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 1
}
if *(*int32)(unsafe.Pointer(bp + 40 /* rc */)) == 0 {
- pSrc = ((*UnionTab)(unsafe.Pointer(pTab)).FaSrc + uintptr(crt.PostIncInt32(&(*UnionTab)(unsafe.Pointer(pTab)).FnSrc, 1))*72)
+ pSrc = ((*UnionTab)(unsafe.Pointer(pTab)).FaSrc + uintptr(libc.PostIncInt32(&(*UnionTab)(unsafe.Pointer(pTab)).FnSrc, 1))*72)
(*UnionSrc)(unsafe.Pointer(pSrc)).FzTab = unionStrdup(tls, bp+40 /* &rc */, zTab)
(*UnionSrc)(unsafe.Pointer(pSrc)).FiMin = iMin
(*UnionSrc)(unsafe.Pointer(pSrc)).FiMax = iMax
@@ -26608,7 +30229,7 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
// because there is no way to determine the schema of the virtual
// table in this case.
if (*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) == 0) && ((*UnionTab)(unsafe.Pointer(pTab)).FnSrc == 0) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7050 /* "no source tables..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8335 /* "no source tables..." */, 0)
*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) = 1
}
@@ -26634,8 +30255,8 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
}()
pStmt = unionPreparePrintf(tls, bp+40 /* &rc */, pzErr, tdb,
- ts+7078, /* "SELECT 'CREATE T..." */
- crt.VaList(bp+24, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab, (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb))
+ ts+8363, /* "SELECT 'CREATE T..." */
+ libc.VaList(bp+24, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab, (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb))
}
if (*(*int32)(unsafe.Pointer(bp + 40 /* rc */)) == 0) && (100 == sqlite3.Xsqlite3_step(tls, pStmt)) {
var zDecl uintptr = sqlite3.Xsqlite3_column_text(tls, pStmt, 0)
@@ -26656,7 +30277,7 @@ func unionConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintp
}
// xOpen
-func unionOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* unionvtab.c:1033:12: */
+func unionOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* unionvtab.c:1033:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -26669,7 +30290,7 @@ func unionOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* unionvtab.c
}
// xClose
-func unionClose(tls *crt.TLS, cur uintptr) int32 { /* unionvtab.c:1045:12: */
+func unionClose(tls *libc.TLS, cur uintptr) int32 { /* unionvtab.c:1045:12: */
var pCsr uintptr = cur
unionFinalizeCsrStmt(tls, pCsr)
sqlite3.Xsqlite3_free(tls, pCsr)
@@ -26679,7 +30300,7 @@ func unionClose(tls *crt.TLS, cur uintptr) int32 { /* unionvtab.c:1045:12: */
// This function does the work of the xNext() method. Except that, if it
// returns SQLITE_ROW, it should be called again within the same xNext()
// method call. See unionNext() for details.
-func doUnionNext(tls *crt.TLS, pCsr uintptr) int32 { /* unionvtab.c:1057:12: */
+func doUnionNext(tls *libc.TLS, pCsr uintptr) int32 { /* unionvtab.c:1057:12: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -26696,13 +30317,13 @@ func doUnionNext(tls *crt.TLS, pCsr uintptr) int32 { /* unionvtab.c:1057:12: */
// It is necessary to scan the next table.
*(*int32)(unsafe.Pointer(bp + 24 /* rc */)) = unionOpenDatabase(tls, pTab, (*UnionCsr)(unsafe.Pointer(pCsr)).FiTab, (pTab /* &.base */ + 16 /* &.zErrMsg */))
(*UnionCsr)(unsafe.Pointer(pCsr)).FpStmt = unionPreparePrintf(tls, bp+24 /* &rc */, (pTab /* &.base */ + 16 /* &.zErrMsg */), (*UnionSrc)(unsafe.Pointer(pSrc)).Fdb,
- ts+7256, /* "SELECT rowid, * ..." */
- crt.VaList(bp, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab,
+ ts+8541, /* "SELECT rowid, * ..." */
+ libc.VaList(bp, (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab,
func() uintptr {
if (*UnionSrc)(unsafe.Pointer(pSrc)).FiMax > (*UnionCsr)(unsafe.Pointer(pCsr)).FiMaxRowid {
- return ts + 7288 /* "WHERE _rowid_ <=" */
+ return ts + 8573 /* "WHERE _rowid_ <=" */
}
- return ts + 7305 /* "-- " */
+ return ts + 8590 /* "-- " */
}(),
(*UnionCsr)(unsafe.Pointer(pCsr)).FiMaxRowid))
if *(*int32)(unsafe.Pointer(bp + 24 /* rc */)) == 0 {
@@ -26719,7 +30340,7 @@ func doUnionNext(tls *crt.TLS, pCsr uintptr) int32 { /* unionvtab.c:1057:12: */
}
// xNext
-func unionNext(tls *crt.TLS, cur uintptr) int32 { /* unionvtab.c:1092:12: */
+func unionNext(tls *libc.TLS, cur uintptr) int32 { /* unionvtab.c:1092:12: */
var rc int32
for ok := true; ok; ok = (rc == 100) {
rc = doUnionNext(tls, cur)
@@ -26728,27 +30349,27 @@ func unionNext(tls *crt.TLS, cur uintptr) int32 { /* unionvtab.c:1092:12: */
}
// xColumn
-func unionColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* unionvtab.c:1103:12: */
+func unionColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* unionvtab.c:1103:12: */
var pCsr uintptr = cur
sqlite3.Xsqlite3_result_value(tls, ctx, sqlite3.Xsqlite3_column_value(tls, (*UnionCsr)(unsafe.Pointer(pCsr)).FpStmt, (i+1)))
return 0
}
// xRowid
-func unionRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* unionvtab.c:1116:12: */
+func unionRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* unionvtab.c:1116:12: */
var pCsr uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_column_int64(tls, (*UnionCsr)(unsafe.Pointer(pCsr)).FpStmt, 0)
return 0
}
// xEof
-func unionEof(tls *crt.TLS, cur uintptr) int32 { /* unionvtab.c:1125:12: */
+func unionEof(tls *libc.TLS, cur uintptr) int32 { /* unionvtab.c:1125:12: */
var pCsr uintptr = cur
- return (crt.Bool32((*UnionCsr)(unsafe.Pointer(pCsr)).FpStmt == uintptr(0)))
+ return (libc.Bool32((*UnionCsr)(unsafe.Pointer(pCsr)).FpStmt == uintptr(0)))
}
// xFilter
-func unionFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* unionvtab.c:1133:12: */
+func unionFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* unionvtab.c:1133:12: */
bp := tls.Alloc(108)
defer tls.Free(108)
@@ -26766,7 +30387,7 @@ func unionFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr
if idxNum == 2 {
- iMin = crt.AssignInt64(&iMax, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))))
+ iMin = libc.AssignInt64(&iMax, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))))
} else {
if (idxNum & (8 | 16)) != 0 {
@@ -26805,14 +30426,14 @@ func unionFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr
continue
}
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+7309 /* "%z%sSELECT rowid..." */, crt.VaList(bp, zSql, func() uintptr {
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+8594 /* "%z%sSELECT rowid..." */, libc.VaList(bp, zSql, func() uintptr {
if zSql != 0 {
- return ts + 7343 /* " UNION ALL " */
+ return ts + 8628 /* " UNION ALL " */
}
return ts + 488 /* "" */
}(), func() uintptr {
if (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb != 0 {
- return ts + 4030 /* "'" */
+ return ts + 5315 /* "'" */
}
return ts + 488 /* "" */
}(), func() uintptr {
@@ -26822,7 +30443,7 @@ func unionFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr
return ts + 488 /* "" */
}(), func() uintptr {
if (*UnionSrc)(unsafe.Pointer(pSrc)).FzDb != 0 {
- return ts + 4032 /* "'." */
+ return ts + 5317 /* "'." */
}
return ts + 488 /* "" */
}(), (*UnionSrc)(unsafe.Pointer(pSrc)).FzTab))
@@ -26832,15 +30453,15 @@ func unionFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr
}
if iMin == iMax {
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+7355 /* "%z WHERE rowid=%..." */, crt.VaList(bp+48, zSql, iMin))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+8640 /* "%z WHERE rowid=%..." */, libc.VaList(bp+48, zSql, iMin))
} else {
- var zWhere uintptr = ts + 7375 /* "WHERE" */
+ var zWhere uintptr = ts + 8660 /* "WHERE" */
if (iMin != ((int64(-1)) - (int64(0xffffffff) | (sqlite3_int64((int64(0x7fffffff))) << 32)))) && (iMin > (*UnionSrc)(unsafe.Pointer(pSrc)).FiMin) {
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+7381 /* "%z WHERE rowid>=..." */, crt.VaList(bp+64, zSql, iMin))
- zWhere = ts + 7402 /* "AND" */
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+8666 /* "%z WHERE rowid>=..." */, libc.VaList(bp+64, zSql, iMin))
+ zWhere = ts + 8687 /* "AND" */
}
if (iMax != (int64(0xffffffff) | (sqlite3_int64((int64(0x7fffffff))) << 32))) && (iMax < (*UnionSrc)(unsafe.Pointer(pSrc)).FiMax) {
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+7406 /* "%z %s rowid<=%ll..." */, crt.VaList(bp+80, zSql, zWhere, iMax))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+8691 /* "%z %s rowid<=%ll..." */, libc.VaList(bp+80, zSql, zWhere, iMax))
}
}
@@ -26889,7 +30510,7 @@ func unionFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr
// INDEX_CONSTRAINT_GT bit is set in idxNum. The rhs of the >= or > operator
// is passed as either the first or second argument to xFilter, depending
// on whether or not there is also a LT|LE constraint.
-func unionBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* unionvtab.c:1266:12: */
+func unionBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* unionvtab.c:1266:12: */
var pTab uintptr = tab
var iEq int32 = -1
var iLt int32 = -1
@@ -26932,13 +30553,13 @@ func unionBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* unio
var nRow sqlite3_int64 = int64(1000000)
if iLt >= 0 {
nRow = (nRow / int64(2))
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iLt)*8)).FargvIndex = crt.PostIncInt32(&iCons, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iLt)*8)).FargvIndex = libc.PostIncInt32(&iCons, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iLt)*8)).Fomit = uint8(1)
idxNum = idxNum | (int32((*sqlite3_index_constraint)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint + uintptr(iLt)*12)).Fop))
}
if iGt >= 0 {
nRow = (nRow / int64(2))
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iGt)*8)).FargvIndex = crt.PostIncInt32(&iCons, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iGt)*8)).FargvIndex = libc.PostIncInt32(&iCons, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(iGt)*8)).Fomit = uint8(1)
idxNum = idxNum | (int32((*sqlite3_index_constraint)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint + uintptr(iGt)*12)).Fop))
}
@@ -26951,12 +30572,12 @@ func unionBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* unio
}
// Register the unionvtab virtual table module with database handle db.
-func createUnionVtab(tls *crt.TLS, db uintptr) int32 { /* unionvtab.c:1329:12: */
+func createUnionVtab(tls *libc.TLS, db uintptr) int32 { /* unionvtab.c:1329:12: */
var rc int32
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+6904 /* "unionvtab" */, uintptr(unsafe.Pointer(&unionModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+8189 /* "unionvtab" */, uintptr(unsafe.Pointer(&unionModule)), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+6894 /* "swarmvtab" */, uintptr(unsafe.Pointer(&unionModule)), db)
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+8179 /* "swarmvtab" */, uintptr(unsafe.Pointer(&unionModule)), db)
}
return rc
}
@@ -26983,7 +30604,7 @@ uintptr(0), FxShadowName:// xRollbackTo
uintptr(0), // xShadowName
} /* unionvtab.c:1330:25 */
-func sqlite3_unionvtab_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* unionvtab.c:1370:5: */
+func sqlite3_unionvtab_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* unionvtab.c:1370:5: */
var rc int32 = 0
_ = pApi
@@ -27003,22 +30624,22 @@ type wholenumber_cursor1 = struct {
type wholenumber_cursor = wholenumber_cursor1 /* wholenumber.c:34:35 */
// Methods for the wholenumber module
-func wholenumberConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* wholenumber.c:42:12: */
+func wholenumberConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* wholenumber.c:42:12: */
var pNew uintptr
- pNew = crt.AssignPtrUintptr(ppVtab, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(sqlite3_vtab{}))))
+ pNew = libc.AssignPtrUintptr(ppVtab, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(sqlite3_vtab{}))))
if pNew == uintptr(0) {
return 7
}
- sqlite3.Xsqlite3_declare_vtab(tls, db, ts+7424 /* "CREATE TABLE x(v..." */)
+ sqlite3.Xsqlite3_declare_vtab(tls, db, ts+8709 /* "CREATE TABLE x(v..." */)
sqlite3.Xsqlite3_vtab_config(tls, db, 2, 0)
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(sqlite3_vtab{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(sqlite3_vtab{})))
return 0
}
// Note that for this virtual table, the xCreate and xConnect
// methods are identical.
-func wholenumberDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* wholenumber.c:60:12: */
+func wholenumberDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* wholenumber.c:60:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
@@ -27026,39 +30647,39 @@ func wholenumberDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* wholenumber.c
// The xDisconnect and xDestroy methods are also the same
// Open a new wholenumber cursor.
-func wholenumberOpen(tls *crt.TLS, p uintptr, ppCursor uintptr) int32 { /* wholenumber.c:70:12: */
+func wholenumberOpen(tls *libc.TLS, p uintptr, ppCursor uintptr) int32 { /* wholenumber.c:70:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(wholenumber_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(wholenumber_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(wholenumber_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Close a wholenumber cursor.
-func wholenumberClose(tls *crt.TLS, cur uintptr) int32 { /* wholenumber.c:82:12: */
+func wholenumberClose(tls *libc.TLS, cur uintptr) int32 { /* wholenumber.c:82:12: */
sqlite3.Xsqlite3_free(tls, cur)
return 0
}
// Advance a cursor to its next row of output
-func wholenumberNext(tls *crt.TLS, cur uintptr) int32 { /* wholenumber.c:91:12: */
+func wholenumberNext(tls *libc.TLS, cur uintptr) int32 { /* wholenumber.c:91:12: */
var pCur uintptr = cur
(*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue++
return 0
}
// Return the value associated with a wholenumber.
-func wholenumberColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* wholenumber.c:100:12: */
+func wholenumberColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* wholenumber.c:100:12: */
var pCur uintptr = cur
sqlite3.Xsqlite3_result_int64(tls, ctx, (*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue)
return 0
}
// The rowid.
-func wholenumberRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* wholenumber.c:113:12: */
+func wholenumberRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* wholenumber.c:113:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue
return 0
@@ -27066,9 +30687,9 @@ func wholenumberRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* whol
// When the wholenumber_cursor.rLimit value is 0 or less, that is a signal
// that the cursor has nothing more to output.
-func wholenumberEof(tls *crt.TLS, cur uintptr) int32 { /* wholenumber.c:123:12: */
+func wholenumberEof(tls *libc.TLS, cur uintptr) int32 { /* wholenumber.c:123:12: */
var pCur uintptr = cur
- return (crt.Bool32(((*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue > (*wholenumber_cursor)(unsafe.Pointer(pCur)).FmxValue) || ((*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue == int64(0))))
+ return (libc.Bool32(((*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue > (*wholenumber_cursor)(unsafe.Pointer(pCur)).FmxValue) || ((*wholenumber_cursor)(unsafe.Pointer(pCur)).FiValue == int64(0))))
}
// Called to "rewind" a cursor back to the beginning so that
@@ -27087,7 +30708,7 @@ func wholenumberEof(tls *crt.TLS, cur uintptr) int32 { /* wholenumber.c:123:12:
// 6 value >= $argv0 AND value < $argv1
// 9 value > $argv0 AND value <= $argv1
// 10 value >= $argv0 AND value <= $argv1
-func wholenumberFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* wholenumber.c:146:12: */
+func wholenumberFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* wholenumber.c:146:12: */
var pCur uintptr = pVtabCursor
var v sqlite3_int64
var i int32 = 0
@@ -27117,7 +30738,7 @@ func wholenumberFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr u
// (8) value <= $value
//
// idxNum is an ORed combination of 1 or 2 with 4 or 8.
-func wholenumberBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* wholenumber.c:178:12: */
+func wholenumberBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* wholenumber.c:178:12: */
var i int32
var idxNum int32 = 0
var argvIdx int32 = 1
@@ -27161,7 +30782,7 @@ __3:
;
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxNum = idxNum
if ltIdx >= 0 {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(ltIdx)*8)).FargvIndex = crt.PostIncInt32(&argvIdx, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(ltIdx)*8)).FargvIndex = libc.PostIncInt32(&argvIdx, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(ltIdx)*8)).Fomit = uint8(1)
}
if gtIdx >= 0 {
@@ -27201,11 +30822,11 @@ uintptr(0), FxRename:// xFindMethod
uintptr(0), // xRename
} /* wholenumber.c:236:23 */
-func sqlite3_wholenumber_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* wholenumber.c:264:5: */
+func sqlite3_wholenumber_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* wholenumber.c:264:5: */
var rc int32 = 0
_ = pApi
- rc = sqlite3.Xsqlite3_create_module(tls, db, ts+7446 /* "wholenumber" */, uintptr(unsafe.Pointer(&wholenumberModule)), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_module(tls, db, ts+8731 /* "wholenumber" */, uintptr(unsafe.Pointer(&wholenumberModule)), uintptr(0))
return rc
}
@@ -27877,7 +31498,7 @@ type gzFile_s = struct {
// wrapper, documented in RFC 1952, wrapped around a deflate stream.
type gzFile = uintptr /* zlib.h:1300:25 */
-type u32 = uint64 /* zipfile.c:42:23 */
+type u321 = uint64 /* zipfile.c:42:23 */
// Definitions for mode bitmasks S_IFDIR, S_IFREG and S_IFLNK.
//
@@ -27887,7 +31508,7 @@ type u32 = uint64 /* zipfile.c:42:23 */
// are also made explicit in [man stat], and (c) are part of the
// file format for zip archives.
-var ZIPFILE_SCHEMA = *(*[91]int8)(unsafe.Pointer(ts + 7458 /* "CREATE TABLE y(n..." */)) /* zipfile.c:77:19 */
+var ZIPFILE_SCHEMA = *(*[91]int8)(unsafe.Pointer(ts + 8743 /* "CREATE TABLE y(n..." */)) /* zipfile.c:77:19 */
// Magic numbers used to read and write zip files.
//
@@ -27938,8 +31559,8 @@ type ZipfileEOCD1 = struct {
FiFirstDisk u16
FnEntry u16
FnEntryTotal u16
- FnSize u32
- FiOffset u32
+ FnSize u321
+ FiOffset u321
}
// Magic numbers used to read and write zip files.
@@ -28016,16 +31637,16 @@ type ZipfileCDS1 = struct {
FiCompression u16
FmTime u16
FmDate u16
- Fcrc32 u32
- FszCompressed u32
- FszUncompressed u32
+ Fcrc32 u321
+ FszCompressed u321
+ FszUncompressed u321
FnFile u16
FnExtra u16
FnComment u16
FiDiskStart u16
FiInternalAttr u16
- FiExternalAttr u32
- FiOffset u32
+ FiExternalAttr u321
+ FiOffset u321
FzFile uintptr
}
@@ -28072,9 +31693,9 @@ type ZipfileLFH1 = struct {
FiCompression u16
FmTime u16
FmDate u16
- Fcrc32 u32
- FszCompressed u32
- FszUncompressed u32
+ Fcrc32 u321
+ FszCompressed u321
+ FszUncompressed u321
FnFile u16
FnExtra u16
_ [4]byte
@@ -28098,7 +31719,7 @@ type ZipfileLFH = ZipfileLFH1 /* zipfile.c:223:27 */
type ZipfileEntry1 = struct {
Fcds ZipfileCDS
- FmUnixTime u32
+ FmUnixTime u321
FaExtra uintptr
FiDataOff i64
FaData uintptr
@@ -28142,7 +31763,7 @@ type ZipfileTab = ZipfileTab1 /* zipfile.c:267:27 */
// Set the error message contained in context ctx to the results of
// vprintf(zFmt, ...).
-func zipfileCtxErrorMsg(tls *crt.TLS, ctx uintptr, zFmt uintptr, va uintptr) { /* zipfile.c:289:13: */
+func zipfileCtxErrorMsg(tls *libc.TLS, ctx uintptr, zFmt uintptr, va uintptr) { /* zipfile.c:289:13: */
var zMsg uintptr = uintptr(0)
var ap va_list
_ = ap
@@ -28155,7 +31776,7 @@ func zipfileCtxErrorMsg(tls *crt.TLS, ctx uintptr, zFmt uintptr, va uintptr) { /
// If string zIn is quoted, dequote it in place. Otherwise, if the string
// is not quoted, do nothing.
-func zipfileDequote(tls *crt.TLS, zIn uintptr) { /* zipfile.c:303:13: */
+func zipfileDequote(tls *libc.TLS, zIn uintptr) { /* zipfile.c:303:13: */
var q int8 = *(*int8)(unsafe.Pointer(zIn + uintptr(0)))
if (((int32(q) == '"') || (int32(q) == '\'')) || (int32(q) == '`')) || (int32(q) == '[') {
var iIn int32 = 1
@@ -28164,11 +31785,11 @@ func zipfileDequote(tls *crt.TLS, zIn uintptr) { /* zipfile.c:303:13: */
q = int8(']')
}
for *(*int8)(unsafe.Pointer(zIn + uintptr(iIn))) != 0 {
- var c int8 = *(*int8)(unsafe.Pointer(zIn + uintptr(crt.PostIncInt32(&iIn, 1))))
- if (int32(c) == int32(q)) && (int32(*(*int8)(unsafe.Pointer(zIn + uintptr(crt.PostIncInt32(&iIn, 1))))) != int32(q)) {
+ var c int8 = *(*int8)(unsafe.Pointer(zIn + uintptr(libc.PostIncInt32(&iIn, 1))))
+ if (int32(c) == int32(q)) && (int32(*(*int8)(unsafe.Pointer(zIn + uintptr(libc.PostIncInt32(&iIn, 1))))) != int32(q)) {
break
}
- *(*int8)(unsafe.Pointer(zIn + uintptr(crt.PostIncInt32(&iOut, 1)))) = c
+ *(*int8)(unsafe.Pointer(zIn + uintptr(libc.PostIncInt32(&iOut, 1)))) = c
}
*(*int8)(unsafe.Pointer(zIn + uintptr(iOut))) = int8(0)
}
@@ -28180,7 +31801,7 @@ func zipfileDequote(tls *crt.TLS, zIn uintptr) { /* zipfile.c:303:13: */
// argv[1] -> database name
// argv[2] -> table name
// argv[...] -> "column name" and other module argument fields.
-func zipfileConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* zipfile.c:326:12: */
+func zipfileConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* zipfile.c:326:12: */
var nByte int32 = (int32(uint64(unsafe.Sizeof(ZipfileTab{})) + (uint64(64 * 1024))))
var nFile int32 = 0
var zFile uintptr = uintptr(0)
@@ -28196,14 +31817,14 @@ func zipfileConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uin
//
// CREATE VIRTUAL TABLE zipfile USING zipfile();
- if ((0 != sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+7549 /* "zipfile" */)) && (argc < 4)) || (argc > 4) {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7557 /* "zipfile construc..." */, 0)
+ if ((0 != sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+8834 /* "zipfile" */)) && (argc < 4)) || (argc > 4) {
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8842 /* "zipfile construc..." */, 0)
return 1
}
if argc > 3 {
zFile = *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))
- nFile = (int32(crt.Xstrlen(tls, zFile)) + 1)
+ nFile = (int32(libc.Xstrlen(tls, zFile)) + 1)
}
rc = sqlite3.Xsqlite3_declare_vtab(tls, db, uintptr(unsafe.Pointer(&ZIPFILE_SCHEMA)))
@@ -28212,12 +31833,12 @@ func zipfileConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uin
if pNew == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pNew, 0, (uint64(nByte + nFile)))
+ libc.Xmemset(tls, pNew, 0, (uint64(nByte + nFile)))
(*ZipfileTab)(unsafe.Pointer(pNew)).Fdb = db
(*ZipfileTab)(unsafe.Pointer(pNew)).FaBuffer = (pNew + uintptr(1)*104)
if zFile != 0 {
(*ZipfileTab)(unsafe.Pointer(pNew)).FzFile = ((*ZipfileTab)(unsafe.Pointer(pNew)).FaBuffer + uintptr((64 * 1024)))
- crt.Xmemcpy(tls, (*ZipfileTab)(unsafe.Pointer(pNew)).FzFile, zFile, uint64(nFile))
+ libc.Xmemcpy(tls, (*ZipfileTab)(unsafe.Pointer(pNew)).FzFile, zFile, uint64(nFile))
zipfileDequote(tls, (*ZipfileTab)(unsafe.Pointer(pNew)).FzFile)
}
}
@@ -28227,7 +31848,7 @@ func zipfileConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uin
}
// Free the ZipfileEntry structure indicated by the only argument.
-func zipfileEntryFree(tls *crt.TLS, p uintptr) { /* zipfile.c:380:13: */
+func zipfileEntryFree(tls *libc.TLS, p uintptr) { /* zipfile.c:380:13: */
if p != 0 {
sqlite3.Xsqlite3_free(tls, (*ZipfileEntry)(unsafe.Pointer(p)).Fcds.FzFile)
sqlite3.Xsqlite3_free(tls, p)
@@ -28236,12 +31857,12 @@ func zipfileEntryFree(tls *crt.TLS, p uintptr) { /* zipfile.c:380:13: */
// Release resources that should be freed at the end of a write
// transaction.
-func zipfileCleanupTransaction(tls *crt.TLS, pTab uintptr) { /* zipfile.c:391:13: */
+func zipfileCleanupTransaction(tls *libc.TLS, pTab uintptr) { /* zipfile.c:391:13: */
var pEntry uintptr
var pNext uintptr
if (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd != 0 {
- crt.Xfclose(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd)
+ libc.Xfclose(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd)
(*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd = uintptr(0)
}
for pEntry = (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry; pEntry != 0; pEntry = pNext {
@@ -28255,14 +31876,14 @@ func zipfileCleanupTransaction(tls *crt.TLS, pTab uintptr) { /* zipfile.c:391:13
}
// This method is the destructor for zipfile vtab objects.
-func zipfileDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:412:12: */
+func zipfileDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* zipfile.c:412:12: */
zipfileCleanupTransaction(tls, pVtab)
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Constructor for a new ZipfileCsr object.
-func zipfileOpen(tls *crt.TLS, p uintptr, ppCsr uintptr) int32 { /* zipfile.c:421:12: */
+func zipfileOpen(tls *libc.TLS, p uintptr, ppCsr uintptr) int32 { /* zipfile.c:421:12: */
var pTab uintptr = p
var pCsr uintptr
pCsr = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(ZipfileCsr{})))
@@ -28270,8 +31891,8 @@ func zipfileOpen(tls *crt.TLS, p uintptr, ppCsr uintptr) int32 { /* zipfile.c:42
if pCsr == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCsr, 0, uint64(unsafe.Sizeof(ZipfileCsr{})))
- (*ZipfileCsr)(unsafe.Pointer(pCsr)).FiId = crt.PreIncInt64(&(*ZipfileTab)(unsafe.Pointer(pTab)).FiNextCsrid, 1)
+ libc.Xmemset(tls, pCsr, 0, uint64(unsafe.Sizeof(ZipfileCsr{})))
+ (*ZipfileCsr)(unsafe.Pointer(pCsr)).FiId = libc.PreIncInt64(&(*ZipfileTab)(unsafe.Pointer(pTab)).FiNextCsrid, 1)
(*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCsrNext = (*ZipfileTab)(unsafe.Pointer(pTab)).FpCsrList
(*ZipfileTab)(unsafe.Pointer(pTab)).FpCsrList = pCsr
return 0
@@ -28279,13 +31900,13 @@ func zipfileOpen(tls *crt.TLS, p uintptr, ppCsr uintptr) int32 { /* zipfile.c:42
// Reset a cursor back to the state it was in when first returned
// by zipfileOpen().
-func zipfileResetCursor(tls *crt.TLS, pCsr uintptr) { /* zipfile.c:440:13: */
+func zipfileResetCursor(tls *libc.TLS, pCsr uintptr) { /* zipfile.c:440:13: */
var p uintptr
var pNext uintptr
(*ZipfileCsr)(unsafe.Pointer(pCsr)).FbEof = u8(0)
if (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile != 0 {
- crt.Xfclose(tls, (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile)
+ libc.Xfclose(tls, (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile)
(*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile = uintptr(0)
zipfileEntryFree(tls, (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCurrent)
(*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCurrent = uintptr(0)
@@ -28298,7 +31919,7 @@ func zipfileResetCursor(tls *crt.TLS, pCsr uintptr) { /* zipfile.c:440:13: */
}
// Destructor for an ZipfileCsr.
-func zipfileClose(tls *crt.TLS, cur uintptr) int32 { /* zipfile.c:461:12: */
+func zipfileClose(tls *libc.TLS, cur uintptr) int32 { /* zipfile.c:461:12: */
var pCsr uintptr = cur
var pTab uintptr = (*ZipfileCsr)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var pp uintptr
@@ -28315,7 +31936,7 @@ func zipfileClose(tls *crt.TLS, cur uintptr) int32 { /* zipfile.c:461:12: */
// Set the error message for the virtual table associated with cursor
// pCsr to the results of vprintf(zFmt, ...).
-func zipfileTableErr(tls *crt.TLS, pTab uintptr, zFmt uintptr, va uintptr) { /* zipfile.c:479:13: */
+func zipfileTableErr(tls *libc.TLS, pTab uintptr, zFmt uintptr, va uintptr) { /* zipfile.c:479:13: */
var ap va_list
_ = ap
ap = va
@@ -28323,7 +31944,7 @@ func zipfileTableErr(tls *crt.TLS, pTab uintptr, zFmt uintptr, va uintptr) { /*
(*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_vmprintf(tls, zFmt, ap)
_ = ap
}
-func zipfileCursorErr(tls *crt.TLS, pCsr uintptr, zFmt uintptr, va uintptr) { /* zipfile.c:486:13: */
+func zipfileCursorErr(tls *libc.TLS, pCsr uintptr, zFmt uintptr, va uintptr) { /* zipfile.c:486:13: */
var ap va_list
_ = ap
ap = va
@@ -28340,23 +31961,23 @@ func zipfileCursorErr(tls *crt.TLS, pCsr uintptr, zFmt uintptr, va uintptr) { /*
// to an English language error message. It is the responsibility of the
// caller to eventually free this buffer using
// sqlite3_free().
-func zipfileReadData(tls *crt.TLS, pFile uintptr, aRead uintptr, nRead int32, iOff i64, pzErrmsg uintptr) int32 { /* zipfile.c:504:12: */
+func zipfileReadData(tls *libc.TLS, pFile uintptr, aRead uintptr, nRead int32, iOff i64, pzErrmsg uintptr) int32 { /* zipfile.c:504:12: */
var n size_t
- crt.Xfseek(tls, pFile, int64(iOff), 0)
- n = crt.Xfread(tls, aRead, uint64(1), uint64(nRead), pFile)
+ libc.Xfseek(tls, pFile, int64(iOff), 0)
+ n = libc.Xfread(tls, aRead, uint64(1), uint64(nRead), pFile)
if int32(n) != nRead {
- *(*uintptr)(unsafe.Pointer(pzErrmsg)) = sqlite3.Xsqlite3_mprintf(tls, ts+7599 /* "error in fread()" */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErrmsg)) = sqlite3.Xsqlite3_mprintf(tls, ts+8884 /* "error in fread()" */, 0)
return 1
}
return 0
}
-func zipfileAppendData(tls *crt.TLS, pTab uintptr, aWrite uintptr, nWrite int32) int32 { /* zipfile.c:521:12: */
+func zipfileAppendData(tls *libc.TLS, pTab uintptr, aWrite uintptr, nWrite int32) int32 { /* zipfile.c:521:12: */
var n size_t
- crt.Xfseek(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd, int64((*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent), 0)
- n = crt.Xfwrite(tls, aWrite, uint64(1), uint64(nWrite), (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd)
+ libc.Xfseek(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd, int64((*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent), 0)
+ n = libc.Xfwrite(tls, aWrite, uint64(1), uint64(nWrite), (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd)
if int32(n) != nWrite {
- (*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+7616 /* "error in fwrite(..." */, 0)
+ (*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+8901 /* "error in fwrite(..." */, 0)
return 1
}
*(*i64)(unsafe.Pointer(pTab + 88 /* &.szCurrent */)) += (i64(nWrite))
@@ -28364,26 +31985,26 @@ func zipfileAppendData(tls *crt.TLS, pTab uintptr, aWrite uintptr, nWrite int32)
}
// Read and return a 16-bit little-endian unsigned integer from buffer aBuf.
-func zipfileGetU16(tls *crt.TLS, aBuf uintptr) u16 { /* zipfile.c:540:12: */
+func zipfileGetU16(tls *libc.TLS, aBuf uintptr) u16 { /* zipfile.c:540:12: */
return (u16((int32(*(*u8)(unsafe.Pointer(aBuf + uintptr(1)))) << 8) + int32(*(*u8)(unsafe.Pointer(aBuf + uintptr(0))))))
}
// Read and return a 32-bit little-endian unsigned integer from buffer aBuf.
-func zipfileGetU32(tls *crt.TLS, aBuf uintptr) u32 { /* zipfile.c:547:12: */
- return (((((u32(*(*u8)(unsafe.Pointer(aBuf + uintptr(3))))) << 24) +
- ((u32(*(*u8)(unsafe.Pointer(aBuf + uintptr(2))))) << 16)) +
- ((u32(*(*u8)(unsafe.Pointer(aBuf + uintptr(1))))) << 8)) +
- ((u32(*(*u8)(unsafe.Pointer(aBuf + uintptr(0))))) << 0))
+func zipfileGetU32(tls *libc.TLS, aBuf uintptr) u321 { /* zipfile.c:547:12: */
+ return (((((u321(*(*u8)(unsafe.Pointer(aBuf + uintptr(3))))) << 24) +
+ ((u321(*(*u8)(unsafe.Pointer(aBuf + uintptr(2))))) << 16)) +
+ ((u321(*(*u8)(unsafe.Pointer(aBuf + uintptr(1))))) << 8)) +
+ ((u321(*(*u8)(unsafe.Pointer(aBuf + uintptr(0))))) << 0))
}
// Write a 16-bit little endiate integer into buffer aBuf.
-func zipfilePutU16(tls *crt.TLS, aBuf uintptr, val u16) { /* zipfile.c:557:13: */
+func zipfilePutU16(tls *libc.TLS, aBuf uintptr, val u16) { /* zipfile.c:557:13: */
*(*u8)(unsafe.Pointer(aBuf + uintptr(0))) = (u8(int32(val) & 0xFF))
*(*u8)(unsafe.Pointer(aBuf + uintptr(1))) = (u8((int32(val) >> 8) & 0xFF))
}
// Write a 32-bit little endiate integer into buffer aBuf.
-func zipfilePutU32(tls *crt.TLS, aBuf uintptr, val u32) { /* zipfile.c:565:13: */
+func zipfilePutU32(tls *libc.TLS, aBuf uintptr, val u321) { /* zipfile.c:565:13: */
*(*u8)(unsafe.Pointer(aBuf + uintptr(0))) = (u8(val & uint64(0xFF)))
*(*u8)(unsafe.Pointer(aBuf + uintptr(1))) = (u8((val >> 8) & uint64(0xFF)))
*(*u8)(unsafe.Pointer(aBuf + uintptr(2))) = (u8((val >> 16) & uint64(0xFF)))
@@ -28394,9 +32015,9 @@ func zipfilePutU32(tls *crt.TLS, aBuf uintptr, val u32) { /* zipfile.c:565:13: *
// Decode the CDS record in buffer aBuf into (*pCDS). Return SQLITE_ERROR
// if the record is not well-formed, or SQLITE_OK otherwise.
-func zipfileReadCDS(tls *crt.TLS, aBuf uintptr, pCDS uintptr) int32 { /* zipfile.c:588:12: */
+func zipfileReadCDS(tls *libc.TLS, aBuf uintptr, pCDS uintptr) int32 { /* zipfile.c:588:12: */
var aRead uintptr = aBuf
- var sig u32 = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ var sig u321 = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
var rc int32 = 0
if sig != uint64(0x02014b50) {
rc = 1
@@ -28407,17 +32028,17 @@ func zipfileReadCDS(tls *crt.TLS, aBuf uintptr, pCDS uintptr) int32 { /* zipfile
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FiCompression = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FmTime = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FmDate = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
- (*ZipfileCDS)(unsafe.Pointer(pCDS)).Fcrc32 = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
- (*ZipfileCDS)(unsafe.Pointer(pCDS)).FszCompressed = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
- (*ZipfileCDS)(unsafe.Pointer(pCDS)).FszUncompressed = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileCDS)(unsafe.Pointer(pCDS)).Fcrc32 = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileCDS)(unsafe.Pointer(pCDS)).FszCompressed = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileCDS)(unsafe.Pointer(pCDS)).FszUncompressed = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FnFile = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FnExtra = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FnComment = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FiDiskStart = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileCDS)(unsafe.Pointer(pCDS)).FiInternalAttr = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
- (*ZipfileCDS)(unsafe.Pointer(pCDS)).FiExternalAttr = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
- (*ZipfileCDS)(unsafe.Pointer(pCDS)).FiOffset = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileCDS)(unsafe.Pointer(pCDS)).FiExternalAttr = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileCDS)(unsafe.Pointer(pCDS)).FiOffset = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
}
return rc
@@ -28425,11 +32046,11 @@ func zipfileReadCDS(tls *crt.TLS, aBuf uintptr, pCDS uintptr) int32 { /* zipfile
// Decode the LFH record in buffer aBuf into (*pLFH). Return SQLITE_ERROR
// if the record is not well-formed, or SQLITE_OK otherwise.
-func zipfileReadLFH(tls *crt.TLS, aBuffer uintptr, pLFH uintptr) int32 { /* zipfile.c:622:12: */
+func zipfileReadLFH(tls *libc.TLS, aBuffer uintptr, pLFH uintptr) int32 { /* zipfile.c:622:12: */
var aRead uintptr = aBuffer
var rc int32 = 0
- var sig u32 = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ var sig u321 = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
if sig != uint64(0x04034b50) {
rc = 1
} else {
@@ -28438,9 +32059,9 @@ func zipfileReadLFH(tls *crt.TLS, aBuffer uintptr, pLFH uintptr) int32 { /* zipf
(*ZipfileLFH)(unsafe.Pointer(pLFH)).FiCompression = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileLFH)(unsafe.Pointer(pLFH)).FmTime = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileLFH)(unsafe.Pointer(pLFH)).FmDate = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
- (*ZipfileLFH)(unsafe.Pointer(pLFH)).Fcrc32 = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
- (*ZipfileLFH)(unsafe.Pointer(pLFH)).FszCompressed = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
- (*ZipfileLFH)(unsafe.Pointer(pLFH)).FszUncompressed = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileLFH)(unsafe.Pointer(pLFH)).Fcrc32 = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileLFH)(unsafe.Pointer(pLFH)).FszCompressed = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileLFH)(unsafe.Pointer(pLFH)).FszUncompressed = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
(*ZipfileLFH)(unsafe.Pointer(pLFH)).FnFile = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileLFH)(unsafe.Pointer(pLFH)).FnExtra = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
}
@@ -28460,7 +32081,7 @@ func zipfileReadLFH(tls *crt.TLS, aBuffer uintptr, pLFH uintptr) int32 { /* zipf
// Header ID 2 bytes
// Data Size 2 bytes
// Data N bytes
-func zipfileScanExtra(tls *crt.TLS, aExtra uintptr, nExtra int32, pmTime uintptr) int32 { /* zipfile.c:663:12: */
+func zipfileScanExtra(tls *libc.TLS, aExtra uintptr, nExtra int32, pmTime uintptr) int32 { /* zipfile.c:663:12: */
var ret int32 = 0
var p uintptr = aExtra
var pEnd uintptr = (aExtra + uintptr(nExtra))
@@ -28474,7 +32095,7 @@ func zipfileScanExtra(tls *crt.TLS, aExtra uintptr, nExtra int32, pmTime uintptr
{
var b u8 = *(*u8)(unsafe.Pointer(p + uintptr(0)))
if (int32(b) & 0x01) != 0 { // 0x01 -> modtime is present
- *(*u32)(unsafe.Pointer(pmTime)) = zipfileGetU32(tls, (p + uintptr(1)))
+ *(*u321)(unsafe.Pointer(pmTime)) = zipfileGetU32(tls, (p + uintptr(1)))
ret = 1
}
break
@@ -28502,7 +32123,7 @@ func zipfileScanExtra(tls *crt.TLS, aExtra uintptr, nExtra int32, pmTime uintptr
// Bits 09-15: years from 1980
//
// https://msdn.microsoft.com/en-us/library/9kkf9tah.aspx
-func zipfileMtime(tls *crt.TLS, pCDS uintptr) u32 { /* zipfile.c:706:12: */
+func zipfileMtime(tls *libc.TLS, pCDS uintptr) u321 { /* zipfile.c:706:12: */
var Y int32 = (1980 + ((int32((*ZipfileCDS)(unsafe.Pointer(pCDS)).FmDate) >> 9) & 0x7F))
var M int32 = ((int32((*ZipfileCDS)(unsafe.Pointer(pCDS)).FmDate) >> 5) & 0x0F)
var D int32 = (int32((*ZipfileCDS)(unsafe.Pointer(pCDS)).FmDate) & 0x1F)
@@ -28528,13 +32149,13 @@ func zipfileMtime(tls *crt.TLS, pCDS uintptr) u32 { /* zipfile.c:706:12: */
JD = JD + (i64((((hr - 12) * 3600) + (min * 60)) + sec))
// Convert JD to unix timestamp (the JD epoch is 2440587.5)
- return (u32(JD - ((((int64(24405875)) * int64(24)) * int64(60)) * int64(6))))
+ return (u321(JD - ((((int64(24405875)) * int64(24)) * int64(60)) * int64(6))))
}
// The opposite of zipfileMtime(). This function populates the mTime and
// mDate fields of the CDS structure passed as the first argument according
// to the UNIX timestamp value passed as the second.
-func zipfileMtimeToDos(tls *crt.TLS, pCds uintptr, mUnixTime u32) { /* zipfile.c:742:13: */
+func zipfileMtimeToDos(tls *libc.TLS, pCds uintptr, mUnixTime u321) { /* zipfile.c:742:13: */
// Convert unix timestamp to JD (2440588 is noon on 1/1/1970)
var JD i64 = (i64(uint64(int64(2440588)) + (uint64(mUnixTime / (uint64((24 * 60) * 60))))))
var A int32
@@ -28577,7 +32198,7 @@ func zipfileMtimeToDos(tls *crt.TLS, pCds uintptr, mUnixTime u32) { /* zipfile.c
(*ZipfileCDS)(unsafe.Pointer(pCds)).FmDate = (u16((day + (mon << 5)) + ((yr - 1980) << 9)))
(*ZipfileCDS)(unsafe.Pointer(pCds)).FmTime = (u16(((sec / 2) + (min << 5)) + (hr << 11)))
} else {
- (*ZipfileCDS)(unsafe.Pointer(pCds)).FmDate = crt.AssignPtrUint16(pCds+8 /* &.mTime */, u16(0))
+ (*ZipfileCDS)(unsafe.Pointer(pCds)).FmDate = libc.AssignPtrUint16(pCds+8 /* &.mTime */, u16(0))
}
}
@@ -28591,7 +32212,7 @@ func zipfileMtimeToDos(tls *crt.TLS, pCds uintptr, mUnixTime u32) { /* zipfile.c
// If successful, SQLITE_OK is returned and (*ppEntry) set to point to
// the new object. Otherwise, an SQLite error code is returned and the
// final value of (*ppEntry) undefined.
-func zipfileGetEntry(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFile uintptr, iOff i64, ppEntry uintptr) int32 { /* zipfile.c:790:12: */
+func zipfileGetEntry(tls *libc.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFile uintptr, iOff i64, ppEntry uintptr) int32 { /* zipfile.c:790:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -28623,10 +32244,10 @@ func zipfileGetEntry(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
if pNew == uintptr(0) {
rc = 7
} else {
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(ZipfileEntry{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(ZipfileEntry{})))
rc = zipfileReadCDS(tls, aRead, (pNew /* &.cds */))
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7634 /* "failed to read C..." */, crt.VaList(bp, iOff))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8919 /* "failed to read C..." */, libc.VaList(bp, iOff))
} else if aBlob == uintptr(0) {
rc = zipfileReadData(tls,
pFile, aRead, (nExtra + nFile), (iOff + int64(46)), pzErr)
@@ -28637,9 +32258,9 @@ func zipfileGetEntry(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
if rc == 0 {
var pt uintptr = (pNew + 80 /* &.mUnixTime */)
- (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FzFile = sqlite3.Xsqlite3_mprintf(tls, ts+7668 /* "%.*s" */, crt.VaList(bp+8, nFile, aRead))
+ (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FzFile = sqlite3.Xsqlite3_mprintf(tls, ts+8953 /* "%.*s" */, libc.VaList(bp+8, nFile, aRead))
(*ZipfileEntry)(unsafe.Pointer(pNew)).FaExtra = (pNew + uintptr(1)*120)
- crt.Xmemcpy(tls, (*ZipfileEntry)(unsafe.Pointer(pNew)).FaExtra, (aRead + uintptr(nFile)), uint64(nExtra))
+ libc.Xmemcpy(tls, (*ZipfileEntry)(unsafe.Pointer(pNew)).FaExtra, (aRead + uintptr(nFile)), uint64(nExtra))
if (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FzFile == uintptr(0) {
rc = 7
} else if 0 == zipfileScanExtra(tls, (aRead+uintptr(nFile)), int32((*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FnExtra), pt) {
@@ -28662,11 +32283,11 @@ func zipfileGetEntry(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
*(*i64)(unsafe.Pointer(pNew + 96 /* &.iDataOff */)) += (i64(int32((*ZipfileLFH)(unsafe.Pointer(bp+32 /* &lfh */)).FnFile) + int32((*ZipfileLFH)(unsafe.Pointer(bp+32 /* &lfh */)).FnExtra)))
if (aBlob != 0) && ((*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszCompressed != 0) {
(*ZipfileEntry)(unsafe.Pointer(pNew)).FaData = ((*ZipfileEntry)(unsafe.Pointer(pNew)).FaExtra + uintptr(nExtra))
- crt.Xmemcpy(tls, (*ZipfileEntry)(unsafe.Pointer(pNew)).FaData, (aBlob + uintptr((*ZipfileEntry)(unsafe.Pointer(pNew)).FiDataOff)), (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszCompressed)
+ libc.Xmemcpy(tls, (*ZipfileEntry)(unsafe.Pointer(pNew)).FaData, (aBlob + uintptr((*ZipfileEntry)(unsafe.Pointer(pNew)).FiDataOff)), (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszCompressed)
}
} else {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7673, /* "failed to read L..." */
- crt.VaList(bp+24, int32((*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiOffset)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+8958, /* "failed to read L..." */
+ libc.VaList(bp+24, int32((*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiOffset)))
}
}
@@ -28683,7 +32304,7 @@ func zipfileGetEntry(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
var szFix int32 = 30 /* zipfile.c:852:24 */
// Advance an ZipfileCsr to its next row of output.
-func zipfileNext(tls *crt.TLS, cur uintptr) int32 { /* zipfile.c:888:12: */
+func zipfileNext(tls *libc.TLS, cur uintptr) int32 { /* zipfile.c:888:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -28719,7 +32340,7 @@ func zipfileNext(tls *crt.TLS, cur uintptr) int32 { /* zipfile.c:888:12: */
return rc
}
-func zipfileFree(tls *crt.TLS, p uintptr) { /* zipfile.c:921:13: */
+func zipfileFree(tls *libc.TLS, p uintptr) { /* zipfile.c:921:13: */
sqlite3.Xsqlite3_free(tls, p)
}
@@ -28728,7 +32349,7 @@ func zipfileFree(tls *crt.TLS, p uintptr) { /* zipfile.c:921:13: */
// return value in context pCtx to the result (a blob).
//
// If an error occurs, an error code is left in pCtx instead.
-func zipfileInflate(tls *crt.TLS, pCtx uintptr, aIn uintptr, nIn int32, nOut int32) { /* zipfile.c:932:13: */
+func zipfileInflate(tls *libc.TLS, pCtx uintptr, aIn uintptr, nIn int32, nOut int32) { /* zipfile.c:932:13: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -28739,22 +32360,22 @@ func zipfileInflate(tls *crt.TLS, pCtx uintptr, aIn uintptr, nIn int32, nOut int
var err int32
// var str z_stream at bp+16, 112
- crt.Xmemset(tls, bp+16 /* &str */, 0, uint64(unsafe.Sizeof(z_stream{})))
+ libc.Xmemset(tls, bp+16 /* &str */, 0, uint64(unsafe.Sizeof(z_stream{})))
(*z_stream)(unsafe.Pointer(bp + 16 /* &str */)).Fnext_in = aIn
(*z_stream)(unsafe.Pointer(bp + 16 /* &str */)).Favail_in = uInt(nIn)
(*z_stream)(unsafe.Pointer(bp + 16 /* &str */)).Fnext_out = aRes
(*z_stream)(unsafe.Pointer(bp + 16 /* &str */)).Favail_out = uInt(nOut)
- err = tcl.XinflateInit2_(tls, bp+16 /* &str */, -15, ts+7705 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{})))
+ err = tcl.XinflateInit2_(tls, bp+16 /* &str */, -15, ts+8990 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{})))
if err != 0 {
- zipfileCtxErrorMsg(tls, pCtx, ts+7712 /* "inflateInit2() f..." */, crt.VaList(bp, err))
+ zipfileCtxErrorMsg(tls, pCtx, ts+8997 /* "inflateInit2() f..." */, libc.VaList(bp, err))
} else {
err = tcl.Xinflate(tls, bp+16 /* &str */, 0)
if err != 1 {
- zipfileCtxErrorMsg(tls, pCtx, ts+7739 /* "inflate() failed..." */, crt.VaList(bp+8, err))
+ zipfileCtxErrorMsg(tls, pCtx, ts+9024 /* "inflate() failed..." */, libc.VaList(bp+8, err))
} else {
- sqlite3.Xsqlite3_result_blob(tls, pCtx, aRes, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{zipfileFree})))
+ sqlite3.Xsqlite3_result_blob(tls, pCtx, aRes, nOut, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{zipfileFree})))
aRes = uintptr(0)
}
}
@@ -28773,7 +32394,7 @@ func zipfileInflate(tls *crt.TLS, pCtx uintptr, aIn uintptr, nIn int32, nOut int
// code is returned and an error message left in virtual-table handle
// pTab. The values of (*ppOut) and (*pnOut) are left unchanged in this
// case.
-func zipfileDeflate(tls *crt.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut uintptr, pzErr uintptr) int32 { /* zipfile.c:980:12: */
+func zipfileDeflate(tls *libc.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut uintptr, pzErr uintptr) int32 { /* zipfile.c:980:12: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -28783,10 +32404,10 @@ func zipfileDeflate(tls *crt.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut u
var aOut uintptr
- crt.Xmemset(tls, bp /* &str */, 0, uint64(unsafe.Sizeof(z_stream{})))
+ libc.Xmemset(tls, bp /* &str */, 0, uint64(unsafe.Sizeof(z_stream{})))
(*z_stream)(unsafe.Pointer(bp /* &str */)).Fnext_in = aIn
(*z_stream)(unsafe.Pointer(bp /* &str */)).Favail_in = uInt(nIn)
- tcl.XdeflateInit2_(tls, bp /* &str */, 9, 8, -15, 8, 0, ts+7705 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{})))
+ tcl.XdeflateInit2_(tls, bp /* &str */, 9, 8, -15, 8, 0, ts+8990 /* "1.2.11" */, int32(unsafe.Sizeof(z_stream{})))
nAlloc = sqlite3_int64(tcl.XdeflateBound(tls, bp /* &str */, uint64(nIn)))
aOut = sqlite3.Xsqlite3_malloc64(tls, uint64(nAlloc))
@@ -28802,7 +32423,7 @@ func zipfileDeflate(tls *crt.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut u
*(*int32)(unsafe.Pointer(pnOut)) = int32((*z_stream)(unsafe.Pointer(bp /* &str */)).Ftotal_out)
} else {
sqlite3.Xsqlite3_free(tls, aOut)
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7761 /* "zipfile: deflate..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+9046 /* "zipfile: deflate..." */, 0)
rc = 1
}
tcl.XdeflateEnd(tls, bp /* &str */)
@@ -28813,13 +32434,13 @@ func zipfileDeflate(tls *crt.TLS, aIn uintptr, nIn int32, ppOut uintptr, pnOut u
// Return values of columns for the row at which the series_cursor
// is currently pointing.
-func zipfileColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* zipfile.c:1023:12: */
+func zipfileColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* zipfile.c:1023:12: */
var pCsr uintptr = cur
var pCDS uintptr = ((*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCurrent /* &.cds */)
var rc int32 = 0
switch i {
case 0: // name
- sqlite3.Xsqlite3_result_text(tls, ctx, (*ZipfileCDS)(unsafe.Pointer(pCDS)).FzFile, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, (*ZipfileCDS)(unsafe.Pointer(pCDS)).FzFile, -1, libc.UintptrFromInt32(-1))
break
case 1: // mode
// TODO: Whether or not the following is correct surely depends on
@@ -28854,7 +32475,7 @@ func zipfileColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* z
if (*ZipfileEntry)(unsafe.Pointer((*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCurrent)).FaData != 0 {
aBuf = (*ZipfileEntry)(unsafe.Pointer((*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCurrent)).FaData
} else {
- aBuf = crt.AssignUintptr(&aFree, sqlite3.Xsqlite3_malloc64(tls, uint64(sz)))
+ aBuf = libc.AssignUintptr(&aFree, sqlite3.Xsqlite3_malloc64(tls, uint64(sz)))
if aBuf == uintptr(0) {
rc = 7
} else {
@@ -28870,7 +32491,7 @@ func zipfileColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* z
if (i == 5) && ((*ZipfileCDS)(unsafe.Pointer(pCDS)).FiCompression != 0) {
zipfileInflate(tls, ctx, aBuf, sz, szFinal)
} else {
- sqlite3.Xsqlite3_result_blob(tls, ctx, aBuf, sz, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_blob(tls, ctx, aBuf, sz, libc.UintptrFromInt32(-1))
}
}
sqlite3.Xsqlite3_free(tls, aFree)
@@ -28878,7 +32499,7 @@ func zipfileColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* z
// Figure out if this is a directory or a zero-sized file. Consider
// it to be a directory either if the mode suggests so, or if
// the final character in the name is '/'.
- var mode u32 = ((*ZipfileCDS)(unsafe.Pointer(pCDS)).FiExternalAttr >> 16)
+ var mode u321 = ((*ZipfileCDS)(unsafe.Pointer(pCDS)).FiExternalAttr >> 16)
if !((mode & uint64(0040000)) != 0) && (int32(*(*int8)(unsafe.Pointer((*ZipfileCDS)(unsafe.Pointer(pCDS)).FzFile + uintptr((int32((*ZipfileCDS)(unsafe.Pointer(pCDS)).FnFile) - 1))))) != '/') {
sqlite3.Xsqlite3_result_blob(tls, ctx, ts+488 /* "" */, 0, uintptr(0))
}
@@ -28899,7 +32520,7 @@ func zipfileColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* z
}
// Return TRUE if the cursor is at EOF.
-func zipfileEof(tls *crt.TLS, cur uintptr) int32 { /* zipfile.c:1110:12: */
+func zipfileEof(tls *libc.TLS, cur uintptr) int32 { /* zipfile.c:1110:12: */
var pCsr uintptr = cur
return int32((*ZipfileCsr)(unsafe.Pointer(pCsr)).FbEof)
}
@@ -28912,7 +32533,7 @@ func zipfileEof(tls *crt.TLS, cur uintptr) int32 { /* zipfile.c:1110:12: */
// and populate *pEOCD with the results of decoding it. SQLITE_OK is
// returned if successful. Otherwise, an SQLite error code is returned and
// an English language error message may be left in virtual-table pTab.
-func zipfileReadEOCD(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFile uintptr, pEOCD uintptr) int32 { /* zipfile.c:1125:12: */
+func zipfileReadEOCD(tls *libc.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFile uintptr, pEOCD uintptr) int32 { /* zipfile.c:1125:12: */
var aRead uintptr = (*ZipfileTab)(unsafe.Pointer(pTab)).FaBuffer // Temporary buffer
var nRead int32 // Bytes to read from file
var rc int32 = 0
@@ -28920,10 +32541,10 @@ func zipfileReadEOCD(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
if aBlob == uintptr(0) {
var iOff i64 // Offset to read from
var szFile i64 // Total size of file in bytes
- crt.Xfseek(tls, pFile, int64(0), 2)
- szFile = i64(crt.Xftell(tls, pFile))
+ libc.Xfseek(tls, pFile, int64(0), 2)
+ szFile = i64(libc.Xftell(tls, pFile))
if szFile == int64(0) {
- crt.Xmemset(tls, pEOCD, 0, uint64(unsafe.Sizeof(ZipfileEOCD{})))
+ libc.Xmemset(tls, pEOCD, 0, uint64(unsafe.Sizeof(ZipfileEOCD{})))
return 0
}
nRead = func() int32 {
@@ -28956,7 +32577,7 @@ func zipfileReadEOCD(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
}
if i < 0 {
(*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls,
- ts+7786 /* "cannot find end ..." */, 0)
+ ts+9071 /* "cannot find end ..." */, 0)
return 1
}
@@ -28965,8 +32586,8 @@ func zipfileReadEOCD(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
(*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FiFirstDisk = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FnEntry = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
(*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FnEntryTotal = func() u16 { aRead += uintptr(2); return zipfileGetU16(tls, (aRead - uintptr(2))) }()
- (*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FnSize = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
- (*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FiOffset = func() u32 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FnSize = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
+ (*ZipfileEOCD)(unsafe.Pointer(pEOCD)).FiOffset = func() u321 { aRead += uintptr(4); return zipfileGetU32(tls, (aRead - uintptr(4))) }()
}
return rc
@@ -28976,11 +32597,11 @@ func zipfileReadEOCD(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32, pFi
// and ends with pLastEntry. If argument pBefore is NULL, then pNew is added
// to the end of the list. Otherwise, it is added to the list immediately
// before pBefore (which is guaranteed to be a part of said list).
-func zipfileAddEntry(tls *crt.TLS, pTab uintptr, pBefore uintptr, pNew uintptr) { /* zipfile.c:1189:13: */
+func zipfileAddEntry(tls *libc.TLS, pTab uintptr, pBefore uintptr, pNew uintptr) { /* zipfile.c:1189:13: */
if pBefore == uintptr(0) {
if (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry == uintptr(0) {
- (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry = crt.AssignPtrUintptr(pTab+72 /* &.pLastEntry */, pNew)
+ (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry = libc.AssignPtrUintptr(pTab+72 /* &.pLastEntry */, pNew)
} else {
(*ZipfileEntry)(unsafe.Pointer((*ZipfileTab)(unsafe.Pointer(pTab)).FpLastEntry)).FpNext = pNew
@@ -28995,7 +32616,7 @@ func zipfileAddEntry(tls *crt.TLS, pTab uintptr, pBefore uintptr, pNew uintptr)
}
}
-func zipfileLoadDirectory(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32) int32 { /* zipfile.c:1212:12: */
+func zipfileLoadDirectory(tls *libc.TLS, pTab uintptr, aBlob uintptr, nBlob int32) int32 { /* zipfile.c:1212:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -29021,7 +32642,7 @@ func zipfileLoadDirectory(tls *crt.TLS, pTab uintptr, aBlob uintptr, nBlob int32
}
// xFilter callback.
-func zipfileFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* zipfile.c:1236:12: */
+func zipfileFilter(tls *libc.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* zipfile.c:1236:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -29036,7 +32657,7 @@ func zipfileFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc
if (*ZipfileTab)(unsafe.Pointer(pTab)).FzFile != 0 {
zFile = (*ZipfileTab)(unsafe.Pointer(pTab)).FzFile
} else if idxNum == 0 {
- zipfileCursorErr(tls, pCsr, ts+7830 /* "zipfile() functi..." */, 0)
+ zipfileCursorErr(tls, pCsr, ts+9115 /* "zipfile() functi..." */, 0)
return 1
} else if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))) == 4 {
var aBlob uintptr = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
@@ -29044,7 +32665,7 @@ func zipfileFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc
rc = zipfileLoadDirectory(tls, pTab, aBlob, nBlob)
(*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFreeEntry = (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry
- (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry = crt.AssignPtrUintptr(pTab+72 /* &.pLastEntry */, uintptr(0))
+ (*ZipfileTab)(unsafe.Pointer(pTab)).FpFirstEntry = libc.AssignPtrUintptr(pTab+72 /* &.pLastEntry */, uintptr(0))
if rc != 0 {
return rc
}
@@ -29054,9 +32675,9 @@ func zipfileFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc
}
if (uintptr(0) == (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd) && (0 == bInMemory) {
- (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile = crt.Xfopen(tls, zFile, ts+2937 /* "rb" */)
+ (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile = libc.Xfopen(tls, zFile, ts+4086 /* "rb" */)
if (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile == uintptr(0) {
- zipfileCursorErr(tls, pCsr, ts+7870 /* "cannot open file..." */, crt.VaList(bp, zFile))
+ zipfileCursorErr(tls, pCsr, ts+9155 /* "cannot open file..." */, libc.VaList(bp, zFile))
rc = 1
} else {
rc = zipfileReadEOCD(tls, pTab, uintptr(0), 0, (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpFile, (pCsr + 40 /* &.eocd */))
@@ -29084,7 +32705,7 @@ func zipfileFilter(tls *crt.TLS, cur uintptr, idxNum int32, idxStr uintptr, argc
}
// xBestIndex callback.
-func zipfileBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* zipfile.c:1295:12: */
+func zipfileBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* zipfile.c:1295:12: */
var i int32
var idx int32 = -1
var unusable int32 = 0
@@ -29111,15 +32732,15 @@ func zipfileBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* zi
return 0
}
-func zipfileNewEntry(tls *crt.TLS, zPath uintptr) uintptr { /* zipfile.c:1323:21: */
+func zipfileNewEntry(tls *libc.TLS, zPath uintptr) uintptr { /* zipfile.c:1323:21: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pNew uintptr
pNew = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(ZipfileEntry{})))
if pNew != 0 {
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(ZipfileEntry{})))
- (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FzFile = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zPath))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(ZipfileEntry{})))
+ (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FzFile = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zPath))
if (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FzFile == uintptr(0) {
sqlite3.Xsqlite3_free(tls, pNew)
pNew = uintptr(0)
@@ -29128,7 +32749,7 @@ func zipfileNewEntry(tls *crt.TLS, zPath uintptr) uintptr { /* zipfile.c:1323:21
return pNew
}
-func zipfileSerializeLFH(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /* zipfile.c:1337:12: */
+func zipfileSerializeLFH(tls *libc.TLS, pEntry uintptr, aBuf uintptr) int32 { /* zipfile.c:1337:12: */
var pCds uintptr = (pEntry /* &.cds */)
var a uintptr = aBuf
@@ -29191,7 +32812,7 @@ func zipfileSerializeLFH(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /*
}
// Add the file name
- crt.Xmemcpy(tls, a, (*ZipfileCDS)(unsafe.Pointer(pCds)).FzFile, uint64(int32((*ZipfileCDS)(unsafe.Pointer(pCds)).FnFile)))
+ libc.Xmemcpy(tls, a, (*ZipfileCDS)(unsafe.Pointer(pCds)).FzFile, uint64(int32((*ZipfileCDS)(unsafe.Pointer(pCds)).FnFile)))
a += uintptr(int32((*ZipfileCDS)(unsafe.Pointer(pCds)).FnFile))
/* The "extra" data */
@@ -29205,7 +32826,7 @@ func zipfileSerializeLFH(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /*
a += uintptr(2)
}
- *(*u8)(unsafe.Pointer(crt.PostIncUintptr(&a, 1))) = u8(0x01)
+ *(*u8)(unsafe.Pointer(libc.PostIncUintptr(&a, 1))) = u8(0x01)
{
zipfilePutU32(tls, a, (*ZipfileEntry)(unsafe.Pointer(pEntry)).FmUnixTime)
a += uintptr(4)
@@ -29214,7 +32835,7 @@ func zipfileSerializeLFH(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /*
return (int32((int64(a) - int64(aBuf)) / 1))
}
-func zipfileAppendEntry(tls *crt.TLS, pTab uintptr, pEntry uintptr, pData uintptr, nData int32) int32 { /* zipfile.c:1370:12: */
+func zipfileAppendEntry(tls *libc.TLS, pTab uintptr, pEntry uintptr, pData uintptr, nData int32) int32 { /* zipfile.c:1370:12: */
var aBuf uintptr = (*ZipfileTab)(unsafe.Pointer(pTab)).FaBuffer
var nBuf int32
var rc int32
@@ -29229,12 +32850,12 @@ func zipfileAppendEntry(tls *crt.TLS, pTab uintptr, pEntry uintptr, pData uintpt
return rc
}
-func zipfileGetMode(tls *crt.TLS, pVal uintptr, bIsDir int32, pMode uintptr, pzErr uintptr) int32 { /* zipfile.c:1390:12: */
+func zipfileGetMode(tls *libc.TLS, pVal uintptr, bIsDir int32, pMode uintptr, pzErr uintptr) int32 { /* zipfile.c:1390:12: */
bp := tls.Alloc(19)
defer tls.Free(19)
var z uintptr
- var mode u32
+ var mode u321
// var zTemplate [11]int8 at bp+8, 11
var i int32
@@ -29254,11 +32875,11 @@ __1:
if !((int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) >= '0') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) <= '9')) {
goto __3
}
- mode = u32(uint32(sqlite3.Xsqlite3_value_int(tls, pVal)))
+ mode = u321(uint32(sqlite3.Xsqlite3_value_int(tls, pVal)))
goto __4
__3:
- *(*[11]int8)(unsafe.Pointer(bp + 8 /* zTemplate */)) = *(*[11]int8)(unsafe.Pointer(ts + 7891 /* "-rwxrwxrwx" */))
- if !(crt.Xstrlen(tls, z) != uint64(10)) {
+ *(*[11]int8)(unsafe.Pointer(bp + 8 /* zTemplate */)) = *(*[11]int8)(unsafe.Pointer(ts + 9176 /* "-rwxrwxrwx" */))
+ if !(libc.Xstrlen(tls, z) != uint64(10)) {
goto __5
}
goto parse_error
@@ -29296,7 +32917,7 @@ __11:
if !(int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == int32(*(*int8)(unsafe.Pointer(bp + 8 /* &zTemplate[0] */ + uintptr(i))))) {
goto __14
}
- mode = mode | (u32(int32(1) << (9 - i)))
+ mode = mode | (u321(int32(1) << (9 - i)))
goto __15
__14:
if !(int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) != '-') {
@@ -29318,20 +32939,20 @@ __4:
;
__2:
;
- if !((crt.Bool32((mode & uint64(0040000)) == uint64(0))) == bIsDir) {
+ if !((libc.Bool32((mode & uint64(0040000)) == uint64(0))) == bIsDir) {
goto __17
}
// The "mode" attribute is a directory, but data has been specified.
// Or vice-versa - no data but "mode" is a file or symlink.
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7902 /* "zipfile: mode do..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+9187 /* "zipfile: mode do..." */, 0)
return 19
__17:
;
- *(*u32)(unsafe.Pointer(pMode)) = mode
+ *(*u321)(unsafe.Pointer(pMode)) = mode
return 0
parse_error:
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+7936 /* "zipfile: parse e..." */, crt.VaList(bp, z))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+9221 /* "zipfile: parse e..." */, libc.VaList(bp, z))
return 1
}
@@ -29339,21 +32960,21 @@ parse_error:
// Both (const char*) arguments point to nul-terminated strings. Argument
// nB is the value of strlen(zB). This function returns 0 if the strings are
// identical, ignoring any trailing '/' character in either path.
-func zipfileComparePath(tls *crt.TLS, zA uintptr, zB uintptr, nB int32) int32 { /* zipfile.c:1435:12: */
- var nA int32 = int32(crt.Xstrlen(tls, zA))
+func zipfileComparePath(tls *libc.TLS, zA uintptr, zB uintptr, nB int32) int32 { /* zipfile.c:1435:12: */
+ var nA int32 = int32(libc.Xstrlen(tls, zA))
if (nA > 0) && (int32(*(*int8)(unsafe.Pointer(zA + uintptr((nA - 1))))) == '/') {
nA--
}
if (nB > 0) && (int32(*(*int8)(unsafe.Pointer(zB + uintptr((nB - 1))))) == '/') {
nB--
}
- if (nA == nB) && (crt.Xmemcmp(tls, zA, zB, uint64(nA)) == 0) {
+ if (nA == nB) && (libc.Xmemcmp(tls, zA, zB, uint64(nA)) == 0) {
return 0
}
return 1
}
-func zipfileBegin(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1443:12: */
+func zipfileBegin(tls *libc.TLS, pVtab uintptr) int32 { /* zipfile.c:1443:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -29361,7 +32982,7 @@ func zipfileBegin(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1443:12: */
var rc int32 = 0
if ((*ZipfileTab)(unsafe.Pointer(pTab)).FzFile == uintptr(0)) || (int32(*(*int8)(unsafe.Pointer((*ZipfileTab)(unsafe.Pointer(pTab)).FzFile + uintptr(0)))) == 0) {
- (*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+7969 /* "zipfile: missing..." */, 0)
+ (*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+9254 /* "zipfile: missing..." */, 0)
return 1
}
@@ -29369,14 +32990,14 @@ func zipfileBegin(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1443:12: */
// structure into memory. During the transaction any new file data is
// appended to the archive file, but the central directory is accumulated
// in main-memory until the transaction is committed.
- (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd = crt.Xfopen(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FzFile, ts+7995 /* "ab+" */)
+ (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd = libc.Xfopen(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FzFile, ts+9280 /* "ab+" */)
if (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd == uintptr(0) {
(*ZipfileTab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls,
- ts+7999 /* "zipfile: failed ..." */, crt.VaList(bp, (*ZipfileTab)(unsafe.Pointer(pTab)).FzFile))
+ ts+9284 /* "zipfile: failed ..." */, libc.VaList(bp, (*ZipfileTab)(unsafe.Pointer(pTab)).FzFile))
rc = 1
} else {
- crt.Xfseek(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd, int64(0), 2)
- (*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent = crt.AssignPtrInt64(pTab+96 /* &.szOrig */, i64(crt.Xftell(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd)))
+ libc.Xfseek(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd, int64(0), 2)
+ (*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent = libc.AssignPtrInt64(pTab+96 /* &.szOrig */, i64(libc.Xftell(tls, (*ZipfileTab)(unsafe.Pointer(pTab)).FpWriteFd)))
rc = zipfileLoadDirectory(tls, pTab, uintptr(0), 0)
}
@@ -29389,22 +33010,22 @@ func zipfileBegin(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1443:12: */
// Return the current time as a 32-bit timestamp in UNIX epoch format (like
// time(2)).
-func zipfileTime(tls *crt.TLS) u32 { /* zipfile.c:1480:12: */
+func zipfileTime(tls *libc.TLS) u321 { /* zipfile.c:1480:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
var pVfs uintptr = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
- var ret u32
+ var ret u321
if ((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FiVersion >= 2) && ((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FxCurrentTimeInt64 != 0) {
// var ms i64 at bp, 8
- (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, pVfs, bp /* &ms */)
- ret = (u32((*(*i64)(unsafe.Pointer(bp /* ms */)) / int64(1000)) - (int64(24405875) * int64(8640))))
+ (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, pVfs, bp /* &ms */)
+ ret = (u321((*(*i64)(unsafe.Pointer(bp /* ms */)) / int64(1000)) - (int64(24405875) * int64(8640))))
} else {
// var day float64 at bp+8, 8
- (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 120 /* &.xCurrentTime */))))(tls, pVfs, bp+8 /* &day */)
- ret = (u32((*(*float64)(unsafe.Pointer(bp + 8 /* day */)) - 2440587.5) * float64(86400)))
+ (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 120 /* &.xCurrentTime */))))(tls, pVfs, bp+8 /* &day */)
+ ret = (u321((*(*float64)(unsafe.Pointer(bp + 8 /* day */)) - 2440587.5) * float64(86400)))
}
return ret
}
@@ -29414,16 +33035,16 @@ func zipfileTime(tls *crt.TLS) u32 { /* zipfile.c:1480:12: */
// If the value passed as the only argument is either NULL or an SQL NULL,
// return the current time. Otherwise, return the value stored in (*pVal)
// cast to a 32-bit unsigned integer.
-func zipfileGetTime(tls *crt.TLS, pVal uintptr) u32 { /* zipfile.c:1502:12: */
+func zipfileGetTime(tls *libc.TLS, pVal uintptr) u321 { /* zipfile.c:1502:12: */
if (pVal == uintptr(0)) || (sqlite3.Xsqlite3_value_type(tls, pVal) == 5) {
return zipfileTime(tls)
}
- return u32(sqlite3.Xsqlite3_value_int64(tls, pVal))
+ return u321(sqlite3.Xsqlite3_value_int64(tls, pVal))
}
// Unless it is NULL, entry pOld is currently part of the pTab->pFirstEntry
// linked list. Remove it from the list and free the object.
-func zipfileRemoveEntryFromList(tls *crt.TLS, pTab uintptr, pOld uintptr) { /* zipfile.c:1513:13: */
+func zipfileRemoveEntryFromList(tls *libc.TLS, pTab uintptr, pOld uintptr) { /* zipfile.c:1513:13: */
if pOld != 0 {
var pp uintptr
for pp = (pTab + 64 /* &.pFirstEntry */); (*(*uintptr)(unsafe.Pointer(pp))) != pOld; pp = (*(*uintptr)(unsafe.Pointer(pp)) + 112 /* &.pNext */) {
@@ -29434,7 +33055,7 @@ func zipfileRemoveEntryFromList(tls *crt.TLS, pTab uintptr, pOld uintptr) { /* z
}
// xUpdate method.
-func zipfileUpdate(tls *crt.TLS, pVtab uintptr, nVal int32, apVal uintptr, pRowid uintptr) int32 { /* zipfile.c:1525:12: */
+func zipfileUpdate(tls *libc.TLS, pVtab uintptr, nVal int32, apVal uintptr, pRowid uintptr) int32 { /* zipfile.c:1525:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -29442,9 +33063,9 @@ func zipfileUpdate(tls *crt.TLS, pVtab uintptr, nVal int32, apVal uintptr, pRowi
var rc int32 // Return Code
var pNew uintptr // New in-memory CDS entry
- // var mode u32 at bp+40, 8
+ // var mode u321 at bp+40, 8
// Mode for new entry
- var mTime u32 // Modification time for new entry
+ var mTime u321 // Modification time for new entry
var sz i64 // Uncompressed size
var zPath uintptr // Path for new entry
var nPath int32 // strlen(zPath)
@@ -29458,7 +33079,7 @@ func zipfileUpdate(tls *crt.TLS, pVtab uintptr, nVal int32, apVal uintptr, pRowi
var pOld2 uintptr
var bUpdate int32 // True for an update that modifies "name"
var bIsDir int32
- var iCrc32 u32
+ var iCrc32 u321
var zUpdate uintptr
var zDelete uintptr
var nDelete int32
@@ -29474,7 +33095,7 @@ func zipfileUpdate(tls *crt.TLS, pVtab uintptr, nVal int32, apVal uintptr, pRowi
pTab = pVtab
rc = 0
pNew = uintptr(0)
- *(*u32)(unsafe.Pointer(bp + 40 /* mode */)) = uint64(0)
+ *(*u321)(unsafe.Pointer(bp + 40 /* mode */)) = uint64(0)
mTime = uint64(0)
sz = int64(0)
zPath = uintptr(0)
@@ -29508,7 +33129,7 @@ __1:
goto __3
}
zDelete = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(0)*8)))
- nDelete = int32(crt.Xstrlen(tls, zDelete))
+ nDelete = int32(libc.Xstrlen(tls, zDelete))
if !(nVal > 1) {
goto __4
}
@@ -29549,14 +33170,14 @@ __3:
if !(sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(5)*8))) != 5) {
goto __11
}
- zipfileTableErr(tls, pTab, ts+8043 /* "sz must be NULL" */, 0)
+ zipfileTableErr(tls, pTab, ts+9328 /* "sz must be NULL" */, 0)
rc = 19
__11:
;
if !(sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(6)*8))) != 5) {
goto __12
}
- zipfileTableErr(tls, pTab, ts+8059 /* "rawdata must be ..." */, 0)
+ zipfileTableErr(tls, pTab, ts+9344 /* "rawdata must be ..." */, 0)
rc = 19
__12:
;
@@ -29575,7 +33196,7 @@ __14:
// a regular file or a symlink.
aIn = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(7)*8)))
nIn = sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(7)*8)))
- bAuto = (crt.Bool32(sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(8)*8))) == 5))
+ bAuto = (libc.Bool32(sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(8)*8))) == 5))
iMethod = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(8)*8)))
sz = i64(nIn)
@@ -29584,7 +33205,7 @@ __14:
if !((iMethod != 0) && (iMethod != 8)) {
goto __16
}
- zipfileTableErr(tls, pTab, ts+8080 /* "unknown compress..." */, crt.VaList(bp, iMethod))
+ zipfileTableErr(tls, pTab, ts+9365 /* "unknown compress..." */, libc.VaList(bp, iMethod))
rc = 19
goto __17
__16:
@@ -29632,7 +33253,7 @@ __21:
zPath = ts + 488 /* "" */
__23:
;
- nPath = int32(crt.Xstrlen(tls, zPath))
+ nPath = int32(libc.Xstrlen(tls, zPath))
mTime = zipfileGetTime(tls, *(*uintptr)(unsafe.Pointer(apVal + uintptr(4)*8)))
__22:
;
@@ -29647,7 +33268,7 @@ __22:
if !((nPath <= 0) || (int32(*(*int8)(unsafe.Pointer(zPath + uintptr((nPath - 1))))) != '/')) {
goto __25
}
- zFree = sqlite3.Xsqlite3_mprintf(tls, ts+8111 /* "%s/" */, crt.VaList(bp+8, zPath))
+ zFree = sqlite3.Xsqlite3_mprintf(tls, ts+9396 /* "%s/" */, libc.VaList(bp+8, zPath))
zPath = zFree
if !(zFree == uintptr(0)) {
goto __26
@@ -29656,7 +33277,7 @@ __22:
nPath = 0
goto __27
__26:
- nPath = int32(crt.Xstrlen(tls, zPath))
+ nPath = int32(libc.Xstrlen(tls, zPath))
__27:
;
__25:
@@ -29692,7 +33313,7 @@ __35:
pOld2 = p
goto __33
__36:
- zipfileTableErr(tls, pTab, ts+8115 /* "duplicate name: ..." */, crt.VaList(bp+16, zPath))
+ zipfileTableErr(tls, pTab, ts+9400 /* "duplicate name: ..." */, libc.VaList(bp+16, zPath))
rc = 19
goto __33
__33:
@@ -29727,10 +33348,10 @@ __38:
(*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiCompression = u16(iMethod)
zipfileMtimeToDos(tls, (pNew /* &.cds */), mTime)
(*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.Fcrc32 = iCrc32
- (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszCompressed = u32(nData)
- (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszUncompressed = u32(sz)
- (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiExternalAttr = (*(*u32)(unsafe.Pointer(bp + 40 /* mode */)) << 16)
- (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiOffset = u32((*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent)
+ (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszCompressed = u321(nData)
+ (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FszUncompressed = u321(sz)
+ (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiExternalAttr = (*(*u321)(unsafe.Pointer(bp + 40 /* mode */)) << 16)
+ (*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FiOffset = u321((*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent)
(*ZipfileEntry)(unsafe.Pointer(pNew)).Fcds.FnFile = u16(nPath)
(*ZipfileEntry)(unsafe.Pointer(pNew)).FmUnixTime = mTime
rc = zipfileAppendEntry(tls, pTab, pNew, pData, nData)
@@ -29776,7 +33397,7 @@ zipfile_update_done:
return rc
}
-func zipfileSerializeEOCD(tls *crt.TLS, p uintptr, aBuf uintptr) int32 { /* zipfile.c:1716:12: */
+func zipfileSerializeEOCD(tls *libc.TLS, p uintptr, aBuf uintptr) int32 { /* zipfile.c:1716:12: */
var a uintptr = aBuf
{
zipfilePutU32(tls, a, uint64(0x06054b50))
@@ -29822,7 +33443,7 @@ func zipfileSerializeEOCD(tls *crt.TLS, p uintptr, aBuf uintptr) int32 { /* zipf
return (int32((int64(a) - int64(aBuf)) / 1))
}
-func zipfileAppendEOCD(tls *crt.TLS, pTab uintptr, p uintptr) int32 { /* zipfile.c:1730:12: */
+func zipfileAppendEOCD(tls *libc.TLS, pTab uintptr, p uintptr) int32 { /* zipfile.c:1730:12: */
var nBuf int32 = zipfileSerializeEOCD(tls, p, (*ZipfileTab)(unsafe.Pointer(pTab)).FaBuffer)
return zipfileAppendData(tls, pTab, (*ZipfileTab)(unsafe.Pointer(pTab)).FaBuffer, nBuf)
@@ -29830,7 +33451,7 @@ func zipfileAppendEOCD(tls *crt.TLS, pTab uintptr, p uintptr) int32 { /* zipfile
// Serialize the CDS structure into buffer aBuf[]. Return the number
// of bytes written.
-func zipfileSerializeCDS(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /* zipfile.c:1740:12: */
+func zipfileSerializeCDS(tls *libc.TLS, pEntry uintptr, aBuf uintptr) int32 { /* zipfile.c:1740:12: */
var a uintptr = aBuf
var pCDS uintptr = (pEntry /* &.cds */)
@@ -29923,12 +33544,12 @@ func zipfileSerializeCDS(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /*
a += uintptr(4)
}
- crt.Xmemcpy(tls, a, (*ZipfileCDS)(unsafe.Pointer(pCDS)).FzFile, uint64((*ZipfileCDS)(unsafe.Pointer(pCDS)).FnFile))
+ libc.Xmemcpy(tls, a, (*ZipfileCDS)(unsafe.Pointer(pCDS)).FzFile, uint64((*ZipfileCDS)(unsafe.Pointer(pCDS)).FnFile))
a += uintptr((*ZipfileCDS)(unsafe.Pointer(pCDS)).FnFile)
if (*ZipfileEntry)(unsafe.Pointer(pEntry)).FaExtra != 0 {
var n int32 = (int32((*ZipfileCDS)(unsafe.Pointer(pCDS)).FnExtra) + int32((*ZipfileCDS)(unsafe.Pointer(pCDS)).FnComment))
- crt.Xmemcpy(tls, a, (*ZipfileEntry)(unsafe.Pointer(pEntry)).FaExtra, uint64(n))
+ libc.Xmemcpy(tls, a, (*ZipfileEntry)(unsafe.Pointer(pEntry)).FaExtra, uint64(n))
a += uintptr(n)
} else {
@@ -29942,7 +33563,7 @@ func zipfileSerializeCDS(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /*
a += uintptr(2)
}
- *(*u8)(unsafe.Pointer(crt.PostIncUintptr(&a, 1))) = u8(0x01)
+ *(*u8)(unsafe.Pointer(libc.PostIncUintptr(&a, 1))) = u8(0x01)
{
zipfilePutU32(tls, a, (*ZipfileEntry)(unsafe.Pointer(pEntry)).FmUnixTime)
a += uintptr(4)
@@ -29952,7 +33573,7 @@ func zipfileSerializeCDS(tls *crt.TLS, pEntry uintptr, aBuf uintptr) int32 { /*
return (int32((int64(a) - int64(aBuf)) / 1))
}
-func zipfileCommit(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1785:12: */
+func zipfileCommit(tls *libc.TLS, pVtab uintptr) int32 { /* zipfile.c:1785:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -29977,8 +33598,8 @@ func zipfileCommit(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1785:12: */
(*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FiFirstDisk = u16(0)
(*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnEntry = u16(nEntry)
(*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnEntryTotal = u16(nEntry)
- (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnSize = (u32((*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent - iOffset))
- (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FiOffset = u32(iOffset)
+ (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnSize = (u321((*ZipfileTab)(unsafe.Pointer(pTab)).FszCurrent - iOffset))
+ (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FiOffset = u321(iOffset)
rc = zipfileAppendEOCD(tls, pTab, bp /* &eocd */)
zipfileCleanupTransaction(tls, pTab)
@@ -29986,11 +33607,11 @@ func zipfileCommit(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1785:12: */
return rc
}
-func zipfileRollback(tls *crt.TLS, pVtab uintptr) int32 { /* zipfile.c:1815:12: */
+func zipfileRollback(tls *libc.TLS, pVtab uintptr) int32 { /* zipfile.c:1815:12: */
return zipfileCommit(tls, pVtab)
}
-func zipfileFindCursor(tls *crt.TLS, pTab uintptr, iId i64) uintptr { /* zipfile.c:1819:19: */
+func zipfileFindCursor(tls *libc.TLS, pTab uintptr, iId i64) uintptr { /* zipfile.c:1819:19: */
var pCsr uintptr
for pCsr = (*ZipfileTab)(unsafe.Pointer(pTab)).FpCsrList; pCsr != 0; pCsr = (*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCsrNext {
if iId == (*ZipfileCsr)(unsafe.Pointer(pCsr)).FiId {
@@ -30000,7 +33621,7 @@ func zipfileFindCursor(tls *crt.TLS, pTab uintptr, iId i64) uintptr { /* zipfile
return pCsr
}
-func zipfileFunctionCds(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* zipfile.c:1827:13: */
+func zipfileFunctionCds(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* zipfile.c:1827:13: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -30012,30 +33633,30 @@ func zipfileFunctionCds(tls *crt.TLS, context uintptr, argc int32, argv uintptr)
var p uintptr = ((*ZipfileCsr)(unsafe.Pointer(pCsr)).FpCurrent /* &.cds */)
var zRes uintptr = sqlite3.Xsqlite3_mprintf(tls,
- ts+8136, /* "{\"version-made-b..." */
- crt.VaList(bp, u32((*ZipfileCDS)(unsafe.Pointer(p)).FiVersionMadeBy), u32((*ZipfileCDS)(unsafe.Pointer(p)).FiVersionExtract),
- u32((*ZipfileCDS)(unsafe.Pointer(p)).Fflags), u32((*ZipfileCDS)(unsafe.Pointer(p)).FiCompression),
- u32((*ZipfileCDS)(unsafe.Pointer(p)).FmTime), u32((*ZipfileCDS)(unsafe.Pointer(p)).FmDate),
+ ts+9421, /* "{\"version-made-b..." */
+ libc.VaList(bp, u321((*ZipfileCDS)(unsafe.Pointer(p)).FiVersionMadeBy), u321((*ZipfileCDS)(unsafe.Pointer(p)).FiVersionExtract),
+ u321((*ZipfileCDS)(unsafe.Pointer(p)).Fflags), u321((*ZipfileCDS)(unsafe.Pointer(p)).FiCompression),
+ u321((*ZipfileCDS)(unsafe.Pointer(p)).FmTime), u321((*ZipfileCDS)(unsafe.Pointer(p)).FmDate),
(*ZipfileCDS)(unsafe.Pointer(p)).Fcrc32, (*ZipfileCDS)(unsafe.Pointer(p)).FszCompressed,
- (*ZipfileCDS)(unsafe.Pointer(p)).FszUncompressed, u32((*ZipfileCDS)(unsafe.Pointer(p)).FnFile),
- u32((*ZipfileCDS)(unsafe.Pointer(p)).FnExtra), u32((*ZipfileCDS)(unsafe.Pointer(p)).FnComment),
- u32((*ZipfileCDS)(unsafe.Pointer(p)).FiDiskStart), u32((*ZipfileCDS)(unsafe.Pointer(p)).FiInternalAttr),
+ (*ZipfileCDS)(unsafe.Pointer(p)).FszUncompressed, u321((*ZipfileCDS)(unsafe.Pointer(p)).FnFile),
+ u321((*ZipfileCDS)(unsafe.Pointer(p)).FnExtra), u321((*ZipfileCDS)(unsafe.Pointer(p)).FnComment),
+ u321((*ZipfileCDS)(unsafe.Pointer(p)).FiDiskStart), u321((*ZipfileCDS)(unsafe.Pointer(p)).FiInternalAttr),
(*ZipfileCDS)(unsafe.Pointer(p)).FiExternalAttr, (*ZipfileCDS)(unsafe.Pointer(p)).FiOffset))
if zRes == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
} else {
- sqlite3.Xsqlite3_result_text(tls, context, zRes, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, zRes, -1, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3_free(tls, zRes)
}
}
}
// xFindFunction method.
-func zipfileFindFunction(tls *crt.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* zipfile.c:1878:12: */
- if sqlite3.Xsqlite3_stricmp(tls, ts+8478 /* "zipfile_cds" */, zName) == 0 {
+func zipfileFindFunction(tls *libc.TLS, pVtab uintptr, nArg int32, zName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* zipfile.c:1878:12: */
+ if sqlite3.Xsqlite3_stricmp(tls, ts+9763 /* "zipfile_cds" */, zName) == 0 {
*(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{zipfileFunctionCds}))
*(*uintptr)(unsafe.Pointer(ppArg)) = pVtab
return 1
@@ -30059,7 +33680,7 @@ type ZipfileCtx1 = struct {
type ZipfileCtx = ZipfileCtx1 /* zipfile.c:1900:27 */
-func zipfileBufferGrow(tls *crt.TLS, pBuf uintptr, nByte int32) int32 { /* zipfile.c:1907:12: */
+func zipfileBufferGrow(tls *libc.TLS, pBuf uintptr, nByte int32) int32 { /* zipfile.c:1907:12: */
if ((*ZipfileBuffer)(unsafe.Pointer(pBuf)).Fn + nByte) > (*ZipfileBuffer)(unsafe.Pointer(pBuf)).FnAlloc {
var aNew uintptr
var nNew sqlite3_int64
@@ -30089,7 +33710,7 @@ func zipfileBufferGrow(tls *crt.TLS, pBuf uintptr, nByte int32) int32 { /* zipfi
// SELECT zipfile(name,data) ...
// SELECT zipfile(name,mode,mtime,data) ...
// SELECT zipfile(name,mode,mtime,data,method) ...
-func zipfileStep(tls *crt.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* zipfile.c:1930:6: */
+func zipfileStep(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* zipfile.c:1930:6: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -30103,7 +33724,7 @@ func zipfileStep(tls *crt.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* zip
var pData uintptr
var pMethod uintptr
var bIsDir int32
- // var mode u32 at bp+160, 8
+ // var mode u321 at bp+160, 8
var rc int32
// var zErr uintptr at bp+152, 8
@@ -30115,7 +33736,7 @@ func zipfileStep(tls *crt.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* zip
var szUncompressed int32 // Size of data before compression
// var aFree uintptr at bp+136, 8
// Free this before returning
- var iCrc32 u32 // crc32 of uncompressed data
+ var iCrc32 u321 // crc32 of uncompressed data
var zName uintptr // Path (name) of new entry
var nName int32 // Size of zName in bytes
@@ -30140,7 +33761,7 @@ func zipfileStep(tls *crt.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* zip
nName = 0
zFree = uintptr(0)
- crt.Xmemset(tls, bp+16 /* &e */, 0, uint64(unsafe.Sizeof(ZipfileEntry{})))
+ libc.Xmemset(tls, bp+16 /* &e */, 0, uint64(unsafe.Sizeof(ZipfileEntry{})))
p = sqlite3.Xsqlite3_aggregate_context(tls, pCtx, int32(unsafe.Sizeof(ZipfileCtx{})))
if !(p == uintptr(0)) {
goto __1
@@ -30153,7 +33774,7 @@ __1:
if !(((nVal != 2) && (nVal != 4)) && (nVal != 5)) {
goto __2
}
- *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+8490 /* "wrong number of ..." */, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+9775 /* "wrong number of ..." */, 0)
rc = 1
goto zipfile_step_out
__2:
@@ -30183,7 +33804,7 @@ __4:
if !(zName == uintptr(0)) {
goto __6
}
- *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+8538 /* "first argument t..." */, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+9823 /* "first argument t..." */, 0)
rc = 1
goto zipfile_step_out
__6:
@@ -30198,7 +33819,7 @@ __6:
if !((iMethod != 0) && (iMethod != 8)) {
goto __8
}
- *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+8583 /* "illegal method v..." */, crt.VaList(bp, iMethod))
+ *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+9868 /* "illegal method v..." */, libc.VaList(bp, iMethod))
rc = 1
goto zipfile_step_out
__8:
@@ -30217,7 +33838,7 @@ __7:
goto __10
__9:
aData = sqlite3.Xsqlite3_value_blob(tls, pData)
- szUncompressed = crt.AssignInt32(&nData, sqlite3.Xsqlite3_value_bytes(tls, pData))
+ szUncompressed = libc.AssignInt32(&nData, sqlite3.Xsqlite3_value_bytes(tls, pData))
iCrc32 = tcl.Xcrc32(tls, uint64(0), aData, uint32(nData))
if !((iMethod < 0) || (iMethod == 8)) {
goto __11
@@ -30267,7 +33888,7 @@ __15:
if !((nName > 0) && (int32(*(*int8)(unsafe.Pointer(zName + uintptr((nName - 1))))) == '/')) {
goto __18
}
- *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+8608 /* "non-directory na..." */, 0)
+ *(*uintptr)(unsafe.Pointer(bp + 152 /* zErr */)) = sqlite3.Xsqlite3_mprintf(tls, ts+9893 /* "non-directory na..." */, 0)
rc = 1
goto zipfile_step_out
__18:
@@ -30277,7 +33898,7 @@ __16:
if !((nName == 0) || (int32(*(*int8)(unsafe.Pointer(zName + uintptr((nName - 1))))) != '/')) {
goto __19
}
- zName = crt.AssignUintptr(&zFree, sqlite3.Xsqlite3_mprintf(tls, ts+8111 /* "%s/" */, crt.VaList(bp+8, zName)))
+ zName = libc.AssignUintptr(&zFree, sqlite3.Xsqlite3_mprintf(tls, ts+9396 /* "%s/" */, libc.VaList(bp+8, zName)))
if !(zName == uintptr(0)) {
goto __21
}
@@ -30285,7 +33906,7 @@ __16:
goto zipfile_step_out
__21:
;
- nName = int32(crt.Xstrlen(tls, zName))
+ nName = int32(libc.Xstrlen(tls, zName))
goto __20
__19:
__22:
@@ -30308,16 +33929,16 @@ __17:
(*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FiCompression = u16(iMethod)
zipfileMtimeToDos(tls, (bp + 16 /* &e */ /* &.cds */), (*ZipfileEntry)(unsafe.Pointer(bp+16 /* &e */)).FmUnixTime)
(*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.Fcrc32 = iCrc32
- (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FszCompressed = u32(nData)
- (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FszUncompressed = u32(szUncompressed)
- (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FiExternalAttr = (*(*u32)(unsafe.Pointer(bp + 160 /* mode */)) << 16)
- (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FiOffset = u32((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)
+ (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FszCompressed = u321(nData)
+ (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FszUncompressed = u321(szUncompressed)
+ (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FiExternalAttr = (*(*u321)(unsafe.Pointer(bp + 160 /* mode */)) << 16)
+ (*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FiOffset = u321((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)
(*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FnFile = u16(nName)
(*ZipfileEntry)(unsafe.Pointer(bp + 16 /* &e */)).Fcds.FzFile = zName
// Append the LFH to the body of the new archive
nByte = ((30 + int32((*ZipfileEntry)(unsafe.Pointer(bp+16 /* &e */)).Fcds.FnFile)) + 9)
- if !(crt.AssignInt32(&rc, zipfileBufferGrow(tls, (p+8 /* &.body */), nByte)) != 0) {
+ if !(libc.AssignInt32(&rc, zipfileBufferGrow(tls, (p+8 /* &.body */), nByte)) != 0) {
goto __24
}
goto zipfile_step_out
@@ -30329,20 +33950,20 @@ __24:
if !(nData > 0) {
goto __25
}
- if !(crt.AssignInt32(&rc, zipfileBufferGrow(tls, (p+8 /* &.body */), nData)) != 0) {
+ if !(libc.AssignInt32(&rc, zipfileBufferGrow(tls, (p+8 /* &.body */), nData)) != 0) {
goto __26
}
goto zipfile_step_out
__26:
;
- crt.Xmemcpy(tls, ((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fa + uintptr((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)), aData, uint64(nData))
+ libc.Xmemcpy(tls, ((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fa + uintptr((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)), aData, uint64(nData))
*(*int32)(unsafe.Pointer(p + 8 /* &.body */ + 8 /* &.n */)) += (nData)
__25:
;
// Append the CDS record to the directory of the new archive
nByte = ((46 + int32((*ZipfileEntry)(unsafe.Pointer(bp+16 /* &e */)).Fcds.FnFile)) + 9)
- if !(crt.AssignInt32(&rc, zipfileBufferGrow(tls, (p+24 /* &.cds */), nByte)) != 0) {
+ if !(libc.AssignInt32(&rc, zipfileBufferGrow(tls, (p+24 /* &.cds */), nByte)) != 0) {
goto __27
}
goto zipfile_step_out
@@ -30374,7 +33995,7 @@ __28:
}
// xFinalize() callback for zipfile aggregate function.
-func zipfileFinal(tls *crt.TLS, pCtx uintptr) { /* zipfile.c:2105:6: */
+func zipfileFinal(tls *libc.TLS, pCtx uintptr) { /* zipfile.c:2105:6: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -30389,21 +34010,21 @@ func zipfileFinal(tls *crt.TLS, pCtx uintptr) { /* zipfile.c:2105:6: */
return
}
if (*ZipfileCtx)(unsafe.Pointer(p)).FnEntry > 0 {
- crt.Xmemset(tls, bp /* &eocd */, 0, uint64(unsafe.Sizeof(ZipfileEOCD{})))
+ libc.Xmemset(tls, bp /* &eocd */, 0, uint64(unsafe.Sizeof(ZipfileEOCD{})))
(*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnEntry = u16((*ZipfileCtx)(unsafe.Pointer(p)).FnEntry)
(*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnEntryTotal = u16((*ZipfileCtx)(unsafe.Pointer(p)).FnEntry)
- (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnSize = u32((*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fn)
- (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FiOffset = u32((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)
+ (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FnSize = u321((*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fn)
+ (*ZipfileEOCD)(unsafe.Pointer(bp /* &eocd */)).FiOffset = u321((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)
nZip = (sqlite3_int64(((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn + (*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fn) + 22))
aZip = sqlite3.Xsqlite3_malloc64(tls, uint64(nZip))
if aZip == uintptr(0) {
sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
} else {
- crt.Xmemcpy(tls, aZip, (*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fa, uint64((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn))
- crt.Xmemcpy(tls, (aZip + uintptr((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)), (*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fa, uint64((*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fn))
+ libc.Xmemcpy(tls, aZip, (*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fa, uint64((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn))
+ libc.Xmemcpy(tls, (aZip + uintptr((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn)), (*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fa, uint64((*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fn))
zipfileSerializeEOCD(tls, bp /* &eocd */, (aZip + uintptr(((*ZipfileCtx)(unsafe.Pointer(p)).Fbody.Fn + (*ZipfileCtx)(unsafe.Pointer(p)).Fcds.Fn))))
- sqlite3.Xsqlite3_result_blob(tls, pCtx, aZip, int32(nZip), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{zipfileFree})))
+ sqlite3.Xsqlite3_result_blob(tls, pCtx, aZip, int32(nZip), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{zipfileFree})))
}
}
@@ -30412,17 +34033,17 @@ func zipfileFinal(tls *crt.TLS, pCtx uintptr) { /* zipfile.c:2105:6: */
}
// Register the "zipfile" virtual table.
-func zipfileRegister(tls *crt.TLS, db uintptr) int32 { /* zipfile.c:2140:12: */
+func zipfileRegister(tls *libc.TLS, db uintptr) int32 { /* zipfile.c:2140:12: */
- var rc int32 = sqlite3.Xsqlite3_create_module(tls, db, ts+7549 /* "zipfile" */, uintptr(unsafe.Pointer(&zipfileModule)), uintptr(0))
+ var rc int32 = sqlite3.Xsqlite3_create_module(tls, db, ts+8834 /* "zipfile" */, uintptr(unsafe.Pointer(&zipfileModule)), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_overload_function(tls, db, ts+8478 /* "zipfile_cds" */, -1)
+ rc = sqlite3.Xsqlite3_overload_function(tls, db, ts+9763 /* "zipfile_cds" */, -1)
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+7549 /* "zipfile" */, -1, 1, uintptr(0), uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+8834 /* "zipfile" */, -1, 1, uintptr(0), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{zipfileStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{zipfileFinal})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{zipfileStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{zipfileFinal})))
}
return rc
}
@@ -30449,27 +34070,401 @@ uintptr(0), FxCommit:// xSync
uintptr(0), // xRename
} /* zipfile.c:2141:25 */
-func sqlite3_zipfile_init(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* zipfile.c:2180:5: */
+func sqlite3_zipfile_init(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* zipfile.c:2180:5: */
_ = pApi
_ = pzErrMsg // Unused parameter
return zipfileRegister(tls, db)
}
-//
-// END OF REGISTRATION API
-//
+func test_rbu_delta(tls *libc.TLS, pCtx uintptr, nArg int32, apVal uintptr) { /* test_rbu.c:34:6: */
+ var interp uintptr = sqlite3.Xsqlite3_user_data(tls, pCtx)
+ var pScript uintptr
+ var i int32
-//******* End of fts5.h ********
+ pScript = tcl.XTcl_NewObj(tls)
+ (*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pScript, tcl.XTcl_NewStringObj(tls, ts+9932 /* "rbu_delta" */, -1))
+ for i = 0; i < nArg; i++ {
+ var pIn uintptr = *(*uintptr)(unsafe.Pointer(apVal + uintptr(i)*8))
+ var z uintptr = sqlite3.Xsqlite3_value_text(tls, pIn)
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pScript, tcl.XTcl_NewStringObj(tls, z, -1))
+ }
-// end block for C++
+ if 0 == tcl.XTcl_EvalObjEx(tls, interp, pScript, 1) {
+ var z uintptr = tcl.XTcl_GetStringResult(tls, interp)
+ sqlite3.Xsqlite3_result_text(tls, pCtx, z, -1, libc.UintptrFromInt32(-1))
+ } else {
+ tcl.XTcl_BackgroundError(tls, interp)
+ }
-// Local Variables:
-// mode: c
-// c-basic-offset: 4
-// fill-column: 78
-// End:
-func SqliteRbu_Init(tls *crt.TLS, interp uintptr) int32 { /* test_rbu.c:389:5: */ return 0 }
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pScript
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+}
+
+func test_sqlite3rbu_cmd(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_rbu.c:59:26: */
+ bp := tls.Alloc(496)
+ defer tls.Free(496)
+
+ var ret int32 = 0
+ var pRbu uintptr = clientData
+ *(*[14]RbuCmd)(unsafe.Pointer(bp + 24 /* aCmd */)) = [14]RbuCmd{
+ {FzName: ts + 9942 /* "step" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 0
+ {FzName: ts + 9947 /* "close" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 1
+ {FzName: ts + 9953 /* "create_rbu_delta" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 2
+ {FzName: ts + 9970 /* "savestate" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 3
+ {FzName: ts + 9980 /* "dbMain_eval" */, FnArg: 3, FzUsage: ts + 9992 /* "SQL" */}, // 4
+ {FzName: ts + 9996 /* "bp_progress" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 5
+ {FzName: ts + 10008 /* "db" */, FnArg: 3, FzUsage: ts + 10011 /* "RBU" */}, // 6
+ {FzName: ts + 10015 /* "state" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 7
+ {FzName: ts + 10021 /* "progress" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 8
+ {FzName: ts + 10030 /* "close_no_error" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 9
+ {FzName: ts + 10045 /* "temp_size_limit" */, FnArg: 3, FzUsage: ts + 10061 /* "LIMIT" */}, // 10
+ {FzName: ts + 10067 /* "temp_size" */, FnArg: 2, FzUsage: ts + 488 /* "" */}, // 11
+ {FzName: ts + 10077 /* "dbRbu_eval" */, FnArg: 3, FzUsage: ts + 9992 /* "SQL" */}, // 12
+ {FzName: uintptr(0), FnArg: 0, FzUsage: uintptr(0)},
+ }
+ // var iCmd int32 at bp+360, 4
+
+ if objc < 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10088 /* "METHOD" */)
+ return 1
+ }
+ ret = tcl.XTcl_GetIndexFromObjStruct(tls,
+ interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+24 /* &aCmd[0] */, int32(unsafe.Sizeof(RbuCmd{})), ts+10095 /* "method" */, 0, bp+360 /* &iCmd */)
+ if ret != 0 {
+ return 1
+ }
+ if objc != (*RbuCmd)(unsafe.Pointer(bp+24 /* &aCmd */ +uintptr(*(*int32)(unsafe.Pointer(bp + 360 /* iCmd */)))*24)).FnArg {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, (*RbuCmd)(unsafe.Pointer(bp+24 /* &aCmd */ +uintptr(*(*int32)(unsafe.Pointer(bp + 360 /* iCmd */)))*24)).FzUsage)
+ return 1
+ }
+
+ switch *(*int32)(unsafe.Pointer(bp + 360 /* iCmd */)) {
+ case 0: /* step */
+ {
+ var rc int32 = sqlite3.Xsqlite3rbu_step(tls, pRbu)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ break
+ }
+
+ case 9:
+ fallthrough /* close_no_error */
+ case 1: /* close */
+ {
+ *(*uintptr)(unsafe.Pointer(bp + 368 /* zErrmsg */)) = uintptr(0)
+ var rc int32
+ tcl.XTcl_DeleteCommand(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))))
+ if *(*int32)(unsafe.Pointer(bp + 360 /* iCmd */)) == 1 {
+ rc = sqlite3.Xsqlite3rbu_close(tls, pRbu, bp+368 /* &zErrmsg */)
+ } else {
+ rc = sqlite3.Xsqlite3rbu_close(tls, pRbu, uintptr(0))
+ }
+ if (rc == 0) || (rc == 101) {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ } else {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ if *(*uintptr)(unsafe.Pointer(bp + 368 /* zErrmsg */)) != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+10102 /* " - " */, *(*uintptr)(unsafe.Pointer(bp + 368 /* zErrmsg */)), 0))
+ sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 368 /* zErrmsg */)))
+ }
+ ret = 1
+ }
+ break
+ }
+
+ case 2: /* create_rbu_delta */
+ {
+ var db uintptr = sqlite3.Xsqlite3rbu_db(tls, pRbu, 0)
+ var rc int32 = sqlite3.Xsqlite3_create_function(tls,
+ db, ts+9932 /* "rbu_delta" */, -1, 1, interp, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{test_rbu_delta})), uintptr(0), uintptr(0))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ ret = func() int32 {
+ if rc == 0 {
+ return 0
+ }
+ return 1
+ }()
+ break
+ }
+
+ case 3: /* savestate */
+ {
+ var rc int32 = sqlite3.Xsqlite3rbu_savestate(tls, pRbu)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ ret = func() int32 {
+ if rc == 0 {
+ return 0
+ }
+ return 1
+ }()
+ break
+ }
+
+ case 12:
+ fallthrough /* dbRbu_eval */
+ case 4: /* dbMain_eval */
+ {
+ var db uintptr = sqlite3.Xsqlite3rbu_db(tls, pRbu, (libc.Bool32(*(*int32)(unsafe.Pointer(bp + 360 /* iCmd */)) == 12)))
+ var rc int32 = sqlite3.Xsqlite3_exec(tls, db, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), uintptr(0), uintptr(0), uintptr(0))
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3_errmsg(tls, db), -1))
+ ret = 1
+ }
+ break
+ }
+
+ case 5: /* bp_progress */
+ {
+ // var one int32 at bp+376, 4
+
+ // var two int32 at bp+380, 4
+
+ var pObj uintptr
+ sqlite3.Xsqlite3rbu_bp_progress(tls, pRbu, bp+376 /* &one */, bp+380 /* &two */)
+
+ pObj = tcl.XTcl_NewObj(tls)
+ tcl.XTcl_ListObjAppendElement(tls, interp, pObj, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 376 /* one */))))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pObj, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 380 /* two */))))
+ tcl.XTcl_SetObjResult(tls, interp, pObj)
+ break
+ }
+
+ case 6: /* db */
+ {
+ // var bArg int32 at bp+384, 4
+
+ if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+384 /* &bArg */) != 0 {
+ ret = 1
+ } else {
+ // var zBuf [50]int8 at bp+388, 50
+
+ var db uintptr = sqlite3.Xsqlite3rbu_db(tls, pRbu, *(*int32)(unsafe.Pointer(bp + 384 /* bArg */)))
+ if sqlite3TestMakePointerStr(tls, interp, bp+388 /* &zBuf[0] */, db) != 0 {
+ ret = 1
+ } else {
+ tcl.XTcl_SetResult(tls, interp, bp+388 /* &zBuf[0] */, uintptr(1))
+ }
+ }
+ break
+ }
+ case 7: /* state */
+ {
+ *(*[6]uintptr)(unsafe.Pointer(bp + 440 /* aRes */)) = [6]uintptr{uintptr(0), ts + 10106 /* "oal" */, ts + 10110 /* "move" */, ts + 10115 /* "checkpoint" */, ts + 10126 /* "done" */, ts + 10131 /* "error" */}
+ var eState int32 = sqlite3.Xsqlite3rbu_state(tls, pRbu)
+
+ tcl.XTcl_SetResult(tls, interp, *(*uintptr)(unsafe.Pointer(bp + 440 /* &aRes[0] */ + uintptr(eState)*8)), uintptr(0))
+ break
+ }
+ case 8: /* progress */
+ {
+ var nStep sqlite3_int64 = sqlite3.Xsqlite3rbu_progress(tls, pRbu)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(nStep)))
+ break
+ }
+
+ case 10: /* temp_size_limit */
+ {
+ // var nLimit sqlite3_int64 at bp+488, 8
+
+ if tcl.XTcl_GetWideIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+488 /* &nLimit */) != 0 {
+ ret = 1
+ } else {
+ *(*sqlite3_int64)(unsafe.Pointer(bp + 488 /* nLimit */)) = sqlite3.Xsqlite3rbu_temp_size_limit(tls, pRbu, *(*sqlite3_int64)(unsafe.Pointer(bp + 488 /* nLimit */)))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(*(*sqlite3_int64)(unsafe.Pointer(bp + 488 /* nLimit */)))))
+ }
+ break
+ }
+ case 11: /* temp_size */
+ {
+ var sz sqlite3_int64 = sqlite3.Xsqlite3rbu_temp_size(tls, pRbu)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(sz)))
+ break
+ }
+
+ default: // seems unlikely
+
+ break
+ }
+
+ return ret
+}
+
+type RbuCmd = struct {
+ FzName uintptr
+ FnArg int32
+ FzUsage uintptr
+}
+
+// Tclcmd: sqlite3rbu CMD <target-db> <rbu-db> ?<state-db>?
+func test_sqlite3rbu(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_rbu.c:228:26: */
+ var pRbu uintptr = uintptr(0)
+ var zCmd uintptr
+ var zTarget uintptr
+ var zRbu uintptr
+ var zStateDb uintptr = uintptr(0)
+
+ if (objc != 4) && (objc != 5) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10137 /* "NAME TARGET-DB R..." */)
+ return 1
+ }
+ zCmd = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
+ zTarget = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+ zRbu = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
+ if objc == 5 {
+ zStateDb = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)))
+ }
+
+ pRbu = sqlite3.Xsqlite3rbu_open(tls, zTarget, zRbu, zStateDb)
+ tcl.XTcl_CreateObjCommand(tls, interp, zCmd, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{test_sqlite3rbu_cmd})), pRbu, uintptr(0))
+ tcl.XTcl_SetObjResult(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
+ return 0
+}
+
+// Tclcmd: sqlite3rbu_vacuum CMD <target-db> <state-db>
+func test_sqlite3rbu_vacuum(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_rbu.c:258:26: */
+ var pRbu uintptr = uintptr(0)
+ var zCmd uintptr
+ var zTarget uintptr
+ var zStateDb uintptr = uintptr(0)
+
+ if (objc != 3) && (objc != 4) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10170 /* "NAME TARGET-DB ?..." */)
+ return 1
+ }
+ zCmd = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
+ zTarget = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+ if objc == 4 {
+ zStateDb = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
+ }
+ if (zStateDb != 0) && (int32(*(*int8)(unsafe.Pointer(zStateDb + uintptr(0)))) == 0) {
+ zStateDb = uintptr(0)
+ }
+
+ pRbu = sqlite3.Xsqlite3rbu_vacuum(tls, zTarget, zStateDb)
+ tcl.XTcl_CreateObjCommand(tls, interp, zCmd, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{test_sqlite3rbu_cmd})), pRbu, uintptr(0))
+ tcl.XTcl_SetObjResult(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
+ return 0
+}
+
+// Tclcmd: sqlite3rbu_create_vfs ?-default? NAME PARENT
+func test_sqlite3rbu_create_vfs(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_rbu.c:287:26: */
+ var zName uintptr
+ var zParent uintptr
+ var rc int32
+
+ if (objc != 3) && (objc != 4) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10196 /* "?-default? NAME ..." */)
+ return 1
+ }
+
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-2))*8)))
+ zParent = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-1))*8)))
+ if int32(*(*int8)(unsafe.Pointer(zParent + uintptr(0)))) == 0 {
+ zParent = uintptr(0)
+ }
+
+ rc = sqlite3.Xsqlite3rbu_create_vfs(tls, zName, zParent)
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ return 1
+ } else if objc == 4 {
+ var pVfs uintptr = sqlite3.Xsqlite3_vfs_find(tls, zName)
+ sqlite3.Xsqlite3_vfs_register(tls, pVfs, 1)
+ }
+
+ tcl.XTcl_ResetResult(tls, interp)
+ return 0
+}
+
+// Tclcmd: sqlite3rbu_destroy_vfs NAME
+func test_sqlite3rbu_destroy_vfs(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_rbu.c:322:26: */
+ var zName uintptr
+
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10219 /* "NAME" */)
+ return 1
+ }
+
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
+ sqlite3.Xsqlite3rbu_destroy_vfs(tls, zName)
+ return 0
+}
+
+// Tclcmd: sqlite3rbu_internal_test
+func test_sqlite3rbu_internal_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_rbu.c:343:26: */
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+
+ var db uintptr
+
+ if objc != 1 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
+ return 1
+ }
+
+ db = sqlite3.Xsqlite3rbu_db(tls, uintptr(0), 0)
+ if db != uintptr(0) {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+10224 /* "sqlite3rbu_db(0,..." */, 0))
+ return 1
+ }
+
+ return 0
+}
+
+func SqliteRbu_Init(tls *libc.TLS, interp uintptr) int32 { /* test_rbu.c:365:5: */
+ var i int32
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd)) / uint64(unsafe.Sizeof(struct {
+ FzName uintptr
+ FxProc uintptr
+ }{}))); i++ {
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd[i].FzName, aObjCmd[i].FxProc, uintptr(0), uintptr(0))
+ }
+ return 0
+}
+
+var aObjCmd = [5]struct {
+ FzName uintptr
+ FxProc uintptr
+}{
+ {FzName: ts + 10247 /* "sqlite3rbu" */, FxProc: 0},
+ {FzName: ts + 10258 /* "sqlite3rbu_vacuu..." */, FxProc: 0},
+ {FzName: ts + 10276 /* "sqlite3rbu_creat..." */, FxProc: 0},
+ {FzName: ts + 10298 /* "sqlite3rbu_destr..." */, FxProc: 0},
+ {FzName: ts + 10321 /* "sqlite3rbu_inter..." */, FxProc: 0},
+} /* test_rbu.c:369:5 */
+
+// 2014-09-08
+//
+// The author disclaims copyright to this source code. In place of
+// a legal notice, here is a blessing:
+//
+// May you do good and not evil.
+// May you find forgiveness for yourself and forgive others.
+// May you share freely, never taking more than you give.
+//
+//
+//
+// This file contains the bulk of the implementation of the
+// user-authentication extension feature. Some parts of the user-
+// authentication code are contained within the SQLite core (in the
+// src/ subdirectory of the main source code tree) but those parts
+// that could reasonable be separated out are moved into this file.
+//
+// To compile with the user-authentication feature, append this file to
+// end of an SQLite amalgamation, then add the SQLITE_USER_AUTHENTICATION
+// compile-time option. See the user-auth.txt file in the same source
+// directory as this file for additional information.
// Used to get the current process ID
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
@@ -31415,7 +35410,7 @@ type IncrblobChannel = IncrblobChannel1 /* tclsqlite.c:142:32 */
// Compute a string length that is limited to what can be stored in
// lower 30 bits of a 32-bit signed integer.
-func strlen30(tls *crt.TLS, z uintptr) int32 { /* tclsqlite.c:202:12: */
+func strlen30(tls *libc.TLS, z uintptr) int32 { /* tclsqlite.c:202:12: */
var z2 uintptr = z
for *(*int8)(unsafe.Pointer(z2)) != 0 {
z2++
@@ -31425,7 +35420,7 @@ func strlen30(tls *crt.TLS, z uintptr) int32 { /* tclsqlite.c:202:12: */
// Close all incrblob channels opened using database connection pDb.
// This is called when shutting down the database connection.
-func closeIncrblobChannels(tls *crt.TLS, pDb uintptr) { /* tclsqlite.c:214:13: */
+func closeIncrblobChannels(tls *libc.TLS, pDb uintptr) { /* tclsqlite.c:214:13: */
var p uintptr
var pNext uintptr
@@ -31440,7 +35435,7 @@ func closeIncrblobChannels(tls *crt.TLS, pDb uintptr) { /* tclsqlite.c:214:13: *
}
// Close an incremental blob channel.
-func incrblobClose(tls *crt.TLS, instanceData ClientData, interp uintptr) int32 { /* tclsqlite.c:232:26: */
+func incrblobClose(tls *libc.TLS, instanceData ClientData, interp uintptr) int32 { /* tclsqlite.c:232:26: */
var p uintptr = instanceData
var rc int32 = sqlite3.Xsqlite3_blob_close(tls, (*IncrblobChannel)(unsafe.Pointer(p)).FpBlob)
var db uintptr = (*SqliteDb)(unsafe.Pointer((*IncrblobChannel)(unsafe.Pointer(p)).FpDb)).Fdb
@@ -31467,7 +35462,7 @@ func incrblobClose(tls *crt.TLS, instanceData ClientData, interp uintptr) int32
}
// Read data from an incremental blob channel.
-func incrblobInput(tls *crt.TLS, instanceData ClientData, buf uintptr, bufSize int32, errorCodePtr uintptr) int32 { /* tclsqlite.c:264:26: */
+func incrblobInput(tls *libc.TLS, instanceData ClientData, buf uintptr, bufSize int32, errorCodePtr uintptr) int32 { /* tclsqlite.c:264:26: */
var p uintptr = instanceData
var nRead int32 = bufSize // Number of bytes to read
var nBlob int32 // Total size of the blob
@@ -31492,7 +35487,7 @@ func incrblobInput(tls *crt.TLS, instanceData ClientData, buf uintptr, bufSize i
}
// Write data to an incremental blob channel.
-func incrblobOutput(tls *crt.TLS, instanceData ClientData, buf uintptr, toWrite int32, errorCodePtr uintptr) int32 { /* tclsqlite.c:296:26: */
+func incrblobOutput(tls *libc.TLS, instanceData ClientData, buf uintptr, toWrite int32, errorCodePtr uintptr) int32 { /* tclsqlite.c:296:26: */
var p uintptr = instanceData
var nWrite int32 = toWrite // Number of bytes to write
var nBlob int32 // Total size of the blob
@@ -31518,7 +35513,7 @@ func incrblobOutput(tls *crt.TLS, instanceData ClientData, buf uintptr, toWrite
}
// Seek an incremental blob channel.
-func incrblobSeek(tls *crt.TLS, instanceData ClientData, offset int64, seekMode int32, errorCodePtr uintptr) int32 { /* tclsqlite.c:329:26: */
+func incrblobSeek(tls *libc.TLS, instanceData ClientData, offset int64, seekMode int32, errorCodePtr uintptr) int32 { /* tclsqlite.c:329:26: */
var p uintptr = instanceData
switch seekMode {
@@ -31538,14 +35533,14 @@ func incrblobSeek(tls *crt.TLS, instanceData ClientData, offset int64, seekMode
return (*IncrblobChannel)(unsafe.Pointer(p)).FiSeek
}
-func incrblobWatch(tls *crt.TLS, instanceData ClientData, mode int32) { /* tclsqlite.c:355:27: */
+func incrblobWatch(tls *libc.TLS, instanceData ClientData, mode int32) { /* tclsqlite.c:355:27: */
// NO-OP
}
-func incrblobHandle(tls *crt.TLS, instanceData ClientData, dir int32, hPtr uintptr) int32 { /* tclsqlite.c:361:26: */
+func incrblobHandle(tls *libc.TLS, instanceData ClientData, dir int32, hPtr uintptr) int32 { /* tclsqlite.c:361:26: */
return 1
}
-var IncrblobChannelType = Tcl_ChannelType{FtypeName: ts + 8647 /* "incrblob" */, Fversion: // typeName
+var IncrblobChannelType = Tcl_ChannelType{FtypeName: ts + 10346 /* "incrblob" */, Fversion: // typeName
uintptr(0x2), FcloseProc:// version
0, FinputProc:// closeProc
0, FoutputProc:// inputProc
@@ -31563,7 +35558,7 @@ uintptr(0), // wideSeekProc
} /* tclsqlite.c:369:24 */
// Create a new incrblob channel.
-func createIncrblobChannel(tls *crt.TLS, interp uintptr, pDb uintptr, zDb uintptr, zTable uintptr, zColumn uintptr, iRow sqlite_int64, isReadonly int32) int32 { /* tclsqlite.c:390:12: */
+func createIncrblobChannel(tls *libc.TLS, interp uintptr, pDb uintptr, zDb uintptr, zTable uintptr, zColumn uintptr, iRow sqlite_int64, isReadonly int32) int32 { /* tclsqlite.c:390:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -31580,7 +35575,7 @@ func createIncrblobChannel(tls *crt.TLS, interp uintptr, pDb uintptr, zDb uintpt
}()))
// var zChannel [64]int8 at bp+16, 64
- rc = sqlite3.Xsqlite3_blob_open(tls, db, zDb, zTable, zColumn, iRow, crt.BoolInt32(!(isReadonly != 0)), bp+8 /* &pBlob */)
+ rc = sqlite3.Xsqlite3_blob_open(tls, db, zDb, zTable, zColumn, iRow, libc.BoolInt32(!(isReadonly != 0)), bp+8 /* &pBlob */)
if rc != 0 {
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(1))
return 1
@@ -31590,7 +35585,7 @@ func createIncrblobChannel(tls *crt.TLS, interp uintptr, pDb uintptr, zDb uintpt
(*IncrblobChannel)(unsafe.Pointer(p)).FiSeek = 0
(*IncrblobChannel)(unsafe.Pointer(p)).FpBlob = *(*uintptr)(unsafe.Pointer(bp + 8 /* pBlob */))
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+16 /* &zChannel[0] */, ts+8656 /* "incrblob_%d" */, crt.VaList(bp, crt.PreIncInt32(&count, 1)))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+16 /* &zChannel[0] */, ts+10355 /* "incrblob_%d" */, libc.VaList(bp, libc.PreIncInt32(&count, 1)))
(*IncrblobChannel)(unsafe.Pointer(p)).Fchannel = tcl.XTcl_CreateChannel(tls, uintptr(unsafe.Pointer(&IncrblobChannelType)), bp+16 /* &zChannel[0] */, p, flags)
tcl.XTcl_RegisterChannel(tls, interp, (*IncrblobChannel)(unsafe.Pointer(p)).Fchannel)
@@ -31619,7 +35614,7 @@ var count int32 = 0 /* tclsqlite.c:406:14 */
// command name followed by zero or more arguments with no [...] or $
// or {...} or ; to be seen anywhere. Most callback scripts consist
// of just a single procedure name and they meet this requirement.
-func safeToUseEvalObjv(tls *crt.TLS, interp uintptr, pCmd uintptr) int32 { /* tclsqlite.c:451:12: */
+func safeToUseEvalObjv(tls *libc.TLS, interp uintptr, pCmd uintptr) int32 { /* tclsqlite.c:451:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -31630,8 +35625,8 @@ func safeToUseEvalObjv(tls *crt.TLS, interp uintptr, pCmd uintptr) int32 { /* tc
// var n int32 at bp, 4
z = tcl.XTcl_GetStringFromObj(tls, pCmd, bp /* &n */)
- for crt.PostDecInt32(&*(*int32)(unsafe.Pointer(bp /* n */)), 1) > 0 {
- var c int32 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1))))
+ for libc.PostDecInt32(&*(*int32)(unsafe.Pointer(bp /* n */)), 1) > 0 {
+ var c int32 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))
if ((c == '$') || (c == '[')) || (c == ';') {
return 0
}
@@ -31642,13 +35637,13 @@ func safeToUseEvalObjv(tls *crt.TLS, interp uintptr, pCmd uintptr) int32 { /* tc
// Find an SqlFunc structure with the given name. Or create a new
// one if an existing one cannot be found. Return a pointer to the
// structure.
-func findSqlFunc(tls *crt.TLS, pDb uintptr, zName uintptr) uintptr { /* tclsqlite.c:471:16: */
+func findSqlFunc(tls *libc.TLS, pDb uintptr, zName uintptr) uintptr { /* tclsqlite.c:471:16: */
var p uintptr
var pNew uintptr
var nName int32 = strlen30(tls, zName)
pNew = tcl.XTcl_Alloc(tls, (uint32((uint64(unsafe.Sizeof(SqlFunc{})) + uint64(nName)) + uint64(1))))
(*SqlFunc)(unsafe.Pointer(pNew)).FzName = (pNew + uintptr(1)*48)
- crt.Xmemcpy(tls, (*SqlFunc)(unsafe.Pointer(pNew)).FzName, zName, (uint64(nName + 1)))
+ libc.Xmemcpy(tls, (*SqlFunc)(unsafe.Pointer(pNew)).FzName, zName, (uint64(nName + 1)))
for p = (*SqliteDb)(unsafe.Pointer(pDb)).FpFunc; p != 0; p = (*SqlFunc)(unsafe.Pointer(p)).FpNext {
if sqlite3.Xsqlite3_stricmp(tls, (*SqlFunc)(unsafe.Pointer(p)).FzName, (*SqlFunc)(unsafe.Pointer(pNew)).FzName) == 0 {
tcl.XTcl_Free(tls, pNew)
@@ -31664,7 +35659,7 @@ func findSqlFunc(tls *crt.TLS, pDb uintptr, zName uintptr) uintptr { /* tclsqlit
}
// Free a single SqlPreparedStmt object.
-func dbFreeStmt(tls *crt.TLS, pStmt uintptr) { /* tclsqlite.c:494:13: */
+func dbFreeStmt(tls *libc.TLS, pStmt uintptr) { /* tclsqlite.c:494:13: */
if sqlite3.Xsqlite3_sql(tls, (*SqlPreparedStmt)(unsafe.Pointer(pStmt)).FpStmt) == uintptr(0) {
tcl.XTcl_Free(tls, (*SqlPreparedStmt)(unsafe.Pointer(pStmt)).FzSql)
}
@@ -31673,7 +35668,7 @@ func dbFreeStmt(tls *crt.TLS, pStmt uintptr) { /* tclsqlite.c:494:13: */
}
// Finalize and free a list of prepared statements
-func flushStmtCache(tls *crt.TLS, pDb uintptr) { /* tclsqlite.c:507:13: */
+func flushStmtCache(tls *libc.TLS, pDb uintptr) { /* tclsqlite.c:507:13: */
var pPreStmt uintptr
var pNext uintptr
@@ -31688,7 +35683,7 @@ func flushStmtCache(tls *crt.TLS, pDb uintptr) { /* tclsqlite.c:507:13: */
// TCL calls this procedure when an sqlite3 database command is
// deleted.
-func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
+func DbDeleteCmd(tls *libc.TLS, db uintptr) { /* tclsqlite.c:524:27: */
var pDb uintptr = db
flushStmtCache(tls, pDb)
closeIncrblobChannels(tls, pDb)
@@ -31699,7 +35694,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*SqlFunc)(unsafe.Pointer(pFunc)).FpScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31734,7 +35729,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
if (*SqliteDb)(unsafe.Pointer(pDb)).FpUpdateHook != 0 {
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).FpUpdateHook
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31742,7 +35737,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
if (*SqliteDb)(unsafe.Pointer(pDb)).FpPreUpdateHook != 0 {
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).FpPreUpdateHook
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31750,7 +35745,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
if (*SqliteDb)(unsafe.Pointer(pDb)).FpRollbackHook != 0 {
for ok3 := true; ok3; ok3 = 0 != 0 {
var _objPtr uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).FpRollbackHook
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31758,7 +35753,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
if (*SqliteDb)(unsafe.Pointer(pDb)).FpWalHook != 0 {
for ok4 := true; ok4; ok4 = 0 != 0 {
var _objPtr uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).FpWalHook
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31766,7 +35761,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
if (*SqliteDb)(unsafe.Pointer(pDb)).FpCollateNeeded != 0 {
for ok5 := true; ok5; ok5 = 0 != 0 {
var _objPtr uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).FpCollateNeeded
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31776,7 +35771,7 @@ func DbDeleteCmd(tls *crt.TLS, db uintptr) { /* tclsqlite.c:524:27: */
// This routine is called when a database file is locked while trying
// to execute SQL.
-func DbBusyHandler(tls *crt.TLS, cd uintptr, nTries int32) int32 { /* tclsqlite.c:584:12: */
+func DbBusyHandler(tls *libc.TLS, cd uintptr, nTries int32) int32 { /* tclsqlite.c:584:12: */
bp := tls.Alloc(70)
defer tls.Free(70)
@@ -31784,21 +35779,21 @@ func DbBusyHandler(tls *crt.TLS, cd uintptr, nTries int32) int32 { /* tclsqlite.
var rc int32
// var zVal [30]int8 at bp+40, 30
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+40 /* &zVal[0] */, ts+1237 /* "%d" */, crt.VaList(bp, nTries))
- rc = tcl.XTcl_VarEval(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, crt.VaList(bp+8, (*SqliteDb)(unsafe.Pointer(pDb)).FzBusy, ts+3368 /* " " */, bp+40 /* &zVal[0] */, uintptr(0)))
- if (rc != 0) || (crt.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)) != 0) {
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+40 /* &zVal[0] */, ts+1237 /* "%d" */, libc.VaList(bp, nTries))
+ rc = tcl.XTcl_VarEval(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, libc.VaList(bp+8, (*SqliteDb)(unsafe.Pointer(pDb)).FzBusy, ts+4585 /* " " */, bp+40 /* &zVal[0] */, uintptr(0)))
+ if (rc != 0) || (libc.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)) != 0) {
return 0
}
return 1
}
// This routine is invoked as the 'progress callback' for the database.
-func DbProgressHandler(tls *crt.TLS, cd uintptr) int32 { /* tclsqlite.c:601:12: */
+func DbProgressHandler(tls *libc.TLS, cd uintptr) int32 { /* tclsqlite.c:601:12: */
var pDb uintptr = cd
var rc int32
rc = tcl.XTcl_Eval(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, (*SqliteDb)(unsafe.Pointer(pDb)).FzProgress)
- if (rc != 0) || (crt.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)) != 0) {
+ if (rc != 0) || (libc.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)) != 0) {
return 1
}
return 0
@@ -31806,7 +35801,7 @@ func DbProgressHandler(tls *crt.TLS, cd uintptr) int32 { /* tclsqlite.c:601:12:
// This routine is called by the SQLite trace handler whenever a new
// block of SQL is executed. The TCL script in pDb->zTrace is executed.
-func DbTraceHandler(tls *crt.TLS, cd uintptr, zSql uintptr) { /* tclsqlite.c:620:13: */
+func DbTraceHandler(tls *libc.TLS, cd uintptr, zSql uintptr) { /* tclsqlite.c:620:13: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -31825,7 +35820,7 @@ func DbTraceHandler(tls *crt.TLS, cd uintptr, zSql uintptr) { /* tclsqlite.c:620
// supported event is generated. Unsupported event types are ignored.
// The TCL script in pDb->zTraceV2 is executed, with the arguments for
// the event appended to it (as list elements).
-func DbTraceV2Handler(tls *crt.TLS, type1 uint32, cd uintptr, pd uintptr, xd uintptr) int32 { /* tclsqlite.c:640:12: */
+func DbTraceV2Handler(tls *libc.TLS, type1 uint32, cd uintptr, pd uintptr, xd uintptr) int32 { /* tclsqlite.c:640:12: */
var pDb uintptr = cd
var pCmd uintptr
@@ -31844,7 +35839,7 @@ func DbTraceV2Handler(tls *crt.TLS, type1 uint32, cd uintptr, pd uintptr, xd uin
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pCmd, 0x040000)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31865,7 +35860,7 @@ func DbTraceV2Handler(tls *crt.TLS, type1 uint32, cd uintptr, pd uintptr, xd uin
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pCmd, 0x040000)
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31883,7 +35878,7 @@ func DbTraceV2Handler(tls *crt.TLS, type1 uint32, cd uintptr, pd uintptr, xd uin
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pCmd, 0x040000)
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31901,7 +35896,7 @@ func DbTraceV2Handler(tls *crt.TLS, type1 uint32, cd uintptr, pd uintptr, xd uin
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pCmd, 0x040000)
for ok3 := true; ok3; ok3 = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31914,7 +35909,7 @@ func DbTraceV2Handler(tls *crt.TLS, type1 uint32, cd uintptr, pd uintptr, xd uin
// This routine is called by the SQLite profile handler after a statement
// SQL has executed. The TCL script in pDb->zProfile is evaluated.
-func DbProfileHandler(tls *crt.TLS, cd uintptr, zSql uintptr, tm sqlite_uint64) { /* tclsqlite.c:715:13: */
+func DbProfileHandler(tls *libc.TLS, cd uintptr, zSql uintptr, tm1 sqlite_uint64) { /* tclsqlite.c:715:13: */
bp := tls.Alloc(328)
defer tls.Free(328)
@@ -31923,7 +35918,7 @@ func DbProfileHandler(tls *crt.TLS, cd uintptr, zSql uintptr, tm sqlite_uint64)
// var zTm [100]int8 at bp+8, 100
- sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof([100]int8{})) - uint64(1))), bp+8 /* &zTm[0] */, ts+8668 /* "%lld" */, crt.VaList(bp, tm))
+ sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof([100]int8{})) - uint64(1))), bp+8 /* &zTm[0] */, ts+10367 /* "%lld" */, libc.VaList(bp, tm1))
tcl.XTcl_DStringInit(tls, bp+112 /* &str */)
tcl.XTcl_DStringAppend(tls, bp+112 /* &str */, (*SqliteDb)(unsafe.Pointer(pDb)).FzProfile, -1)
tcl.XTcl_DStringAppendElement(tls, bp+112 /* &str */, zSql)
@@ -31937,18 +35932,18 @@ func DbProfileHandler(tls *crt.TLS, cd uintptr, zSql uintptr, tm sqlite_uint64)
// TCL script in pDb->zCommit is executed. If it returns non-zero or
// if it throws an exception, the transaction is rolled back instead
// of being committed.
-func DbCommitHandler(tls *crt.TLS, cd uintptr) int32 { /* tclsqlite.c:737:12: */
+func DbCommitHandler(tls *libc.TLS, cd uintptr) int32 { /* tclsqlite.c:737:12: */
var pDb uintptr = cd
var rc int32
rc = tcl.XTcl_Eval(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, (*SqliteDb)(unsafe.Pointer(pDb)).FzCommit)
- if (rc != 0) || (crt.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)) != 0) {
+ if (rc != 0) || (libc.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)) != 0) {
return 1
}
return 0
}
-func DbRollbackHandler(tls *crt.TLS, clientData uintptr) { /* tclsqlite.c:748:13: */
+func DbRollbackHandler(tls *libc.TLS, clientData uintptr) { /* tclsqlite.c:748:13: */
var pDb uintptr = clientData
if 0 != tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, (*SqliteDb)(unsafe.Pointer(pDb)).FpRollbackHook, 0) {
@@ -31957,7 +35952,7 @@ func DbRollbackHandler(tls *crt.TLS, clientData uintptr) { /* tclsqlite.c:748:13
}
// This procedure handles wal_hook callbacks.
-func DbWalHandler(tls *crt.TLS, clientData uintptr, db uintptr, zDb uintptr, nEntry int32) int32 { /* tclsqlite.c:759:12: */
+func DbWalHandler(tls *libc.TLS, clientData uintptr, db uintptr, zDb uintptr, nEntry int32) int32 { /* tclsqlite.c:759:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -31976,7 +35971,7 @@ func DbWalHandler(tls *crt.TLS, clientData uintptr, db uintptr, zDb uintptr, nEn
}
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = p
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -31984,19 +35979,19 @@ func DbWalHandler(tls *crt.TLS, clientData uintptr, db uintptr, zDb uintptr, nEn
return *(*int32)(unsafe.Pointer(bp /* ret */))
}
-func setTestUnlockNotifyVars(tls *crt.TLS, interp uintptr, iArg int32, nArg int32) { /* tclsqlite.c:787:13: */
+func setTestUnlockNotifyVars(tls *libc.TLS, interp uintptr, iArg int32, nArg int32) { /* tclsqlite.c:787:13: */
bp := tls.Alloc(80)
defer tls.Free(80)
// var zBuf [64]int8 at bp+16, 64
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+16 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp, iArg))
- tcl.XTcl_SetVar2(tls, interp, ts+8673 /* "sqlite_unlock_no..." */, uintptr(0), bp+16 /* &zBuf[0] */, 1)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+16 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+8, nArg))
- tcl.XTcl_SetVar2(tls, interp, ts+8698 /* "sqlite_unlock_no..." */, uintptr(0), bp+16 /* &zBuf[0] */, 1)
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+16 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp, iArg))
+ tcl.XTcl_SetVar2(tls, interp, ts+10372 /* "sqlite_unlock_no..." */, uintptr(0), bp+16 /* &zBuf[0] */, 1)
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([64]int8{})), bp+16 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+8, nArg))
+ tcl.XTcl_SetVar2(tls, interp, ts+10397 /* "sqlite_unlock_no..." */, uintptr(0), bp+16 /* &zBuf[0] */, 1)
}
-func DbUnlockNotify(tls *crt.TLS, apArg uintptr, nArg int32) { /* tclsqlite.c:799:13: */
+func DbUnlockNotify(tls *libc.TLS, apArg uintptr, nArg int32) { /* tclsqlite.c:799:13: */
var i int32
for i = 0; i < nArg; i++ {
var flags int32 = (0x020000 | 0x040000)
@@ -32006,7 +36001,7 @@ func DbUnlockNotify(tls *crt.TLS, apArg uintptr, nArg int32) { /* tclsqlite.c:79
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, (*SqliteDb)(unsafe.Pointer(pDb)).FpUnlockNotify, flags)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).FpUnlockNotify
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32014,28 +36009,51 @@ func DbUnlockNotify(tls *crt.TLS, apArg uintptr, nArg int32) { /* tclsqlite.c:79
}
}
-func DbUpdateHandler(tls *crt.TLS, p uintptr, op int32, zDb uintptr, zTbl uintptr, rowid sqlite_int64) { /* tclsqlite.c:849:13: */
+// Pre-update hook callback.
+func DbPreUpdateHandler(tls *libc.TLS, p uintptr, db uintptr, op int32, zDb uintptr, zTbl uintptr, iKey1 sqlite_int64, iKey2 sqlite_int64) { /* tclsqlite.c:817:13: */
var pDb uintptr = p
var pCmd uintptr
- pCmd = tcl.XTcl_DuplicateObj(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FpUpdateHook)
+ pCmd = tcl.XTcl_DuplicateObj(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FpPreUpdateHook)
(*Tcl_Obj)(unsafe.Pointer(pCmd)).FrefCount++
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewStringObj(tls, azStr[((op-1)/9)], -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewStringObj(tls, zDb, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewStringObj(tls, zTbl, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewWideIntObj(tls, int64(iKey1)))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewWideIntObj(tls, int64(iKey2)))
+ tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pCmd, 0x040000)
+ for ok := true; ok; ok = 0 != 0 {
+ var _objPtr uintptr = pCmd
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ tcl.XTclFreeObj(tls, _objPtr)
+ }
+ }
+}
+
+var azStr = [3]uintptr{ts + 10427 /* "DELETE" */, ts + 10434 /* "INSERT" */, ts + 10441 /* "UPDATE" */} /* tclsqlite.c:828:21 */
+
+func DbUpdateHandler(tls *libc.TLS, p uintptr, op int32, zDb uintptr, zTbl uintptr, rowid sqlite_int64) { /* tclsqlite.c:849:13: */
+ var pDb uintptr = p
+ var pCmd uintptr
+
+ pCmd = tcl.XTcl_DuplicateObj(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FpUpdateHook)
+ (*Tcl_Obj)(unsafe.Pointer(pCmd)).FrefCount++
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewStringObj(tls, azStr1[((op-1)/9)], -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewStringObj(tls, zDb, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewStringObj(tls, zTbl, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pCmd, tcl.XTcl_NewWideIntObj(tls, int64(rowid)))
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pCmd, 0x040000)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
}
-var azStr = [3]uintptr{ts + 8728 /* "DELETE" */, ts + 8735 /* "INSERT" */, ts + 8742 /* "UPDATE" */} /* tclsqlite.c:858:21 */
+var azStr1 = [3]uintptr{ts + 10427 /* "DELETE" */, ts + 10434 /* "INSERT" */, ts + 10441 /* "UPDATE" */} /* tclsqlite.c:858:21 */
-func tclCollateNeeded(tls *crt.TLS, pCtx uintptr, db uintptr, enc int32, zName uintptr) { /* tclsqlite.c:877:13: */
+func tclCollateNeeded(tls *libc.TLS, pCtx uintptr, db uintptr, enc int32, zName uintptr) { /* tclsqlite.c:877:13: */
var pDb uintptr = pCtx
var pScript uintptr = tcl.XTcl_DuplicateObj(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FpCollateNeeded)
(*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
@@ -32043,7 +36061,7 @@ func tclCollateNeeded(tls *crt.TLS, pCtx uintptr, db uintptr, enc int32, zName u
tcl.XTcl_EvalObjEx(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp, pScript, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32051,7 +36069,7 @@ func tclCollateNeeded(tls *crt.TLS, pCtx uintptr, db uintptr, enc int32, zName u
// This routine is called to evaluate an SQL collation function implemented
// using TCL script.
-func tclSqlCollate(tls *crt.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, zB uintptr) int32 { /* tclsqlite.c:895:12: */
+func tclSqlCollate(tls *libc.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, zB uintptr) int32 { /* tclsqlite.c:895:12: */
var p uintptr = pCtx
var pCmd uintptr
@@ -32062,16 +36080,16 @@ func tclSqlCollate(tls *crt.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, z
tcl.XTcl_EvalObjEx(tls, (*SqlCollate)(unsafe.Pointer(p)).Finterp, pCmd, 0x040000)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
- return crt.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqlCollate)(unsafe.Pointer(p)).Finterp))
+ return libc.Xatoi(tls, tcl.XTcl_GetStringResult(tls, (*SqlCollate)(unsafe.Pointer(p)).Finterp))
}
// This routine is called to evaluate an SQL function implemented
// using TCL script.
-func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tclsqlite.c:918:13: */
+func tclSqlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* tclsqlite.c:918:13: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -32090,7 +36108,7 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
rc = tcl.XTcl_EvalObjEx(tls, (*SqlFunc)(unsafe.Pointer(p)).Finterp, pCmd, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32161,7 +36179,7 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
if rc != 0 {
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32178,7 +36196,7 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
rc = tcl.XTcl_EvalObjEx(tls, (*SqlFunc)(unsafe.Pointer(p)).Finterp, pCmd, 0x040000)
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32201,15 +36219,15 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
var eType int32 = (*SqlFunc)(unsafe.Pointer(p)).FeType
if eType == 5 {
- if ((int32(c) == 'b') && (crt.Xstrcmp(tls, zType, ts+8749 /* "bytearray" */) == 0)) && ((*Tcl_Obj)(unsafe.Pointer(pVar)).Fbytes == uintptr(0)) {
+ if ((int32(c) == 'b') && (libc.Xstrcmp(tls, zType, ts+2404 /* "bytearray" */) == 0)) && ((*Tcl_Obj)(unsafe.Pointer(pVar)).Fbytes == uintptr(0)) {
// Only return a BLOB type if the Tcl variable is a bytearray and
// has no string representation.
eType = 4
- } else if (((int32(c) == 'b') && (crt.Xstrcmp(tls, zType, ts+8759 /* "boolean" */) == 0)) ||
- ((int32(c) == 'w') && (crt.Xstrcmp(tls, zType, ts+8767 /* "wideInt" */) == 0))) ||
- ((int32(c) == 'i') && (crt.Xstrcmp(tls, zType, ts+8775 /* "int" */) == 0)) {
+ } else if (((int32(c) == 'b') && (libc.Xstrcmp(tls, zType, ts+2414 /* "boolean" */) == 0)) ||
+ ((int32(c) == 'w') && (libc.Xstrcmp(tls, zType, ts+2429 /* "wideInt" */) == 0))) ||
+ ((int32(c) == 'i') && (libc.Xstrcmp(tls, zType, ts+2437 /* "int" */) == 0)) {
eType = 1
- } else if (int32(c) == 'd') && (crt.Xstrcmp(tls, zType, ts+2637 /* "double" */) == 0) {
+ } else if (int32(c) == 'd') && (libc.Xstrcmp(tls, zType, ts+2422 /* "double" */) == 0) {
eType = 2
} else {
eType = 3
@@ -32220,7 +36238,7 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
case 4:
{
data = tcl.XTcl_GetByteArrayFromObj(tls, pVar, bp+16 /* &n */)
- sqlite3.Xsqlite3_result_blob(tls, context, data, *(*int32)(unsafe.Pointer(bp + 16 /* n */)), crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_blob(tls, context, data, *(*int32)(unsafe.Pointer(bp + 16 /* n */)), libc.UintptrFromInt32(-1))
break
}
fallthrough
@@ -32249,7 +36267,7 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
default:
{
data = tcl.XTcl_GetStringFromObj(tls, pVar, bp+16 /* &n */)
- sqlite3.Xsqlite3_result_text(tls, context, data, *(*int32)(unsafe.Pointer(bp + 16 /* n */)), crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, data, *(*int32)(unsafe.Pointer(bp + 16 /* n */)), libc.UintptrFromInt32(-1))
break
}
}
@@ -32260,7 +36278,7 @@ func tclSqlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* tc
// type code and the two arguments to zCmd[] then invokes the result
// on the interpreter. The reply is examined to determine if the
// authentication fails or succeeds.
-func auth_callback(tls *crt.TLS, pArg uintptr, code int32, zArg1 uintptr, zArg2 uintptr, zArg3 uintptr, zArg4 uintptr) int32 { /* tclsqlite.c:1069:12: */
+func auth_callback(tls *libc.TLS, pArg uintptr, code int32, zArg1 uintptr, zArg2 uintptr, zArg3 uintptr, zArg4 uintptr) int32 { /* tclsqlite.c:1069:12: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -32282,109 +36300,109 @@ func auth_callback(tls *crt.TLS, pArg uintptr, code int32, zArg1 uintptr, zArg2
// authorized.
switch code {
case 0:
- zCode = ts + 8779 /* "SQLITE_COPY" */
+ zCode = ts + 10448 /* "SQLITE_COPY" */
break
case 1:
- zCode = ts + 8791 /* "SQLITE_CREATE_IN..." */
+ zCode = ts + 10460 /* "SQLITE_CREATE_IN..." */
break
case 2:
- zCode = ts + 8811 /* "SQLITE_CREATE_TA..." */
+ zCode = ts + 10480 /* "SQLITE_CREATE_TA..." */
break
case 3:
- zCode = ts + 8831 /* "SQLITE_CREATE_TE..." */
+ zCode = ts + 10500 /* "SQLITE_CREATE_TE..." */
break
case 4:
- zCode = ts + 8856 /* "SQLITE_CREATE_TE..." */
+ zCode = ts + 10525 /* "SQLITE_CREATE_TE..." */
break
case 5:
- zCode = ts + 8881 /* "SQLITE_CREATE_TE..." */
+ zCode = ts + 10550 /* "SQLITE_CREATE_TE..." */
break
case 6:
- zCode = ts + 8908 /* "SQLITE_CREATE_TE..." */
+ zCode = ts + 10577 /* "SQLITE_CREATE_TE..." */
break
case 7:
- zCode = ts + 8932 /* "SQLITE_CREATE_TR..." */
+ zCode = ts + 10601 /* "SQLITE_CREATE_TR..." */
break
case 8:
- zCode = ts + 8954 /* "SQLITE_CREATE_VI..." */
+ zCode = ts + 10623 /* "SQLITE_CREATE_VI..." */
break
case 9:
- zCode = ts + 8973 /* "SQLITE_DELETE" */
+ zCode = ts + 10642 /* "SQLITE_DELETE" */
break
case 10:
- zCode = ts + 8987 /* "SQLITE_DROP_INDE..." */
+ zCode = ts + 10656 /* "SQLITE_DROP_INDE..." */
break
case 11:
- zCode = ts + 9005 /* "SQLITE_DROP_TABL..." */
+ zCode = ts + 10674 /* "SQLITE_DROP_TABL..." */
break
case 12:
- zCode = ts + 9023 /* "SQLITE_DROP_TEMP..." */
+ zCode = ts + 10692 /* "SQLITE_DROP_TEMP..." */
break
case 13:
- zCode = ts + 9046 /* "SQLITE_DROP_TEMP..." */
+ zCode = ts + 10715 /* "SQLITE_DROP_TEMP..." */
break
case 14:
- zCode = ts + 9069 /* "SQLITE_DROP_TEMP..." */
+ zCode = ts + 10738 /* "SQLITE_DROP_TEMP..." */
break
case 15:
- zCode = ts + 9094 /* "SQLITE_DROP_TEMP..." */
+ zCode = ts + 10763 /* "SQLITE_DROP_TEMP..." */
break
case 16:
- zCode = ts + 9116 /* "SQLITE_DROP_TRIG..." */
+ zCode = ts + 10785 /* "SQLITE_DROP_TRIG..." */
break
case 17:
- zCode = ts + 9136 /* "SQLITE_DROP_VIEW" */
+ zCode = ts + 10805 /* "SQLITE_DROP_VIEW" */
break
case 18:
- zCode = ts + 9153 /* "SQLITE_INSERT" */
+ zCode = ts + 10822 /* "SQLITE_INSERT" */
break
case 19:
- zCode = ts + 9167 /* "SQLITE_PRAGMA" */
+ zCode = ts + 10836 /* "SQLITE_PRAGMA" */
break
case 20:
- zCode = ts + 9181 /* "SQLITE_READ" */
+ zCode = ts + 10850 /* "SQLITE_READ" */
break
case 21:
- zCode = ts + 9193 /* "SQLITE_SELECT" */
+ zCode = ts + 10862 /* "SQLITE_SELECT" */
break
case 22:
- zCode = ts + 9207 /* "SQLITE_TRANSACTI..." */
+ zCode = ts + 10876 /* "SQLITE_TRANSACTI..." */
break
case 23:
- zCode = ts + 9226 /* "SQLITE_UPDATE" */
+ zCode = ts + 10895 /* "SQLITE_UPDATE" */
break
case 24:
- zCode = ts + 9240 /* "SQLITE_ATTACH" */
+ zCode = ts + 10909 /* "SQLITE_ATTACH" */
break
case 25:
- zCode = ts + 9254 /* "SQLITE_DETACH" */
+ zCode = ts + 10923 /* "SQLITE_DETACH" */
break
case 26:
- zCode = ts + 9268 /* "SQLITE_ALTER_TAB..." */
+ zCode = ts + 10937 /* "SQLITE_ALTER_TAB..." */
break
case 27:
- zCode = ts + 9287 /* "SQLITE_REINDEX" */
+ zCode = ts + 10956 /* "SQLITE_REINDEX" */
break
case 28:
- zCode = ts + 9302 /* "SQLITE_ANALYZE" */
+ zCode = ts + 10971 /* "SQLITE_ANALYZE" */
break
case 29:
- zCode = ts + 9317 /* "SQLITE_CREATE_VT..." */
+ zCode = ts + 10986 /* "SQLITE_CREATE_VT..." */
break
case 30:
- zCode = ts + 9338 /* "SQLITE_DROP_VTAB..." */
+ zCode = ts + 11007 /* "SQLITE_DROP_VTAB..." */
break
case 31:
- zCode = ts + 9357 /* "SQLITE_FUNCTION" */
+ zCode = ts + 11026 /* "SQLITE_FUNCTION" */
break
case 32:
- zCode = ts + 9373 /* "SQLITE_SAVEPOINT" */
+ zCode = ts + 11042 /* "SQLITE_SAVEPOINT" */
break
case 33:
- zCode = ts + 9390 /* "SQLITE_RECURSIVE" */
+ zCode = ts + 11059 /* "SQLITE_RECURSIVE" */
break
default:
- zCode = ts + 9407 /* "????" */
+ zCode = ts + 11076 /* "????" */
break
}
tcl.XTcl_DStringInit(tls, bp /* &str */)
@@ -32419,13 +36437,13 @@ func auth_callback(tls *crt.TLS, pArg uintptr, code int32, zArg1 uintptr, zArg2
if rc == 0 {
zReply = tcl.XTcl_GetStringResult(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Finterp)
} else {
- zReply = ts + 9412 /* "SQLITE_DENY" */
+ zReply = ts + 11081 /* "SQLITE_DENY" */
}
- if crt.Xstrcmp(tls, zReply, ts+9424 /* "SQLITE_OK" */) == 0 {
+ if libc.Xstrcmp(tls, zReply, ts+1987 /* "SQLITE_OK" */) == 0 {
rc = 0
- } else if crt.Xstrcmp(tls, zReply, ts+9412 /* "SQLITE_DENY" */) == 0 {
+ } else if libc.Xstrcmp(tls, zReply, ts+11081 /* "SQLITE_DENY" */) == 0 {
rc = 1
- } else if crt.Xstrcmp(tls, zReply, ts+9434 /* "SQLITE_IGNORE" */) == 0 {
+ } else if libc.Xstrcmp(tls, zReply, ts+11093 /* "SQLITE_IGNORE" */) == 0 {
rc = 2
} else {
rc = 999
@@ -32442,13 +36460,13 @@ func auth_callback(tls *crt.TLS, pArg uintptr, code int32, zArg1 uintptr, zArg2
// is done.
//
// copied from shell.c from '.import' command
-func local_getline(tls *crt.TLS, zPrompt uintptr, in uintptr) uintptr { /* tclsqlite.c:1168:13: */
+func local_getline(tls *libc.TLS, zPrompt uintptr, in uintptr) uintptr { /* tclsqlite.c:1168:13: */
var zLine uintptr
var nLine int32
var n int32
nLine = 100
- zLine = crt.Xmalloc(tls, uint64(nLine))
+ zLine = libc.Xmalloc(tls, uint64(nLine))
if zLine == uintptr(0) {
return uintptr(0)
}
@@ -32456,14 +36474,14 @@ func local_getline(tls *crt.TLS, zPrompt uintptr, in uintptr) uintptr { /* tclsq
for 1 != 0 {
if (n + 100) > nLine {
nLine = ((nLine * 2) + 100)
- zLine = crt.Xrealloc(tls, zLine, uint64(nLine))
+ zLine = libc.Xrealloc(tls, zLine, uint64(nLine))
if zLine == uintptr(0) {
return uintptr(0)
}
}
- if crt.Xfgets(tls, (zLine+uintptr(n)), (nLine-n), in) == uintptr(0) {
+ if libc.Xfgets(tls, (zLine+uintptr(n)), (nLine-n), in) == uintptr(0) {
if n == 0 {
- crt.Xfree(tls, zLine)
+ libc.Xfree(tls, zLine)
return uintptr(0)
}
*(*int8)(unsafe.Pointer(zLine + uintptr(n))) = int8(0)
@@ -32478,7 +36496,7 @@ func local_getline(tls *crt.TLS, zPrompt uintptr, in uintptr) uintptr { /* tclsq
break
}
}
- zLine = crt.Xrealloc(tls, zLine, (uint64(n + 1)))
+ zLine = libc.Xrealloc(tls, zLine, (uint64(n + 1)))
return zLine
}
@@ -32488,7 +36506,7 @@ func local_getline(tls *crt.TLS, zPrompt uintptr, in uintptr) uintptr { /* tclsq
//
// It is invoked after evaluating the script SCRIPT to commit or rollback
// the transaction or savepoint opened by the [transaction] command.
-func DbTransPostCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) int32 { /* tclsqlite.c:1211:26: */
+func DbTransPostCmd(tls *libc.TLS, data uintptr, interp uintptr, result int32) int32 { /* tclsqlite.c:1211:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -32497,7 +36515,7 @@ func DbTransPostCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) in
var zEnd uintptr
(*SqliteDb)(unsafe.Pointer(pDb)).FnTransaction--
- zEnd = azEnd[(((crt.Bool32(rc == 1)) * 2) + (crt.Bool32((*SqliteDb)(unsafe.Pointer(pDb)).FnTransaction == 0)))]
+ zEnd = azEnd[(((libc.Bool32(rc == 1)) * 2) + (libc.Bool32((*SqliteDb)(unsafe.Pointer(pDb)).FnTransaction == 0)))]
(*SqliteDb)(unsafe.Pointer(pDb)).FdisableAuth++
if sqlite3.Xsqlite3_exec(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, zEnd, uintptr(0), uintptr(0), uintptr(0)) != 0 {
@@ -32511,10 +36529,10 @@ func DbTransPostCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) in
// COMMIT, SAVEPOINT, RELEASE or ROLLBACK commands that are confusing
// this method's logic. Not clear how this would be best handled.
if rc != 1 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
rc = 1
}
- sqlite3.Xsqlite3_exec(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, ts+5807 /* "ROLLBACK" */, uintptr(0), uintptr(0), uintptr(0))
+ sqlite3.Xsqlite3_exec(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, ts+7092 /* "ROLLBACK" */, uintptr(0), uintptr(0), uintptr(0))
}
(*SqliteDb)(unsafe.Pointer(pDb)).FdisableAuth--
@@ -32522,10 +36540,10 @@ func DbTransPostCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) in
}
var azEnd = [4]uintptr{
- ts + 9448, /* "RELEASE _tcl_tra..." */ // rc==TCL_ERROR, nTransaction!=0
- ts + 9473, /* "COMMIT" */ // rc!=TCL_ERROR, nTransaction==0
- ts + 9480, /* "ROLLBACK TO _tcl..." */
- ts + 5807, /* "ROLLBACK" */ // rc==TCL_ERROR, nTransaction==0
+ ts + 11107, /* "RELEASE _tcl_tra..." */ // rc==TCL_ERROR, nTransaction!=0
+ ts + 11132, /* "COMMIT" */ // rc!=TCL_ERROR, nTransaction==0
+ ts + 11139, /* "ROLLBACK TO _tcl..." */
+ ts + 7092, /* "ROLLBACK" */ // rc==TCL_ERROR, nTransaction==0
} /* tclsqlite.c:1216:21 */
// Unless SQLITE_TEST is defined, this function is a simple wrapper around
@@ -32533,7 +36551,7 @@ var azEnd = [4]uintptr{
// sqlite3_prepare_v2() or legacy interface sqlite3_prepare(), depending
// on whether or not the [db_use_legacy_prepare] command has been used to
// configure the connection.
-func dbPrepare(tls *crt.TLS, pDb uintptr, zSql uintptr, ppStmt uintptr, pzOut uintptr) int32 { /* tclsqlite.c:1259:12: */
+func dbPrepare(tls *libc.TLS, pDb uintptr, zSql uintptr, ppStmt uintptr, pzOut uintptr) int32 { /* tclsqlite.c:1259:12: */
var prepFlags uint32 = uint32(0)
if (*SqliteDb)(unsafe.Pointer(pDb)).FbLegacyPrepare != 0 {
return sqlite3.Xsqlite3_prepare(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, zSql, -1, ppStmt, pzOut)
@@ -32561,7 +36579,7 @@ func dbPrepare(tls *crt.TLS, pDb uintptr, zSql uintptr, ppStmt uintptr, pzOut ui
//
// If successful, TCL_OK is returned. Otherwise, TCL_ERROR is returned
// and an error message loaded into interpreter pDb->interp.
-func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppPreStmt uintptr) int32 { /* tclsqlite.c:1294:12: */
+func dbPrepareAndBind(tls *libc.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppPreStmt uintptr) int32 { /* tclsqlite.c:1294:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -32580,7 +36598,7 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
*(*uintptr)(unsafe.Pointer(ppPreStmt)) = uintptr(0)
// Trim spaces from the start of zSql and calculate the remaining length.
- for ((((int32(crt.AssignInt8(&c, *(*int8)(unsafe.Pointer(zSql + uintptr(0)))))) == ' ') || (int32(c) == '\t')) || (int32(c) == '\r')) || (int32(c) == '\n') {
+ for ((((int32(libc.AssignInt8(&c, *(*int8)(unsafe.Pointer(zSql + uintptr(0)))))) == ' ') || (int32(c) == '\t')) || (int32(c) == '\r')) || (int32(c) == '\n') {
zSql++
}
nSql = strlen30(tls, zSql)
@@ -32588,7 +36606,7 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
for pPreStmt = (*SqliteDb)(unsafe.Pointer(pDb)).FstmtList; pPreStmt != 0; pPreStmt = (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FpNext {
var n int32 = (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql
if ((nSql >= n) &&
- (crt.Xmemcmp(tls, (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FzSql, zSql, uint64(n)) == 0)) &&
+ (libc.Xmemcmp(tls, (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FzSql, zSql, uint64(n)) == 0)) &&
((int32(*(*int8)(unsafe.Pointer(zSql + uintptr(n)))) == 0) || (int32(*(*int8)(unsafe.Pointer(zSql + uintptr((n - 1))))) == ';')) {
*(*uintptr)(unsafe.Pointer(bp /* pStmt */)) = (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FpStmt
*(*uintptr)(unsafe.Pointer(pzOut)) = (zSql + uintptr((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql))
@@ -32636,7 +36654,7 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
nVar = sqlite3.Xsqlite3_bind_parameter_count(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)))
nByte = (int32(uint64(unsafe.Sizeof(SqlPreparedStmt{})) + (uint64(nVar) * uint64(unsafe.Sizeof(uintptr(0))))))
pPreStmt = tcl.XTcl_Alloc(tls, uint32(nByte))
- crt.Xmemset(tls, pPreStmt, 0, uint64(nByte))
+ libc.Xmemset(tls, pPreStmt, 0, uint64(nByte))
(*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FpStmt = *(*uintptr)(unsafe.Pointer(bp /* pStmt */))
(*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql = (int32((int64(*(*uintptr)(unsafe.Pointer(pzOut))) - int64(zSql)) / 1))
@@ -32644,7 +36662,7 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
(*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FapParm = (pPreStmt + uintptr(1)*56)
if (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FzSql == uintptr(0) {
var zCopy uintptr = tcl.XTcl_Alloc(tls, (uint32((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql + 1)))
- crt.Xmemcpy(tls, zCopy, zSql, uint64((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql))
+ libc.Xmemcpy(tls, zCopy, zSql, uint64((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql))
*(*int8)(unsafe.Pointer(zCopy + uintptr((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnSql))) = int8(0)
(*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FzSql = zCopy
}
@@ -32668,7 +36686,7 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
rx = tcl.XTcl_EvalObjEx(tls, interp, pCmd, 0x040000)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32692,23 +36710,23 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
return ts + 488 /* "" */
}()
c = *(*int8)(unsafe.Pointer(zType + uintptr(0)))
- if (int32(*(*int8)(unsafe.Pointer(zVar + uintptr(0)))) == '@') || (((int32(c) == 'b') && (crt.Xstrcmp(tls, zType, ts+8749 /* "bytearray" */) == 0)) && ((*Tcl_Obj)(unsafe.Pointer(pVar)).Fbytes == uintptr(0))) {
+ if (int32(*(*int8)(unsafe.Pointer(zVar + uintptr(0)))) == '@') || (((int32(c) == 'b') && (libc.Xstrcmp(tls, zType, ts+2404 /* "bytearray" */) == 0)) && ((*Tcl_Obj)(unsafe.Pointer(pVar)).Fbytes == uintptr(0))) {
// Load a BLOB type if the Tcl variable is a bytearray and
// it has no string representation or the host
// parameter name begins with "@".
data = tcl.XTcl_GetByteArrayFromObj(tls, pVar, bp+8 /* &n */)
sqlite3.Xsqlite3_bind_blob(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), i, data, *(*int32)(unsafe.Pointer(bp + 8 /* n */)), uintptr(0))
(*Tcl_Obj)(unsafe.Pointer(pVar)).FrefCount++
- *(*uintptr)(unsafe.Pointer((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FapParm + uintptr(crt.PostIncInt32(&iParm, 1))*8)) = pVar
- } else if (int32(c) == 'b') && (crt.Xstrcmp(tls, zType, ts+8759 /* "boolean" */) == 0) {
+ *(*uintptr)(unsafe.Pointer((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FapParm + uintptr(libc.PostIncInt32(&iParm, 1))*8)) = pVar
+ } else if (int32(c) == 'b') && (libc.Xstrcmp(tls, zType, ts+2414 /* "boolean" */) == 0) {
tcl.XTcl_GetIntFromObj(tls, interp, pVar, bp+8 /* &n */)
sqlite3.Xsqlite3_bind_int(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), i, *(*int32)(unsafe.Pointer(bp + 8 /* n */)))
- } else if (int32(c) == 'd') && (crt.Xstrcmp(tls, zType, ts+2637 /* "double" */) == 0) {
+ } else if (int32(c) == 'd') && (libc.Xstrcmp(tls, zType, ts+2422 /* "double" */) == 0) {
// var r float64 at bp+16, 8
tcl.XTcl_GetDoubleFromObj(tls, interp, pVar, bp+16 /* &r */)
sqlite3.Xsqlite3_bind_double(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), i, *(*float64)(unsafe.Pointer(bp + 16 /* r */)))
- } else if ((int32(c) == 'w') && (crt.Xstrcmp(tls, zType, ts+8767 /* "wideInt" */) == 0)) || ((int32(c) == 'i') && (crt.Xstrcmp(tls, zType, ts+8775 /* "int" */) == 0)) {
+ } else if ((int32(c) == 'w') && (libc.Xstrcmp(tls, zType, ts+2429 /* "wideInt" */) == 0)) || ((int32(c) == 'i') && (libc.Xstrcmp(tls, zType, ts+2437 /* "int" */) == 0)) {
// var v Tcl_WideInt at bp+24, 8
tcl.XTcl_GetWideIntFromObj(tls, interp, pVar, bp+24 /* &v */)
@@ -32717,7 +36735,7 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
data = tcl.XTcl_GetStringFromObj(tls, pVar, bp+8 /* &n */)
sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), i, data, *(*int32)(unsafe.Pointer(bp + 8 /* n */)), uintptr(0))
(*Tcl_Obj)(unsafe.Pointer(pVar)).FrefCount++
- *(*uintptr)(unsafe.Pointer((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FapParm + uintptr(crt.PostIncInt32(&iParm, 1))*8)) = pVar
+ *(*uintptr)(unsafe.Pointer((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FapParm + uintptr(libc.PostIncInt32(&iParm, 1))*8)) = pVar
}
} else {
sqlite3.Xsqlite3_bind_null(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), i)
@@ -32743,14 +36761,14 @@ func dbPrepareAndBind(tls *crt.TLS, pDb uintptr, zIn uintptr, pzOut uintptr, ppP
// If the discard parameter is non-zero, then the statement is deleted
// immediately. Otherwise it is added to the LRU list and may be returned
// by a subsequent call to dbPrepareAndBind().
-func dbReleaseStmt(tls *crt.TLS, pDb uintptr, pPreStmt uintptr, discard int32) { /* tclsqlite.c:1470:13: */
+func dbReleaseStmt(tls *libc.TLS, pDb uintptr, pPreStmt uintptr, discard int32) { /* tclsqlite.c:1470:13: */
var i int32
// Free the bound string and blob parameters
for i = 0; i < (*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FnParm; i++ {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = *(*uintptr)(unsafe.Pointer((*SqlPreparedStmt)(unsafe.Pointer(pPreStmt)).FapParm + uintptr(i)*8))
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32816,13 +36834,13 @@ type DbEvalContext = DbEvalContext1 /* tclsqlite.c:1523:30 */
// Release any cache of column names currently held as part of
// the DbEvalContext structure passed as the first argument.
-func dbReleaseColumnNames(tls *crt.TLS, p uintptr) { /* tclsqlite.c:1541:13: */
+func dbReleaseColumnNames(tls *libc.TLS, p uintptr) { /* tclsqlite.c:1541:13: */
if (*DbEvalContext)(unsafe.Pointer(p)).FapColName != 0 {
var i int32
for i = 0; i < (*DbEvalContext)(unsafe.Pointer(p)).FnCol; i++ {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = *(*uintptr)(unsafe.Pointer((*DbEvalContext)(unsafe.Pointer(p)).FapColName + uintptr(i)*8))
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32843,8 +36861,8 @@ func dbReleaseColumnNames(tls *crt.TLS, p uintptr) { /* tclsqlite.c:1541:13: */
// tcl command:
//
// set ${pArray}(*) {a b c}
-func dbEvalInit(tls *crt.TLS, p uintptr, pDb uintptr, pSql uintptr, pArray uintptr, evalFlags int32) { /* tclsqlite.c:1565:13: */
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DbEvalContext{})))
+func dbEvalInit(tls *libc.TLS, p uintptr, pDb uintptr, pSql uintptr, pArray uintptr, evalFlags int32) { /* tclsqlite.c:1565:13: */
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DbEvalContext{})))
(*DbEvalContext)(unsafe.Pointer(p)).FpDb = pDb
(*DbEvalContext)(unsafe.Pointer(p)).FzSql = tcl.XTcl_GetString(tls, pSql)
(*DbEvalContext)(unsafe.Pointer(p)).FpSql = pSql
@@ -32858,7 +36876,7 @@ func dbEvalInit(tls *crt.TLS, p uintptr, pDb uintptr, pSql uintptr, pArray uintp
// Obtain information about the row that the DbEvalContext passed as the
// first argument currently points to.
-func dbEvalRowInfo(tls *crt.TLS, p uintptr, pnCol uintptr, papColName uintptr) { /* tclsqlite.c:1588:13: */
+func dbEvalRowInfo(tls *libc.TLS, p uintptr, pnCol uintptr, papColName uintptr) { /* tclsqlite.c:1588:13: */
// Compute column names
if uintptr(0) == (*DbEvalContext)(unsafe.Pointer(p)).FapColName {
var pStmt uintptr = (*SqlPreparedStmt)(unsafe.Pointer((*DbEvalContext)(unsafe.Pointer(p)).FpPreStmt)).FpStmt
@@ -32866,7 +36884,7 @@ func dbEvalRowInfo(tls *crt.TLS, p uintptr, pnCol uintptr, papColName uintptr) {
var nCol int32 // Number of columns returned by pStmt
var apColName uintptr = uintptr(0) // Array of column names
- (*DbEvalContext)(unsafe.Pointer(p)).FnCol = crt.AssignInt32(&nCol, sqlite3.Xsqlite3_column_count(tls, pStmt))
+ (*DbEvalContext)(unsafe.Pointer(p)).FnCol = libc.AssignInt32(&nCol, sqlite3.Xsqlite3_column_count(tls, pStmt))
if (nCol > 0) && ((papColName != 0) || ((*DbEvalContext)(unsafe.Pointer(p)).FpArray != 0)) {
apColName = tcl.XTcl_Alloc(tls, (uint32(uint64(unsafe.Sizeof(uintptr(0))) * uint64(nCol))))
for i = 0; i < nCol; i++ {
@@ -32881,7 +36899,7 @@ func dbEvalRowInfo(tls *crt.TLS, p uintptr, pnCol uintptr, papColName uintptr) {
if (*DbEvalContext)(unsafe.Pointer(p)).FpArray != 0 {
var interp uintptr = (*SqliteDb)(unsafe.Pointer((*DbEvalContext)(unsafe.Pointer(p)).FpDb)).Finterp
var pColList uintptr = tcl.XTcl_NewObj(tls)
- var pStar uintptr = tcl.XTcl_NewStringObj(tls, ts+2498 /* "*" */, -1)
+ var pStar uintptr = tcl.XTcl_NewStringObj(tls, ts+3654 /* "*" */, -1)
for i = 0; i < nCol; i++ {
tcl.XTcl_ListObjAppendElement(tls, interp, pColList, *(*uintptr)(unsafe.Pointer(apColName + uintptr(i)*8)))
@@ -32890,7 +36908,7 @@ func dbEvalRowInfo(tls *crt.TLS, p uintptr, pnCol uintptr, papColName uintptr) {
tcl.XTcl_ObjSetVar2(tls, interp, (*DbEvalContext)(unsafe.Pointer(p)).FpArray, pStar, pColList, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pStar
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32914,7 +36932,7 @@ func dbEvalRowInfo(tls *crt.TLS, p uintptr, pnCol uintptr, papColName uintptr) {
// is analogous to a return of SQLITE_ROW from sqlite3_step(). If TCL_BREAK
// is returned, then the SQL script has finished executing and there are
// no further rows available. This is similar to SQLITE_DONE.
-func dbEvalStep(tls *crt.TLS, p uintptr) int32 { /* tclsqlite.c:1646:12: */
+func dbEvalStep(tls *libc.TLS, p uintptr) int32 { /* tclsqlite.c:1646:12: */
var zPrevSql uintptr = uintptr(0) // Previous value of p->zSql
for (*(*int8)(unsafe.Pointer((*DbEvalContext)(unsafe.Pointer(p)).FzSql + uintptr(0))) != 0) || ((*DbEvalContext)(unsafe.Pointer(p)).FpPreStmt != 0) {
@@ -32981,7 +36999,7 @@ func dbEvalStep(tls *crt.TLS, p uintptr) int32 { /* tclsqlite.c:1646:12: */
// Free all resources currently held by the DbEvalContext structure passed
// as the first argument. There should be exactly one call to this function
// for each call to dbEvalInit().
-func dbEvalFinalize(tls *crt.TLS, p uintptr) { /* tclsqlite.c:1710:13: */
+func dbEvalFinalize(tls *libc.TLS, p uintptr) { /* tclsqlite.c:1710:13: */
if (*DbEvalContext)(unsafe.Pointer(p)).FpPreStmt != 0 {
sqlite3.Xsqlite3_reset(tls, (*SqlPreparedStmt)(unsafe.Pointer((*DbEvalContext)(unsafe.Pointer(p)).FpPreStmt)).FpStmt)
dbReleaseStmt(tls, (*DbEvalContext)(unsafe.Pointer(p)).FpDb, (*DbEvalContext)(unsafe.Pointer(p)).FpPreStmt, 0)
@@ -32990,7 +37008,7 @@ func dbEvalFinalize(tls *crt.TLS, p uintptr) { /* tclsqlite.c:1710:13: */
if (*DbEvalContext)(unsafe.Pointer(p)).FpArray != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*DbEvalContext)(unsafe.Pointer(p)).FpArray
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -32998,7 +37016,7 @@ func dbEvalFinalize(tls *crt.TLS, p uintptr) { /* tclsqlite.c:1710:13: */
}
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*DbEvalContext)(unsafe.Pointer(p)).FpSql
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -33008,7 +37026,7 @@ func dbEvalFinalize(tls *crt.TLS, p uintptr) { /* tclsqlite.c:1710:13: */
// Return a pointer to a Tcl_Obj structure with ref-count 0 that contains
// the value for the iCol'th column of the row currently pointed to by
// the DbEvalContext structure passed as the first argument.
-func dbEvalColumnValue(tls *crt.TLS, p uintptr, iCol int32) uintptr { /* tclsqlite.c:1729:16: */
+func dbEvalColumnValue(tls *libc.TLS, p uintptr, iCol int32) uintptr { /* tclsqlite.c:1729:16: */
var pStmt uintptr = (*SqlPreparedStmt)(unsafe.Pointer((*DbEvalContext)(unsafe.Pointer(p)).FpPreStmt)).FpStmt
switch sqlite3.Xsqlite3_column_type(tls, pStmt, iCol) {
case 4:
@@ -33048,7 +37066,7 @@ func dbEvalColumnValue(tls *crt.TLS, p uintptr, iCol int32) uintptr { /* tclsqli
// commands. Even if the headers used while compiling the extension
// are 8.6 or newer, the code still tests the Tcl version at runtime.
// This allows stubs-enabled builds to be used with older Tcl libraries.
-func DbUseNre(tls *crt.TLS) int32 { /* tclsqlite.c:1766:12: */
+func DbUseNre(tls *libc.TLS) int32 { /* tclsqlite.c:1766:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -33057,13 +37075,13 @@ func DbUseNre(tls *crt.TLS) int32 { /* tclsqlite.c:1766:12: */
// var minor int32 at bp+4, 4
tcl.XTcl_GetVersion(tls, bp /* &major */, bp+4 /* &minor */, uintptr(0), uintptr(0))
- return (crt.Bool32(((*(*int32)(unsafe.Pointer(bp /* major */)) == 8) && (*(*int32)(unsafe.Pointer(bp + 4 /* minor */)) >= 6)) || (*(*int32)(unsafe.Pointer(bp /* major */)) > 8)))
+ return (libc.Bool32(((*(*int32)(unsafe.Pointer(bp /* major */)) == 8) && (*(*int32)(unsafe.Pointer(bp + 4 /* minor */)) >= 6)) || (*(*int32)(unsafe.Pointer(bp /* major */)) > 8)))
}
// This function is part of the implementation of the command:
//
// $db eval SQL ?ARRAYNAME? SCRIPT
-func DbEvalNextCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) int32 { /* tclsqlite.c:1793:26: */
+func DbEvalNextCmd(tls *libc.TLS, data uintptr, interp uintptr, result int32) int32 { /* tclsqlite.c:1793:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -33077,7 +37095,7 @@ func DbEvalNextCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) int
var pScript uintptr = *(*ClientData)(unsafe.Pointer(data + uintptr(1)*8))
var pArray uintptr = (*DbEvalContext)(unsafe.Pointer(p)).FpArray
- for ((rc == 0) || (rc == 4)) && (0 == (crt.AssignInt32(&rc, dbEvalStep(tls, p)))) {
+ for ((rc == 0) || (rc == 4)) && (0 == (libc.AssignInt32(&rc, dbEvalStep(tls, p)))) {
var i int32
// var nCol int32 at bp, 4
@@ -33107,7 +37125,7 @@ func DbEvalNextCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) int
// next iteration of this while(...) loop.
if DbUseNre(tls) != 0 {
tcl.XTcl_NRAddCallback(tls, interp, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, uintptr, int32) int32
}{DbEvalNextCmd})), p, pScript, uintptr(0), uintptr(0))
return tcl.XTcl_NREvalObj(tls, interp, pScript, 0)
} else {
@@ -33117,7 +37135,7 @@ func DbEvalNextCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) int
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -33138,7 +37156,7 @@ func DbEvalNextCmd(tls *crt.TLS, data uintptr, interp uintptr, result int32) int
// $db wal_hook ?SCRIPT?
// $db commit_hook ?SCRIPT?
// $db preupdate hook ?SCRIPT?
-func DbHookCmd(tls *crt.TLS, interp uintptr, pDb uintptr, pArg uintptr, ppHook uintptr) { /* tclsqlite.c:1863:13: */
+func DbHookCmd(tls *libc.TLS, interp uintptr, pDb uintptr, pArg uintptr, ppHook uintptr) { /* tclsqlite.c:1863:13: */
var db uintptr = (*SqliteDb)(unsafe.Pointer(pDb)).Fdb
if *(*uintptr)(unsafe.Pointer(ppHook)) != 0 {
@@ -33146,7 +37164,7 @@ func DbHookCmd(tls *crt.TLS, interp uintptr, pDb uintptr, pArg uintptr, ppHook u
if pArg != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = *(*uintptr)(unsafe.Pointer(ppHook))
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -33161,24 +37179,32 @@ func DbHookCmd(tls *crt.TLS, interp uintptr, pDb uintptr, pArg uintptr, ppHook u
}
}
+ sqlite3.Xsqlite3_preupdate_hook(tls, db, func() uintptr {
+ if (*SqliteDb)(unsafe.Pointer(pDb)).FpPreUpdateHook != 0 {
+ return *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, sqlite_int64, sqlite_int64)
+ }{DbPreUpdateHandler}))
+ }
+ return uintptr(0)
+ }(), pDb)
sqlite3.Xsqlite3_update_hook(tls, db, func() uintptr {
if (*SqliteDb)(unsafe.Pointer(pDb)).FpUpdateHook != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr, sqlite_int64)
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr, sqlite_int64)
}{DbUpdateHandler}))
}
return uintptr(0)
}(), pDb)
sqlite3.Xsqlite3_rollback_hook(tls, db, func() uintptr {
if (*SqliteDb)(unsafe.Pointer(pDb)).FpRollbackHook != 0 {
- return *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{DbRollbackHandler}))
+ return *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{DbRollbackHandler}))
}
return uintptr(0)
}(), pDb)
sqlite3.Xsqlite3_wal_hook(tls, db, func() uintptr {
if (*SqliteDb)(unsafe.Pointer(pDb)).FpWalHook != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32) int32
}{DbWalHandler}))
}
return uintptr(0)
@@ -33196,9 +37222,9 @@ func DbHookCmd(tls *crt.TLS, interp uintptr, pDb uintptr, pArg uintptr, ppHook u
// The first command opens a connection to the "my_database" database
// and calls that connection "db1". The second command causes this
// subroutine to be invoked.
-func DbObjCmd(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* tclsqlite.c:1907:26: */
- bp := tls.Alloc(1564)
- defer tls.Free(1564)
+func DbObjCmd(tls *libc.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* tclsqlite.c:1907:26: */
+ bp := tls.Alloc(1580)
+ defer tls.Free(1580)
*(*uintptr)(unsafe.Pointer(bp + 1456)) = cd
var pDb uintptr
@@ -33373,10 +37399,19 @@ func DbObjCmd(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr
var _objPtr5 uintptr
var xNotify uintptr
var pNotifyArg uintptr
+ var nCol2 int32
+ var pRet1 uintptr
+ var pObj1 uintptr
+ // var iIdx int32 at bp+1468, 4
+
+ // var pValue1 uintptr at bp+1472, 8
+
+ // var iSub int32 at bp+1464, 4
+
// set ppHook to point at pUpdateHook or pRollbackHook, depending on
// whether [$db update_hook] or [$db rollback_hook] was invoked.
var ppHook uintptr
- // var zBuf [100]int8 at bp+1464, 100
+ // var zBuf [100]int8 at bp+1480, 100
var zArg uintptr
var i5 int32
@@ -33391,7 +37426,7 @@ func DbObjCmd(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr
return 1
__1:
;
- if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), uintptr(unsafe.Pointer(&DB_strs)), int32(unsafe.Sizeof(uintptr(0))), ts+9536 /* "option" */, 0, bp+1016 /* &choice */) != 0) {
+ if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), uintptr(unsafe.Pointer(&DB_strs)), int32(unsafe.Sizeof(uintptr(0))), ts+11195 /* "option" */, 0, bp+1016 /* &choice */) != 0) {
goto __2
}
return 1
@@ -33749,7 +37784,7 @@ __4:
if !(objc > 3) {
goto __45
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9543 /* "?CALLBACK?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11202 /* "?CALLBACK?" */)
return 1
goto __46
__45:
@@ -33759,7 +37794,7 @@ __45:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzAuth != 0) {
goto __49
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, (*SqliteDb)(unsafe.Pointer(pDb)).FzAuth, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, (*SqliteDb)(unsafe.Pointer(pDb)).FzAuth, uintptr(0)))
__49:
;
goto __48
@@ -33775,7 +37810,7 @@ __50:
goto __51
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzAuth = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1020 /* len */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzAuth, zAuth, (uint64(*(*int32)(unsafe.Pointer(bp + 1020 /* len */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzAuth, zAuth, (uint64(*(*int32)(unsafe.Pointer(bp + 1020 /* len */)) + 1)))
goto __52
__51:
(*SqliteDb)(unsafe.Pointer(pDb)).FzAuth = uintptr(0)
@@ -33786,7 +37821,7 @@ __52:
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
sqlite3.Xsqlite3_set_authorizer(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr, uintptr) int32
}{auth_callback})), pDb)
goto __54
__53:
@@ -33820,7 +37855,7 @@ __55:
zDestFile = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
goto __58
__57:
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9554 /* "?DATABASE? FILEN..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11213 /* "?DATABASE? FILEN..." */)
return 1
__58:
;
@@ -33831,7 +37866,7 @@ __56:
if !(rc != 0) {
goto __59
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, ts+9574, /* "cannot open targ..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, ts+11233, /* "cannot open targ..." */
sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 1024 /* pDest */))), uintptr(0)))
sqlite3.Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 1024 /* pDest */)))
return 1
@@ -33841,14 +37876,14 @@ __59:
if !(pBackup == uintptr(0)) {
goto __60
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, ts+9604, /* "backup failed: " */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, ts+11263, /* "backup failed: " */
sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 1024 /* pDest */))), uintptr(0)))
sqlite3.Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 1024 /* pDest */)))
return 1
__60:
;
__61:
- if !((crt.AssignInt32(&rc, sqlite3.Xsqlite3_backup_step(tls, pBackup, 100))) == 0) {
+ if !((libc.AssignInt32(&rc, sqlite3.Xsqlite3_backup_step(tls, pBackup, 100))) == 0) {
goto __62
}
goto __61
@@ -33861,7 +37896,7 @@ __62:
rc = 0
goto __64
__63:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, ts+9604, /* "backup failed: " */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, ts+11263, /* "backup failed: " */
sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 1024 /* pDest */))), uintptr(0)))
rc = 1
__64:
@@ -33890,7 +37925,7 @@ __6:
if !(objc > 3) {
goto __65
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9543 /* "?CALLBACK?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11202 /* "?CALLBACK?" */)
return 1
goto __66
__65:
@@ -33900,7 +37935,7 @@ __65:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback != 0) {
goto __69
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+88, (*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+88, (*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback, uintptr(0)))
__69:
;
goto __68
@@ -33916,7 +37951,7 @@ __70:
goto __71
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1032 /* len1 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback, zCallback, (uint64(*(*int32)(unsafe.Pointer(bp + 1032 /* len1 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback, zCallback, (uint64(*(*int32)(unsafe.Pointer(bp + 1032 /* len1 */)) + 1)))
goto __72
__71:
(*SqliteDb)(unsafe.Pointer(pDb)).FzBindFallback = uintptr(0)
@@ -33936,7 +37971,7 @@ __7:
if !(objc > 3) {
goto __73
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9620 /* "CALLBACK" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11279 /* "CALLBACK" */)
return 1
goto __74
__73:
@@ -33946,7 +37981,7 @@ __73:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzBusy != 0) {
goto __77
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+104, (*SqliteDb)(unsafe.Pointer(pDb)).FzBusy, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+104, (*SqliteDb)(unsafe.Pointer(pDb)).FzBusy, uintptr(0)))
__77:
;
goto __76
@@ -33962,7 +37997,7 @@ __78:
goto __79
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzBusy = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1036 /* len2 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzBusy, zBusy, (uint64(*(*int32)(unsafe.Pointer(bp + 1036 /* len2 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzBusy, zBusy, (uint64(*(*int32)(unsafe.Pointer(bp + 1036 /* len2 */)) + 1)))
goto __80
__79:
(*SqliteDb)(unsafe.Pointer(pDb)).FzBusy = uintptr(0)
@@ -33973,7 +38008,7 @@ __80:
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
sqlite3.Xsqlite3_busy_handler(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{DbBusyHandler})), pDb)
goto __82
__81:
@@ -33996,18 +38031,18 @@ __8:
if !(objc <= 2) {
goto __83
}
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+9629 /* "cache option ?ar..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+11288 /* "cache option ?ar..." */)
return 1
__83:
;
subCmd = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(0))
- if !((int32(*(*int8)(unsafe.Pointer(subCmd))) == 'f') && (crt.Xstrcmp(tls, subCmd, ts+9648 /* "flush" */) == 0)) {
+ if !((int32(*(*int8)(unsafe.Pointer(subCmd))) == 'f') && (libc.Xstrcmp(tls, subCmd, ts+11307 /* "flush" */) == 0)) {
goto __84
}
if !(objc != 3) {
goto __86
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9648 /* "flush" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11307 /* "flush" */)
return 1
goto __87
__86:
@@ -34016,21 +38051,21 @@ __87:
;
goto __85
__84:
- if !((int32(*(*int8)(unsafe.Pointer(subCmd))) == 's') && (crt.Xstrcmp(tls, subCmd, ts+9654 /* "size" */) == 0)) {
+ if !((int32(*(*int8)(unsafe.Pointer(subCmd))) == 's') && (libc.Xstrcmp(tls, subCmd, ts+11313 /* "size" */) == 0)) {
goto __88
}
if !(objc != 4) {
goto __90
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9659 /* "size n" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11318 /* "size n" */)
return 1
goto __91
__90:
if !(1 == tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+1040 /* &n */)) {
goto __92
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+120, ts+9666, /* "cannot convert \"" */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), uintptr(0)), ts+9683 /* "\" to integer" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+120, ts+11325, /* "cannot convert \"" */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), uintptr(0)), ts+11342 /* "\" to integer" */, uintptr(0)))
return 1
goto __93
__92:
@@ -34056,8 +38091,8 @@ __91:
;
goto __89
__88:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+152, ts+9696, /* "bad option \"" */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(0)), ts+9709, /* "\": must be flush..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+152, ts+11355, /* "bad option \"" */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(0)), ts+11368, /* "\": must be flush..." */
uintptr(0)))
return 1
__89:
@@ -34098,7 +38133,7 @@ __11:
if !(objc != 4) {
goto __98
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9734 /* "NAME SCRIPT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11393 /* "NAME SCRIPT" */)
return 1
__98:
;
@@ -34115,10 +38150,10 @@ __99:
(*SqlCollate)(unsafe.Pointer(pCollate)).FpNext = (*SqliteDb)(unsafe.Pointer(pDb)).FpCollate
(*SqlCollate)(unsafe.Pointer(pCollate)).FzScript = (pCollate + uintptr(1)*24)
(*SqliteDb)(unsafe.Pointer(pDb)).FpCollate = pCollate
- crt.Xmemcpy(tls, (*SqlCollate)(unsafe.Pointer(pCollate)).FzScript, zScript, (uint64(*(*int32)(unsafe.Pointer(bp + 1044 /* nScript */)) + 1)))
+ libc.Xmemcpy(tls, (*SqlCollate)(unsafe.Pointer(pCollate)).FzScript, zScript, (uint64(*(*int32)(unsafe.Pointer(bp + 1044 /* nScript */)) + 1)))
if !(sqlite3.Xsqlite3_create_collation(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, zName, 1,
pCollate, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{tclSqlCollate}))) != 0) {
goto __100
}
@@ -34136,7 +38171,7 @@ __12:
if !(objc != 3) {
goto __101
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9746 /* "SCRIPT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11405 /* "SCRIPT" */)
return 1
__101:
;
@@ -34145,7 +38180,7 @@ __101:
}
__103:
_objPtr = (*SqliteDb)(unsafe.Pointer(pDb)).FpCollateNeeded
- if !(crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1) {
+ if !(libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1) {
goto __106
}
tcl.XTclFreeObj(tls, _objPtr)
@@ -34164,7 +38199,7 @@ __102:
(*SqliteDb)(unsafe.Pointer(pDb)).FpCollateNeeded = tcl.XTcl_DuplicateObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
(*Tcl_Obj)(unsafe.Pointer((*SqliteDb)(unsafe.Pointer(pDb)).FpCollateNeeded)).FrefCount++
sqlite3.Xsqlite3_collation_needed(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, pDb, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr)
}{tclCollateNeeded})))
goto __3
@@ -34178,7 +38213,7 @@ __13:
if !(objc > 3) {
goto __107
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9543 /* "?CALLBACK?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11202 /* "?CALLBACK?" */)
return 1
goto __108
__107:
@@ -34188,7 +38223,7 @@ __107:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzCommit != 0) {
goto __111
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+184, (*SqliteDb)(unsafe.Pointer(pDb)).FzCommit, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+184, (*SqliteDb)(unsafe.Pointer(pDb)).FzCommit, uintptr(0)))
__111:
;
goto __110
@@ -34204,7 +38239,7 @@ __112:
goto __113
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzCommit = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1048 /* len3 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzCommit, zCommit, (uint64(*(*int32)(unsafe.Pointer(bp + 1048 /* len3 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzCommit, zCommit, (uint64(*(*int32)(unsafe.Pointer(bp + 1048 /* len3 */)) + 1)))
goto __114
__113:
(*SqliteDb)(unsafe.Pointer(pDb)).FzCommit = uintptr(0)
@@ -34214,7 +38249,9 @@ __114:
goto __115
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
- sqlite3.Xsqlite3_commit_hook(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{DbCommitHandler})), pDb)
+ sqlite3.Xsqlite3_commit_hook(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{DbCommitHandler})), pDb)
goto __116
__115:
sqlite3.Xsqlite3_commit_hook(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, uintptr(0), uintptr(0))
@@ -34235,13 +38272,13 @@ __14:
if !(objc != 3) {
goto __117
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9753 /* "SQL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9992 /* "SQL" */)
return 1
__117:
;
isComplete = sqlite3.Xsqlite3_complete(tls, tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(0)))
pResult1 = tcl.XTcl_GetObjResult(tls, interp)
- tcl.XTcl_SetIntObj(tls, pResult1, (crt.Bool32((isComplete) != 0)))
+ tcl.XTcl_SetIntObj(tls, pResult1, (libc.Bool32((isComplete) != 0)))
goto __3
// $db config ?OPTION? ?BOOLEAN?
@@ -34252,7 +38289,7 @@ __15:
if !(objc > 4) {
goto __118
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9757 /* "?OPTION? ?BOOLEA..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11412 /* "?OPTION? ?BOOLEA..." */)
return 1
__118:
;
@@ -34268,7 +38305,7 @@ __121:
goto __123
}
*(*int32)(unsafe.Pointer(bp + 1052 /* v */)) = 0
- sqlite3.Xsqlite3_db_config(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, aDbConfig[ii].Fop, crt.VaList(bp+200, -1, bp+1052 /* &v */))
+ sqlite3.Xsqlite3_db_config(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, aDbConfig[ii].Fop, libc.VaList(bp+200, -1, bp+1052 /* &v */))
tcl.XTcl_ListObjAppendElement(tls, interp, pResult2,
tcl.XTcl_NewStringObj(tls, aDbConfig[ii].FzName, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pResult2,
@@ -34296,7 +38333,7 @@ __125:
if !(uint64(ii) < (uint64(unsafe.Sizeof(aDbConfig)) / uint64(unsafe.Sizeof(DbConfigChoices{})))) {
goto __127
}
- if !(crt.Xstrcmp(tls, aDbConfig[ii].FzName, zOpt) == 0) {
+ if !(libc.Xstrcmp(tls, aDbConfig[ii].FzName, zOpt) == 0) {
goto __128
}
goto __127
@@ -34312,8 +38349,8 @@ __127:
if !(uint64(ii) >= (uint64(unsafe.Sizeof(aDbConfig)) / uint64(unsafe.Sizeof(DbConfigChoices{})))) {
goto __129
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+216, ts+9776 /* "unknown config o..." */, zOpt,
- ts+9801 /* "\"" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+216, ts+11431 /* "unknown config o..." */, zOpt,
+ ts+11456 /* "\"" */, uintptr(0)))
return 1
__129:
;
@@ -34328,7 +38365,7 @@ __131:
;
__130:
;
- sqlite3.Xsqlite3_db_config(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, aDbConfig[ii].Fop, crt.VaList(bp+248, *(*int32)(unsafe.Pointer(bp + 1056 /* onoff */)), bp+1060 /* &v1 */))
+ sqlite3.Xsqlite3_db_config(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, aDbConfig[ii].Fop, libc.VaList(bp+248, *(*int32)(unsafe.Pointer(bp + 1056 /* onoff */)), bp+1060 /* &v1 */))
pResult2 = tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 1060 /* v1 */)))
__120:
;
@@ -34357,7 +38394,7 @@ __16: // The input file
goto __132
}
tcl.XTcl_WrongNumArgs(tls, interp, 2, objv,
- ts+9803 /* "CONFLICT-ALGORIT..." */)
+ ts+11458 /* "CONFLICT-ALGORIT..." */)
return 1
__132:
;
@@ -34367,7 +38404,7 @@ __132:
zSep = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(5)*8)), uintptr(0))
goto __134
__133:
- zSep = ts + 9865 /* "\t" */
+ zSep = ts + 11520 /* "\t" */
__134:
;
if !(objc >= 7) {
@@ -34387,25 +38424,25 @@ __136:
if !(nSep == 0) {
goto __137
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+264, ts+9867, /* "Error: non-null ..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+264, ts+11522, /* "Error: non-null ..." */
uintptr(0)))
return 1
__137:
;
- if !(((((crt.Xstrcmp(tls, zConflict, ts+9911 /* "rollback" */) != 0) && (crt.Xstrcmp(tls, zConflict, ts+9920 /* "abort" */) != 0)) && (crt.Xstrcmp(tls, zConflict, ts+9926 /* "fail" */) != 0)) && (crt.Xstrcmp(tls, zConflict, ts+9931 /* "ignore" */) != 0)) && (crt.Xstrcmp(tls, zConflict, ts+9938 /* "replace" */) != 0)) {
+ if !(((((libc.Xstrcmp(tls, zConflict, ts+11566 /* "rollback" */) != 0) && (libc.Xstrcmp(tls, zConflict, ts+11575 /* "abort" */) != 0)) && (libc.Xstrcmp(tls, zConflict, ts+11581 /* "fail" */) != 0)) && (libc.Xstrcmp(tls, zConflict, ts+11586 /* "ignore" */) != 0)) && (libc.Xstrcmp(tls, zConflict, ts+11593 /* "replace" */) != 0)) {
goto __138
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+280, ts+9946 /* "Error: \"" */, zConflict,
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+280, ts+11601 /* "Error: \"" */, zConflict,
- ts+9955 /* "\", conflict-algo..." */, uintptr(0)))
+ ts+11610 /* "\", conflict-algo..." */, uintptr(0)))
return 1
__138:
;
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+10035 /* "SELECT * FROM '%..." */, crt.VaList(bp+312, zTable))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+11690 /* "SELECT * FROM '%..." */, libc.VaList(bp+312, zTable))
if !(zSql == uintptr(0)) {
goto __139
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+320, ts+10054 /* "Error: no such t..." */, zTable, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+320, ts+11709 /* "Error: no such t..." */, zTable, uintptr(0)))
return 1
__139:
;
@@ -34415,7 +38452,7 @@ __139:
if !(rc != 0) {
goto __140
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+344, ts+10077 /* "Error: " */, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+344, ts+11732 /* "Error: " */, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
nCol = 0
goto __141
__140:
@@ -34429,24 +38466,24 @@ __141:
return 1
__142:
;
- zSql = crt.Xmalloc(tls, (uint64((nByte + 50) + (nCol * 2))))
+ zSql = libc.Xmalloc(tls, (uint64((nByte + 50) + (nCol * 2))))
if !(zSql == uintptr(0)) {
goto __143
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+368, ts+10085 /* "Error: can't mal..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+368, ts+11740 /* "Error: can't mal..." */, uintptr(0)))
return 1
__143:
;
- sqlite3.Xsqlite3_snprintf(tls, (nByte + 50), zSql, ts+10107, /* "INSERT OR %q INT..." */
- crt.VaList(bp+384, zConflict, zTable))
+ sqlite3.Xsqlite3_snprintf(tls, (nByte + 50), zSql, ts+11762, /* "INSERT OR %q INT..." */
+ libc.VaList(bp+384, zConflict, zTable))
j = strlen30(tls, zSql)
i = 1
__144:
if !(i < nCol) {
goto __146
}
- *(*int8)(unsafe.Pointer(zSql + uintptr(crt.PostIncInt32(&j, 1)))) = int8(',')
- *(*int8)(unsafe.Pointer(zSql + uintptr(crt.PostIncInt32(&j, 1)))) = int8('?')
+ *(*int8)(unsafe.Pointer(zSql + uintptr(libc.PostIncInt32(&j, 1)))) = int8(',')
+ *(*int8)(unsafe.Pointer(zSql + uintptr(libc.PostIncInt32(&j, 1)))) = int8('?')
goto __145
__145:
i++
@@ -34454,40 +38491,40 @@ __145:
goto __146
__146:
;
- *(*int8)(unsafe.Pointer(zSql + uintptr(crt.PostIncInt32(&j, 1)))) = int8(')')
+ *(*int8)(unsafe.Pointer(zSql + uintptr(libc.PostIncInt32(&j, 1)))) = int8(')')
*(*int8)(unsafe.Pointer(zSql + uintptr(j))) = int8(0)
rc = sqlite3.Xsqlite3_prepare(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, zSql, -1, bp+1064 /* &pStmt */, uintptr(0))
- crt.Xfree(tls, zSql)
+ libc.Xfree(tls, zSql)
if !(rc != 0) {
goto __147
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+400, ts+10077 /* "Error: " */, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+400, ts+11732 /* "Error: " */, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 1064 /* pStmt */)))
return 1
__147:
;
- in = crt.Xfopen(tls, zFile, ts+2937 /* "rb" */)
+ in = libc.Xfopen(tls, zFile, ts+4086 /* "rb" */)
if !(in == uintptr(0)) {
goto __148
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+424, ts+10139 /* "Error: cannot op..." */, zFile, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+424, ts+11794 /* "Error: cannot op..." */, zFile, uintptr(0)))
sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 1064 /* pStmt */)))
return 1
__148:
;
- azCol = crt.Xmalloc(tls, (uint64(unsafe.Sizeof(uintptr(0))) * (uint64(nCol + 1))))
+ azCol = libc.Xmalloc(tls, (uint64(unsafe.Sizeof(uintptr(0))) * (uint64(nCol + 1))))
if !(azCol == uintptr(0)) {
goto __149
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+448, ts+10085 /* "Error: can't mal..." */, uintptr(0)))
- crt.Xfclose(tls, in)
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+448, ts+11740 /* "Error: can't mal..." */, uintptr(0)))
+ libc.Xfclose(tls, in)
return 1
__149:
;
- sqlite3.Xsqlite3_exec(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, ts+10165 /* "BEGIN" */, uintptr(0), uintptr(0), uintptr(0))
- zCommit1 = ts + 9473 /* "COMMIT" */
+ sqlite3.Xsqlite3_exec(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, ts+11820 /* "BEGIN" */, uintptr(0), uintptr(0), uintptr(0))
+ zCommit1 = ts + 11132 /* "COMMIT" */
__150:
- if !((crt.AssignUintptr(&zLine, local_getline(tls, uintptr(0), in))) != uintptr(0)) {
+ if !((libc.AssignUintptr(&zLine, local_getline(tls, uintptr(0), in))) != uintptr(0)) {
goto __151
}
lineno++
@@ -34498,7 +38535,7 @@ __152:
if !(*(*int8)(unsafe.Pointer(z)) != 0) {
goto __154
}
- if !((int32(*(*int8)(unsafe.Pointer(z))) == int32(*(*int8)(unsafe.Pointer(zSep + uintptr(0))))) && (crt.Xstrncmp(tls, z, zSep, uint64(nSep)) == 0)) {
+ if !((int32(*(*int8)(unsafe.Pointer(z))) == int32(*(*int8)(unsafe.Pointer(zSep + uintptr(0))))) && (libc.Xstrncmp(tls, z, zSep, uint64(nSep)) == 0)) {
goto __155
}
*(*int8)(unsafe.Pointer(z)) = int8(0)
@@ -34523,18 +38560,18 @@ __154:
goto __157
}
nErr = (strlen30(tls, zFile) + 200)
- zErr = crt.Xmalloc(tls, uint64(nErr))
+ zErr = libc.Xmalloc(tls, uint64(nErr))
if !(zErr != 0) {
goto __158
}
sqlite3.Xsqlite3_snprintf(tls, nErr, zErr,
- ts+10171, /* "Error: %s line %..." */
- crt.VaList(bp+464, zFile, lineno, nCol, (i+1)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+496, zErr, uintptr(0)))
- crt.Xfree(tls, zErr)
+ ts+11826, /* "Error: %s line %..." */
+ libc.VaList(bp+464, zFile, lineno, nCol, (i+1)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+496, zErr, uintptr(0)))
+ libc.Xfree(tls, zErr)
__158:
;
- zCommit1 = ts + 5807 /* "ROLLBACK" */
+ zCommit1 = ts + 7092 /* "ROLLBACK" */
goto __151
__157:
;
@@ -34544,7 +38581,7 @@ __159:
goto __161
}
// check for null data, if so, bind as null
- if !(((nNull > 0) && (crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zNull) == 0)) ||
+ if !(((nNull > 0) && (libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8)), zNull) == 0)) ||
(strlen30(tls, *(*uintptr)(unsafe.Pointer(azCol + uintptr(i)*8))) == 0)) {
goto __162
}
@@ -34563,20 +38600,20 @@ __161:
;
sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp + 1064 /* pStmt */)))
rc = sqlite3.Xsqlite3_reset(tls, *(*uintptr)(unsafe.Pointer(bp + 1064 /* pStmt */)))
- crt.Xfree(tls, zLine)
+ libc.Xfree(tls, zLine)
if !(rc != 0) {
goto __164
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+512, ts+10077 /* "Error: " */, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
- zCommit1 = ts + 5807 /* "ROLLBACK" */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+512, ts+11732 /* "Error: " */, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ zCommit1 = ts + 7092 /* "ROLLBACK" */
goto __151
__164:
;
goto __150
__151:
;
- crt.Xfree(tls, azCol)
- crt.Xfclose(tls, in)
+ libc.Xfree(tls, azCol)
+ libc.Xfclose(tls, in)
sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 1064 /* pStmt */)))
sqlite3.Xsqlite3_exec(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, zCommit1, uintptr(0), uintptr(0), uintptr(0))
@@ -34590,8 +38627,8 @@ __151:
goto __166
__165:
// failure, append lineno where failed
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([80]int8{})), bp+1072 /* &zLineNum[0] */, ts+1237 /* "%d" */, crt.VaList(bp+536, lineno))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+544, ts+10231 /* ", failed while p..." */, bp+1072, /* &zLineNum[0] */
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([80]int8{})), bp+1072 /* &zLineNum[0] */, ts+1237 /* "%d" */, libc.VaList(bp+536, lineno))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+544, ts+11886 /* ", failed while p..." */, bp+1072, /* &zLineNum[0] */
uintptr(0)))
rc = 1
__166:
@@ -34610,7 +38647,7 @@ __17:
if !(objc < 3) {
goto __167
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10264 /* "?DATABASE? VALUE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11919 /* "?DATABASE? VALUE" */)
rc = 1
goto __3
__167:
@@ -34621,10 +38658,10 @@ __168:
goto __170
}
z1 = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i1)*8)))
- if !((crt.Xstrcmp(tls, z1, ts+10281 /* "-maxsize" */) == 0) && (i1 < (objc - 2))) {
+ if !((libc.Xstrcmp(tls, z1, ts+11936 /* "-maxsize" */) == 0) && (i1 < (objc - 2))) {
goto __171
}
- rc = tcl.XTcl_GetWideIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(crt.PreIncInt32(&i1, 1))*8)), bp+1152 /* &mxSize */)
+ rc = tcl.XTcl_GetWideIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(libc.PreIncInt32(&i1, 1))*8)), bp+1152 /* &mxSize */)
if !(rc != 0) {
goto __172
}
@@ -34634,10 +38671,10 @@ __172:
goto __169
__171:
;
- if !((crt.Xstrcmp(tls, z1, ts+10290 /* "-readonly" */) == 0) && (i1 < (objc - 2))) {
+ if !((libc.Xstrcmp(tls, z1, ts+11945 /* "-readonly" */) == 0) && (i1 < (objc - 2))) {
goto __173
}
- rc = tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(crt.PreIncInt32(&i1, 1))*8)), bp+1160 /* &isReadonly */)
+ rc = tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(libc.PreIncInt32(&i1, 1))*8)), bp+1160 /* &isReadonly */)
if !(rc != 0) {
goto __174
}
@@ -34654,7 +38691,7 @@ __173:
goto __169
__175:
;
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+568, ts+10300 /* "unknown option: " */, z1, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+568, ts+11955 /* "unknown option: " */, z1, uintptr(0)))
rc = 1
goto deserialize_error
goto __169
@@ -34670,14 +38707,14 @@ __170:
if !((pData == uintptr(0)) && (*(*int32)(unsafe.Pointer(bp + 1164 /* len4 */)) > 0)) {
goto __176
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+592, ts+1929 /* "out of memory" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+592, ts+1929 /* "out of memory" */, uintptr(0)))
rc = 1
goto __177
__176:
if !(*(*int32)(unsafe.Pointer(bp + 1164 /* len4 */)) > 0) {
goto __178
}
- crt.Xmemcpy(tls, pData, pBA, uint64(*(*int32)(unsafe.Pointer(bp + 1164 /* len4 */))))
+ libc.Xmemcpy(tls, pData, pBA, uint64(*(*int32)(unsafe.Pointer(bp + 1164 /* len4 */))))
__178:
;
if !(*(*int32)(unsafe.Pointer(bp + 1160 /* isReadonly */)) != 0) {
@@ -34693,7 +38730,7 @@ __180:
if !(xrc != 0) {
goto __181
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+608, ts+10317 /* "unable to set ME..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+608, ts+11972 /* "unable to set ME..." */, uintptr(0)))
rc = 1
__181:
;
@@ -34713,7 +38750,7 @@ deserialize_error:
// Turn the extension loading feature on or off. It if off by
// default.
__18:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+624, ts+10345, /* "extension loadin..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+624, ts+12000, /* "extension loadin..." */
uintptr(0)))
return 1
@@ -34736,7 +38773,7 @@ __21:
if !(objc != 3) {
goto __183
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9753 /* "SQL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9992 /* "SQL" */)
return 1
__183:
;
@@ -34765,7 +38802,7 @@ __184:
if !((rc == 3) || (rc == 0)) {
goto __189
}
- pResult4 = tcl.XTcl_NewIntObj(tls, (crt.Bool32((crt.Bool32(rc == 0)) != 0)))
+ pResult4 = tcl.XTcl_NewIntObj(tls, (libc.Bool32((libc.Bool32(rc == 0)) != 0)))
__189:
;
__185:
@@ -34796,16 +38833,16 @@ __191:
__22:
evalFlags = 0
__192:
- if !(((objc > 3) && ((crt.AssignUintptr(&zOpt1, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))))) != uintptr(0))) && (int32(*(*int8)(unsafe.Pointer(zOpt1 + uintptr(0)))) == '-')) {
+ if !(((objc > 3) && ((libc.AssignUintptr(&zOpt1, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))))) != uintptr(0))) && (int32(*(*int8)(unsafe.Pointer(zOpt1 + uintptr(0)))) == '-')) {
goto __193
}
- if !(crt.Xstrcmp(tls, zOpt1, ts+10393 /* "-withoutnulls" */) == 0) {
+ if !(libc.Xstrcmp(tls, zOpt1, ts+12048 /* "-withoutnulls" */) == 0) {
goto __194
}
evalFlags = evalFlags | (0x00001)
goto __195
__194:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+640, ts+10407 /* "unknown option: ..." */, zOpt1, ts+9801 /* "\"" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+640, ts+12062 /* "unknown option: ..." */, zOpt1, ts+11456 /* "\"" */, uintptr(0)))
return 1
__195:
;
@@ -34818,7 +38855,7 @@ __193:
goto __196
}
tcl.XTcl_WrongNumArgs(tls, interp, 2, objv,
- ts+10425 /* "?OPTIONS? SQL ?A..." */)
+ ts+12080 /* "?OPTIONS? SQL ?A..." */)
return 1
__196:
;
@@ -34830,7 +38867,7 @@ __196:
(*Tcl_Obj)(unsafe.Pointer(pRet)).FrefCount++
dbEvalInit(tls, bp+1224 /* &sEval1 */, pDb, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(0), 0)
__199:
- if !(0 == (crt.AssignInt32(&rc, dbEvalStep(tls, bp+1224 /* &sEval1 */)))) {
+ if !(0 == (libc.AssignInt32(&rc, dbEvalStep(tls, bp+1224 /* &sEval1 */)))) {
goto __200
}
dbEvalRowInfo(tls, bp+1224 /* &sEval1 */, bp+1280 /* &nCol1 */, uintptr(0))
@@ -34860,7 +38897,7 @@ __204:
;
__205:
_objPtr1 = pRet
- if !(crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr1))).FrefCount, 1) <= 1) {
+ if !(libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr1))).FrefCount, 1) <= 1) {
goto __208
}
tcl.XTclFreeObj(tls, _objPtr1)
@@ -34915,7 +38952,7 @@ __23:
if !(objc < 4) {
goto __210
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10461 /* "NAME ?SWITCHES? ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12116 /* "NAME ?SWITCHES? ..." */)
return 1
__210:
;
@@ -34926,13 +38963,13 @@ __211:
}
z2 = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i3)*8)))
n1 = strlen30(tls, z2)
- if !((n1 > 1) && (crt.Xstrncmp(tls, z2, ts+10484 /* "-argcount" */, uint64(n1)) == 0)) {
+ if !((n1 > 1) && (libc.Xstrncmp(tls, z2, ts+12139 /* "-argcount" */, uint64(n1)) == 0)) {
goto __214
}
if !(i3 == (objc - 2)) {
goto __216
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+672, ts+10494 /* "option requires ..." */, z2, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+672, ts+12149 /* "option requires ..." */, z2, uintptr(0)))
return 1
__216:
;
@@ -34945,7 +38982,7 @@ __217:
if !(*(*int32)(unsafe.Pointer(bp + 1304 /* nArg */)) < 0) {
goto __218
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+696, ts+10524, /* "number of argume..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+696, ts+12179, /* "number of argume..." */
uintptr(0)))
return 1
__218:
@@ -34953,38 +38990,38 @@ __218:
i3++
goto __215
__214:
- if !((n1 > 1) && (crt.Xstrncmp(tls, z2, ts+10565 /* "-deterministic" */, uint64(n1)) == 0)) {
+ if !((n1 > 1) && (libc.Xstrncmp(tls, z2, ts+12220 /* "-deterministic" */, uint64(n1)) == 0)) {
goto __219
}
flags1 = flags1 | (0x000000800)
goto __220
__219:
- if !((n1 > 1) && (crt.Xstrncmp(tls, z2, ts+10580 /* "-directonly" */, uint64(n1)) == 0)) {
+ if !((n1 > 1) && (libc.Xstrncmp(tls, z2, ts+12235 /* "-directonly" */, uint64(n1)) == 0)) {
goto __221
}
flags1 = flags1 | (0x000080000)
goto __222
__221:
- if !((n1 > 1) && (crt.Xstrncmp(tls, z2, ts+10592 /* "-innocuous" */, uint64(n1)) == 0)) {
+ if !((n1 > 1) && (libc.Xstrncmp(tls, z2, ts+12247 /* "-innocuous" */, uint64(n1)) == 0)) {
goto __223
}
flags1 = flags1 | (0x000200000)
goto __224
__223:
- if !((n1 > 1) && (crt.Xstrncmp(tls, z2, ts+10603 /* "-returntype" */, uint64(n1)) == 0)) {
+ if !((n1 > 1) && (libc.Xstrncmp(tls, z2, ts+12258 /* "-returntype" */, uint64(n1)) == 0)) {
goto __225
}
- *(*[6]uintptr)(unsafe.Pointer(bp + 1312 /* azType */)) = [6]uintptr{ts + 6453 /* "integer" */, ts + 10615 /* "real" */, ts + 10620 /* "text" */, ts + 10625 /* "blob" */, ts + 10630 /* "any" */, uintptr(0)}
+ *(*[6]uintptr)(unsafe.Pointer(bp + 1312 /* azType */)) = [6]uintptr{ts + 7738 /* "integer" */, ts + 12270 /* "real" */, ts + 12275 /* "text" */, ts + 12280 /* "blob" */, ts + 12285 /* "any" */, uintptr(0)}
if !(i3 == (objc - 2)) {
goto __227
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+712, ts+10494 /* "option requires ..." */, z2, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+712, ts+12149 /* "option requires ..." */, z2, uintptr(0)))
return 1
__227:
;
i3++
- if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i3)*8)), bp+1312 /* &azType[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+10634 /* "type" */, 0, bp+1360 /* &eType */) != 0) {
+ if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i3)*8)), bp+1312 /* &azType[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+12289 /* "type" */, 0, bp+1360 /* &eType */) != 0) {
goto __228
}
return 1
@@ -34993,9 +39030,9 @@ __228:
*(*int32)(unsafe.Pointer(bp + 1360 /* eType */))++
goto __226
__225:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+736, ts+9696 /* "bad option \"" */, z2,
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+736, ts+11355 /* "bad option \"" */, z2,
- ts+10639 /* "\": must be -argc..." */, uintptr(0)))
+ ts+12294 /* "\": must be -argc..." */, uintptr(0)))
return 1
__226:
;
@@ -35029,7 +39066,7 @@ __229:
}
__231:
_objPtr2 = (*SqlFunc)(unsafe.Pointer(pFunc)).FpScript
- if !(crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr2))).FrefCount, 1) <= 1) {
+ if !(libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr2))).FrefCount, 1) <= 1) {
goto __234
}
tcl.XTclFreeObj(tls, _objPtr2)
@@ -35051,7 +39088,7 @@ __230:
(*SqlFunc)(unsafe.Pointer(pFunc)).FeType = *(*int32)(unsafe.Pointer(bp + 1360 /* eType */))
rc = sqlite3.Xsqlite3_create_function(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, zName1, *(*int32)(unsafe.Pointer(bp + 1304 /* nArg */)), flags1,
pFunc, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tclSqlFunc})), uintptr(0), uintptr(0))
if !(rc != 0) {
goto __235
@@ -35068,7 +39105,7 @@ __24:
zDb = ts + 84 /* "main" */
// Check for the -readonly option
- if !((objc > 3) && (crt.Xstrcmp(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), ts+10290 /* "-readonly" */) == 0)) {
+ if !((objc > 3) && (libc.Xstrcmp(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), ts+11945 /* "-readonly" */) == 0)) {
goto __236
}
isReadonly1 = 1
@@ -35078,7 +39115,7 @@ __236:
if !((objc != (5 + isReadonly1)) && (objc != (6 + isReadonly1))) {
goto __237
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10717 /* "?-readonly? ?DB?..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12372 /* "?-readonly? ?DB?..." */)
return 1
__237:
;
@@ -35120,7 +39157,7 @@ __26:
if !((objc != 2) && (objc != 3)) {
goto __240
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10753 /* "NULLVALUE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12408 /* "NULLVALUE" */)
return 1
__240:
;
@@ -35138,7 +39175,7 @@ __242:
goto __243
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzNull = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1376 /* len5 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzNull, zNull1, uint64(*(*int32)(unsafe.Pointer(bp + 1376 /* len5 */))))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzNull, zNull1, uint64(*(*int32)(unsafe.Pointer(bp + 1376 /* len5 */))))
*(*int8)(unsafe.Pointer((*SqliteDb)(unsafe.Pointer(pDb)).FzNull + uintptr(*(*int32)(unsafe.Pointer(bp + 1376 /* len5 */))))) = int8(0)
goto __244
__243:
@@ -35179,7 +39216,7 @@ __28:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzProgress != 0) {
goto __248
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+768, (*SqliteDb)(unsafe.Pointer(pDb)).FzProgress, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+768, (*SqliteDb)(unsafe.Pointer(pDb)).FzProgress, uintptr(0)))
__248:
;
goto __247
@@ -35205,7 +39242,7 @@ __252:
goto __253
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzProgress = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1384 /* len6 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzProgress, zProgress, (uint64(*(*int32)(unsafe.Pointer(bp + 1384 /* len6 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzProgress, zProgress, (uint64(*(*int32)(unsafe.Pointer(bp + 1384 /* len6 */)) + 1)))
goto __254
__253:
(*SqliteDb)(unsafe.Pointer(pDb)).FzProgress = uintptr(0)
@@ -35215,7 +39252,9 @@ __254:
goto __255
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
- sqlite3.Xsqlite3_progress_handler(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*int32)(unsafe.Pointer(bp + 1380 /* N */)), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{DbProgressHandler})), pDb)
+ sqlite3.Xsqlite3_progress_handler(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*int32)(unsafe.Pointer(bp + 1380 /* N */)), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{DbProgressHandler})), pDb)
goto __256
__255:
sqlite3.Xsqlite3_progress_handler(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, 0, uintptr(0), uintptr(0))
@@ -35223,7 +39262,7 @@ __256:
;
goto __250
__249:
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10763 /* "N CALLBACK" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12418 /* "N CALLBACK" */)
return 1
__250:
;
@@ -35240,7 +39279,7 @@ __29:
if !(objc > 3) {
goto __257
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9543 /* "?CALLBACK?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11202 /* "?CALLBACK?" */)
return 1
goto __258
__257:
@@ -35250,7 +39289,7 @@ __257:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzProfile != 0) {
goto __261
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+784, (*SqliteDb)(unsafe.Pointer(pDb)).FzProfile, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+784, (*SqliteDb)(unsafe.Pointer(pDb)).FzProfile, uintptr(0)))
__261:
;
goto __260
@@ -35266,7 +39305,7 @@ __262:
goto __263
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzProfile = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1388 /* len7 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzProfile, zProfile, (uint64(*(*int32)(unsafe.Pointer(bp + 1388 /* len7 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzProfile, zProfile, (uint64(*(*int32)(unsafe.Pointer(bp + 1388 /* len7 */)) + 1)))
goto __264
__263:
(*SqliteDb)(unsafe.Pointer(pDb)).FzProfile = uintptr(0)
@@ -35277,7 +39316,7 @@ __264:
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
sqlite3.Xsqlite3_profile(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, sqlite_uint64)
+ f func(*libc.TLS, uintptr, uintptr, sqlite_uint64)
}{DbProfileHandler})), pDb)
goto __266
__265:
@@ -35297,7 +39336,7 @@ __30:
if !(objc != 3) {
goto __267
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10774 /* "KEY" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12429 /* "KEY" */)
return 1
__267:
;
@@ -35324,7 +39363,7 @@ __268:
zSrcFile = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
goto __271
__270:
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9554 /* "?DATABASE? FILEN..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11213 /* "?DATABASE? FILEN..." */)
return 1
__271:
;
@@ -35335,7 +39374,7 @@ __269:
if !(rc != 0) {
goto __272
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+800, ts+10778, /* "cannot open sour..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+800, ts+12433, /* "cannot open sour..." */
sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 1392 /* pSrc */))), uintptr(0)))
sqlite3.Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 1392 /* pSrc */)))
return 1
@@ -35345,21 +39384,21 @@ __272:
if !(pBackup1 == uintptr(0)) {
goto __273
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+824, ts+10808, /* "restore failed: " */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+824, ts+12463, /* "restore failed: " */
sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
sqlite3.Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 1392 /* pSrc */)))
return 1
__273:
;
__274:
- if !(((crt.AssignInt32(&rc, sqlite3.Xsqlite3_backup_step(tls, pBackup1, 100))) == 0) ||
+ if !(((libc.AssignInt32(&rc, sqlite3.Xsqlite3_backup_step(tls, pBackup1, 100))) == 0) ||
(rc == 5)) {
goto __275
}
if !(rc == 5) {
goto __276
}
- if !(crt.PostIncInt32(&nTimeout, 1) >= 3) {
+ if !(libc.PostIncInt32(&nTimeout, 1) >= 3) {
goto __277
}
goto __275
@@ -35381,12 +39420,12 @@ __278:
if !((rc == 5) || (rc == 6)) {
goto __280
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+848, ts+10825, /* "restore failed: ..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+848, ts+12480, /* "restore failed: ..." */
uintptr(0)))
rc = 1
goto __281
__280:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+864, ts+10808, /* "restore failed: " */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+864, ts+12463, /* "restore failed: " */
sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
rc = 1
__281:
@@ -35409,7 +39448,7 @@ __32:
if !((objc != 2) && (objc != 3)) {
goto __282
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10862 /* "?DATABASE?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12517 /* "?DATABASE?" */)
rc = 1
goto __283
__282:
@@ -35443,37 +39482,37 @@ __33:
if !(objc != 3) {
goto __287
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10873 /* "(step|sort|autoi..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12528 /* "(step|sort|autoi..." */)
return 1
__287:
;
zOp = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
- if !(crt.Xstrcmp(tls, zOp, ts+10895 /* "step" */) == 0) {
+ if !(libc.Xstrcmp(tls, zOp, ts+9942 /* "step" */) == 0) {
goto __288
}
v2 = (*SqliteDb)(unsafe.Pointer(pDb)).FnStep
goto __289
__288:
- if !(crt.Xstrcmp(tls, zOp, ts+10900 /* "sort" */) == 0) {
+ if !(libc.Xstrcmp(tls, zOp, ts+12550 /* "sort" */) == 0) {
goto __290
}
v2 = (*SqliteDb)(unsafe.Pointer(pDb)).FnSort
goto __291
__290:
- if !(crt.Xstrcmp(tls, zOp, ts+10905 /* "autoindex" */) == 0) {
+ if !(libc.Xstrcmp(tls, zOp, ts+12555 /* "autoindex" */) == 0) {
goto __292
}
v2 = (*SqliteDb)(unsafe.Pointer(pDb)).FnIndex
goto __293
__292:
- if !(crt.Xstrcmp(tls, zOp, ts+10915 /* "vmstep" */) == 0) {
+ if !(libc.Xstrcmp(tls, zOp, ts+12565 /* "vmstep" */) == 0) {
goto __294
}
v2 = (*SqliteDb)(unsafe.Pointer(pDb)).FnVMStep
goto __295
__294:
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp+888, ts+10922, /* "bad argument: sh..." */
+ libc.VaList(bp+888, ts+12572, /* "bad argument: sh..." */
uintptr(0)))
return 1
__295:
@@ -35494,7 +39533,7 @@ __34:
if !(objc != 3) {
goto __296
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10978 /* "MILLISECONDS" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12628 /* "MILLISECONDS" */)
return 1
__296:
;
@@ -35532,7 +39571,7 @@ __36:
if !(objc > 3) {
goto __299
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+9543 /* "?CALLBACK?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11202 /* "?CALLBACK?" */)
return 1
goto __300
__299:
@@ -35542,7 +39581,7 @@ __299:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzTrace != 0) {
goto __303
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+904, (*SqliteDb)(unsafe.Pointer(pDb)).FzTrace, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+904, (*SqliteDb)(unsafe.Pointer(pDb)).FzTrace, uintptr(0)))
__303:
;
goto __302
@@ -35558,7 +39597,7 @@ __304:
goto __305
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzTrace = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1412 /* len8 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzTrace, zTrace, (uint64(*(*int32)(unsafe.Pointer(bp + 1412 /* len8 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzTrace, zTrace, (uint64(*(*int32)(unsafe.Pointer(bp + 1412 /* len8 */)) + 1)))
goto __306
__305:
(*SqliteDb)(unsafe.Pointer(pDb)).FzTrace = uintptr(0)
@@ -35569,7 +39608,7 @@ __306:
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
sqlite3.Xsqlite3_trace(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr)
+ f func(*libc.TLS, uintptr, uintptr)
}{DbTraceHandler})), pDb)
goto __308
__307:
@@ -35591,7 +39630,7 @@ __37:
if !(objc > 4) {
goto __309
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+10991 /* "?CALLBACK? ?MASK..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12641 /* "?CALLBACK? ?MASK..." */)
return 1
goto __310
__309:
@@ -35601,7 +39640,7 @@ __309:
if !((*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2 != 0) {
goto __313
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+920, (*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+920, (*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2, uintptr(0)))
__313:
;
goto __312
@@ -35627,7 +39666,7 @@ __317:
return 1
__320:
;
- if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(bp + 1424 /* pObj */)), uintptr(unsafe.Pointer(&TTYPE_strs)), int32(unsafe.Sizeof(uintptr(0))), ts+11009 /* "trace type" */, 0, bp+1432 /* &ttype */) != 0) {
+ if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(bp + 1424 /* pObj */)), uintptr(unsafe.Pointer(&TTYPE_strs)), int32(unsafe.Sizeof(uintptr(0))), ts+12659 /* "trace type" */, 0, bp+1432 /* &ttype */) != 0) {
goto __321
}
pError = tcl.XTcl_DuplicateObj(tls, tcl.XTcl_GetObjResult(tls, interp))
@@ -35637,7 +39676,7 @@ __320:
}
__325:
_objPtr3 = pError
- if !(crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr3))).FrefCount, 1) <= 1) {
+ if !(libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr3))).FrefCount, 1) <= 1) {
goto __328
}
tcl.XTclFreeObj(tls, _objPtr3)
@@ -35657,7 +39696,7 @@ __323:
tcl.XTcl_SetObjResult(tls, interp, pError)
__329:
_objPtr4 = pError
- if !(crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr4))).FrefCount, 1) <= 1) {
+ if !(libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr4))).FrefCount, 1) <= 1) {
goto __332
}
tcl.XTclFreeObj(tls, _objPtr4)
@@ -35726,7 +39765,7 @@ __338:
goto __339
}
(*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2 = tcl.XTcl_Alloc(tls, (uint32(*(*int32)(unsafe.Pointer(bp + 1416 /* len9 */)) + 1)))
- crt.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2, zTraceV2, (uint64(*(*int32)(unsafe.Pointer(bp + 1416 /* len9 */)) + 1)))
+ libc.Xmemcpy(tls, (*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2, zTraceV2, (uint64(*(*int32)(unsafe.Pointer(bp + 1416 /* len9 */)) + 1)))
goto __340
__339:
(*SqliteDb)(unsafe.Pointer(pDb)).FzTraceV2 = uintptr(0)
@@ -35737,7 +39776,7 @@ __340:
}
(*SqliteDb)(unsafe.Pointer(pDb)).Finterp = interp
sqlite3.Xsqlite3_trace_v2(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, uint32(wMask), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uint32, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uint32, uintptr, uintptr, uintptr) int32
}{DbTraceV2Handler})), pDb)
goto __342
__341:
@@ -35761,11 +39800,11 @@ __310:
// This command was inspired by Dave Thomas's talk on Ruby at the
// 2005 O'Reilly Open Source Convention (OSCON).
__38:
- zBegin = ts + 11020 /* "SAVEPOINT _tcl_t..." */
+ zBegin = ts + 12670 /* "SAVEPOINT _tcl_t..." */
if !((objc != 3) && (objc != 4)) {
goto __343
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11047 /* "[TYPE] SCRIPT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12697 /* "[TYPE] SCRIPT" */)
return 1
__343:
;
@@ -35773,7 +39812,7 @@ __343:
if !(((*SqliteDb)(unsafe.Pointer(pDb)).FnTransaction == 0) && (objc == 4)) {
goto __344
}
- if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(unsafe.Pointer(&TTYPE_strs1)), int32(unsafe.Sizeof(uintptr(0))), ts+11061 /* "transaction type" */, 0, bp+1448 /* &ttype1 */) != 0) {
+ if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(unsafe.Pointer(&TTYPE_strs1)), int32(unsafe.Sizeof(uintptr(0))), ts+12711 /* "transaction type" */, 0, bp+1448 /* &ttype1 */) != 0) {
goto __345
}
return 1
@@ -35792,10 +39831,10 @@ __347: /* no-op */
;
goto __346
__348:
- zBegin = ts + 11078 /* "BEGIN EXCLUSIVE" */
+ zBegin = ts + 12728 /* "BEGIN EXCLUSIVE" */
goto __346
__349:
- zBegin = ts + 11094 /* "BEGIN IMMEDIATE" */
+ zBegin = ts + 12744 /* "BEGIN IMMEDIATE" */
goto __346
__346:
;
@@ -35810,7 +39849,7 @@ __344:
if !(rc != 0) {
goto __350
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+936, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+936, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
return 1
__350:
;
@@ -35825,7 +39864,7 @@ __350:
goto __351
}
tcl.XTcl_NRAddCallback(tls, interp, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, uintptr, int32) int32
}{DbTransPostCmd})), *(*uintptr)(unsafe.Pointer(bp + 1456 /* cd */)), uintptr(0), uintptr(0), uintptr(0))
tcl.XTcl_NREvalObj(tls, interp, pScript2, 0)
goto __352
@@ -35840,7 +39879,7 @@ __39:
if !((objc != 2) && (objc != 3)) {
goto __353
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11110 /* "?SCRIPT?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12760 /* "?SCRIPT?" */)
rc = 1
goto __354
__353:
@@ -35852,7 +39891,7 @@ __353:
}
__356:
_objPtr5 = (*SqliteDb)(unsafe.Pointer(pDb)).FpUnlockNotify
- if !(crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr5))).FrefCount, 1) <= 1) {
+ if !(libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr5))).FrefCount, 1) <= 1) {
goto __359
}
tcl.XTclFreeObj(tls, _objPtr5)
@@ -35874,7 +39913,7 @@ __355:
goto __360
}
xNotify = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32)
+ f func(*libc.TLS, uintptr, int32)
}{DbUnlockNotify}))
pNotifyArg = pDb
(*SqliteDb)(unsafe.Pointer(pDb)).FpUnlockNotify = *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))
@@ -35885,7 +39924,7 @@ __360:
if !(sqlite3.Xsqlite3_unlock_notify(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, xNotify, pNotifyArg) != 0) {
goto __361
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+952, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+952, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
rc = 1
__361:
;
@@ -35898,9 +39937,109 @@ __354:
// $db preupdate_hook new INDEX
// $db preupdate_hook old INDEX
__40:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+968, ts+11119, /* "preupdate_hook w..." */
- uintptr(0)))
- rc = 1
+
+ if !(objc < 3) {
+ goto __362
+ }
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12769 /* "SUB-COMMAND ?ARG..." */)
+__362:
+ ;
+ if !(tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(unsafe.Pointer(&azSub)), int32(unsafe.Sizeof(uintptr(0))), ts+1874 /* "sub-command" */, 0, bp+1464 /* &iSub */) != 0) {
+ goto __363
+ }
+ return 1
+__363:
+ ;
+
+ switch uint32(*(*int32)(unsafe.Pointer(bp + 1464 /* iSub */))) {
+ case uint32(0) /* PRE_COUNT */ :
+ goto __365
+
+ case uint32(2) /* PRE_HOOK */ :
+ goto __366
+
+ case uint32(1) /* PRE_DEPTH */ :
+ goto __367
+
+ case uint32(3) /* PRE_NEW */ :
+ goto __368
+ case uint32(4) /* PRE_OLD */ :
+ goto __369
+ }
+ goto __364
+__365:
+ nCol2 = sqlite3.Xsqlite3_preupdate_count(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, nCol2))
+ goto __364
+
+__366:
+ if !(objc > 4) {
+ goto __370
+ }
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12788 /* "hook ?SCRIPT?" */)
+ return 1
+__370:
+ ;
+ DbHookCmd(tls, interp, pDb, func() uintptr {
+ if objc == 4 {
+ return *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8))
+ }
+ return uintptr(0)
+ }(), (pDb + 112 /* &.pPreUpdateHook */))
+ goto __364
+
+__367:
+ if !(objc != 3) {
+ goto __371
+ }
+ tcl.XTcl_WrongNumArgs(tls, interp, 3, objv, ts+488 /* "" */)
+ return 1
+__371:
+ ;
+ pRet1 = tcl.XTcl_NewIntObj(tls, sqlite3.Xsqlite3_preupdate_depth(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb))
+ tcl.XTcl_SetObjResult(tls, interp, pRet1)
+ goto __364
+
+__368:
+__369:
+ if !(objc != 4) {
+ goto __372
+ }
+ tcl.XTcl_WrongNumArgs(tls, interp, 3, objv, ts+12802 /* "INDEX" */)
+ return 1
+__372:
+ ;
+ if !(tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+1468 /* &iIdx */) != 0) {
+ goto __373
+ }
+ return 1
+__373:
+ ;
+
+ if !(*(*int32)(unsafe.Pointer(bp + 1464 /* iSub */)) == 4 /* PRE_OLD */) {
+ goto __374
+ }
+ rc = sqlite3.Xsqlite3_preupdate_old(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*int32)(unsafe.Pointer(bp + 1468 /* iIdx */)), bp+1472 /* &pValue1 */)
+ goto __375
+__374:
+ ;
+ rc = sqlite3.Xsqlite3_preupdate_new(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb, *(*int32)(unsafe.Pointer(bp + 1468 /* iIdx */)), bp+1472 /* &pValue1 */)
+__375:
+ ;
+
+ if !(rc == 0) {
+ goto __376
+ }
+ pObj1 = tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(bp + 1472 /* pValue1 */))), -1)
+ tcl.XTcl_SetObjResult(tls, interp, pObj1)
+ goto __377
+__376:
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+968, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(pDb)).Fdb), uintptr(0)))
+ return 1
+__377:
+ ;
+__364:
+ ;
goto __3
// $db wal_hook ?script?
@@ -35913,29 +40052,29 @@ __43:
// whether [$db update_hook] or [$db rollback_hook] was invoked.
ppHook = uintptr(0)
if !(*(*int32)(unsafe.Pointer(bp + 1016 /* choice */)) == 40 /* DB_WAL_HOOK */) {
- goto __362
+ goto __378
}
ppHook = (pDb + 128 /* &.pWalHook */)
-__362:
+__378:
;
if !(*(*int32)(unsafe.Pointer(bp + 1016 /* choice */)) == 38 /* DB_UPDATE_HOOK */) {
- goto __363
+ goto __379
}
ppHook = (pDb + 104 /* &.pUpdateHook */)
-__363:
+__379:
;
if !(*(*int32)(unsafe.Pointer(bp + 1016 /* choice */)) == 29 /* DB_ROLLBACK_HOOK */) {
- goto __364
+ goto __380
}
ppHook = (pDb + 120 /* &.pRollbackHook */)
-__364:
+__380:
;
if !(objc > 3) {
- goto __365
+ goto __381
}
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11110 /* "?SCRIPT?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12760 /* "?SCRIPT?" */)
return 1
-__365:
+__381:
;
DbHookCmd(tls, interp, pDb, func() uintptr {
@@ -35951,64 +40090,64 @@ __365:
// Return the version string for this database.
__44:
i5 = 2
-__366:
+__382:
if !(i5 < objc) {
- goto __368
+ goto __384
}
zArg = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i5)*8)))
// Optional arguments to $db version are used for testing purpose
// $db version -use-legacy-prepare BOOLEAN
//
// Turn the use of legacy sqlite3_prepare() on or off.
- if !((crt.Xstrcmp(tls, zArg, ts+11162 /* "-use-legacy-prep..." */) == 0) && ((i5 + 1) < objc)) {
- goto __369
+ if !((libc.Xstrcmp(tls, zArg, ts+12808 /* "-use-legacy-prep..." */) == 0) && ((i5 + 1) < objc)) {
+ goto __385
}
i5++
if !(tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i5)*8)), (pDb+224 /* &.bLegacyPrepare */)) != 0) {
- goto __371
+ goto __387
}
return 1
-__371:
+__387:
;
- goto __370
-__369:
+ goto __386
+__385:
// $db version -last-stmt-ptr
//
// Return a string which is a hex encoding of the pointer to the
// most recent sqlite3_stmt in the statement cache.
- if !(crt.Xstrcmp(tls, zArg, ts+11182 /* "-last-stmt-ptr" */) == 0) {
- goto __372
+ if !(libc.Xstrcmp(tls, zArg, ts+12828 /* "-last-stmt-ptr" */) == 0) {
+ goto __388
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+1464 /* &zBuf[0] */, ts+11197, /* "%p" */
- crt.VaList(bp+984, func() uintptr {
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+1480 /* &zBuf[0] */, ts+12843, /* "%p" */
+ libc.VaList(bp+984, func() uintptr {
if (*SqliteDb)(unsafe.Pointer(pDb)).FstmtList != 0 {
return (*SqlPreparedStmt)(unsafe.Pointer((*SqliteDb)(unsafe.Pointer(pDb)).FstmtList)).FpStmt
}
return uintptr(0)
}()))
- tcl.XTcl_SetResult(tls, interp, bp+1464 /* &zBuf[0] */, uintptr(1))
- goto __373
-__372:
+ tcl.XTcl_SetResult(tls, interp, bp+1480 /* &zBuf[0] */, uintptr(1))
+ goto __389
+__388:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+992, ts+11200 /* "unknown argument..." */, zArg, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+992, ts+12846 /* "unknown argument..." */, zArg, uintptr(0)))
return 1
-__373:
+__389:
;
-__370:
+__386:
;
- goto __367
-__367:
+ goto __383
+__383:
i5++
- goto __366
- goto __368
-__368:
+ goto __382
+ goto __384
+__384:
;
if !(i5 == 2) {
- goto __374
+ goto __390
}
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3_libversion(tls), uintptr(0))
-__374:
+__390:
;
goto __3
__3:
@@ -36023,60 +40162,61 @@ type DbConfigChoices = struct {
}
var DB_strs = [42]uintptr{
- ts + 11219 /* "authorizer" */, ts + 11230 /* "backup" */, ts + 11237, /* "bind_fallback" */
- ts + 11251 /* "busy" */, ts + 11256 /* "cache" */, ts + 11262, /* "changes" */
- ts + 11270 /* "close" */, ts + 11276 /* "collate" */, ts + 11284, /* "collation_needed" */
- ts + 11301 /* "commit_hook" */, ts + 11313 /* "complete" */, ts + 11322, /* "config" */
- ts + 11329 /* "copy" */, ts + 11334 /* "deserialize" */, ts + 11346, /* "enable_load_exte..." */
- ts + 11368 /* "errorcode" */, ts + 3370 /* "eval" */, ts + 11378, /* "exists" */
- ts + 11385 /* "function" */, ts + 8647 /* "incrblob" */, ts + 11394, /* "interrupt" */
- ts + 11404 /* "last_insert_rowi..." */, ts + 11422 /* "nullvalue" */, ts + 11432, /* "onecolumn" */
- ts + 11442 /* "preupdate" */, ts + 11452 /* "profile" */, ts + 11460, /* "progress" */
- ts + 11469 /* "rekey" */, ts + 11475 /* "restore" */, ts + 11483, /* "rollback_hook" */
- ts + 11497 /* "serialize" */, ts + 11507 /* "status" */, ts + 11514, /* "timeout" */
- ts + 11522 /* "total_changes" */, ts + 11536 /* "trace" */, ts + 11542, /* "trace_v2" */
- ts + 11551 /* "transaction" */, ts + 11563 /* "unlock_notify" */, ts + 11577, /* "update_hook" */
- ts + 11589 /* "version" */, ts + 11597 /* "wal_hook" */, uintptr(0),
+ ts + 12865 /* "authorizer" */, ts + 12876 /* "backup" */, ts + 12883, /* "bind_fallback" */
+ ts + 12897 /* "busy" */, ts + 12902 /* "cache" */, ts + 12908, /* "changes" */
+ ts + 9947 /* "close" */, ts + 12916 /* "collate" */, ts + 12924, /* "collation_needed" */
+ ts + 12941 /* "commit_hook" */, ts + 12953 /* "complete" */, ts + 12962, /* "config" */
+ ts + 12969 /* "copy" */, ts + 12974 /* "deserialize" */, ts + 12986, /* "enable_load_exte..." */
+ ts + 13008 /* "errorcode" */, ts + 4587 /* "eval" */, ts + 13018, /* "exists" */
+ ts + 13025 /* "function" */, ts + 10346 /* "incrblob" */, ts + 13034, /* "interrupt" */
+ ts + 13044 /* "last_insert_rowi..." */, ts + 13062 /* "nullvalue" */, ts + 13072, /* "onecolumn" */
+ ts + 13082 /* "preupdate" */, ts + 13092 /* "profile" */, ts + 10021, /* "progress" */
+ ts + 13100 /* "rekey" */, ts + 13106 /* "restore" */, ts + 13114, /* "rollback_hook" */
+ ts + 13128 /* "serialize" */, ts + 13138 /* "status" */, ts + 13145, /* "timeout" */
+ ts + 13153 /* "total_changes" */, ts + 13167 /* "trace" */, ts + 13173, /* "trace_v2" */
+ ts + 13182 /* "transaction" */, ts + 13194 /* "unlock_notify" */, ts + 13208, /* "update_hook" */
+ ts + 13220 /* "version" */, ts + 13228 /* "wal_hook" */, uintptr(0),
} /* tclsqlite.c:1916:21 */
var aDbConfig = [16]DbConfigChoices{
- {FzName: ts + 11606 /* "defensive" */, Fop: 1010},
- {FzName: ts + 11616 /* "dqs_ddl" */, Fop: 1014},
- {FzName: ts + 11624 /* "dqs_dml" */, Fop: 1013},
- {FzName: ts + 11632 /* "enable_fkey" */, Fop: 1002},
- {FzName: ts + 11644 /* "enable_qpsg" */, Fop: 1007},
- {FzName: ts + 11656 /* "enable_trigger" */, Fop: 1003},
- {FzName: ts + 11671 /* "enable_view" */, Fop: 1015},
- {FzName: ts + 11683 /* "fts3_tokenizer" */, Fop: 1004},
- {FzName: ts + 11698 /* "legacy_alter_tab..." */, Fop: 1012},
- {FzName: ts + 11717 /* "legacy_file_form..." */, Fop: 1016},
- {FzName: ts + 11736 /* "load_extension" */, Fop: 1005},
- {FzName: ts + 11751 /* "no_ckpt_on_close" */, Fop: 1006},
- {FzName: ts + 11768 /* "reset_database" */, Fop: 1009},
- {FzName: ts + 11783 /* "trigger_eqp" */, Fop: 1008},
- {FzName: ts + 11795 /* "trusted_schema" */, Fop: 1017},
- {FzName: ts + 11810 /* "writable_schema" */, Fop: 1011},
+ {FzName: ts + 13237 /* "defensive" */, Fop: 1010},
+ {FzName: ts + 13247 /* "dqs_ddl" */, Fop: 1014},
+ {FzName: ts + 13255 /* "dqs_dml" */, Fop: 1013},
+ {FzName: ts + 13263 /* "enable_fkey" */, Fop: 1002},
+ {FzName: ts + 13275 /* "enable_qpsg" */, Fop: 1007},
+ {FzName: ts + 13287 /* "enable_trigger" */, Fop: 1003},
+ {FzName: ts + 13302 /* "enable_view" */, Fop: 1015},
+ {FzName: ts + 13314 /* "fts3_tokenizer" */, Fop: 1004},
+ {FzName: ts + 13329 /* "legacy_alter_tab..." */, Fop: 1012},
+ {FzName: ts + 13348 /* "legacy_file_form..." */, Fop: 1016},
+ {FzName: ts + 13367 /* "load_extension" */, Fop: 1005},
+ {FzName: ts + 13382 /* "no_ckpt_on_close" */, Fop: 1006},
+ {FzName: ts + 13399 /* "reset_database" */, Fop: 1009},
+ {FzName: ts + 13414 /* "trigger_eqp" */, Fop: 1008},
+ {FzName: ts + 13426 /* "trusted_schema" */, Fop: 1017},
+ {FzName: ts + 13441 /* "writable_schema" */, Fop: 1011},
} /* tclsqlite.c:2343:7 */
var TTYPE_strs = [5]uintptr{
- ts + 11826 /* "statement" */, ts + 11452 /* "profile" */, ts + 11836 /* "row" */, ts + 11270 /* "close" */, uintptr(0),
+ ts + 13457 /* "statement" */, ts + 13092 /* "profile" */, ts + 13467 /* "row" */, ts + 9947 /* "close" */, uintptr(0),
} /* tclsqlite.c:3321:27 */
var TTYPE_strs1 = [4]uintptr{
- ts + 11840 /* "deferred" */, ts + 11849 /* "exclusive" */, ts + 11859 /* "immediate" */, uintptr(0),
-} /* tclsqlite.c:3404:25 */
+ ts + 13471 /* "deferred" */, ts + 13480 /* "exclusive" */, ts + 13490 /* "immediate" */, uintptr(0),
+} /* tclsqlite.c:3404:25 */
+var azSub = [6]uintptr{ts + 1825 /* "count" */, ts + 13500 /* "depth" */, ts + 13506 /* "hook" */, ts + 13511 /* "new" */, ts + 13515 /* "old" */, uintptr(0)} /* tclsqlite.c:3496:23 */
// Adaptor that provides an objCmd interface to the NRE-enabled
// interface implementation.
-func DbObjCmdAdaptor(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* tclsqlite.c:3647:26: */
+func DbObjCmdAdaptor(tls *libc.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* tclsqlite.c:3647:26: */
return tcl.XTcl_NRCallObjProc(tls, interp, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{DbObjCmd})), cd, objc, objv)
}
// Issue the usage message when the "sqlite3" command arguments are
// incorrect.
-func sqliteCmdUsage(tls *crt.TLS, interp uintptr, objv uintptr) int32 { /* tclsqlite.c:3661:12: */
+func sqliteCmdUsage(tls *libc.TLS, interp uintptr, objv uintptr) int32 { /* tclsqlite.c:3661:12: */
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv,
- ts+11869 /* "HANDLE ?FILENAME..." */)
+ ts+13519 /* "HANDLE ?FILENAME..." */)
return 1
}
@@ -36094,7 +40234,7 @@ func sqliteCmdUsage(tls *crt.TLS, interp uintptr, objv uintptr) int32 { /* tclsq
//
// The second argument is the name of the database file.
//
-func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* tclsqlite.c:3689:26: */
+func DbMain(tls *libc.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* tclsqlite.c:3689:26: */
bp := tls.Alloc(336)
defer tls.Free(336)
@@ -36122,16 +40262,16 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
}
if objc == 2 {
zArg = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), uintptr(0))
- if crt.Xstrcmp(tls, zArg, ts+12015 /* "-version" */) == 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3_libversion(tls), uintptr(0)))
+ if libc.Xstrcmp(tls, zArg, ts+13665 /* "-version" */) == 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3_libversion(tls), uintptr(0)))
return 0
}
- if crt.Xstrcmp(tls, zArg, ts+12024 /* "-sourceid" */) == 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, sqlite3.Xsqlite3_sourceid(tls), uintptr(0)))
+ if libc.Xstrcmp(tls, zArg, ts+13674 /* "-sourceid" */) == 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, sqlite3.Xsqlite3_sourceid(tls), uintptr(0)))
return 0
}
- if crt.Xstrcmp(tls, zArg, ts+12034 /* "-has-codec" */) == 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+12045 /* "0" */, uintptr(0)))
+ if libc.Xstrcmp(tls, zArg, ts+13684 /* "-has-codec" */) == 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+13695 /* "0" */, uintptr(0)))
return 0
}
if int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) == '-' {
@@ -36151,23 +40291,23 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
return sqliteCmdUsage(tls, interp, objv)
}
i++
- if crt.Xstrcmp(tls, zArg, ts+12047 /* "-key" */) == 0 {
- } else if crt.Xstrcmp(tls, zArg, ts+12052 /* "-vfs" */) == 0 {
+ if libc.Xstrcmp(tls, zArg, ts+13697 /* "-key" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13702 /* "-vfs" */) == 0 {
zVfs = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)))
- } else if crt.Xstrcmp(tls, zArg, ts+10290 /* "-readonly" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+11945 /* "-readonly" */) == 0 {
// var b int32 at bp+88, 4
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+88 /* &b */) != 0 {
return 1
}
if *(*int32)(unsafe.Pointer(bp + 88 /* b */)) != 0 {
- flags = flags & (^int32(crt.Int32FromInt32((0x00000002 | 0x00000004))))
+ flags = flags & (^int32(libc.Int32FromInt32((0x00000002 | 0x00000004))))
flags = flags | (0x00000001)
} else {
- flags = flags & (^int32(crt.Int32FromInt32(0x00000001)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00000001)))
flags = flags | (0x00000002)
}
- } else if crt.Xstrcmp(tls, zArg, ts+12057 /* "-create" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13707 /* "-create" */) == 0 {
// var b int32 at bp+92, 4
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+92 /* &b */) != 0 {
@@ -36176,9 +40316,9 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
if (*(*int32)(unsafe.Pointer(bp + 92 /* b */)) != 0) && ((flags & 0x00000001) == 0) {
flags = flags | (0x00000004)
} else {
- flags = flags & (^int32(crt.Int32FromInt32(0x00000004)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00000004)))
}
- } else if crt.Xstrcmp(tls, zArg, ts+12065 /* "-nofollow" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13715 /* "-nofollow" */) == 0 {
// var b int32 at bp+96, 4
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+96 /* &b */) != 0 {
@@ -36187,9 +40327,9 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
if *(*int32)(unsafe.Pointer(bp + 96 /* b */)) != 0 {
flags = flags | (0x01000000)
} else {
- flags = flags & (^int32(crt.Int32FromInt32(0x01000000)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x01000000)))
}
- } else if crt.Xstrcmp(tls, zArg, ts+12075 /* "-nomutex" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13725 /* "-nomutex" */) == 0 {
// var b int32 at bp+100, 4
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+100 /* &b */) != 0 {
@@ -36197,11 +40337,11 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
}
if *(*int32)(unsafe.Pointer(bp + 100 /* b */)) != 0 {
flags = flags | (0x00008000)
- flags = flags & (^int32(crt.Int32FromInt32(0x00010000)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00010000)))
} else {
- flags = flags & (^int32(crt.Int32FromInt32(0x00008000)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00008000)))
}
- } else if crt.Xstrcmp(tls, zArg, ts+12084 /* "-fullmutex" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13734 /* "-fullmutex" */) == 0 {
// var b int32 at bp+104, 4
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+104 /* &b */) != 0 {
@@ -36209,11 +40349,11 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
}
if *(*int32)(unsafe.Pointer(bp + 104 /* b */)) != 0 {
flags = flags | (0x00010000)
- flags = flags & (^int32(crt.Int32FromInt32(0x00008000)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00008000)))
} else {
- flags = flags & (^int32(crt.Int32FromInt32(0x00010000)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00010000)))
}
- } else if crt.Xstrcmp(tls, zArg, ts+12095 /* "-uri" */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13745 /* "-uri" */) == 0 {
// var b int32 at bp+108, 4
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+108 /* &b */) != 0 {
@@ -36222,20 +40362,20 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
if *(*int32)(unsafe.Pointer(bp + 108 /* b */)) != 0 {
flags = flags | (0x00000040)
} else {
- flags = flags & (^int32(crt.Int32FromInt32(0x00000040)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00000040)))
}
- } else if crt.Xstrcmp(tls, zArg, ts+12100 /* "-translatefilena..." */) == 0 {
+ } else if libc.Xstrcmp(tls, zArg, ts+13750 /* "-translatefilena..." */) == 0 {
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+112 /* &bTranslateFileName */) != 0 {
return 1
}
} else {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+10300 /* "unknown option: " */, zArg, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+11955 /* "unknown option: " */, zArg, uintptr(0)))
return 1
}
}
zErrMsg = uintptr(0)
p = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(SqliteDb{})))
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(SqliteDb{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(SqliteDb{})))
if zFile == uintptr(0) {
zFile = ts + 488 /* "" */
}
@@ -36248,12 +40388,12 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
}
if (*SqliteDb)(unsafe.Pointer(p)).Fdb != 0 {
if 0 != sqlite3.Xsqlite3_errcode(tls, (*SqliteDb)(unsafe.Pointer(p)).Fdb) {
- zErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+72, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(p)).Fdb)))
+ zErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+72, sqlite3.Xsqlite3_errmsg(tls, (*SqliteDb)(unsafe.Pointer(p)).Fdb)))
sqlite3.Xsqlite3_close(tls, (*SqliteDb)(unsafe.Pointer(p)).Fdb)
(*SqliteDb)(unsafe.Pointer(p)).Fdb = uintptr(0)
}
} else {
- zErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+80, sqlite3.Xsqlite3_errstr(tls, rc)))
+ zErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+80, sqlite3.Xsqlite3_errstr(tls, rc)))
}
if (*SqliteDb)(unsafe.Pointer(p)).Fdb == uintptr(0) {
tcl.XTcl_SetResult(tls, interp, zErrMsg, uintptr(1))
@@ -36267,15 +40407,15 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
zArg = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), uintptr(0))
if DbUseNre(tls) != 0 {
tcl.XTcl_NRCreateCommand(tls, interp, zArg, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{DbObjCmdAdaptor})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{DbObjCmd})),
- p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{DbDeleteCmd})))
+ p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{DbDeleteCmd})))
} else {
tcl.XTcl_CreateObjCommand(tls, interp, zArg, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{DbObjCmd})), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{DbDeleteCmd})))
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{DbObjCmd})), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{DbDeleteCmd})))
}
return 0
}
@@ -36296,7 +40436,7 @@ func DbMain(tls *crt.TLS, cd uintptr, interp uintptr, objc int32, objv uintptr)
// for additional information.
//
// The EXTERN macros are required by TCL in order to work on windows.
-func Sqlite3_Init(tls *crt.TLS, interp uintptr) int32 { /* tclsqlite.c:3877:12: */
+func Sqlite3_Init(tls *libc.TLS, interp uintptr) int32 { /* tclsqlite.c:3877:12: */
var rc int32
if 1 != 0 {
rc = 0
@@ -36304,47 +40444,47 @@ func Sqlite3_Init(tls *crt.TLS, interp uintptr) int32 { /* tclsqlite.c:3877:12:
rc = 1
}
if rc == 0 {
- tcl.XTcl_CreateObjCommand(tls, interp, ts+12119 /* "sqlite3" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+13769 /* "sqlite3" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{DbMain})), uintptr(0), uintptr(0))
// The "sqlite" alias is undocumented. It is here only to support
// legacy scripts. All new scripts should use only the "sqlite3"
// command.
- tcl.XTcl_CreateObjCommand(tls, interp, ts+12127 /* "sqlite" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+13777 /* "sqlite" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{DbMain})), uintptr(0), uintptr(0))
- rc = tcl.XTcl_PkgProvideEx(tls, interp, ts+12119 /* "sqlite3" */, ts+12134 /* "3.32.3" */, uintptr(0))
+ rc = tcl.XTcl_PkgProvideEx(tls, interp, ts+13769 /* "sqlite3" */, ts+13784 /* "3.33.0" */, uintptr(0))
}
return rc
}
-func Tclsqlite3_Init(tls *crt.TLS, interp uintptr) int32 { /* tclsqlite.c:3891:12: */
+func Tclsqlite3_Init(tls *libc.TLS, interp uintptr) int32 { /* tclsqlite.c:3891:12: */
return Sqlite3_Init(tls, interp)
}
-func Sqlite3_Unload(tls *crt.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3892:12: */
+func Sqlite3_Unload(tls *libc.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3892:12: */
return 0
}
-func Tclsqlite3_Unload(tls *crt.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3893:12: */
+func Tclsqlite3_Unload(tls *libc.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3893:12: */
return 0
}
// Because it accesses the file-system and uses persistent state, SQLite
// is not considered appropriate for safe interpreters. Hence, we cause
// the _SafeInit() interfaces return TCL_ERROR.
-func Sqlite3_SafeInit(tls *crt.TLS, interp uintptr) int32 { /* tclsqlite.c:3899:12: */ return 1 }
-func Sqlite3_SafeUnload(tls *crt.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3900:12: */
+func Sqlite3_SafeInit(tls *libc.TLS, interp uintptr) int32 { /* tclsqlite.c:3899:12: */ return 1 }
+func Sqlite3_SafeUnload(tls *libc.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3900:12: */
return 1
}
-func Sqlite_Init(tls *crt.TLS, interp uintptr) int32 { /* tclsqlite.c:3905:5: */
+func Sqlite_Init(tls *libc.TLS, interp uintptr) int32 { /* tclsqlite.c:3905:5: */
return Sqlite3_Init(tls, interp)
}
-func Tclsqlite_Init(tls *crt.TLS, interp uintptr) int32 { /* tclsqlite.c:3906:5: */
+func Tclsqlite_Init(tls *libc.TLS, interp uintptr) int32 { /* tclsqlite.c:3906:5: */
return Sqlite3_Init(tls, interp)
}
-func Sqlite_Unload(tls *crt.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3907:5: */
+func Sqlite_Unload(tls *libc.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3907:5: */
return 0
}
-func Tclsqlite_Unload(tls *crt.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3908:5: */
+func Tclsqlite_Unload(tls *libc.TLS, interp uintptr, flags int32) int32 { /* tclsqlite.c:3908:5: */
return 0
}
@@ -36353,13 +40493,13 @@ func Tclsqlite_Unload(tls *crt.TLS, interp uintptr, flags int32) int32 { /* tcls
// This is the main routine for an ordinary TCL shell. If there are
// are arguments, run the first argument as a script. Otherwise,
// read TCL commands from standard input
-func tclsh_main_loop(tls *crt.TLS) uintptr { /* tclsqlite.c:3920:19: */
+func tclsh_main_loop(tls *libc.TLS) uintptr { /* tclsqlite.c:3920:19: */
return uintptr(unsafe.Pointer(&zMainloop))
}
-var zMainloop = *(*[431]int8)(unsafe.Pointer(ts + 12141 /* "if {[llength $ar..." */)) /* tclsqlite.c:3921:21 */
+var zMainloop = *(*[431]int8)(unsafe.Pointer(ts + 13791 /* "if {[llength $ar..." */)) /* tclsqlite.c:3921:21 */
-func main(tls *crt.TLS, argc int32, argv uintptr) int32 { /* tclsqlite.c:3953:18: */
+func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* tclsqlite.c:3953:18: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -36368,14 +40508,14 @@ func main(tls *crt.TLS, argc int32, argv uintptr) int32 { /* tclsqlite.c:3953:18
var zScript uintptr = uintptr(0)
// var zArgc [32]int8 at bp+32, 32
- if crt.Xgetenv(tls, ts+12572 /* "SQLITE_DEBUG_BRE..." */) != 0 {
- if (crt.Xisatty(tls, 0) != 0) && (crt.Xisatty(tls, 2) != 0) {
- crt.Xfprintf(tls, crt.Xstderr,
- ts+12591, /* "attach debugger ..." */
- crt.VaList(bp, crt.Xgetpid(tls)))
- crt.Xfgetc(tls, crt.Xstdin)
+ if libc.Xgetenv(tls, ts+14222 /* "SQLITE_DEBUG_BRE..." */) != 0 {
+ if (libc.Xisatty(tls, 0) != 0) && (libc.Xisatty(tls, 2) != 0) {
+ libc.Xfprintf(tls, libc.Xstderr,
+ ts+14241, /* "attach debugger ..." */
+ libc.VaList(bp, libc.Xgetpid(tls)))
+ libc.Xfgetc(tls, libc.Xstdin)
} else {
- crt.Xraise(tls, 5)
+ libc.Xraise(tls, 5)
}
}
@@ -36385,27 +40525,27 @@ func main(tls *crt.TLS, argc int32, argv uintptr) int32 { /* tclsqlite.c:3953:18
sqlite3.Xsqlite3_shutdown(tls)
tcl.XTcl_FindExecutable(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- tcl.XTcl_SetSystemEncoding(tls, uintptr(0), ts+12653 /* "utf-8" */)
+ tcl.XTcl_SetSystemEncoding(tls, uintptr(0), ts+14303 /* "utf-8" */)
interp = tcl.XTcl_CreateInterp(tls)
Sqlite3_Init(tls, interp)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), bp+32 /* &zArgc[0] */, ts+1237 /* "%d" */, crt.VaList(bp+8, (argc-1)))
- tcl.XTcl_SetVar2(tls, interp, ts+12659 /* "argc" */, uintptr(0), bp+32 /* &zArgc[0] */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+12664 /* "argv0" */, uintptr(0), *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 1)
- tcl.XTcl_SetVar2(tls, interp, ts+12670 /* "argv" */, uintptr(0), ts+488 /* "" */, 1)
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([32]int8{})), bp+32 /* &zArgc[0] */, ts+1237 /* "%d" */, libc.VaList(bp+8, (argc-1)))
+ tcl.XTcl_SetVar2(tls, interp, ts+14309 /* "argc" */, uintptr(0), bp+32 /* &zArgc[0] */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+14314 /* "argv0" */, uintptr(0), *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+14320 /* "argv" */, uintptr(0), ts+488 /* "" */, 1)
for i = 1; i < argc; i++ {
- tcl.XTcl_SetVar2(tls, interp, ts+12670 /* "argv" */, uintptr(0), *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), ((1 | 8) | 4))
+ tcl.XTcl_SetVar2(tls, interp, ts+14320 /* "argv" */, uintptr(0), *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), ((1 | 8) | 4))
}
zScript = sqlite3TestInit(tls, interp)
if zScript == uintptr(0) {
zScript = tclsh_main_loop(tls)
}
if tcl.XTcl_GlobalEval(tls, interp, zScript) != 0 {
- var zInfo uintptr = tcl.XTcl_GetVar2(tls, interp, ts+12675 /* "errorInfo" */, uintptr(0), 1)
+ var zInfo uintptr = tcl.XTcl_GetVar2(tls, interp, ts+14325 /* "errorInfo" */, uintptr(0), 1)
if zInfo == uintptr(0) {
zInfo = tcl.XTcl_GetStringResult(tls, interp)
}
- crt.Xfprintf(tls, crt.Xstderr, ts+12685 /* "%s: %s\n" */, crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv)), zInfo))
+ libc.Xfprintf(tls, libc.Xstderr, ts+14335 /* "%s: %s\n" */, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv)), zInfo))
return 1
}
return 0
@@ -36463,7 +40603,7 @@ type sqlite31 = sqlite32 /* sqlite3.h:249:24 */
// [sqlite3_value_dup()].
// The [sqlite3_value_blob | sqlite3_value_type()] family of
// interfaces require protected sqlite3_value objects.
-type sqlite3_value = sqlite3_value1 /* sqlite3.h:4242:30 */
+type sqlite3_value = sqlite3_value1 /* sqlite3.h:4244:30 */
// CAPI3REF: SQL Function Context Object
//
@@ -36475,7 +40615,7 @@ type sqlite3_value = sqlite3_value1 /* sqlite3.h:4242:30 */
// [sqlite3_aggregate_context()], [sqlite3_user_data()],
// [sqlite3_context_db_handle()], [sqlite3_get_auxdata()],
// and/or [sqlite3_set_auxdata()].
-type sqlite3_context = sqlite3_context1 /* sqlite3.h:4256:32 */
+type sqlite3_context = sqlite3_context1 /* sqlite3.h:4258:32 */
// CAPI3REF: Dynamic String Object
// KEYWORDS: {dynamic string}
@@ -36491,7 +40631,122 @@ type sqlite3_context = sqlite3_context1 /* sqlite3.h:4256:32 */
// <li> ^The sqlite3_str object is destroyed and the string it created
// is returned using the [sqlite3_str_finish()] interface.
// </ol>
-type sqlite3_str = sqlite3_str1 /* sqlite3.h:7778:28 */
+type sqlite3_str = sqlite3_str1 /* sqlite3.h:7784:28 */
+
+// Unsigned.
+// Define uintN_t types.
+// Copyright (C) 2017-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// bits/types.h -- definitions of __*_t types underlying *_t types.
+// Copyright (C) 2002-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Never include this file directly; use <sys/types.h> instead.
+
+type uint8_t = uint8 /* stdint-uintn.h:24:19 */
+type uint16_t = uint16 /* stdint-uintn.h:25:20 */
+type uint32_t = uint32 /* stdint-uintn.h:26:20 */
+type uint64_t = uint64 /* stdint-uintn.h:27:20 */
+
+// Small types.
+
+// Signed.
+type int_least8_t = int8 /* stdint.h:43:24 */
+type int_least16_t = int16 /* stdint.h:44:25 */
+type int_least32_t = int32 /* stdint.h:45:25 */
+type int_least64_t = int64 /* stdint.h:46:25 */
+
+// Unsigned.
+type uint_least8_t = uint8 /* stdint.h:49:25 */
+type uint_least16_t = uint16 /* stdint.h:50:26 */
+type uint_least32_t = uint32 /* stdint.h:51:26 */
+type uint_least64_t = uint64 /* stdint.h:52:26 */
+
+// Fast types.
+
+// Signed.
+type int_fast8_t = int8 /* stdint.h:58:22 */
+type int_fast16_t = int64 /* stdint.h:60:19 */
+type int_fast32_t = int64 /* stdint.h:61:19 */
+type int_fast64_t = int64 /* stdint.h:62:19 */
+
+// Unsigned.
+type uint_fast8_t = uint8 /* stdint.h:71:24 */
+type uint_fast16_t = uint64 /* stdint.h:73:27 */
+type uint_fast32_t = uint64 /* stdint.h:74:27 */
+type uint_fast64_t = uint64 /* stdint.h:75:27 */
+type uintptr_t = uint64 /* stdint.h:90:27 */
+
+// Largest integral types.
+type intmax_t = int64 /* stdint.h:101:21 */
+type uintmax_t = uint64 /* stdint.h:102:22 */
+
+// Macros for printing format specifiers.
+
+// Decimal notation.
+
+// Octal notation.
+
+// Unsigned integers.
+
+// lowercase hexadecimal notation.
+
+// UPPERCASE hexadecimal notation.
+
+// Macros for printing `intmax_t' and `uintmax_t'.
+
+// Macros for printing `intptr_t' and `uintptr_t'.
+
+// Macros for scanning format specifiers.
+
+// Signed decimal notation.
+
+// Signed decimal notation.
+
+// Unsigned decimal notation.
+
+// Octal notation.
+
+// Hexadecimal notation.
+
+// Macros for scanning `intmax_t' and `uintmax_t'.
+
+// Macros for scaning `intptr_t' and `uintptr_t'.
+
+// We have to define the `uintmax_t' type using `ldiv_t'.
+type imaxdiv_t = struct {
+ Fquot int64
+ Frem int64
+} /* inttypes.h:275:5 */
// Is the sqlite3ErrName() function needed in the build? Currently,
// it is needed by "mutex_w32.c" (when debugging), "os_win.c" (when
@@ -36604,9 +40859,9 @@ type ino64_t = uint64 /* types.h:54:19 */ // Type to count file system ino
type blkcnt64_t = int64 /* types.h:236:22 */ // Type to count number of disk blocks.
type fsblkcnt64_t = uint64 /* types.h:237:24 */ // Type to count file system blocks.
type fsfilcnt64_t = uint64 /* types.h:238:24 */ // 8-byte unsigned integer
-type u321 = uint32 /* sqliteInt.h:771:21 */ // 2-byte unsigned integer
-type i16 = int16 /* sqliteInt.h:773:20 */ // 1-byte unsigned integer
-type i8 = int8 /* sqliteInt.h:775:19 */ // 1-byte signed integer
+type u322 = uint32_t /* sqliteInt.h:780:21 */ // 2-byte unsigned integer
+type i16 = int16_t /* sqliteInt.h:782:20 */ // 1-byte unsigned integer
+type i8 = int8_t /* sqliteInt.h:784:19 */ // 1-byte signed integer
// SQLITE_MAX_U32 is a u64 constant that is the maximum u64 value
// that can be stored in a u32 without loss of data. The value
@@ -36617,7 +40872,7 @@ type i8 = int8 /* sqliteInt.h:775:19 */ // 1-byte signed integer
// table or index. This is an unsigned integer type. For 99.9% of
// the world, a 32-bit integer is sufficient. But a 64-bit integer
// can be used at compile-time if desired.
-type tRowcnt = u321 /* sqliteInt.h:794:14 */ // 32-bit is the default
+type tRowcnt = u322 /* sqliteInt.h:803:14 */ // 32-bit is the default
// Estimated quantities used for query planning are stored as 16-bit
// logarithms. For quantity X, the value stored is 10*log2(X). This
@@ -36640,12 +40895,12 @@ type tRowcnt = u321 /* sqliteInt.h:794:14 */ // 32-bit is the default
// Examples:
//
// 0.5 -> -10 0.1 -> -33 0.0625 -> -40
-type LogEst = int16 /* sqliteInt.h:820:20 */
+type LogEst = int16_t /* sqliteInt.h:829:20 */
// Set the SQLITE_PTRSIZE macro to the number of bytes in a pointer
// The uptr type is an unsigned integer large enough to hold a pointer
-type uptr = u64 /* sqliteInt.h:844:15 */
+type uptr = uintptr_t /* sqliteInt.h:849:21 */
// The SQLITE_WITHIN(P,S,E) macro checks to see if pointer P points to
// something between S (inclusive) and E (exclusive).
@@ -36754,15 +41009,13 @@ type BusyHandler1 = struct {
// callback for the database handle. Each pager opened via the sqlite
// handle is passed a pointer to sqlite.busyHandler. The busy-handler
// callback is currently invoked only from within pager.c.
-type BusyHandler = BusyHandler1 /* sqliteInt.h:992:28 */
+type BusyHandler = BusyHandler1 /* sqliteInt.h:1012:28 */
-// Name of the master database table. The master database table
-// is a special table that holds the names and attributes of all
-// user tables and indices.
+// Name of table that holds the database schema.
-// The root-page of the master database table.
+// The root-page of the schema table.
-// The name of the schema table.
+// The name of the schema table. The name is different for TEMP.
// A convenience macro that returns the number of elements in
// an array.
@@ -36819,16 +41072,15 @@ type AggInfo1 = struct {
FnAccumulator int32
FaFunc uintptr
FnFunc int32
+ FselId u322
FpNext uintptr
}
-// Name of the master database table. The master database table
-// is a special table that holds the names and attributes of all
-// user tables and indices.
+// Name of table that holds the database schema.
-// The root-page of the master database table.
+// The root-page of the schema table.
-// The name of the schema table.
+// The name of the schema table. The name is different for TEMP.
// A convenience macro that returns the number of elements in
// an array.
@@ -36871,13 +41123,13 @@ type AggInfo1 = struct {
// cases the parameters are named as per the usual conventions.
// Forward references to structures
-type AggInfo = AggInfo1 /* sqliteInt.h:1086:24 */
+type AggInfo = AggInfo1 /* sqliteInt.h:1108:24 */
type AuthContext1 = struct {
FzAuthContext uintptr
FpParse uintptr
}
-type AuthContext = AuthContext1 /* sqliteInt.h:1087:28 */
+type AuthContext = AuthContext1 /* sqliteInt.h:1109:28 */
type AutoincInfo1 = struct {
FpNext uintptr
FpTab uintptr
@@ -36885,7 +41137,7 @@ type AutoincInfo1 = struct {
FregCtr int32
}
-type AutoincInfo = AutoincInfo1 /* sqliteInt.h:1088:28 */
+type AutoincInfo = AutoincInfo1 /* sqliteInt.h:1110:28 */
type CollSeq1 = struct {
FzName uintptr
Fenc u8
@@ -36894,7 +41146,7 @@ type CollSeq1 = struct {
FxDel uintptr
}
-type CollSeq = CollSeq1 /* sqliteInt.h:1090:24 */
+type CollSeq = CollSeq1 /* sqliteInt.h:1112:24 */
type Column1 = struct {
FzName uintptr
FpDflt uintptr
@@ -36907,7 +41159,7 @@ type Column1 = struct {
_ [2]byte
}
-type Column = Column1 /* sqliteInt.h:1091:23 */
+type Column = Column1 /* sqliteInt.h:1113:23 */
type Db1 = struct {
FzDbSName uintptr
FpBt uintptr
@@ -36916,7 +41168,7 @@ type Db1 = struct {
FpSchema uintptr
}
-type Db = Db1 /* sqliteInt.h:1092:19 */
+type Db = Db1 /* sqliteInt.h:1114:19 */
type Schema1 = struct {
Fschema_cookie int32
FiGeneration int32
@@ -36931,16 +41183,17 @@ type Schema1 = struct {
Fcache_size int32
}
-type Schema = Schema1 /* sqliteInt.h:1093:23 */
+type Schema = Schema1 /* sqliteInt.h:1115:23 */
type Expr1 = struct {
Fop u8
FaffExpr int8
Fop2 u8
- Fflags u321
+ Fflags u322
Fu struct{ FzToken uintptr }
FpLeft uintptr
FpRight uintptr
Fx struct{ FpList uintptr }
+ FnHeight int32
FiTable int32
FiColumn ynVar
FiAgg i16
@@ -36949,7 +41202,7 @@ type Expr1 = struct {
Fy struct{ FpTab uintptr }
}
-type Expr = Expr1 /* sqliteInt.h:1094:21 */
+type Expr = Expr1 /* sqliteInt.h:1116:21 */
type ExprList1 = struct {
FnExpr int32
Fa [1]struct {
@@ -36969,7 +41222,7 @@ type ExprList1 = struct {
}
}
-type ExprList = ExprList1 /* sqliteInt.h:1095:25 */
+type ExprList = ExprList1 /* sqliteInt.h:1117:25 */
type FKey1 = struct {
FpFrom uintptr
FpNextFrom uintptr
@@ -36986,17 +41239,17 @@ type FKey1 = struct {
}
}
-type FKey = FKey1 /* sqliteInt.h:1096:21 */
+type FKey = FKey1 /* sqliteInt.h:1118:21 */
type FuncDestructor1 = struct {
FnRef int32
FxDestroy uintptr
FpUserData uintptr
}
-type FuncDestructor = FuncDestructor1 /* sqliteInt.h:1097:31 */
+type FuncDestructor = FuncDestructor1 /* sqliteInt.h:1119:31 */
type FuncDef1 = struct {
FnArg i8
- FfuncFlags u321
+ FfuncFlags u322
FpUserData uintptr
FpNext uintptr
FxSFunc uintptr
@@ -37007,17 +41260,17 @@ type FuncDef1 = struct {
Fu struct{ FpHash uintptr }
}
-type FuncDef = FuncDef1 /* sqliteInt.h:1098:24 */
+type FuncDef = FuncDef1 /* sqliteInt.h:1120:24 */
type FuncDefHash1 = struct{ Fa [23]uintptr }
-type FuncDefHash = FuncDefHash1 /* sqliteInt.h:1099:28 */
+type FuncDefHash = FuncDefHash1 /* sqliteInt.h:1121:28 */
type IdList1 = struct {
Fa uintptr
FnId int32
_ [4]byte
}
-type IdList = IdList1 /* sqliteInt.h:1100:23 */
+type IdList = IdList1 /* sqliteInt.h:1122:23 */
type Index1 = struct {
FzName uintptr
FaiColumn uintptr
@@ -37030,16 +41283,22 @@ type Index1 = struct {
FazColl uintptr
FpPartIdxWhere uintptr
FaColExpr uintptr
- Ftnum int32
+ Ftnum Pgno
FszIdxRow LogEst
FnKeyCol u16
FnColumn u16
FonError u8
FidxType uint16 /* unsigned idxType: 2, unsigned bUnordered: 1, unsigned uniqNotNull: 1, unsigned isResized: 1, unsigned isCovering: 1, unsigned noSkipScan: 1, unsigned hasStat1: 1, unsigned bNoQuery: 1, unsigned bAscKeyBug: 1, unsigned bHasVCol: 1 */
+ FnSample int32
+ FnSampleCol int32
+ FaAvgEq uintptr
+ FaSample uintptr
+ FaiRowEst uintptr
+ FnRowEst0 tRowcnt
FcolNotIdxed Bitmask
}
-type Index = Index1 /* sqliteInt.h:1101:22 */
+type Index = Index1 /* sqliteInt.h:1123:22 */
type IndexSample1 = struct {
Fp uintptr
Fn int32
@@ -37048,9 +41307,9 @@ type IndexSample1 = struct {
FanDLt uintptr
}
-type IndexSample = IndexSample1 /* sqliteInt.h:1102:28 */
+type IndexSample = IndexSample1 /* sqliteInt.h:1124:28 */
type KeyInfo1 = struct {
- FnRef u321
+ FnRef u322
Fenc u8
FnKeyField u16
FnAllField u16
@@ -37059,14 +41318,14 @@ type KeyInfo1 = struct {
FaColl [1]uintptr
}
-type KeyInfo = KeyInfo1 /* sqliteInt.h:1104:24 */
+type KeyInfo = KeyInfo1 /* sqliteInt.h:1126:24 */
type Lookaside1 = struct {
- FbDisable u321
+ FbDisable u322
Fsz u16
FszTrue u16
FbMalloced u8
- FnSlot u321
- FanStat [3]u321
+ FnSlot u322
+ FanStat [3]u322
FpInit uintptr
FpFree uintptr
FpSmallInit uintptr
@@ -37076,10 +41335,10 @@ type Lookaside1 = struct {
FpEnd uintptr
}
-type Lookaside = Lookaside1 /* sqliteInt.h:1105:26 */
+type Lookaside = Lookaside1 /* sqliteInt.h:1127:26 */
type LookasideSlot1 = struct{ FpNext uintptr }
-type LookasideSlot = LookasideSlot1 /* sqliteInt.h:1106:30 */
+type LookasideSlot = LookasideSlot1 /* sqliteInt.h:1128:30 */
type Module1 = struct {
FpModule uintptr
FzName uintptr
@@ -37089,7 +41348,7 @@ type Module1 = struct {
FpEpoTab uintptr
}
-type Module = Module1 /* sqliteInt.h:1107:23 */
+type Module = Module1 /* sqliteInt.h:1129:23 */
type NameContext1 = struct {
FpParse uintptr
FpSrcList uintptr
@@ -37101,7 +41360,7 @@ type NameContext1 = struct {
FpWinSelect uintptr
}
-type NameContext = NameContext1 /* sqliteInt.h:1108:28 */
+type NameContext = NameContext1 /* sqliteInt.h:1130:28 */
type Parse1 = struct {
Fdb uintptr
FzErrMsg uintptr
@@ -37143,9 +41402,9 @@ type Parse1 = struct {
FpParentParse uintptr
FpAggList uintptr
FaddrCrTab int32
- FnQueryLoop u321
- Foldmask u321
- Fnewmask u321
+ FnQueryLoop u322
+ Foldmask u322
+ Fnewmask u322
FeTriggerOp u8
FeOrconf u8
FdisableTriggers u8
@@ -37175,7 +41434,7 @@ type Parse1 = struct {
FpRename uintptr
}
-type Parse = Parse1 /* sqliteInt.h:1109:22 */
+type Parse = Parse1 /* sqliteInt.h:1131:22 */
type PreUpdate1 = struct {
Fv uintptr
FpCsr uintptr
@@ -37192,14 +41451,14 @@ type PreUpdate1 = struct {
FpPk uintptr
}
-type PreUpdate = PreUpdate1 /* sqliteInt.h:1110:26 */
+type PreUpdate = PreUpdate1 /* sqliteInt.h:1132:26 */
type PrintfArguments1 = struct {
FnArg int32
FnUsed int32
FapArg uintptr
}
-type PrintfArguments = PrintfArguments1 /* sqliteInt.h:1111:32 */
+type PrintfArguments = PrintfArguments1 /* sqliteInt.h:1133:32 */
type Savepoint1 = struct {
FzName uintptr
FnDeferredCons i64
@@ -37207,14 +41466,14 @@ type Savepoint1 = struct {
FpNext uintptr
}
-type Savepoint = Savepoint1 /* sqliteInt.h:1114:26 */
+type Savepoint = Savepoint1 /* sqliteInt.h:1136:26 */
type Select1 = struct {
Fop u8
FnSelectRow LogEst
- FselFlags u321
+ FselFlags u322
FiLimit int32
FiOffset int32
- FselId u321
+ FselId u322
FaddrOpenEphm [2]int32
FpEList uintptr
FpSrc uintptr
@@ -37230,20 +41489,21 @@ type Select1 = struct {
FpWinDefn uintptr
}
-type Select = Select1 /* sqliteInt.h:1115:23 */
+type Select = Select1 /* sqliteInt.h:1137:23 */
type SelectDest1 = struct {
FeDest u8
FiSDParm int32
+ FiSDParm2 int32
FiSdst int32
FnSdst int32
FzAffSdst uintptr
FpOrderBy uintptr
}
-type SelectDest = SelectDest1 /* sqliteInt.h:1117:27 */
+type SelectDest = SelectDest1 /* sqliteInt.h:1139:27 */
type SrcList1 = struct {
FnSrc int32
- FnAlloc u321
+ FnAlloc u322
Fa [1]struct {
FpSchema uintptr
FzDatabase uintptr
@@ -37270,8 +41530,8 @@ type SrcList1 = struct {
}
}
-type SrcList = SrcList1 /* sqliteInt.h:1118:24 */
-type StrAccum = sqlite3_str1 /* sqliteInt.h:1119:28 */ // Internal alias for sqlite3_str
+type SrcList = SrcList1 /* sqliteInt.h:1140:24 */
+type StrAccum = sqlite3_str1 /* sqliteInt.h:1141:28 */ // Internal alias for sqlite3_str
type Table1 = struct {
FzName uintptr
FaCol uintptr
@@ -37280,9 +41540,9 @@ type Table1 = struct {
FpFKey uintptr
FzColAff uintptr
FpCheck uintptr
- Ftnum int32
- FnTabRef u321
- FtabFlags u321
+ Ftnum Pgno
+ FnTabRef u322
+ FtabFlags u322
FiPKey i16
FnCol i16
FnNVCol i16
@@ -37299,14 +41559,14 @@ type Table1 = struct {
}
// Internal alias for sqlite3_str
-type Table = Table1 /* sqliteInt.h:1120:22 */
+type Table = Table1 /* sqliteInt.h:1142:22 */
type Token1 = struct {
Fz uintptr
Fn uint32
_ [4]byte
}
-type Token = Token1 /* sqliteInt.h:1122:22 */
+type Token = Token1 /* sqliteInt.h:1144:22 */
type Trigger1 = struct {
FzName uintptr
Ftable uintptr
@@ -37320,23 +41580,24 @@ type Trigger1 = struct {
FpNext uintptr
}
-type Trigger = Trigger1 /* sqliteInt.h:1124:24 */
+type Trigger = Trigger1 /* sqliteInt.h:1146:24 */
type TriggerPrg1 = struct {
FpTrigger uintptr
FpNext uintptr
FpProgram uintptr
Forconf int32
- FaColmask [2]u321
+ FaColmask [2]u322
_ [4]byte
}
-type TriggerPrg = TriggerPrg1 /* sqliteInt.h:1125:27 */
+type TriggerPrg = TriggerPrg1 /* sqliteInt.h:1147:27 */
type TriggerStep1 = struct {
Fop u8
Forconf u8
FpTrig uintptr
FpSelect uintptr
FzTarget uintptr
+ FpFrom uintptr
FpWhere uintptr
FpExprList uintptr
FpIdList uintptr
@@ -37346,7 +41607,7 @@ type TriggerStep1 = struct {
FpLast uintptr
}
-type TriggerStep = TriggerStep1 /* sqliteInt.h:1126:28 */
+type TriggerStep = TriggerStep1 /* sqliteInt.h:1148:28 */
type UnpackedRecord1 = struct {
FpKeyInfo uintptr
FaMem uintptr
@@ -37359,7 +41620,7 @@ type UnpackedRecord1 = struct {
_ [1]byte
}
-type UnpackedRecord = UnpackedRecord1 /* sqliteInt.h:1127:31 */
+type UnpackedRecord = UnpackedRecord1 /* sqliteInt.h:1149:31 */
type Upsert1 = struct {
FpUpsertTarget uintptr
FpUpsertTargetWhere uintptr
@@ -37373,7 +41634,7 @@ type Upsert1 = struct {
_ [4]byte
}
-type Upsert = Upsert1 /* sqliteInt.h:1128:23 */
+type Upsert = Upsert1 /* sqliteInt.h:1150:23 */
type VTable1 = struct {
Fdb uintptr
FpMod uintptr
@@ -37385,7 +41646,7 @@ type VTable1 = struct {
FpNext uintptr
}
-type VTable = VTable1 /* sqliteInt.h:1129:23 */
+type VTable = VTable1 /* sqliteInt.h:1151:23 */
type Walker1 = struct {
FpParse uintptr
FxExprCallback uintptr
@@ -37396,7 +41657,7 @@ type Walker1 = struct {
Fu struct{ FpNC uintptr }
}
-type Walker = Walker1 /* sqliteInt.h:1131:23 */
+type Walker = Walker1 /* sqliteInt.h:1153:23 */
type Window1 = struct {
FzName uintptr
FzBase uintptr
@@ -37429,7 +41690,7 @@ type Window1 = struct {
_ [3]byte
}
-type Window = Window1 /* sqliteInt.h:1133:23 */
+type Window = Window1 /* sqliteInt.h:1155:23 */
type With1 = struct {
FnCte int32
FpOuter uintptr
@@ -37441,14 +41702,14 @@ type With1 = struct {
}
}
-type With = With1 /* sqliteInt.h:1134:21 */
+type With = With1 /* sqliteInt.h:1156:21 */
// The bitmask datatype defined below is used for various optimizations.
//
// Changing this from a 64-bit to a 32-bit type limits the number of
// tables in a join to 32 instead of 64. But it also reduces the size
// of the library by 738 bytes on ix86.
-type Bitmask = u64 /* sqliteInt.h:1147:15 */
+type Bitmask = u64 /* sqliteInt.h:1169:15 */
// The number of bits in a Bitmask. "BMS" means "BitMask Size".
@@ -37459,7 +41720,7 @@ type Bitmask = u64 /* sqliteInt.h:1147:15 */
// variable number associated with that parameter. See the format description
// on the sqlite3VListAdd() routine for more information. A VList is really
// just an array of integers.
-type VList = int32 /* sqliteInt.h:1169:13 */
+type VList = int32 /* sqliteInt.h:1191:13 */
// Defer sourcing vdbe.h and btree.h until after the "u8" and
// "BusyHandler" typedefs. vdbe.h also requires a few of the opaque
@@ -37474,6 +41735,46 @@ type VList = int32 /* sqliteInt.h:1169:13 */
// May you share freely, never taking more than you give.
//
//
+// This header file defines the interface that the sqlite page cache
+// subsystem. The page cache subsystem reads and writes a file a page
+// at a time and provides a journal for rollback.
+
+// Default maximum size for persistent journal files. A negative
+// value means no limit. This value may be overridden using the
+// sqlite3PagerJournalSizeLimit() API. See also "PRAGMA journal_size_limit".
+
+// The type used to represent a page number. The first page in a file
+// is called page 1. 0 is used to represent "not a page".
+type Pgno = u322 /* pager.h:33:13 */
+
+// Handle type for pages.
+type PgHdr1 = struct {
+ FpPage uintptr
+ FpData uintptr
+ FpExtra uintptr
+ FpCache uintptr
+ FpDirty uintptr
+ FpPager uintptr
+ Fpgno Pgno
+ Fflags u16
+ FnRef i16
+ FpDirtyNext uintptr
+ FpDirtyPrev uintptr
+}
+
+// Handle type for pages.
+type DbPage = PgHdr1 /* pager.h:43:22 */
+
+// 2001 September 15
+//
+// The author disclaims copyright to this source code. In place of
+// a legal notice, here is a blessing:
+//
+// May you do good and not evil.
+// May you find forgiveness for yourself and forgive others.
+// May you share freely, never taking more than you give.
+//
+//
// This header file defines the interface that the sqlite B-Tree file
// subsystem. See comments in the source code for a detailed description
// of what each interface routine does.
@@ -37494,7 +41795,7 @@ type Btree1 = struct {
FhasIncrblobCur u8
FwantToLock int32
FnBackup int32
- FiDataVersion u321
+ FiDataVersion u322
FpNext uintptr
FpPrev uintptr
Flock BtLock
@@ -37540,10 +41841,10 @@ type BtShared1 = struct {
FminLocal u16
FmaxLeaf u16
FminLeaf u16
- FpageSize u321
- FusableSize u321
+ FpageSize u322
+ FusableSize u322
FnTransaction int32
- FnPage u321
+ FnPage u322
FpSchema uintptr
FxFreeSchema uintptr
Fmutex uintptr
@@ -37612,10 +41913,10 @@ type Vdbe1 = struct {
FpNext uintptr
FpParse uintptr
FnVar ynVar
- Fmagic u321
+ Fmagic u322
FnMem int32
FnCursor int32
- FcacheCtr u321
+ FcacheCtr u322
Fpc int32
Frc int32
FnChange int32
@@ -37645,13 +41946,13 @@ type Vdbe1 = struct {
Fexpired uint16 /* bft expired: 2, bft explain: 2, bft changeCntOn: 1, bft runOnlyOnce: 1, bft usesStmtJournal: 1, bft readOnly: 1, bft bIsReader: 1 */
FbtreeMask yDbMask
FlockMask yDbMask
- FaCounter [7]u321
+ FaCounter [7]u322
FzSql uintptr
FpFree uintptr
FpFrame uintptr
FpDelFrame uintptr
FnFrame int32
- Fexpmask u321
+ Fexpmask u322
FpProgram uintptr
FpAuxData uintptr
}
@@ -37726,6 +42027,7 @@ type VdbeOp1 = struct {
Fi int32
_ [4]byte
}
+ FzComment uintptr
}
// A single instruction of the virtual machine has an opcode
@@ -37752,13 +42054,6 @@ type VdbeOpList = VdbeOpList1 /* vdbe.h:106:27 */
type RecordCompare = uintptr /* vdbe.h:286:13 */
-// Use SQLITE_ENABLE_COMMENTS to enable generation of extra comments on
-// each VDBE opcode.
-//
-// Use the SQLITE_ENABLE_MODULE_COMMENTS macro to see some extra no-op
-// comments in VDBE programs that show key decision points in the code
-// generator.
-
// The VdbeCoverage macros are used to set a coverage testing point
// for VDBE branch instructions. The coverage testing points are line
// numbers in the sqlite3.c source file. VDBE branch coverage testing
@@ -37798,46 +42093,6 @@ type RecordCompare = uintptr /* vdbe.h:286:13 */
// See the VdbeBranchTaken() macro and vdbeTakeBranch() function in the
// vdbe.c source file for additional information.
-// 2001 September 15
-//
-// The author disclaims copyright to this source code. In place of
-// a legal notice, here is a blessing:
-//
-// May you do good and not evil.
-// May you find forgiveness for yourself and forgive others.
-// May you share freely, never taking more than you give.
-//
-//
-// This header file defines the interface that the sqlite page cache
-// subsystem. The page cache subsystem reads and writes a file a page
-// at a time and provides a journal for rollback.
-
-// Default maximum size for persistent journal files. A negative
-// value means no limit. This value may be overridden using the
-// sqlite3PagerJournalSizeLimit() API. See also "PRAGMA journal_size_limit".
-
-// The type used to represent a page number. The first page in a file
-// is called page 1. 0 is used to represent "not a page".
-type Pgno = u321 /* pager.h:33:13 */
-
-// Handle type for pages.
-type PgHdr1 = struct {
- FpPage uintptr
- FpData uintptr
- FpExtra uintptr
- FpCache uintptr
- FpDirty uintptr
- FpPager uintptr
- Fpgno Pgno
- Fflags u16
- FnRef i16
- FpDirtyNext uintptr
- FpDirtyPrev uintptr
-}
-
-// Handle type for pages.
-type DbPage = PgHdr1 /* pager.h:43:22 */
-
// 2008 August 05
//
// The author disclaims copyright to this source code. In place of
@@ -37854,14 +42109,14 @@ type DbPage = PgHdr1 /* pager.h:43:22 */
type PgHdr = PgHdr1 /* pcache.h:18:22 */
// typedef for the authorization callback function.
-type sqlite3_xauth = uintptr /* sqliteInt.h:1415:15 */
+type sqlite3_xauth = uintptr /* sqliteInt.h:1437:15 */
// This is an extra SQLITE_TRACE macro that indicates "legacy" tracing
// in the style of sqlite3_trace()
// Each database connection is an instance of the following structure.
type sqlite3InitInfo = struct {
- FnewTnum int32
+ FnewTnum Pgno
FiDb u8
Fbusy u8
_ [2]byte
@@ -37937,7 +42192,7 @@ type sColMap = struct {
// fields do not need to be freed when deallocating the AggInfo structure.
type AggInfo_col = struct {
FpTab uintptr
- FpExpr uintptr
+ FpCExpr uintptr
FiTable int32
FiMem int32
FiColumn i16
@@ -37957,14 +42212,12 @@ type AggInfo_col = struct {
// original Select structure that describes the SELECT statement. These
// fields do not need to be freed when deallocating the AggInfo structure.
type AggInfo_func = struct {
- FpExpr uintptr
+ FpFExpr uintptr
FpFunc uintptr
FiMem int32
FiDistinct int32
}
-// Value for AggInfo.iAggMagic when the structure is valid
-
// The datatype ynVar is a signed integer, either 16-bit or 32-bit.
// Usually it is 16-bits. But if SQLITE_MAX_VARIABLE_NUMBER is greater
// than 32767 we have to make it 32-bit. 16-bit is preferred because
@@ -37973,7 +42226,7 @@ type AggInfo_func = struct {
// need more than about 10 or 20 variables. But some extreme users want
// to have prepared statements with over 32766 variables, and for them
// the option is available (at compile-time).
-type ynVar = i16 /* sqliteInt.h:2548:13 */
+type ynVar = i16 /* sqliteInt.h:2566:13 */
// The following are the meanings of bits in the Expr.flags field.
// Value restrictions:
@@ -38105,7 +42358,7 @@ type SrcList_item = struct {
}
// The yDbMask datatype for the bitmask of all attached databases.
-type yDbMask = uint32 /* sqliteInt.h:3268:24 */
+type yDbMask = uint32 /* sqliteInt.h:3297:24 */
// The following structure contains information used by the sqliteFix...
// routines as they walk the parse tree to make database references
@@ -38122,7 +42375,7 @@ type DbFixer1 = struct {
// The following structure contains information used by the sqliteFix...
// routines as they walk the parse tree to make database references
// explicit.
-type DbFixer = DbFixer1 /* sqliteInt.h:3568:24 */
+type DbFixer = DbFixer1 /* sqliteInt.h:3596:24 */
// A pointer to this structure is used to communicate information
// from sqlite3Init and OP_ParseSchema into the sqlite3InitCallback.
@@ -38131,9 +42384,11 @@ type InitData = struct {
FpzErrMsg uintptr
FiDb int32
Frc int32
- FmInitFlags u321
- FnInitRow u321
-} /* sqliteInt.h:3609:3 */
+ FmInitFlags u322
+ FnInitRow u322
+ FmxPage Pgno
+ _ [4]byte
+} /* sqliteInt.h:3638:3 */
// Allowed values for mInitFlags
@@ -38167,7 +42422,7 @@ type Sqlite3Config = struct {
FnPage int32
FmxParserStack int32
FsharedCacheEnabled int32
- FszPma u321
+ FszPma u322
FisInit int32
FinProgress int32
FisMutexInit int32
@@ -38181,7 +42436,7 @@ type Sqlite3Config = struct {
FxTestCallback uintptr
FbLocaltimeFault int32
FiOnceResetThreshold int32
- FszSorterRef u321
+ FszSorterRef u322
FiPrngSeed uint32
}
@@ -38260,21 +42515,21 @@ type VdbeCursor1 = struct {
FpBtx uintptr
FseqCount i64
FaAltMap uintptr
- FcacheStatus u321
+ FcacheStatus u322
FseekResult int32
FpAltCursor uintptr
Fuc struct{ FpCursor uintptr }
FpKeyInfo uintptr
- FiHdrOffset u321
+ FiHdrOffset u322
FpgnoRoot Pgno
FnField i16
FnHdrParsed u16
FmovetoTarget i64
FaOffset uintptr
FaRow uintptr
- FpayloadSize u321
- FszRow u321
- FaType [1]u321
+ FpayloadSize u322
+ FszRow u322
+ FaType [1]u322
_ [4]byte
}
@@ -38407,7 +42662,7 @@ type DblquoteStr = DblquoteStr1 /* vdbeInt.h:366:28 */
// Convert text generated by the "%p" conversion format back into
// a pointer.
-func testHexToInt(tls *crt.TLS, h int32) int32 { /* test1.c:44:12: */
+func testHexToInt(tls *libc.TLS, h int32) int32 { /* test1.c:44:12: */
if (h >= '0') && (h <= '9') {
return (h - '0')
} else if (h >= 'a') && (h <= 'f') {
@@ -38418,7 +42673,7 @@ func testHexToInt(tls *crt.TLS, h int32) int32 { /* test1.c:44:12: */
}
return int32(0)
}
-func sqlite3TestTextToPtr(tls *crt.TLS, z uintptr) uintptr { /* test1.c:54:6: */
+func sqlite3TestTextToPtr(tls *libc.TLS, z uintptr) uintptr { /* test1.c:54:6: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -38426,7 +42681,7 @@ func sqlite3TestTextToPtr(tls *crt.TLS, z uintptr) uintptr { /* test1.c:54:6: */
// var v u64 at bp+8, 8
- // var v2 u321 at bp+16, 4
+ // var v2 u322 at bp+16, 4
if (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == '0') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == 'x') {
z += uintptr(2)
@@ -38437,11 +42692,11 @@ func sqlite3TestTextToPtr(tls *crt.TLS, z uintptr) uintptr { /* test1.c:54:6: */
z++
}
if uint64(unsafe.Sizeof(uintptr(0))) == uint64(unsafe.Sizeof(u64(0))) {
- crt.Xmemcpy(tls, bp /* &p */, bp+8 /* &v */, uint64(unsafe.Sizeof(uintptr(0))))
+ libc.Xmemcpy(tls, bp /* &p */, bp+8 /* &v */, uint64(unsafe.Sizeof(uintptr(0))))
} else {
- *(*u321)(unsafe.Pointer(bp + 16 /* v2 */)) = u321(*(*u64)(unsafe.Pointer(bp + 8 /* v */)))
- crt.Xmemcpy(tls, bp /* &p */, bp+16 /* &v2 */, uint64(unsafe.Sizeof(uintptr(0))))
+ *(*u322)(unsafe.Pointer(bp + 16 /* v2 */)) = u322(*(*u64)(unsafe.Pointer(bp + 8 /* v */)))
+ libc.Xmemcpy(tls, bp /* &p */, bp+16 /* &v2 */, uint64(unsafe.Sizeof(uintptr(0))))
}
return *(*uintptr)(unsafe.Pointer(bp /* p */))
}
@@ -38449,7 +42704,7 @@ func sqlite3TestTextToPtr(tls *crt.TLS, z uintptr) uintptr { /* test1.c:54:6: */
// A TCL command that returns the address of the sqlite* pointer
// for an sqlite connection instance. Bad things happen if the
// input is not an sqlite connection.
-func get_sqlite_pointer(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:82:26: */
+func get_sqlite_pointer(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:82:26: */
bp := tls.Alloc(212)
defer tls.Free(212)
@@ -38459,22 +42714,22 @@ func get_sqlite_pointer(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// var zBuf [100]int8 at bp+112, 100
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+12693 /* "SQLITE-CONNECTIO..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14343 /* "SQLITE-CONNECTIO..." */)
return 1
}
if !(tcl.XTcl_GetCommandInfo(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &cmdInfo */) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12711, /* "command not foun..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14361, /* "command not foun..." */
tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
p = (*Tcl_CmdInfo)(unsafe.Pointer(bp + 48 /* &cmdInfo */)).FobjClientData
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+112 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+24, (*struct{ Fdb uintptr })(unsafe.Pointer(p)).Fdb))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+112 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+112 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+24, (*struct{ Fdb uintptr })(unsafe.Pointer(p)).Fdb))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+112 /* &zBuf[0] */, 0))
return 0
}
// Decode a pointer to an sqlite3 object.
-func getDbPointer(tls *crt.TLS, interp uintptr, zA uintptr, ppDb uintptr) int32 { /* test1.c:109:5: */
+func getDbPointer(tls *libc.TLS, interp uintptr, zA uintptr, ppDb uintptr) int32 { /* test1.c:109:5: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -38495,7 +42750,7 @@ func getDbPointer(tls *crt.TLS, interp uintptr, zA uintptr, ppDb uintptr) int32
// Check a return value to make sure it agrees with the results
// from sqlite3_errcode.
-func sqlite3TestErrCode(tls *crt.TLS, interp uintptr, db uintptr, rc int32) int32 { /* test1.c:144:5: */
+func sqlite3TestErrCode(tls *libc.TLS, interp uintptr, db uintptr, rc int32) int32 { /* test1.c:144:5: */
bp := tls.Alloc(248)
defer tls.Free(248)
@@ -38505,17 +42760,17 @@ func sqlite3TestErrCode(tls *crt.TLS, interp uintptr, db uintptr, rc int32) int3
var r2 int32 = sqlite3.Xsqlite3_errcode(tls, db)
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+48, /* &zBuf[0] */
- ts+12731, /* "error code %s (%..." */
- crt.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), rc, sqlite3.Xsqlite3ErrName(tls, r2), r2))
+ ts+14381, /* "error code %s (%..." */
+ libc.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), rc, sqlite3.Xsqlite3ErrName(tls, r2), r2))
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+48 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+48 /* &zBuf[0] */, 0))
return 1
}
return 0
}
// Decode a pointer to an sqlite3_stmt object.
-func getStmtPointer(tls *crt.TLS, interp uintptr, zArg uintptr, ppStmt uintptr) int32 { /* test1.c:162:12: */
+func getStmtPointer(tls *libc.TLS, interp uintptr, zArg uintptr, ppStmt uintptr) int32 { /* test1.c:162:12: */
*(*uintptr)(unsafe.Pointer(ppStmt)) = sqlite3TestTextToPtr(tls, zArg)
return 0
}
@@ -38531,16 +42786,16 @@ func getStmtPointer(tls *crt.TLS, interp uintptr, zArg uintptr, ppStmt uintptr)
// to test the string right after it is generated to see if it can be
// understood by scanf, and if not, try prepending an "0x" to see if
// that helps. If nothing works, a fatal error is generated.
-func sqlite3TestMakePointerStr(tls *crt.TLS, interp uintptr, zPtr uintptr, p uintptr) int32 { /* test1.c:184:5: */
+func sqlite3TestMakePointerStr(tls *libc.TLS, interp uintptr, zPtr uintptr, p uintptr) int32 { /* test1.c:184:5: */
bp := tls.Alloc(8)
defer tls.Free(8)
- sqlite3.Xsqlite3_snprintf(tls, 100, zPtr, ts+11197 /* "%p" */, crt.VaList(bp, p))
+ sqlite3.Xsqlite3_snprintf(tls, 100, zPtr, ts+12843 /* "%p" */, libc.VaList(bp, p))
return 0
}
// The callback routine for sqlite3_exec_printf().
-func exec_printf_cb(tls *crt.TLS, pArg uintptr, argc int32, argv uintptr, name uintptr) int32 { /* test1.c:192:12: */
+func exec_printf_cb(tls *libc.TLS, pArg uintptr, argc int32, argv uintptr, name uintptr) int32 { /* test1.c:192:12: */
var str uintptr = pArg
var i int32
@@ -38550,7 +42805,7 @@ func exec_printf_cb(tls *crt.TLS, pArg uintptr, argc int32, argv uintptr, name u
if *(*uintptr)(unsafe.Pointer(name + uintptr(i)*8)) != 0 {
return *(*uintptr)(unsafe.Pointer(name + uintptr(i)*8))
}
- return ts + 4252 /* "NULL" */
+ return ts + 5537 /* "NULL" */
}())
}
}
@@ -38559,7 +42814,7 @@ func exec_printf_cb(tls *crt.TLS, pArg uintptr, argc int32, argv uintptr, name u
if *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) != 0 {
return *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))
}
- return ts + 4252 /* "NULL" */
+ return ts + 5537 /* "NULL" */
}())
}
return 0
@@ -38572,7 +42827,7 @@ func exec_printf_cb(tls *crt.TLS, pArg uintptr, argc int32, argv uintptr, name u
// Turn I/O tracing on or off. If FILENAME is not an empty string,
// I/O tracing begins going into FILENAME. If FILENAME is an empty
// string, I/O tracing is turned off.
-func test_io_trace(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:228:26: */
+func test_io_trace(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:228:26: */
return 0
}
@@ -38582,9 +42837,9 @@ func test_io_trace(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
// -fsanitize=address switch on the command line. False otherwise.
//
// Also return true if the OMIT_MISUSE environment variable exists.
-func clang_sanitize_address(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:269:26: */
+func clang_sanitize_address(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:269:26: */
var res int32 = 0
- if (res == 0) && (crt.Xgetenv(tls, ts+12789 /* "OMIT_MISUSE" */) != uintptr(0)) {
+ if (res == 0) && (libc.Xgetenv(tls, ts+14439 /* "OMIT_MISUSE" */) != uintptr(0)) {
res = 1
}
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, res))
@@ -38596,7 +42851,7 @@ func clang_sanitize_address(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
// Invoke the sqlite3_exec_printf() interface using the open database
// DB. The SQL is the string FORMAT. The format string should contain
// one %s or %q. STRING is the value inserted into %s or %q.
-func test_exec_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:296:26: */
+func test_exec_printf(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:296:26: */
bp := tls.Alloc(310)
defer tls.Free(310)
@@ -38610,20 +42865,20 @@ func test_exec_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var zBuf [30]int8 at bp+280, 30
if argc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12827 /* " DB FORMAT STRIN..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14477 /* " DB FORMAT STRIN..." */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+48 /* &db */) != 0 {
return 1
}
tcl.XTcl_DStringInit(tls, bp+56 /* &str */)
- zSql = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
rc = sqlite3.Xsqlite3_exec(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), zSql, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{exec_printf_cb})), bp+56 /* &str */, bp+272 /* &zErr */)
sqlite3.Xsqlite3_free(tls, zSql)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+280 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+40, rc))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+280 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+40, rc))
tcl.XTcl_AppendElement(tls, interp, bp+280 /* &zBuf[0] */)
tcl.XTcl_AppendElement(tls, interp, func() uintptr {
if rc == 0 {
@@ -38646,7 +42901,7 @@ func test_exec_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// Invoke the sqlite3_exec() on a string that is obtained by translating
// HEX into ASCII. Most characters are translated as is. %HH becomes
// a hex character.
-func test_exec_hex(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:334:26: */
+func test_exec_hex(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:334:26: */
bp := tls.Alloc(806)
defer tls.Free(806)
@@ -38664,15 +42919,15 @@ func test_exec_hex(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
// var zBuf [30]int8 at bp+776, 30
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12845 /* " DB HEX" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14495 /* " DB HEX" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+40 /* &db */) != 0 {
return 1
}
zHex = *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))
- i = crt.AssignInt32(&j, 0)
+ i = libc.AssignInt32(&j, 0)
__1:
if !((uint64(i) < (uint64(unsafe.Sizeof([501]int8{})) - uint64(1))) && (*(*int8)(unsafe.Pointer(zHex + uintptr(j))) != 0)) {
goto __3
@@ -38696,9 +42951,9 @@ __3:
*(*int8)(unsafe.Pointer(bp + 48 /* &zSql[0] */ + uintptr(i))) = int8(0)
tcl.XTcl_DStringInit(tls, bp+552 /* &str */)
rc = sqlite3.Xsqlite3_exec(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* db */)), bp+48 /* &zSql[0] */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{exec_printf_cb})), bp+552 /* &str */, bp+768 /* &zErr */)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+776 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, rc))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+776 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, rc))
tcl.XTcl_AppendElement(tls, interp, bp+776 /* &zBuf[0] */)
tcl.XTcl_AppendElement(tls, interp, func() uintptr {
if rc == 0 {
@@ -38720,15 +42975,15 @@ __3:
// db_leave DB
//
// Enter or leave the mutex on a database connection.
-func db_enter(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:380:26: */
+func db_enter(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:380:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -38737,15 +42992,15 @@ func db_enter(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv ui
sqlite3.Xsqlite3_mutex_enter(tls, (*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).Fmutex)
return 0
}
-func db_leave(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:396:26: */
+func db_leave(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:396:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -38758,7 +43013,7 @@ func db_leave(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv ui
// Usage: sqlite3_exec DB SQL
//
// Invoke the sqlite3_exec interface using the open database DB
-func test_exec(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:418:26: */
+func test_exec(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:418:26: */
bp := tls.Alloc(310)
defer tls.Free(310)
@@ -38774,29 +43029,29 @@ func test_exec(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
// var zBuf [30]int8 at bp+280, 30
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12857 /* " DB SQL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14507 /* " DB SQL" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+48 /* &db */) != 0 {
return 1
}
tcl.XTcl_DStringInit(tls, bp+56 /* &str */)
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
- for i = crt.AssignInt32(&j, 0); *(*int8)(unsafe.Pointer(zSql + uintptr(i))) != 0; {
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ for i = libc.AssignInt32(&j, 0); *(*int8)(unsafe.Pointer(zSql + uintptr(i))) != 0; {
if int32(*(*int8)(unsafe.Pointer(zSql + uintptr(i)))) == '%' {
- *(*int8)(unsafe.Pointer(zSql + uintptr(crt.PostIncInt32(&j, 1)))) = (int8((testHexToInt(tls, int32(*(*int8)(unsafe.Pointer(zSql + uintptr((i + 1)))))) << 4) + testHexToInt(tls, int32(*(*int8)(unsafe.Pointer(zSql + uintptr((i + 2))))))))
+ *(*int8)(unsafe.Pointer(zSql + uintptr(libc.PostIncInt32(&j, 1)))) = (int8((testHexToInt(tls, int32(*(*int8)(unsafe.Pointer(zSql + uintptr((i + 1)))))) << 4) + testHexToInt(tls, int32(*(*int8)(unsafe.Pointer(zSql + uintptr((i + 2))))))))
i = i + (3)
} else {
- *(*int8)(unsafe.Pointer(zSql + uintptr(crt.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(zSql + uintptr(crt.PostIncInt32(&i, 1))))
+ *(*int8)(unsafe.Pointer(zSql + uintptr(libc.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(zSql + uintptr(libc.PostIncInt32(&i, 1))))
}
}
*(*int8)(unsafe.Pointer(zSql + uintptr(j))) = int8(0)
rc = sqlite3.Xsqlite3_exec(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), zSql, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{exec_printf_cb})), bp+56 /* &str */, bp+272 /* &zErr */)
sqlite3.Xsqlite3_free(tls, zSql)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+280 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+40, rc))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+280 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+40, rc))
tcl.XTcl_AppendElement(tls, interp, bp+280 /* &zBuf[0] */)
tcl.XTcl_AppendElement(tls, interp, func() uintptr {
if rc == 0 {
@@ -38818,7 +43073,7 @@ func test_exec(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
//
// Invoke the sqlite3_exec interface using the open database DB. Discard
// all results
-func test_exec_nr(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:465:26: */
+func test_exec_nr(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:465:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -38827,8 +43082,8 @@ func test_exec_nr(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, arg
var rc int32
*(*uintptr)(unsafe.Pointer(bp + 40 /* zErr */)) = uintptr(0)
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12857 /* " DB SQL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14507 /* " DB SQL" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -38846,7 +43101,7 @@ func test_exec_nr(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, arg
// Test the %z format of sqlite_mprintf(). Use multiple mprintf() calls to
// concatenate arg0 through argn using separator as the separator.
// Return the result.
-func test_mprintf_z(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:492:26: */
+func test_mprintf_z(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:492:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -38854,9 +43109,9 @@ func test_mprintf_z(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, a
var i int32
for i = 2; (i < argc) && ((i == 2) || (zResult != 0)); i++ {
- zResult = sqlite3.Xsqlite3_mprintf(tls, ts+12865 /* "%z%s%s" */, crt.VaList(bp, zResult, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
+ zResult = sqlite3.Xsqlite3_mprintf(tls, ts+14515 /* "%z%s%s" */, libc.VaList(bp, zResult, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, zResult, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, zResult, 0))
sqlite3.Xsqlite3_free(tls, zResult)
return 0
}
@@ -38865,13 +43120,13 @@ func test_mprintf_z(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, a
//
// Test the %n format of sqlite_mprintf(). Return the length of the
// input string.
-func test_mprintf_n(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:515:26: */
+func test_mprintf_n(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:515:26: */
bp := tls.Alloc(20)
defer tls.Free(20)
var zStr uintptr
*(*int32)(unsafe.Pointer(bp + 16 /* n */)) = 0
- zStr = sqlite3.Xsqlite3_mprintf(tls, ts+12872 /* "%s%n" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+16 /* &n */))
+ zStr = sqlite3.Xsqlite3_mprintf(tls, ts+14522 /* "%s%n" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+16 /* &n */))
sqlite3.Xsqlite3_free(tls, zStr)
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 16 /* n */))))
return 0
@@ -38885,21 +43140,21 @@ func test_mprintf_n(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, a
// string must require no more than this one integer argument. If
// You pass in a format string that requires more than one argument,
// bad things will happen.
-func test_snprintf_int(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:539:26: */
+func test_snprintf_int(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:539:26: */
bp := tls.Alloc(124)
defer tls.Free(124)
// var zStr [100]int8 at bp+24, 100
- var n int32 = crt.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
+ var n int32 = libc.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
var zFormat uintptr = *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))
- var a1 int32 = crt.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)))
+ var a1 int32 = libc.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)))
if uint64(n) > uint64(unsafe.Sizeof([100]int8{})) {
n = int32(unsafe.Sizeof([100]int8{}))
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+24 /* &zStr[0] */, ts+12877 /* "abcdefghijklmnop..." */, 0)
- sqlite3.Xsqlite3_snprintf(tls, n, bp+24 /* &zStr[0] */, zFormat, crt.VaList(bp, a1))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+8, bp+24 /* &zStr[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+24 /* &zStr[0] */, ts+14527 /* "abcdefghijklmnop..." */, 0)
+ sqlite3.Xsqlite3_snprintf(tls, n, bp+24 /* &zStr[0] */, zFormat, libc.VaList(bp, a1))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+8, bp+24 /* &zStr[0] */, 0))
return 0
}
@@ -38908,7 +43163,7 @@ func test_snprintf_int(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
// Invoke the sqlite3_get_table_printf() interface using the open database
// DB. The SQL is the string FORMAT. The format string should contain
// one %s or %q. STRING is the value inserted into %s or %q.
-func test_get_table_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:565:26: */
+func test_get_table_printf(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:565:26: */
bp := tls.Alloc(350)
defer tls.Free(350)
@@ -38933,15 +43188,15 @@ func test_get_table_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
}
}
if (argc != 4) && (argc != 5) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12904 /* " DB FORMAT STRIN..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14554 /* " DB FORMAT STRIN..." */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+72 /* &db */) != 0 {
return 1
}
tcl.XTcl_DStringInit(tls, bp+80 /* &str */)
- zSql = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
if argc == 5 {
rc = sqlite3.Xsqlite3_get_table(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* db */)), zSql, bp+296 /* &aResult */, uintptr(0), uintptr(0), bp+304 /* &zErr */)
} else {
@@ -38949,13 +43204,13 @@ func test_get_table_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
*(*int32)(unsafe.Pointer(bp + 64 /* resCount */)) = ((*(*int32)(unsafe.Pointer(bp + 312 /* nRow */)) + 1) * *(*int32)(unsafe.Pointer(bp + 316 /* nCol */)))
}
sqlite3.Xsqlite3_free(tls, zSql)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+320 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+40, rc))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+320 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+40, rc))
tcl.XTcl_AppendElement(tls, interp, bp+320 /* &zBuf[0] */)
if rc == 0 {
if argc == 4 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+320 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 312 /* nRow */))))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+320 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 312 /* nRow */))))
tcl.XTcl_AppendElement(tls, interp, bp+320 /* &zBuf[0] */)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+320 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+56, *(*int32)(unsafe.Pointer(bp + 316 /* nCol */))))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+320 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+56, *(*int32)(unsafe.Pointer(bp + 316 /* nCol */))))
tcl.XTcl_AppendElement(tls, interp, bp+320 /* &zBuf[0] */)
}
for i = 0; i < *(*int32)(unsafe.Pointer(bp + 64 /* resCount */)); i++ {
@@ -38963,7 +43218,7 @@ func test_get_table_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
if *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296 /* aResult */)) + uintptr(i)*8)) != 0 {
return *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296 /* aResult */)) + uintptr(i)*8))
}
- return ts + 4252 /* "NULL" */
+ return ts + 5537 /* "NULL" */
}())
}
} else {
@@ -38982,7 +43237,7 @@ func test_get_table_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
// Usage: sqlite3_last_insert_rowid DB
//
// Returns the integer ROWID of the most recent insert.
-func test_last_rowid(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:628:26: */
+func test_last_rowid(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:628:26: */
bp := tls.Alloc(94)
defer tls.Free(94)
@@ -38991,35 +43246,35 @@ func test_last_rowid(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var zBuf [30]int8 at bp+64, 30
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+12930 /* " DB\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+14580 /* " DB\"" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+56 /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+64 /* &zBuf[0] */, ts+8668 /* "%lld" */, crt.VaList(bp+32, sqlite3.Xsqlite3_last_insert_rowid(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */)))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+64 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+64 /* &zBuf[0] */, ts+10367 /* "%lld" */, libc.VaList(bp+32, sqlite3.Xsqlite3_last_insert_rowid(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */)))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+64 /* &zBuf[0] */, 0))
return 0
}
// Usage: sqlite3_key DB KEY
//
// Set the codec key.
-func test_key(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:652:26: */
+func test_key(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:652:26: */
return 0
}
// Usage: sqlite3_rekey DB KEY
//
// Change the codec key.
-func test_rekey(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:666:26: */
+func test_rekey(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:666:26: */
return 0
}
// Usage: sqlite3_close DB
//
// Closes the database opened by sqlite3_open.
-func sqlite_test_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:680:26: */
+func sqlite_test_close(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:680:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -39027,8 +43282,8 @@ func sqlite_test_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12935 /* " FILENAME\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14585 /* " FILENAME\"" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -39042,7 +43297,7 @@ func sqlite_test_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
// Usage: sqlite3_close_v2 DB
//
// Closes the database opened by sqlite3_open.
-func sqlite_test_close_v2(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:704:26: */
+func sqlite_test_close_v2(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:704:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -39050,8 +43305,8 @@ func sqlite_test_close_v2(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12935 /* " FILENAME\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14585 /* " FILENAME\"" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -39064,13 +43319,13 @@ func sqlite_test_close_v2(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// Implementation of the x_coalesce() function.
// Return the first argument non-NULL argument.
-func t1_ifnullFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:727:13: */
+func t1_ifnullFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:727:13: */
var i int32
for i = 0; i < argc; i++ {
if 5 != sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))) {
var n int32 = sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
sqlite3.Xsqlite3_result_text(tls, context, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))),
- n, crt.UintptrFromInt32(-1))
+ n, libc.UintptrFromInt32(-1))
break
}
}
@@ -39079,7 +43334,7 @@ func t1_ifnullFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// These are test functions. hex8() interprets its argument as
// UTF8 and returns a hex encoding. hex16le() interprets its argument
// as UTF16le and returns a hex encoding.
-func hex8Func(tls *crt.TLS, p uintptr, argc int32, argv uintptr) { /* test1.c:748:13: */
+func hex8Func(tls *libc.TLS, p uintptr, argc int32, argv uintptr) { /* test1.c:748:13: */
bp := tls.Alloc(208)
defer tls.Free(208)
@@ -39089,12 +43344,12 @@ func hex8Func(tls *crt.TLS, p uintptr, argc int32, argv uintptr) { /* test1.c:74
z = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
for i = 0; (uint64(i) < ((uint64(unsafe.Sizeof([200]int8{})) / uint64(2)) - uint64(2))) && (*(*uint8)(unsafe.Pointer(z + uintptr(i))) != 0); i++ {
- sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof([200]int8{})) - (uint64(i * 2)))), (bp + 8 /* &zBuf */ + uintptr((i * 2))), ts+12946 /* "%02x" */, crt.VaList(bp, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i))))))
+ sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof([200]int8{})) - (uint64(i * 2)))), (bp + 8 /* &zBuf */ + uintptr((i * 2))), ts+14596 /* "%02x" */, libc.VaList(bp, int32(*(*uint8)(unsafe.Pointer(z + uintptr(i))))))
}
*(*int8)(unsafe.Pointer(bp + 8 /* &zBuf[0] */ + uintptr((i * 2)))) = int8(0)
- sqlite3.Xsqlite3_result_text(tls, p, bp+8 /* zBuf */, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, p, bp+8 /* zBuf */, -1, libc.UintptrFromInt32(-1))
}
-func hex16Func(tls *crt.TLS, p uintptr, argc int32, argv uintptr) { /* test1.c:760:13: */
+func hex16Func(tls *libc.TLS, p uintptr, argc int32, argv uintptr) { /* test1.c:760:13: */
bp := tls.Alloc(408)
defer tls.Free(408)
@@ -39104,10 +43359,10 @@ func hex16Func(tls *crt.TLS, p uintptr, argc int32, argv uintptr) { /* test1.c:7
z = sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
for i = 0; (uint64(i) < ((uint64(unsafe.Sizeof([400]int8{})) / uint64(4)) - uint64(4))) && (*(*uint16)(unsafe.Pointer(z + uintptr(i)*2)) != 0); i++ {
- sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof([400]int8{})) - (uint64(i * 4)))), (bp + 8 /* &zBuf */ + uintptr((i * 4))), ts+12951 /* "%04x" */, crt.VaList(bp, (int32(*(*uint16)(unsafe.Pointer(z + uintptr(i)*2)))&0xff)))
+ sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof([400]int8{})) - (uint64(i * 4)))), (bp + 8 /* &zBuf */ + uintptr((i * 4))), ts+14601 /* "%04x" */, libc.VaList(bp, (int32(*(*uint16)(unsafe.Pointer(z + uintptr(i)*2)))&0xff)))
}
*(*int8)(unsafe.Pointer(bp + 8 /* &zBuf[0] */ + uintptr((i * 4)))) = int8(0)
- sqlite3.Xsqlite3_result_text(tls, p, bp+8 /* zBuf */, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, p, bp+8 /* zBuf */, -1, libc.UintptrFromInt32(-1))
}
// A structure into which to accumulate text.
@@ -39118,33 +43373,33 @@ type dstr = struct {
}
// Append text to a dstr
-func dstrAppend(tls *crt.TLS, p uintptr, z uintptr, divider int32) { /* test1.c:785:13: */
- var n int32 = int32(crt.Xstrlen(tls, z))
+func dstrAppend(tls *libc.TLS, p uintptr, z uintptr, divider int32) { /* test1.c:785:13: */
+ var n int32 = int32(libc.Xstrlen(tls, z))
if (((*dstr)(unsafe.Pointer(p)).FnUsed + n) + 2) > (*dstr)(unsafe.Pointer(p)).FnAlloc {
var zNew uintptr
(*dstr)(unsafe.Pointer(p)).FnAlloc = ((((*dstr)(unsafe.Pointer(p)).FnAlloc * 2) + n) + 200)
zNew = sqlite3.Xsqlite3_realloc(tls, (*dstr)(unsafe.Pointer(p)).Fz, (*dstr)(unsafe.Pointer(p)).FnAlloc)
if zNew == uintptr(0) {
sqlite3.Xsqlite3_free(tls, (*dstr)(unsafe.Pointer(p)).Fz)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(dstr{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(dstr{})))
return
}
(*dstr)(unsafe.Pointer(p)).Fz = zNew
}
if (divider != 0) && ((*dstr)(unsafe.Pointer(p)).FnUsed > 0) {
- *(*int8)(unsafe.Pointer((*dstr)(unsafe.Pointer(p)).Fz + uintptr(crt.PostIncInt32(&(*dstr)(unsafe.Pointer(p)).FnUsed, 1)))) = int8(divider)
+ *(*int8)(unsafe.Pointer((*dstr)(unsafe.Pointer(p)).Fz + uintptr(libc.PostIncInt32(&(*dstr)(unsafe.Pointer(p)).FnUsed, 1)))) = int8(divider)
}
- crt.Xmemcpy(tls, ((*dstr)(unsafe.Pointer(p)).Fz + uintptr((*dstr)(unsafe.Pointer(p)).FnUsed)), z, (uint64(n + 1)))
+ libc.Xmemcpy(tls, ((*dstr)(unsafe.Pointer(p)).Fz + uintptr((*dstr)(unsafe.Pointer(p)).FnUsed)), z, (uint64(n + 1)))
*(*int32)(unsafe.Pointer(p + 4 /* &.nUsed */)) += (n)
}
// Invoked for each callback from sqlite3ExecFunc
-func execFuncCallback(tls *crt.TLS, pData uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* test1.c:808:12: */
+func execFuncCallback(tls *libc.TLS, pData uintptr, argc int32, argv uintptr, NotUsed uintptr) int32 { /* test1.c:808:12: */
var p uintptr = pData
var i int32
for i = 0; i < argc; i++ {
if *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)) == uintptr(0) {
- dstrAppend(tls, p, ts+4252 /* "NULL" */, ' ')
+ dstrAppend(tls, p, ts+5537 /* "NULL" */, ' ')
} else {
dstrAppend(tls, p, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), ' ')
}
@@ -39161,19 +43416,19 @@ func execFuncCallback(tls *crt.TLS, pData uintptr, argc int32, argv uintptr, Not
//
// This routine simulates the effect of having two threads attempt to
// use the same database at the same time.
-func sqlite3ExecFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:832:13: */
+func sqlite3ExecFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:832:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
// var x dstr at bp, 16
- crt.Xmemset(tls, bp /* &x */, 0, uint64(unsafe.Sizeof(dstr{})))
+ libc.Xmemset(tls, bp /* &x */, 0, uint64(unsafe.Sizeof(dstr{})))
sqlite3.Xsqlite3_exec(tls, sqlite3.Xsqlite3_user_data(tls, context),
sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
}{execFuncCallback})), bp /* &x */, uintptr(0))
- sqlite3.Xsqlite3_result_text(tls, context, (*dstr)(unsafe.Pointer(bp /* &x */)).Fz, (*dstr)(unsafe.Pointer(bp /* &x */)).FnUsed, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, (*dstr)(unsafe.Pointer(bp /* &x */)).Fz, (*dstr)(unsafe.Pointer(bp /* &x */)).FnUsed, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3_free(tls, (*dstr)(unsafe.Pointer(bp /* &x */)).Fz)
}
@@ -39191,7 +43446,7 @@ func sqlite3ExecFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
// SQL expression:
//
// tkt2213func(tkt2213func('a string'));
-func tkt2213Function(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:862:13: */
+func tkt2213Function(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:862:13: */
var nText int32
var zText1 uintptr
var zText2 uintptr
@@ -39203,11 +43458,11 @@ func tkt2213Function(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
zText3 = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
if (zText1 != zText2) || (zText2 != zText3) {
- sqlite3.Xsqlite3_result_error(tls, context, ts+12956 /* "tkt2213 is not f..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, context, ts+14606 /* "tkt2213 is not f..." */, -1)
} else {
var zCopy uintptr = sqlite3.Xsqlite3_malloc(tls, nText)
- crt.Xmemcpy(tls, zCopy, zText1, uint64(nText))
- sqlite3.Xsqlite3_result_text(tls, context, zCopy, nText, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ libc.Xmemcpy(tls, zCopy, zText1, uint64(nText))
+ sqlite3.Xsqlite3_result_text(tls, context, zCopy, nText, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
@@ -39233,7 +43488,7 @@ func tkt2213Function(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
//
// This function is used to test to see when returned pointers from
// the _text(), _text16() and _blob() APIs become invalidated.
-func ptrChngFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:910:13: */
+func ptrChngFunction(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:910:13: */
var p1 uintptr
var p2 uintptr
var zCmd uintptr
@@ -39244,11 +43499,11 @@ func ptrChngFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
if zCmd == uintptr(0) {
return
}
- if crt.Xstrcmp(tls, zCmd, ts+10620 /* "text" */) == 0 {
+ if libc.Xstrcmp(tls, zCmd, ts+12275 /* "text" */) == 0 {
p1 = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- } else if crt.Xstrcmp(tls, zCmd, ts+12977 /* "text16" */) == 0 {
+ } else if libc.Xstrcmp(tls, zCmd, ts+14627 /* "text16" */) == 0 {
p1 = sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- } else if crt.Xstrcmp(tls, zCmd, ts+10625 /* "blob" */) == 0 {
+ } else if libc.Xstrcmp(tls, zCmd, ts+12280 /* "blob" */) == 0 {
p1 = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
} else {
return
@@ -39257,11 +43512,11 @@ func ptrChngFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
if zCmd == uintptr(0) {
return
}
- if crt.Xstrcmp(tls, zCmd, ts+12984 /* "bytes" */) == 0 {
+ if libc.Xstrcmp(tls, zCmd, ts+14634 /* "bytes" */) == 0 {
sqlite3.Xsqlite3_value_bytes(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- } else if crt.Xstrcmp(tls, zCmd, ts+12990 /* "bytes16" */) == 0 {
+ } else if libc.Xstrcmp(tls, zCmd, ts+14640 /* "bytes16" */) == 0 {
sqlite3.Xsqlite3_value_bytes16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- } else if crt.Xstrcmp(tls, zCmd, ts+12998 /* "noop" */) == 0 {
+ } else if libc.Xstrcmp(tls, zCmd, ts+14648 /* "noop" */) == 0 {
} else {
return
}
@@ -39269,35 +43524,35 @@ func ptrChngFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
if zCmd == uintptr(0) {
return
}
- if crt.Xstrcmp(tls, zCmd, ts+10620 /* "text" */) == 0 {
+ if libc.Xstrcmp(tls, zCmd, ts+12275 /* "text" */) == 0 {
p2 = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- } else if crt.Xstrcmp(tls, zCmd, ts+12977 /* "text16" */) == 0 {
+ } else if libc.Xstrcmp(tls, zCmd, ts+14627 /* "text16" */) == 0 {
p2 = sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- } else if crt.Xstrcmp(tls, zCmd, ts+10625 /* "blob" */) == 0 {
+ } else if libc.Xstrcmp(tls, zCmd, ts+12280 /* "blob" */) == 0 {
p2 = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
} else {
return
}
- sqlite3.Xsqlite3_result_int(tls, context, (crt.Bool32(p1 != p2)))
+ sqlite3.Xsqlite3_result_int(tls, context, (libc.Bool32(p1 != p2)))
}
// This SQL function returns a different answer each time it is called, even if
// the arguments are the same.
-func nondeterministicFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:964:13: */
- sqlite3.Xsqlite3_result_int(tls, context, crt.PostIncInt32(&cnt, 1))
+func nondeterministicFunction(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:964:13: */
+ sqlite3.Xsqlite3_result_int(tls, context, libc.PostIncInt32(&cnt, 1))
}
var cnt int32 = 0 /* test1.c:969:14 */
// This SQL function returns the integer value of its argument as a MEM_IntReal
// value.
-func intrealFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:977:13: */
+func intrealFunction(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:977:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
var v sqlite3_int64 = sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
sqlite3.Xsqlite3_result_int64(tls, context, v)
- sqlite3.Xsqlite3_test_control(tls, 27, crt.VaList(bp, context))
+ sqlite3.Xsqlite3_test_control(tls, 27, libc.VaList(bp, context))
}
// Usage: sqlite3_create_function DB
@@ -39313,7 +43568,7 @@ func intrealFunction(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
// The original motivation for this routine was to be able to call the
// sqlite3_create_function function while a query is in progress in order
// to test the SQLITE_MISUSE detection logic.
-func test_create_function(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1002:26: */
+func test_create_function(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1002:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -39321,39 +43576,39 @@ func test_create_function(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// var db uintptr at bp+32, 8
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12930 /* " DB\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14580 /* " DB\"" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13003 /* "x_coalesce" */, -1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14653 /* "x_coalesce" */, -1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{t1_ifnullFunc})), uintptr(0), uintptr(0))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13014 /* "hex8" */, 1, (1 | 0x000000800),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14664 /* "hex8" */, 1, (1 | 0x000000800),
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{hex8Func})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13019 /* "hex16" */, 1, (4 | 0x000000800),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14669 /* "hex16" */, 1, (4 | 0x000000800),
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{hex16Func})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13025 /* "tkt2213func" */, 1, 5, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14675 /* "tkt2213func" */, 1, 5, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tkt2213Function})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13037 /* "pointer_change" */, 4, 5, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14687 /* "pointer_change" */, 4, 5, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{ptrChngFunction})), uintptr(0), uintptr(0))
}
@@ -39361,24 +43616,24 @@ func test_create_function(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// both return an ascending integer with each call. But counter1() is marked
// as non-deterministic and counter2() is marked as deterministic.
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13052 /* "counter1" */, -1, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14702 /* "counter1" */, -1, 1,
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{nondeterministicFunction})), uintptr(0), uintptr(0))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13061 /* "counter2" */, -1, (1 | 0x000000800),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14711 /* "counter2" */, -1, (1 | 0x000000800),
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{nondeterministicFunction})), uintptr(0), uintptr(0))
}
// The intreal() function converts its argument to an integer and returns
// it as a MEM_IntReal.
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13070 /* "intreal" */, 1, 1,
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14720 /* "intreal" */, 1, 1,
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{intrealFunction})), uintptr(0), uintptr(0))
}
@@ -39389,14 +43644,14 @@ func test_create_function(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
var pVal uintptr
sqlite3.Xsqlite3_mutex_enter(tls, (*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).Fmutex)
pVal = sqlite3.Xsqlite3ValueNew(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))
- sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, ts+13078 /* "x_sqlite_exec" */, uint8(1), uintptr(0))
+ sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, ts+14728 /* "x_sqlite_exec" */, uint8(1), uintptr(0))
zUtf16 = sqlite3.Xsqlite3ValueText(tls, pVal, uint8(2))
if (*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).FmallocFailed != 0 {
rc = 7
} else {
rc = sqlite3.Xsqlite3_create_function16(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), zUtf16,
1, 4, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{sqlite3ExecFunc})), uintptr(0), uintptr(0))
}
sqlite3.Xsqlite3ValueFree(tls, pVal)
@@ -39415,15 +43670,15 @@ func test_create_function(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// Invoke the sqlite3_drop_modules(D,L) interface on database
// connection DB, in order to drop all modules except those named in
// the argument.
-func test_drop_modules(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1092:26: */
+func test_drop_modules(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1092:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12930 /* " DB\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14580 /* " DB\"" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -39459,7 +43714,7 @@ type t1CountCtx1 = struct{ Fn int32 }
// is reported on the step function. If the total count is 42, then
// a UTF-8 error is reported on the finalize function.
type t1CountCtx = t1CountCtx1 /* test1.c:1123:27 */
-func t1CountStep(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:1127:13: */
+func t1CountStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:1127:13: */
bp := tls.Alloc(9)
defer tls.Free(9)
@@ -39471,19 +43726,19 @@ func t1CountStep(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* t
if argc > 0 {
var v int32 = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
if v == 40 {
- sqlite3.Xsqlite3_result_error(tls, context, ts+13092 /* "value of 40 hand..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, context, ts+14742 /* "value of 40 hand..." */, -1)
} else if v == 41 {
*(*[9]int8)(unsafe.Pointer(bp /* zUtf16ErrMsg */)) = [9]int8{int8(0), int8(0x61), int8(0), int8(0x62), int8(0), int8(0x63), int8(0), int8(0), int8(0)}
sqlite3.Xsqlite3_result_error16(tls, context, (bp /* &zUtf16ErrMsg */ + uintptr((1 - 0))), -1)
}
}
}
-func t1CountFinalize(tls *crt.TLS, context uintptr) { /* test1.c:1149:13: */
+func t1CountFinalize(tls *libc.TLS, context uintptr) { /* test1.c:1149:13: */
var p uintptr
p = sqlite3.Xsqlite3_aggregate_context(tls, context, int32(unsafe.Sizeof(t1CountCtx{})))
if p != 0 {
if (*t1CountCtx)(unsafe.Pointer(p)).Fn == 42 {
- sqlite3.Xsqlite3_result_error(tls, context, ts+13122 /* "x_count totals t..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, context, ts+14772 /* "x_count totals t..." */, -1)
} else {
sqlite3.Xsqlite3_result_int(tls, context, func() int32 {
if p != 0 {
@@ -39495,11 +43750,11 @@ func t1CountFinalize(tls *crt.TLS, context uintptr) { /* test1.c:1149:13: */
}
}
-func legacyCountStep(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:1162:13: */
+func legacyCountStep(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:1162:13: */
// no-op
}
-func legacyCountFinalize(tls *crt.TLS, context uintptr) { /* test1.c:1170:13: */
+func legacyCountFinalize(tls *libc.TLS, context uintptr) { /* test1.c:1170:13: */
sqlite3.Xsqlite3_result_int(tls, context, sqlite3.Xsqlite3_aggregate_count(tls, context))
}
@@ -39520,7 +43775,7 @@ func legacyCountFinalize(tls *crt.TLS, context uintptr) { /* test1.c:1170:13: */
// Later: It is now also extended to register the aggregate function
// "legacy_count()" with the supplied database handle. This is used
// to test the deprecated sqlite3_aggregate_count() API.
-func test_create_aggregate(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1194:26: */
+func test_create_aggregate(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1194:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -39528,28 +43783,28 @@ func test_create_aggregate(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12935 /* " FILENAME\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14585 /* " FILENAME\"" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13143 /* "x_count" */, 0, 1, uintptr(0), uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14793 /* "x_count" */, 0, 1, uintptr(0), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{t1CountStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{t1CountFinalize})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{t1CountStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{t1CountFinalize})))
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13143 /* "x_count" */, 1, 1, uintptr(0), uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14793 /* "x_count" */, 1, 1, uintptr(0), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{t1CountStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{t1CountFinalize})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{t1CountStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{t1CountFinalize})))
}
if rc == 0 {
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+13151 /* "legacy_count" */, 0, 5, uintptr(0), uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14801 /* "legacy_count" */, 0, 5, uintptr(0), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{legacyCountStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{legacyCountFinalize})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{legacyCountStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{legacyCountFinalize})))
}
if sqlite3TestErrCode(tls, interp, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), rc) != 0 {
return 1
@@ -39564,23 +43819,23 @@ func test_create_aggregate(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
// in the correct sequence with debugging printfs inserted into C code.
// Puts uses a separate buffer and debugging statements will be out of
// sequence if it is used.
-func test_printf(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1235:26: */
+func test_printf(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1235:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13164 /* " TEXT\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14814 /* " TEXT\"" */, 0))
return 1
}
- crt.Xprintf(tls, ts+293 /* "%s\n" */, crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
+ libc.Xprintf(tls, ts+293 /* "%s\n" */, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
return 0
}
// Usage: sqlite3_mprintf_int FORMAT INTEGER INTEGER INTEGER
//
// Call mprintf with three integer arguments
-func sqlite3_mprintf_int(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1257:26: */
+func sqlite3_mprintf_int(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1257:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -39589,8 +43844,8 @@ func sqlite3_mprintf_int(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
var i int32
var z uintptr
if argc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13171 /* " FORMAT INT INT ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14821 /* " FORMAT INT INT ..." */, 0))
return 1
}
for i = 2; i < 5; i++ {
@@ -39598,8 +43853,8 @@ func sqlite3_mprintf_int(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
return 1
}
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(1)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(2)*4))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, z, 0))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(1)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(2)*4))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39607,7 +43862,7 @@ func sqlite3_mprintf_int(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
// Usage: sqlite3_mprintf_int64 FORMAT INTEGER INTEGER INTEGER
//
// Call mprintf with three 64-bit integer arguments
-func sqlite3_mprintf_int64(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1284:26: */
+func sqlite3_mprintf_int64(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1284:26: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -39616,18 +43871,18 @@ func sqlite3_mprintf_int64(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
var z uintptr
if argc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13171 /* " FORMAT INT INT ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14821 /* " FORMAT INT INT ..." */, 0))
return 1
}
for i = 2; i < 5; i++ {
if sqlite3.Xsqlite3Atoi64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)), (bp+88 /* &a */ +uintptr((i-2))*8), sqlite3.Xsqlite3Strlen30(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))), uint8(1)) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+13192 /* "argument is not ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+14842 /* "argument is not ..." */, 0))
return 1
}
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+48, *(*sqlite_int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(0)*8)), *(*sqlite_int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(1)*8)), *(*sqlite_int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(2)*8))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, z, 0))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+48, *(*sqlite_int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(0)*8)), *(*sqlite_int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(1)*8)), *(*sqlite_int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(2)*8))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39637,7 +43892,7 @@ func sqlite3_mprintf_int64(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
// Call mprintf with three long integer arguments. This might be the
// same as sqlite3_mprintf_int or sqlite3_mprintf_int64, depending on
// platform.
-func sqlite3_mprintf_long(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1317:26: */
+func sqlite3_mprintf_long(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1317:26: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -39648,8 +43903,8 @@ func sqlite3_mprintf_long(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
var z uintptr
if argc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13171 /* " FORMAT INT INT ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14821 /* " FORMAT INT INT ..." */, 0))
return 1
}
for i = 2; i < 5; i++ {
@@ -39659,8 +43914,8 @@ func sqlite3_mprintf_long(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
*(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr((i-2))*8)) = int64(*(*int32)(unsafe.Pointer(bp + 72 /* &b[0] */ + uintptr((i-2))*4)))
*(*int64)(unsafe.Pointer(bp + 88 /* &a */ + uintptr((i-2))*8)) &= int64(((u64((uint64(1))) << (uint64(unsafe.Sizeof(int32(0))) * uint64(8))) - uint64(1)))
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+32, *(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(0)*8)), *(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(1)*8)), *(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(2)*8))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, z, 0))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+32, *(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(0)*8)), *(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(1)*8)), *(*int64)(unsafe.Pointer(bp + 88 /* &a[0] */ + uintptr(2)*8))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39668,7 +43923,7 @@ func sqlite3_mprintf_long(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// Usage: sqlite3_mprintf_str FORMAT INTEGER INTEGER STRING
//
// Call mprintf with two integer arguments and one string argument
-func sqlite3_mprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1348:26: */
+func sqlite3_mprintf_str(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1348:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -39677,8 +43932,8 @@ func sqlite3_mprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
var i int32
var z uintptr
if (argc < 4) || (argc > 5) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13231 /* " FORMAT INT INT ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14881 /* " FORMAT INT INT ..." */, 0))
return 1
}
for i = 2; i < 4; i++ {
@@ -39686,13 +43941,13 @@ func sqlite3_mprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
return 1
}
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(1)*4)), func() uintptr {
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(1)*4)), func() uintptr {
if argc > 4 {
return *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8))
}
return uintptr(0)
}()))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, z, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39700,7 +43955,7 @@ func sqlite3_mprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
// Usage: sqlite3_snprintf_str INTEGER FORMAT INTEGER INTEGER STRING
//
// Call mprintf with two integer arguments and one string argument
-func sqlite3_snprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1375:26: */
+func sqlite3_snprintf_str(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1375:26: */
bp := tls.Alloc(104)
defer tls.Free(104)
@@ -39711,15 +43966,15 @@ func sqlite3_snprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
var z uintptr
if (argc < 5) || (argc > 6) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13257 /* " INT FORMAT INT ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14907 /* " INT FORMAT INT ..." */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+88 /* &n */) != 0 {
return 1
}
if *(*int32)(unsafe.Pointer(bp + 88 /* n */)) < 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+13287 /* "N must be non-ne..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+14937 /* "N must be non-ne..." */, 0))
return 1
}
for i = 3; i < 5; i++ {
@@ -39728,13 +43983,13 @@ func sqlite3_snprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
}
}
z = sqlite3.Xsqlite3_malloc(tls, (*(*int32)(unsafe.Pointer(bp + 88 /* n */)) + 1))
- sqlite3.Xsqlite3_snprintf(tls, *(*int32)(unsafe.Pointer(bp + 88 /* n */)), z, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), crt.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 92 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 92 /* &a[0] */ + uintptr(1)*4)), func() uintptr {
+ sqlite3.Xsqlite3_snprintf(tls, *(*int32)(unsafe.Pointer(bp + 88 /* n */)), z, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), libc.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 92 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 92 /* &a[0] */ + uintptr(1)*4)), func() uintptr {
if argc > 4 {
return *(*uintptr)(unsafe.Pointer(argv + uintptr(5)*8))
}
return uintptr(0)
}()))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, z, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39742,7 +43997,7 @@ func sqlite3_snprintf_str(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// Usage: sqlite3_mprintf_double FORMAT INTEGER INTEGER DOUBLE
//
// Call mprintf with two integer arguments and one double argument
-func sqlite3_mprintf_double(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1409:26: */
+func sqlite3_mprintf_double(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1409:26: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -39753,8 +44008,8 @@ func sqlite3_mprintf_double(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
var z uintptr
if argc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13310 /* " FORMAT INT INT ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14960 /* " FORMAT INT INT ..." */, 0))
return 1
}
for i = 2; i < 4; i++ {
@@ -39765,8 +44020,8 @@ func sqlite3_mprintf_double(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
if tcl.XTcl_GetDouble(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), bp+88 /* &r */) != 0 {
return 1
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(1)*4)), *(*float64)(unsafe.Pointer(bp + 88 /* r */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, z, 0))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(0)*4)), *(*int32)(unsafe.Pointer(bp + 72 /* &a[0] */ + uintptr(1)*4)), *(*float64)(unsafe.Pointer(bp + 88 /* r */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39776,7 +44031,7 @@ func sqlite3_mprintf_double(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
// Call mprintf with a single double argument which is the product of the
// two arguments given above. This is used to generate overflow and underflow
// doubles to test that they are converted properly.
-func sqlite3_mprintf_scaled(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1440:26: */
+func sqlite3_mprintf_scaled(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1440:26: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -39785,8 +44040,8 @@ func sqlite3_mprintf_scaled(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
var z uintptr
if argc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13334 /* " FORMAT DOUBLE D..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14984 /* " FORMAT DOUBLE D..." */, 0))
return 1
}
for i = 2; i < 4; i++ {
@@ -39794,8 +44049,8 @@ func sqlite3_mprintf_scaled(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
return 1
}
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+32, (*(*float64)(unsafe.Pointer(bp + 56 /* &r[0] */ + uintptr(0)*8))**(*float64)(unsafe.Pointer(bp + 56 /* &r[0] */ + uintptr(1)*8)))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, z, 0))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+32, (*(*float64)(unsafe.Pointer(bp + 56 /* &r[0] */ + uintptr(0)*8))**(*float64)(unsafe.Pointer(bp + 56 /* &r[0] */ + uintptr(1)*8)))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39805,18 +44060,18 @@ func sqlite3_mprintf_scaled(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
// Call mprintf with a single double argument which is the product of the
// two arguments given above. This is used to generate overflow and underflow
// doubles to test that they are converted properly.
-func sqlite3_mprintf_stronly(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1470:26: */
+func sqlite3_mprintf_stronly(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1470:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
var z uintptr
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13357 /* " FORMAT STRING\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+15007 /* " FORMAT STRING\"" */, 0))
return 1
}
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, z, 0))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
@@ -39825,7 +44080,7 @@ func sqlite3_mprintf_stronly(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
//
// Call mprintf with a single double argument which is derived from the
// hexadecimal encoding of an IEEE double.
-func sqlite3_mprintf_hexdouble(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1494:26: */
+func sqlite3_mprintf_hexdouble(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:1494:26: */
bp := tls.Alloc(112)
defer tls.Free(112)
@@ -39839,26 +44094,26 @@ func sqlite3_mprintf_hexdouble(tls *crt.TLS, NotUsed uintptr, interp uintptr, ar
// var d sqlite_uint64 at bp+104, 8
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13357 /* " FORMAT STRING\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+15007 /* " FORMAT STRING\"" */, 0))
return 1
}
- if crt.X__isoc99_sscanf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+13373 /* "%08x%08x" */, crt.VaList(bp+32, bp+88 /* &x2 */, bp+92 /* &x1 */)) != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+13382 /* "2nd argument sho..." */, 0))
+ if libc.X__isoc99_sscanf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+15023 /* "%08x%08x" */, libc.VaList(bp+32, bp+88 /* &x2 */, bp+92 /* &x1 */)) != 2 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+15032 /* "2nd argument sho..." */, 0))
return 1
}
*(*sqlite_uint64)(unsafe.Pointer(bp + 104 /* d */)) = sqlite_uint64(*(*uint32)(unsafe.Pointer(bp + 88 /* x2 */)))
*(*sqlite_uint64)(unsafe.Pointer(bp + 104 /* d */)) = ((*(*sqlite_uint64)(unsafe.Pointer(bp + 104 /* d */)) << 32) + sqlite_uint64(*(*uint32)(unsafe.Pointer(bp + 92 /* x1 */))))
- crt.Xmemcpy(tls, bp+96 /* &r */, bp+104 /* &d */, uint64(unsafe.Sizeof(float64(0))))
- z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), crt.VaList(bp+64, *(*float64)(unsafe.Pointer(bp + 96 /* r */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, z, 0))
+ libc.Xmemcpy(tls, bp+96 /* &r */, bp+104 /* &d */, uint64(unsafe.Sizeof(float64(0))))
+ z = sqlite3.Xsqlite3_mprintf(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), libc.VaList(bp+64, *(*float64)(unsafe.Pointer(bp + 96 /* r */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, z, 0))
sqlite3.Xsqlite3_free(tls, z)
return 0
}
// Usage: sqlite3_enable_shared_cache ?BOOLEAN?
//
-func test_enable_shared(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1527:26: */
+func test_enable_shared(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1527:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -39868,7 +44123,7 @@ func test_enable_shared(tls *crt.TLS, clientData ClientData, interp uintptr, obj
var ret int32 = 0
if (objc != 2) && (objc != 1) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13426 /* "?BOOLEAN?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2760 /* "?BOOLEAN?" */)
return 1
}
ret = sqlite3.Xsqlite3Config.FsharedCacheEnabled
@@ -39883,13 +44138,13 @@ func test_enable_shared(tls *crt.TLS, clientData ClientData, interp uintptr, obj
return 1
}
}
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((ret) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((ret) != 0))))
return 0
}
// Usage: sqlite3_extended_result_codes DB BOOLEAN
//
-func test_extended_result_codes(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1564:26: */
+func test_extended_result_codes(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1564:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -39898,7 +44153,7 @@ func test_extended_result_codes(tls *crt.TLS, clientData ClientData, interp uint
// var db uintptr at bp, 8
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13436 /* "DB BOOLEAN" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15076 /* "DB BOOLEAN" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
@@ -39913,14 +44168,14 @@ func test_extended_result_codes(tls *crt.TLS, clientData ClientData, interp uint
// Usage: sqlite3_libversion_number
//
-func test_libversion_number(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1587:26: */
+func test_libversion_number(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1587:26: */
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, sqlite3.Xsqlite3_libversion_number(tls)))
return 0
}
// Usage: sqlite3_table_column_metadata DB dbname tblname colname
//
-func test_table_column_metadata(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1601:26: */
+func test_table_column_metadata(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1601:26: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -39942,7 +44197,7 @@ func test_table_column_metadata(tls *crt.TLS, clientData ClientData, interp uint
// var autoincrement int32 at bp+48, 4
if (objc != 5) && (objc != 4) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13447 /* "DB dbname tblnam..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15087 /* "DB dbname tblnam..." */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+16 /* &db */) != 0 {
@@ -39956,7 +44211,7 @@ func test_table_column_metadata(tls *crt.TLS, clientData ClientData, interp uint
zCol = uintptr(0)
}
- if crt.Xstrlen(tls, zDb) == uint64(0) {
+ if libc.Xstrlen(tls, zDb) == uint64(0) {
zDb = uintptr(0)
}
@@ -39964,7 +44219,7 @@ func test_table_column_metadata(tls *crt.TLS, clientData ClientData, interp uint
bp+24 /* &zDatatype */, bp+32 /* &zCollseq */, bp+40 /* &notnull */, bp+44 /* &primarykey */, bp+48 /* &autoincrement */)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */))), 0))
return 1
}
@@ -39979,7 +44234,7 @@ func test_table_column_metadata(tls *crt.TLS, clientData ClientData, interp uint
return 0
}
-func blobHandleFromObj(tls *crt.TLS, interp uintptr, pObj uintptr, ppBlob uintptr) int32 { /* test1.c:1652:26: */
+func blobHandleFromObj(tls *libc.TLS, interp uintptr, pObj uintptr, ppBlob uintptr) int32 { /* test1.c:1652:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -40010,7 +44265,7 @@ func blobHandleFromObj(tls *crt.TLS, interp uintptr, pObj uintptr, ppBlob uintpt
return 0
}
-func test_blob_reopen(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1681:26: */
+func test_blob_reopen(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1681:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -40021,7 +44276,7 @@ func test_blob_reopen(tls *crt.TLS, clientData ClientData, interp uintptr, objc
var rc int32
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13473 /* "CHANNEL ROWID" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15113 /* "CHANNEL ROWID" */)
return 1
}
@@ -40056,7 +44311,7 @@ type TestCollationX1 = struct {
}
type TestCollationX = TestCollationX1 /* test1.c:1720:31 */
-func testCreateCollationDel(tls *crt.TLS, pCtx uintptr) { /* test1.c:1721:13: */
+func testCreateCollationDel(tls *libc.TLS, pCtx uintptr) { /* test1.c:1721:13: */
var p uintptr = pCtx
var rc int32 = tcl.XTcl_EvalObjEx(tls, (*TestCollationX)(unsafe.Pointer(p)).Finterp, (*TestCollationX)(unsafe.Pointer(p)).FpDel, (0x040000 | 0x020000))
@@ -40066,19 +44321,19 @@ func testCreateCollationDel(tls *crt.TLS, pCtx uintptr) { /* test1.c:1721:13: */
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*TestCollationX)(unsafe.Pointer(p)).FpCmp
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*TestCollationX)(unsafe.Pointer(p)).FpDel
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
sqlite3.Xsqlite3_free(tls, p)
}
-func testCreateCollationCmp(tls *crt.TLS, pCtx uintptr, nLeft int32, zLeft uintptr, nRight int32, zRight uintptr) int32 { /* test1.c:1733:12: */
+func testCreateCollationCmp(tls *libc.TLS, pCtx uintptr, nLeft int32, zLeft uintptr, nRight int32, zRight uintptr) int32 { /* test1.c:1733:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -40096,14 +44351,14 @@ func testCreateCollationCmp(tls *crt.TLS, pCtx uintptr, nLeft int32, zLeft uintp
}
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
return *(*int32)(unsafe.Pointer(bp /* iRes */))
}
-func test_create_collation_v2(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1757:26: */
+func test_create_collation_v2(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1757:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -40113,7 +44368,7 @@ func test_create_collation_v2(tls *crt.TLS, clientData ClientData, interp uintpt
var rc int32
if objc != 5 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13487 /* "DB-HANDLE NAME C..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15127 /* "DB-HANDLE NAME C..." */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+16 /* &db */) != 0 {
@@ -40129,17 +44384,17 @@ func test_create_collation_v2(tls *crt.TLS, clientData ClientData, interp uintpt
rc = sqlite3.Xsqlite3_create_collation_v2(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 16,
p, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
- }{testCreateCollationCmp})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testCreateCollationDel})))
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ }{testCreateCollationCmp})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testCreateCollationDel})))
if rc != 21 {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp, ts+13520 /* "sqlite3_create_c..." */, uintptr(0)))
+ libc.VaList(bp, ts+15160 /* "sqlite3_create_c..." */, uintptr(0)))
return 1
}
rc = sqlite3.Xsqlite3_create_collation_v2(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 1,
p, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
- }{testCreateCollationCmp})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testCreateCollationDel})))
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ }{testCreateCollationCmp})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testCreateCollationDel})))
return 0
}
@@ -40168,13 +44423,13 @@ type CreateFunctionV21 = struct {
// -final SCRIPT
// -destroy SCRIPT
type CreateFunctionV2 = CreateFunctionV21 /* test1.c:1804:33 */
-func cf2Func(tls *crt.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* test1.c:1812:13: */
+func cf2Func(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* test1.c:1812:13: */
}
-func cf2Step(tls *crt.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* test1.c:1814:13: */
+func cf2Step(tls *libc.TLS, ctx uintptr, nArg int32, aArg uintptr) { /* test1.c:1814:13: */
}
-func cf2Final(tls *crt.TLS, ctx uintptr) { /* test1.c:1816:13: */
+func cf2Final(tls *libc.TLS, ctx uintptr) { /* test1.c:1816:13: */
}
-func cf2Destroy(tls *crt.TLS, pUser uintptr) { /* test1.c:1818:13: */
+func cf2Destroy(tls *libc.TLS, pUser uintptr) { /* test1.c:1818:13: */
var p uintptr = pUser
if ((*CreateFunctionV2)(unsafe.Pointer(p)).Finterp != 0) && ((*CreateFunctionV2)(unsafe.Pointer(p)).FpDestroy != 0) {
@@ -40187,7 +44442,7 @@ func cf2Destroy(tls *crt.TLS, pUser uintptr) { /* test1.c:1818:13: */
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpFunc != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*CreateFunctionV2)(unsafe.Pointer(p)).FpFunc
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -40195,7 +44450,7 @@ func cf2Destroy(tls *crt.TLS, pUser uintptr) { /* test1.c:1818:13: */
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpStep != 0 {
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*CreateFunctionV2)(unsafe.Pointer(p)).FpStep
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -40203,7 +44458,7 @@ func cf2Destroy(tls *crt.TLS, pUser uintptr) { /* test1.c:1818:13: */
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpFinal != 0 {
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = (*CreateFunctionV2)(unsafe.Pointer(p)).FpFinal
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -40211,14 +44466,14 @@ func cf2Destroy(tls *crt.TLS, pUser uintptr) { /* test1.c:1818:13: */
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpDestroy != 0 {
for ok3 := true; ok3; ok3 = 0 != 0 {
var _objPtr uintptr = (*CreateFunctionV2)(unsafe.Pointer(p)).FpDestroy
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
}
sqlite3.Xsqlite3_free(tls, p)
}
-func test_create_function_v2(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1832:26: */
+func test_create_function_v2(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1832:26: */
bp := tls.Alloc(180)
defer tls.Free(180)
@@ -40234,16 +44489,16 @@ func test_create_function_v2(tls *crt.TLS, clientData ClientData, interp uintptr
var rc int32
*(*[6]EncTable)(unsafe.Pointer(bp + 32 /* aEnc */)) = [6]EncTable{
- {FzEnc: ts + 13585 /* "utf8" */, Fenc: 1},
- {FzEnc: ts + 13590 /* "utf16" */, Fenc: 4},
- {FzEnc: ts + 13596 /* "utf16le" */, Fenc: 2},
- {FzEnc: ts + 13604 /* "utf16be" */, Fenc: 3},
- {FzEnc: ts + 10630 /* "any" */, Fenc: 5},
- {FzEnc: ts + 12045 /* "0" */, Fenc: 0},
+ {FzEnc: ts + 15225 /* "utf8" */, Fenc: 1},
+ {FzEnc: ts + 15230 /* "utf16" */, Fenc: 4},
+ {FzEnc: ts + 15236 /* "utf16le" */, Fenc: 2},
+ {FzEnc: ts + 15244 /* "utf16be" */, Fenc: 3},
+ {FzEnc: ts + 12285 /* "any" */, Fenc: 5},
+ {FzEnc: ts + 13695 /* "0" */, Fenc: 0},
}
if (objc < 5) || ((objc % 2) == 0) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13612 /* "DB NAME NARG ENC..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15252 /* "DB NAME NARG ENC..." */)
return 1
}
@@ -40255,21 +44510,21 @@ func test_create_function_v2(tls *crt.TLS, clientData ClientData, interp uintptr
return 1
}
if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)), bp+32 /* &aEnc[0] */, int32(unsafe.Sizeof(EncTable{})),
- ts+13641 /* "encoding" */, 0, bp+128 /* &enc */) != 0 {
+ ts+15281 /* "encoding" */, 0, bp+128 /* &enc */) != 0 {
return 1
}
*(*int32)(unsafe.Pointer(bp + 128 /* enc */)) = (*EncTable)(unsafe.Pointer(bp + 32 /* &aEnc */ + uintptr(*(*int32)(unsafe.Pointer(bp + 128 /* enc */)))*16)).Fenc
p = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(CreateFunctionV2{})))
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(CreateFunctionV2{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(CreateFunctionV2{})))
(*CreateFunctionV2)(unsafe.Pointer(p)).Finterp = interp
for i = 5; i < objc; i = i + (2) {
// var iSwitch int32 at bp+176, 4
- *(*[5]uintptr)(unsafe.Pointer(bp + 136 /* azSwitch */)) = [5]uintptr{ts + 13650 /* "-func" */, ts + 13656 /* "-step" */, ts + 13662 /* "-final" */, ts + 13669 /* "-destroy" */, uintptr(0)}
- if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+136 /* &azSwitch[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+13678 /* "switch" */, 0, bp+176 /* &iSwitch */) != 0 {
+ *(*[5]uintptr)(unsafe.Pointer(bp + 136 /* azSwitch */)) = [5]uintptr{ts + 15290 /* "-func" */, ts + 15296 /* "-step" */, ts + 15302 /* "-final" */, ts + 15309 /* "-destroy" */, uintptr(0)}
+ if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+136 /* &azSwitch[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+15318 /* "switch" */, 0, bp+176 /* &iSwitch */) != 0 {
sqlite3.Xsqlite3_free(tls, p)
return 1
}
@@ -40319,7 +44574,7 @@ func test_create_function_v2(tls *crt.TLS, clientData ClientData, interp uintptr
func() uintptr {
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpFunc != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{cf2Func}))
}
return uintptr(0)
@@ -40327,21 +44582,21 @@ func test_create_function_v2(tls *crt.TLS, clientData ClientData, interp uintptr
func() uintptr {
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpStep != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{cf2Step}))
}
return uintptr(0)
}(),
func() uintptr {
if (*CreateFunctionV2)(unsafe.Pointer(p)).FpFinal != 0 {
- return *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{cf2Final}))
+ return *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{cf2Final}))
}
return uintptr(0)
}(),
- *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{cf2Destroy})))
+ *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{cf2Destroy})))
if rc != 0 {
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -40354,7 +44609,7 @@ type EncTable = struct {
}
// Usage: sqlite3_load_extension DB-HANDLE FILE ?PROC?
-func test_load_extension(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1920:26: */
+func test_load_extension(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1920:26: */
bp := tls.Alloc(88)
defer tls.Free(88)
@@ -40371,7 +44626,7 @@ func test_load_extension(tls *crt.TLS, clientData ClientData, interp uintptr, ob
var zErr uintptr = uintptr(0)
if (objc != 4) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13685 /* "DB-HANDLE FILE ?..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15325 /* "DB-HANDLE FILE ?..." */)
return 1
}
zDb = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -40382,7 +44637,7 @@ func test_load_extension(tls *crt.TLS, clientData ClientData, interp uintptr, ob
// Extract the C database handle from the Tcl command name
if !(tcl.XTcl_GetCommandInfo(tls, interp, zDb, bp+24 /* &cmdInfo */) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12711 /* "command not foun..." */, zDb, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14361 /* "command not foun..." */, zDb, uintptr(0)))
return 1
}
db = (*struct{ Fdb uintptr })(unsafe.Pointer((*Tcl_CmdInfo)(unsafe.Pointer(bp + 24 /* &cmdInfo */)).FobjClientData)).Fdb
@@ -40391,7 +44646,7 @@ func test_load_extension(tls *crt.TLS, clientData ClientData, interp uintptr, ob
// TCL_ERROR and load any error string into the interpreter. If no
// error occurs, set rc to TCL_OK.
rc = 1
- zErr = sqlite3.Xsqlite3_mprintf(tls, ts+13707 /* "this build omits..." */, 0)
+ zErr = sqlite3.Xsqlite3_mprintf(tls, ts+15347 /* "this build omits..." */, 0)
_ = zProc
_ = zFile
if rc != 0 {
@@ -40411,7 +44666,7 @@ func test_load_extension(tls *crt.TLS, clientData ClientData, interp uintptr, ob
}
// Usage: sqlite3_enable_load_extension DB-HANDLE ONOFF
-func test_enable_load(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1978:26: */
+func test_enable_load(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:1978:26: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -40423,14 +44678,14 @@ func test_enable_load(tls *crt.TLS, clientData ClientData, interp uintptr, objc
// var onoff int32 at bp+96, 4
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13749 /* "DB-HANDLE ONOFF" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15389 /* "DB-HANDLE ONOFF" */)
return 1
}
zDb = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
// Extract the C database handle from the Tcl command name
if !(tcl.XTcl_GetCommandInfo(tls, interp, zDb, bp+32 /* &cmdInfo */) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12711 /* "command not foun..." */, zDb, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14361 /* "command not foun..." */, zDb, uintptr(0)))
return 1
}
db = (*struct{ Fdb uintptr })(unsafe.Pointer((*Tcl_CmdInfo)(unsafe.Pointer(bp + 32 /* &cmdInfo */)).FobjClientData)).Fdb
@@ -40440,7 +44695,7 @@ func test_enable_load(tls *crt.TLS, clientData ClientData, interp uintptr, objc
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, ts+13707 /* "this build omits..." */))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+15347 /* "this build omits..." */))
return 1
}
@@ -40449,15 +44704,15 @@ func test_enable_load(tls *crt.TLS, clientData ClientData, interp uintptr, objc
// Shutdown the process immediately. This is not a clean shutdown.
// This command is used to test the recoverability of a database in
// the event of a program crash.
-func sqlite_abort(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:2024:26: */
- crt.Xexit(tls, 255)
+func sqlite_abort(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:2024:26: */
+ libc.Xexit(tls, 255)
// This will always fail
return 0
}
// The following routine is a user-defined SQL function whose purpose
// is to test the sqlite_set_result() API.
-func testFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:2045:13: */
+func testFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test1.c:2045:13: */
var zArg0 uintptr
__1:
if !(argc >= 2) {
@@ -40467,38 +44722,38 @@ __1:
if !(zArg0 != 0) {
goto __3
}
- if !(0 == sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+8775 /* "int" */)) {
+ if !(0 == sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+2437 /* "int" */)) {
goto __5
}
sqlite3.Xsqlite3_result_int(tls, context, sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
goto __6
__5:
- if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+2631 /* "int64" */) == 0) {
+ if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+3787 /* "int64" */) == 0) {
goto __7
}
sqlite3.Xsqlite3_result_int64(tls, context, sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
goto __8
__7:
- if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+13765 /* "string" */) == 0) {
+ if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+15405 /* "string" */) == 0) {
goto __9
}
sqlite3.Xsqlite3_result_text(tls, context, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))), -1,
- crt.UintptrFromInt32(-1))
+ libc.UintptrFromInt32(-1))
goto __10
__9:
- if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+2637 /* "double" */) == 0) {
+ if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+2422 /* "double" */) == 0) {
goto __11
}
sqlite3.Xsqlite3_result_double(tls, context, sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
goto __12
__11:
- if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+5922 /* "null" */) == 0) {
+ if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+7207 /* "null" */) == 0) {
goto __13
}
sqlite3.Xsqlite3_result_null(tls, context)
goto __14
__13:
- if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+13772 /* "value" */) == 0) {
+ if !(sqlite3.Xsqlite3StrICmp(tls, zArg0, ts+15412 /* "value" */) == 0) {
goto __15
}
sqlite3.Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))*8)))
@@ -40531,13 +44786,13 @@ __2:
error_out:
sqlite3.Xsqlite3_result_error(tls, context,
- ts+13778 /* "first argument s..." */, -1)
+ ts+15418 /* "first argument s..." */, -1)
}
// Usage: sqlite_register_test_function DB NAME
//
// Register the test SQL function on the database DB under the name NAME.
-func test_register_func(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:2083:26: */
+func test_register_func(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:2083:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -40545,8 +44800,8 @@ func test_register_func(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
var rc int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13846 /* " DB FUNCTION-NAM..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+15486 /* " DB FUNCTION-NAM..." */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+48 /* &db */) != 0 {
@@ -40554,10 +44809,10 @@ func test_register_func(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
}
rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), -1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{testFunc})), uintptr(0), uintptr(0))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrStr(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrStr(tls, rc), 0))
return 1
}
if sqlite3TestErrCode(tls, interp, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), rc) != 0 {
@@ -40569,7 +44824,7 @@ func test_register_func(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
// Usage: sqlite3_finalize STMT
//
// Finalize a statement handle.
-func test_finalize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2112:26: */
+func test_finalize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2112:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -40579,8 +44834,8 @@ func test_finalize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var db uintptr = uintptr(0)
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+13864 /* " <STMT>" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15504 /* " <STMT>" */, 0))
return 1
}
@@ -40602,7 +44857,7 @@ func test_finalize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// Usage: sqlite3_stmt_status STMT CODE RESETFLAG
//
// Get the value of a status counter from a statement.
-func test_stmt_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2144:26: */
+func test_stmt_status(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2144:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -40615,7 +44870,7 @@ func test_stmt_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// var pStmt uintptr at bp, 8
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+13872 /* "STMT PARAMETER R..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15512 /* "STMT PARAMETER R..." */)
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &pStmt */) != 0 {
@@ -40627,7 +44882,7 @@ func test_stmt_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
Fop int32
_ [4]byte
}{})))); i++ {
- if crt.Xstrcmp(tls, aOp[i].FzName, zOpName) == 0 {
+ if libc.Xstrcmp(tls, aOp[i].FzName, zOpName) == 0 {
*(*int32)(unsafe.Pointer(bp + 8 /* op */)) = aOp[i].Fop
break
}
@@ -40654,39 +44909,39 @@ var aOp = [7]struct {
Fop int32
_ [4]byte
}{
- {FzName: ts + 13897 /* "SQLITE_STMTSTATU..." */, Fop: 1},
- {FzName: ts + 13929 /* "SQLITE_STMTSTATU..." */, Fop: 2},
- {FzName: ts + 13952 /* "SQLITE_STMTSTATU..." */, Fop: 3},
- {FzName: ts + 13980 /* "SQLITE_STMTSTATU..." */, Fop: 4},
- {FzName: ts + 14006 /* "SQLITE_STMTSTATU..." */, Fop: 5},
- {FzName: ts + 14034 /* "SQLITE_STMTSTATU..." */, Fop: 6},
- {FzName: ts + 14056 /* "SQLITE_STMTSTATU..." */, Fop: 99},
+ {FzName: ts + 15537 /* "SQLITE_STMTSTATU..." */, Fop: 1},
+ {FzName: ts + 15569 /* "SQLITE_STMTSTATU..." */, Fop: 2},
+ {FzName: ts + 15592 /* "SQLITE_STMTSTATU..." */, Fop: 3},
+ {FzName: ts + 15620 /* "SQLITE_STMTSTATU..." */, Fop: 4},
+ {FzName: ts + 15646 /* "SQLITE_STMTSTATU..." */, Fop: 5},
+ {FzName: ts + 15674 /* "SQLITE_STMTSTATU..." */, Fop: 6},
+ {FzName: ts + 15696 /* "SQLITE_STMTSTATU..." */, Fop: 99},
} /* test1.c:2158:5 */
// Usage: sqlite3_config_sorterref
//
// Set the SQLITE_CONFIG_SORTERREF_SIZE configuration option
-func test_config_sorterref(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2285:26: */
+func test_config_sorterref(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2285:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
// var iVal int32 at bp+8, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14082 /* "NBYTE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15722 /* "NBYTE" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+8 /* &iVal */) != 0 {
return 1
}
- sqlite3.Xsqlite3_config(tls, 28, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* iVal */))))
+ sqlite3.Xsqlite3_config(tls, 28, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* iVal */))))
return 0
}
// Usage: vfs_current_time_int64
//
// Return the value returned by the default VFS's xCurrentTimeInt64 method.
-func vfsCurrentTimeInt64(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2306:26: */
+func vfsCurrentTimeInt64(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2306:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -40697,15 +44952,233 @@ func vfsCurrentTimeInt64(tls *crt.TLS, clientData uintptr, interp uintptr, objc
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
return 1
}
- (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, pVfs, bp /* &t */)
+ (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, pVfs, bp /* &t */)
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(*(*i64)(unsafe.Pointer(bp /* t */)))))
return 0
+}
+
+// Usage: sqlite3_snapshot_get DB DBNAME
+func test_snapshot_get(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2327:26: */
+ bp := tls.Alloc(116)
+ defer tls.Free(116)
+
+ var rc int32
+ // var db uintptr at bp, 8
+
+ var zName uintptr
+ *(*uintptr)(unsafe.Pointer(bp + 8 /* pSnapshot */)) = uintptr(0)
+
+ if objc != 3 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15728 /* "DB DBNAME" */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+
+ rc = sqlite3.Xsqlite3_snapshot_get(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), zName, bp+8 /* &pSnapshot */)
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ return 1
+ } else {
+ // var zBuf [100]int8 at bp+16, 100
+
+ if sqlite3TestMakePointerStr(tls, interp, bp+16 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 8 /* pSnapshot */))) != 0 {
+ return 1
+ }
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, bp+16 /* &zBuf[0] */, -1))
+ }
+ return 0
+}
+
+// Usage: sqlite3_snapshot_recover DB DBNAME
+func test_snapshot_recover(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2362:26: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ var rc int32
+ // var db uintptr at bp, 8
+
+ var zName uintptr
+
+ if objc != 3 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15728 /* "DB DBNAME" */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+
+ rc = sqlite3.Xsqlite3_snapshot_recover(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), zName)
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ return 1
+ } else {
+ tcl.XTcl_ResetResult(tls, interp)
+ }
+ return 0
+}
+
+// Usage: sqlite3_snapshot_open DB DBNAME SNAPSHOT
+func test_snapshot_open(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2394:26: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ var rc int32
+ // var db uintptr at bp, 8
+
+ var zName uintptr
+ var pSnapshot uintptr
+
+ if objc != 4 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15738 /* "DB DBNAME SNAPSH..." */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+ pSnapshot = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8))))
+
+ rc = sqlite3.Xsqlite3_snapshot_open(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), zName, pSnapshot)
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ return 1
+ } else {
+ tcl.XTcl_ResetResult(tls, interp)
+ }
+ return 0
+}
+
+// Usage: sqlite3_snapshot_free SNAPSHOT
+func test_snapshot_free(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2428:26: */
+ var pSnapshot uintptr
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15757 /* "SNAPSHOT" */)
+ return 1
+ }
+ pSnapshot = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
+ sqlite3.Xsqlite3_snapshot_free(tls, pSnapshot)
+ return 0
+}
+
+// Usage: sqlite3_snapshot_cmp SNAPSHOT1 SNAPSHOT2
+func test_snapshot_cmp(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2449:26: */
+ var res int32
+ var p1 uintptr
+ var p2 uintptr
+ if objc != 3 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15766 /* "SNAPSHOT1 SNAPSH..." */)
+ return 1
+ }
+ p1 = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
+ p2 = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))))
+ res = sqlite3.Xsqlite3_snapshot_cmp(tls, p1, p2)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, res))
+ return 0
+}
+
+// Usage: sqlite3_snapshot_get_blob DB DBNAME
+func test_snapshot_get_blob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2474:26: */
+ bp := tls.Alloc(16)
+ defer tls.Free(16)
+
+ var rc int32
+ // var db uintptr at bp, 8
+
+ var zName uintptr
+ *(*uintptr)(unsafe.Pointer(bp + 8 /* pSnapshot */)) = uintptr(0)
+
+ if objc != 3 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15728 /* "DB DBNAME" */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+
+ rc = sqlite3.Xsqlite3_snapshot_get(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), zName, bp+8 /* &pSnapshot */)
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ return 1
+ } else {
+ tcl.XTcl_SetObjResult(tls, interp,
+ tcl.XTcl_NewByteArrayObj(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pSnapshot */)), int32(unsafe.Sizeof(sqlite3_snapshot{}))))
+ sqlite3.Xsqlite3_snapshot_free(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* pSnapshot */)))
+ }
+ return 0
+}
+
+// Usage: sqlite3_snapshot_open_blob DB DBNAME SNAPSHOT
+func test_snapshot_open_blob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2510:26: */
+ bp := tls.Alloc(28)
+ defer tls.Free(28)
+
+ var rc int32
+ // var db uintptr at bp+16, 8
+
+ var zName uintptr
+ var pBlob uintptr
+ // var nBlob int32 at bp+24, 4
+
+ if objc != 4 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15738 /* "DB DBNAME SNAPSH..." */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+16 /* &db */) != 0 {
+ return 1
+ }
+ zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
+ pBlob = tcl.XTcl_GetByteArrayFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+24 /* &nBlob */)
+ if (uint64(*(*int32)(unsafe.Pointer(bp + 24 /* nBlob */))) != uint64(unsafe.Sizeof(sqlite3_snapshot{}))) {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+15786 /* "bad SNAPSHOT" */, 0))
+ return 1
+ }
+ rc = sqlite3.Xsqlite3_snapshot_open(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), zName, pBlob)
+ if rc != 0 {
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
+ return 1
+ }
+ return 0
+}
+
+// Usage: sqlite3_snapshot_cmp_blob SNAPSHOT1 SNAPSHOT2
+func test_snapshot_cmp_blob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2546:26: */
+ bp := tls.Alloc(24)
+ defer tls.Free(24)
+
+ var res int32
+ var p1 uintptr
+ var p2 uintptr
+ // var n1 int32 at bp+16, 4
+
+ // var n2 int32 at bp+20, 4
+
+ if objc != 3 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15766 /* "SNAPSHOT1 SNAPSH..." */)
+ return 1
+ }
+
+ p1 = tcl.XTcl_GetByteArrayFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+16 /* &n1 */)
+ p2 = tcl.XTcl_GetByteArrayFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+20 /* &n2 */)
+
+ if (uint64(*(*int32)(unsafe.Pointer(bp + 16 /* n1 */))) != uint64(unsafe.Sizeof(sqlite3_snapshot{}))) || (*(*int32)(unsafe.Pointer(bp + 16 /* n1 */)) != *(*int32)(unsafe.Pointer(bp + 20 /* n2 */))) {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+15786 /* "bad SNAPSHOT" */, 0))
+ return 1
+ }
+
+ res = sqlite3.Xsqlite3_snapshot_cmp(tls, p1, p2)
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, res))
+ return 0
} // in test_delete.c
-func test_delete_database(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2581:26: */
+func test_delete_database(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2581:26: */
var rc int32
var zFile uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14088 /* "FILE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15799 /* "FILE" */)
return 1
}
zFile = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -40716,7 +45189,7 @@ func test_delete_database(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
// Usage: atomic_batch_write PATH
-func test_atomic_batch_write(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2603:26: */
+func test_atomic_batch_write(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2603:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -40728,20 +45201,20 @@ func test_atomic_batch_write(tls *crt.TLS, clientData uintptr, interp uintptr, o
var rc int32 // sqlite3_open() return code
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14093 /* "PATH" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15804 /* "PATH" */)
return 1
}
zFile = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3_open(tls, zFile, bp+16 /* &db */)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */))), 0))
sqlite3.Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)))
return 1
}
rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+84 /* "main" */, 7, bp+24 /* &pFd */)
- dc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 24 /* pFd */)))).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pFd */)))
+ dc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 24 /* pFd */)))).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pFd */)))
if (dc & 0x00004000) != 0 {
bRes = 1
}
@@ -40754,7 +45227,7 @@ func test_atomic_batch_write(tls *crt.TLS, clientData uintptr, interp uintptr, o
// Usage: sqlite3_next_stmt DB STMT
//
// Return the next statment in sequence after STMT.
-func test_next_stmt(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2645:26: */
+func test_next_stmt(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2645:26: */
bp := tls.Alloc(114)
defer tls.Free(114)
@@ -40764,8 +45237,8 @@ func test_next_stmt(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// var zBuf [50]int8 at bp+64, 50
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14098 /* " DB STMT" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15809 /* " DB STMT" */, 0))
return 1
}
@@ -40780,7 +45253,7 @@ func test_next_stmt(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
if sqlite3TestMakePointerStr(tls, interp, bp+64 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 56 /* pStmt */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+64 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+64 /* &zBuf[0] */, 0))
}
return 0
}
@@ -40789,7 +45262,7 @@ func test_next_stmt(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
//
// Return true if STMT is a NULL pointer or a pointer to a statement
// that is guaranteed to leave the database unmodified.
-func test_stmt_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2677:26: */
+func test_stmt_readonly(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2677:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -40798,8 +45271,8 @@ func test_stmt_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14107 /* " STMT" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15818 /* " STMT" */, 0))
return 1
}
@@ -40807,7 +45280,7 @@ func test_stmt_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
return 1
}
rc = sqlite3.Xsqlite3_stmt_readonly(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)))
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((rc) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((rc) != 0))))
return 0
}
@@ -40815,7 +45288,7 @@ func test_stmt_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
//
// Return 1, 2, or 0 respectively if STMT is an EXPLAIN statement, an
// EXPLAIN QUERY PLAN statement or an ordinary statement or NULL pointer.
-func test_stmt_isexplain(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2704:26: */
+func test_stmt_isexplain(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2704:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -40824,8 +45297,8 @@ func test_stmt_isexplain(tls *crt.TLS, clientData uintptr, interp uintptr, objc
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14107 /* " STMT" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15818 /* " STMT" */, 0))
return 1
}
@@ -40841,7 +45314,7 @@ func test_stmt_isexplain(tls *crt.TLS, clientData uintptr, interp uintptr, objc
//
// Return true if STMT is a non-NULL pointer to a statement
// that has been stepped but not to completion.
-func test_stmt_busy(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2731:26: */
+func test_stmt_busy(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2731:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -40850,8 +45323,8 @@ func test_stmt_busy(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14107 /* " STMT" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15818 /* " STMT" */, 0))
return 1
}
@@ -40859,22 +45332,22 @@ func test_stmt_busy(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
return 1
}
rc = sqlite3.Xsqlite3_stmt_busy(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)))
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((rc) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((rc) != 0))))
return 0
}
// Usage: uses_stmt_journal STMT
//
// Return true if STMT uses a statement journal.
-func uses_stmt_journal(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2757:26: */
+func uses_stmt_journal(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2757:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var pStmt uintptr at bp+32, 8
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14107 /* " STMT" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15818 /* " STMT" */, 0))
return 1
}
@@ -40882,14 +45355,14 @@ func uses_stmt_journal(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
return 1
}
sqlite3.Xsqlite3_stmt_readonly(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)))
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((int32(*(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)) + 200 /* &.usesStmtJournal */))&0x40>>6)) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((int32(*(*uint16)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)) + 200 /* &.usesStmtJournal */))&0x40>>6)) != 0))))
return 0
}
// Usage: sqlite3_reset STMT
//
// Reset a statement handle.
-func test_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2783:26: */
+func test_reset(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2783:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -40898,8 +45371,8 @@ func test_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, ob
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+13864 /* " <STMT>" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15504 /* " <STMT>" */, 0))
return 1
}
@@ -40922,28 +45395,28 @@ func test_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, ob
// Usage: sqlite3_expired STMT
//
// Return TRUE if a recompilation of the statement is recommended.
-func test_expired(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2818:26: */
+func test_expired(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2818:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var pStmt uintptr at bp+32, 8
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+13864 /* " <STMT>" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15504 /* " <STMT>" */, 0))
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &pStmt */) != 0 {
return 1
}
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((sqlite3.Xsqlite3_expired(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)))) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((sqlite3.Xsqlite3_expired(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)))) != 0))))
return 0
}
// Usage: sqlite3_transfer_bindings FROMSTMT TOSTMT
//
// Transfer all bindings from FROMSTMT over to TOSTMT
-func test_transfer_bind(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2842:26: */
+func test_transfer_bind(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2842:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -40952,8 +45425,8 @@ func test_transfer_bind(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// var pStmt2 uintptr at bp+40, 8
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14113 /* " FROM-STMT TO-ST..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15824 /* " FROM-STMT TO-ST..." */, 0))
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &pStmt1 */) != 0 {
@@ -40971,15 +45444,15 @@ func test_transfer_bind(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
//
// Return the number of changes made to the database by the last SQL
// execution.
-func test_changes(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2869:26: */
+func test_changes(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:2869:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0 {
@@ -41003,7 +45476,7 @@ var sqlite_static_bind_nbyte int32 = 0 /* test1.c:2891:12 */
// "sqlite_static_bind_value". If FLAGS=="normal" then a copy
// of the VALUE is made. If FLAGS=="blob10" then a VALUE is ignored
// an a 10-byte blob "abc\000xyz\000pq" is inserted.
-func test_bind(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:2904:26: */
+func test_bind(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:2904:26: */
bp := tls.Alloc(142)
defer tls.Free(142)
@@ -41013,8 +45486,8 @@ func test_bind(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
// var idx int32 at bp+88, 4
if argc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+14132 /* " VM IDX VALUE (n..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+15843 /* " VM IDX VALUE (n..." */, 0))
return 1
}
if getStmtPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+80 /* &pStmt */) != 0 {
@@ -41023,20 +45496,20 @@ func test_bind(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+88 /* &idx */) != 0 {
return 1
}
- if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+5922 /* "null" */) == 0 {
+ if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+7207 /* "null" */) == 0 {
rc = sqlite3.Xsqlite3_bind_null(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)))
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+14168 /* "static" */) == 0 {
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+15879 /* "static" */) == 0 {
rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)), sqlite_static_bind_value, -1, uintptr(0))
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+14175 /* "static-nbytes" */) == 0 {
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+15886 /* "static-nbytes" */) == 0 {
rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)), sqlite_static_bind_value,
sqlite_static_bind_nbyte, uintptr(0))
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+14189 /* "normal" */) == 0 {
- rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)), *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)), -1, crt.UintptrFromInt32(-1))
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+14196 /* "blob10" */) == 0 {
- rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)), ts+14203 /* "abc\x00xyz\x00pq" */, 10, uintptr(0))
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+15900 /* "normal" */) == 0 {
+ rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)), *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)), -1, libc.UintptrFromInt32(-1))
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), ts+15907 /* "blob10" */) == 0 {
+ rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 88 /* idx */)), ts+15914 /* "abc\x00xyz\x00pq" */, 10, uintptr(0))
} else {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp+32, ts+14214 /* "4th argument sho..." */, 0))
+ libc.VaList(bp+32, ts+15925 /* "4th argument sho..." */, 0))
return 1
}
if sqlite3TestErrCode(tls, interp, sqlite3.Xsqlite3_db_handle(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */))), rc) != 0 {
@@ -41045,8 +45518,8 @@ func test_bind(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
if rc != 0 {
// var zBuf [50]int8 at bp+92, 50
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+92 /* &zBuf[0] */, ts+14268 /* "(%d) " */, crt.VaList(bp+48, rc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+92 /* &zBuf[0] */, sqlite3.Xsqlite3ErrStr(tls, rc), 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+92 /* &zBuf[0] */, ts+15979 /* "(%d) " */, libc.VaList(bp+48, rc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+92 /* &zBuf[0] */, sqlite3.Xsqlite3ErrStr(tls, rc), 0))
return 1
}
return 0
@@ -41079,7 +45552,7 @@ func test_bind(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
// interp pointer to use when evaluating the TCL script is stored in
// pTestCollateInterp.
var pTestCollateInterp uintptr /* test1.c:2975:18: */
-func test_collate_func(tls *crt.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, zB uintptr) int32 { /* test1.c:2976:12: */
+func test_collate_func(tls *libc.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, zB uintptr) int32 { /* test1.c:2976:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -41091,18 +45564,18 @@ func test_collate_func(tls *crt.TLS, pCtx uintptr, nA int32, zA uintptr, nB int3
var pVal uintptr
var pX uintptr
- pX = tcl.XTcl_NewStringObj(tls, ts+14274 /* "test_collate" */, -1)
+ pX = tcl.XTcl_NewStringObj(tls, ts+15985 /* "test_collate" */, -1)
(*Tcl_Obj)(unsafe.Pointer(pX)).FrefCount++
switch encin {
case 1:
- tcl.XTcl_ListObjAppendElement(tls, i, pX, tcl.XTcl_NewStringObj(tls, ts+14287 /* "UTF-8" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, i, pX, tcl.XTcl_NewStringObj(tls, ts+15998 /* "UTF-8" */, -1))
break
case 2:
- tcl.XTcl_ListObjAppendElement(tls, i, pX, tcl.XTcl_NewStringObj(tls, ts+14293 /* "UTF-16LE" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, i, pX, tcl.XTcl_NewStringObj(tls, ts+16004 /* "UTF-16LE" */, -1))
break
case 3:
- tcl.XTcl_ListObjAppendElement(tls, i, pX, tcl.XTcl_NewStringObj(tls, ts+14302 /* "UTF-16BE" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, i, pX, tcl.XTcl_NewStringObj(tls, ts+16013 /* "UTF-16BE" */, -1))
break
default:
}
@@ -41125,14 +45598,14 @@ func test_collate_func(tls *crt.TLS, pCtx uintptr, nA int32, zA uintptr, nB int3
tcl.XTcl_EvalObjEx(tls, i, pX, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pX
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
tcl.XTcl_GetIntFromObj(tls, i, tcl.XTcl_GetObjResult(tls, i), bp /* &res */)
return *(*int32)(unsafe.Pointer(bp /* res */))
}
-func test_collate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3026:26: */
+func test_collate(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3026:26: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -41164,11 +45637,11 @@ __2:
return 1
__3:
;
- rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), ts+14274 /* "test_collate" */, 1,
+ rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), ts+15985 /* "test_collate" */, 1,
uintptr(1), func() uintptr {
if *(*int32)(unsafe.Pointer(bp + 56 /* val */)) != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{test_collate_func}))
}
return uintptr(0)
@@ -41182,11 +45655,11 @@ __3:
return 1
__5:
;
- rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), ts+14274 /* "test_collate" */, 2,
+ rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), ts+15985 /* "test_collate" */, 2,
uintptr(2), func() uintptr {
if *(*int32)(unsafe.Pointer(bp + 56 /* val */)) != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{test_collate_func}))
}
return uintptr(0)
@@ -41200,7 +45673,7 @@ __6:
sqlite3.Xsqlite3_mutex_enter(tls, (*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 48 /* db */)))).Fmutex)
pVal = sqlite3.Xsqlite3ValueNew(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)))
- sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, ts+14274 /* "test_collate" */, uint8(1), uintptr(0))
+ sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, ts+15985 /* "test_collate" */, uint8(1), uintptr(0))
zUtf16 = sqlite3.Xsqlite3ValueText(tls, pVal, uint8(2))
if !((*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 48 /* db */)))).FmallocFailed != 0) {
goto __7
@@ -41212,7 +45685,7 @@ __7:
uintptr(3), func() uintptr {
if *(*int32)(unsafe.Pointer(bp + 56 /* val */)) != 0 {
return *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{test_collate_func}))
}
return uintptr(0)
@@ -41233,15 +45706,15 @@ __9:
if !(rc != 0) {
goto __10
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
__10:
;
return 0
bad_args:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14311 /* " <DB> <utf8> <ut..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16022 /* " <DB> <utf8> <ut..." */, 0))
return 1
}
@@ -41250,20 +45723,20 @@ bad_args:
// Add a utf-16 collation sequence named "utf16bin" to the database
// handle. This collation sequence compares arguments in the same way as the
// built-in collation "binary".
-func test_utf16bin_collate_func(tls *crt.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, zB uintptr) int32 { /* test1.c:3090:12: */
+func test_utf16bin_collate_func(tls *libc.TLS, pCtx uintptr, nA int32, zA uintptr, nB int32, zB uintptr) int32 { /* test1.c:3090:12: */
var nCmp int32 = func() int32 {
if nA > nB {
return nB
}
return nA
}()
- var res int32 = crt.Xmemcmp(tls, zA, zB, uint64(nCmp))
+ var res int32 = libc.Xmemcmp(tls, zA, zB, uint64(nCmp))
if res == 0 {
res = (nA - nB)
}
return res
}
-func test_utf16bin_collate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3100:26: */
+func test_utf16bin_collate(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3100:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -41284,9 +45757,9 @@ __1:
__2:
;
- rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+14344 /* "utf16bin" */, 4, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+16055 /* "utf16bin" */, 4, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{test_utf16bin_collate_func})))
if !(sqlite3TestErrCode(tls, interp, *(*uintptr)(unsafe.Pointer(bp /* db */)), rc) != 0) {
goto __3
@@ -41310,7 +45783,7 @@ var pzNeededCollation uintptr = 0 /* test1.c:3130:13 */
// Called when a collating sequence is needed. Registered using
// sqlite3_collation_needed16().
-func test_collate_needed_cb(tls *crt.TLS, pCtx uintptr, db uintptr, eTextRep int32, pName uintptr) { /* test1.c:3137:13: */
+func test_collate_needed_cb(tls *libc.TLS, pCtx uintptr, db uintptr, eTextRep int32, pName uintptr) { /* test1.c:3137:13: */
var enc int32 = int32((*sqlite31)(unsafe.Pointer(db)).Fenc)
var i int32
var z uintptr
@@ -41318,18 +45791,18 @@ func test_collate_needed_cb(tls *crt.TLS, pCtx uintptr, db uintptr, eTextRep int
i = 0
for ; (*(*int8)(unsafe.Pointer(z)) != 0) || (*(*int8)(unsafe.Pointer(z + uintptr(1))) != 0); z++ {
if *(*int8)(unsafe.Pointer(z)) != 0 {
- zNeededCollation[crt.PostIncInt32(&i, 1)] = *(*int8)(unsafe.Pointer(z))
+ zNeededCollation[libc.PostIncInt32(&i, 1)] = *(*int8)(unsafe.Pointer(z))
}
}
zNeededCollation[i] = int8(0)
sqlite3.Xsqlite3_create_collation(tls,
- db, ts+14274 /* "test_collate" */, int32((*sqlite31)(unsafe.Pointer(db)).Fenc), uintptr(int64(enc)), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ db, ts+15985 /* "test_collate" */, int32((*sqlite31)(unsafe.Pointer(db)).Fenc), uintptr(intptr_t(enc)), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{test_collate_func})))
}
// Usage: add_test_collate_needed DB
-func test_collate_needed(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3157:26: */
+func test_collate_needed(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3157:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -41350,7 +45823,7 @@ __1:
__2:
;
rc = sqlite3.Xsqlite3_collation_needed16(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr)
}{test_collate_needed_cb})))
zNeededCollation[0] = int8(0)
if !(sqlite3TestErrCode(tls, interp, *(*uintptr)(unsafe.Pointer(bp /* db */)), rc) != 0) {
@@ -41379,7 +45852,7 @@ bad_args:
// Both collating functions increment the unaligned utf16 counter
// whenever they see a string that begins on an odd byte boundary.
var unaligned_string_counter int32 = 0 /* test1.c:3192:12 */
-func alignmentCollFunc(tls *crt.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* test1.c:3193:12: */
+func alignmentCollFunc(tls *libc.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr, nKey2 int32, pKey2 uintptr) int32 { /* test1.c:3193:12: */
var rc int32
var n int32
if nKey1 < nKey2 {
@@ -41393,13 +45866,13 @@ func alignmentCollFunc(tls *crt.TLS, NotUsed uintptr, nKey1 int32, pKey1 uintptr
if (nKey2 > 0) && (1 == (1 & (int32(pKey2)))) {
unaligned_string_counter++
}
- rc = crt.Xmemcmp(tls, pKey1, pKey2, uint64(n))
+ rc = libc.Xmemcmp(tls, pKey1, pKey2, uint64(n))
if rc == 0 {
rc = (nKey1 - nKey2)
}
return rc
}
-func add_alignment_test_collations(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3208:26: */
+func add_alignment_test_collations(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3208:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -41409,13 +45882,13 @@ func add_alignment_test_collations(tls *crt.TLS, clientData uintptr, interp uint
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+14353 /* "utf16_unaligned" */, 4,
+ sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+16064 /* "utf16_unaligned" */, 4,
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{alignmentCollFunc})))
- sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+14369 /* "utf16_aligned" */, 8,
+ sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+16080 /* "utf16_aligned" */, 8,
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32
}{alignmentCollFunc})))
}
return 0
@@ -41444,68 +45917,68 @@ func add_alignment_test_collations(tls *crt.TLS, clientData uintptr, interp uint
// is passed to SQLite using UTF-16BE for a UTF-8 test_function(), UTF-8
// for a UTF-16LE test_function(), and UTF-16LE for an implementation that
// prefers UTF-16BE.
-func test_function_utf8(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test1.c:3252:13: */
+func test_function_utf8(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test1.c:3252:13: */
var interp uintptr
var pX uintptr
var pVal uintptr
interp = sqlite3.Xsqlite3_user_data(tls, pCtx)
- pX = tcl.XTcl_NewStringObj(tls, ts+14383 /* "test_function" */, -1)
+ pX = tcl.XTcl_NewStringObj(tls, ts+16094 /* "test_function" */, -1)
(*Tcl_Obj)(unsafe.Pointer(pX)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, interp, pX, tcl.XTcl_NewStringObj(tls, ts+14287 /* "UTF-8" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pX, tcl.XTcl_NewStringObj(tls, ts+15998 /* "UTF-8" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pX,
tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), -1))
tcl.XTcl_EvalObjEx(tls, interp, pX, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pX
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
- sqlite3.Xsqlite3_result_text(tls, pCtx, tcl.XTcl_GetStringResult(tls, interp), -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, tcl.XTcl_GetStringResult(tls, interp), -1, libc.UintptrFromInt32(-1))
pVal = sqlite3.Xsqlite3ValueNew(tls, uintptr(0))
sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, tcl.XTcl_GetStringResult(tls, interp),
uint8(1), uintptr(0))
sqlite3.Xsqlite3_result_text16be(tls, pCtx, sqlite3.Xsqlite3_value_text16be(tls, pVal),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3ValueFree(tls, pVal)
}
-func test_function_utf16le(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test1.c:3276:13: */
+func test_function_utf16le(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test1.c:3276:13: */
var interp uintptr
var pX uintptr
var pVal uintptr
interp = sqlite3.Xsqlite3_user_data(tls, pCtx)
- pX = tcl.XTcl_NewStringObj(tls, ts+14383 /* "test_function" */, -1)
+ pX = tcl.XTcl_NewStringObj(tls, ts+16094 /* "test_function" */, -1)
(*Tcl_Obj)(unsafe.Pointer(pX)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, interp, pX, tcl.XTcl_NewStringObj(tls, ts+14293 /* "UTF-16LE" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pX, tcl.XTcl_NewStringObj(tls, ts+16004 /* "UTF-16LE" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pX,
tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), -1))
tcl.XTcl_EvalObjEx(tls, interp, pX, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pX
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
pVal = sqlite3.Xsqlite3ValueNew(tls, uintptr(0))
sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, tcl.XTcl_GetStringResult(tls, interp),
uint8(1), uintptr(0))
- sqlite3.Xsqlite3_result_text(tls, pCtx, sqlite3.Xsqlite3_value_text(tls, pVal), -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, sqlite3.Xsqlite3_value_text(tls, pVal), -1, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3ValueFree(tls, pVal)
}
-func test_function_utf16be(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test1.c:3298:13: */
+func test_function_utf16be(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test1.c:3298:13: */
var interp uintptr
var pX uintptr
var pVal uintptr
interp = sqlite3.Xsqlite3_user_data(tls, pCtx)
- pX = tcl.XTcl_NewStringObj(tls, ts+14383 /* "test_function" */, -1)
+ pX = tcl.XTcl_NewStringObj(tls, ts+16094 /* "test_function" */, -1)
(*Tcl_Obj)(unsafe.Pointer(pX)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, interp, pX, tcl.XTcl_NewStringObj(tls, ts+14302 /* "UTF-16BE" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pX, tcl.XTcl_NewStringObj(tls, ts+16013 /* "UTF-16BE" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pX,
tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), -1))
tcl.XTcl_EvalObjEx(tls, interp, pX, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pX
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -41513,14 +45986,14 @@ func test_function_utf16be(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr)
sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, tcl.XTcl_GetStringResult(tls, interp),
uint8(1), uintptr(0))
sqlite3.Xsqlite3_result_text16(tls, pCtx, sqlite3.Xsqlite3_value_text16le(tls, pVal),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3_result_text16be(tls, pCtx, sqlite3.Xsqlite3_value_text16le(tls, pVal),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3_result_text16le(tls, pCtx, sqlite3.Xsqlite3_value_text16le(tls, pVal),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3ValueFree(tls, pVal)
}
-func test_function(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3326:26: */
+func test_function(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3326:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -41550,9 +46023,9 @@ __3:
if !(*(*int32)(unsafe.Pointer(bp + 40 /* val */)) != 0) {
goto __4
}
- sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14383 /* "test_function" */, 1, 1,
+ sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+16094 /* "test_function" */, 1, 1,
interp, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{test_function_utf8})), uintptr(0), uintptr(0))
__4:
;
@@ -41565,9 +46038,9 @@ __5:
if !(*(*int32)(unsafe.Pointer(bp + 40 /* val */)) != 0) {
goto __6
}
- sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14383 /* "test_function" */, 1, 2,
+ sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+16094 /* "test_function" */, 1, 2,
interp, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{test_function_utf16le})), uintptr(0), uintptr(0))
__6:
;
@@ -41580,17 +46053,17 @@ __7:
if !(*(*int32)(unsafe.Pointer(bp + 40 /* val */)) != 0) {
goto __8
}
- sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+14383 /* "test_function" */, 1, 3,
+ sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+16094 /* "test_function" */, 1, 3,
interp, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{test_function_utf16be})), uintptr(0), uintptr(0))
__8:
;
return 0
bad_args:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14311 /* " <DB> <utf8> <ut..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16022 /* " <DB> <utf8> <ut..." */, 0))
return 1
}
@@ -41600,16 +46073,16 @@ bad_args:
// are sane. The parameter is an integer representing an sqlite error code.
// The result is a list of two elements, the string representation of the
// error code and the english language explanation.
-func test_errstr(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3371:26: */
+func test_errstr(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3371:26: */
var zCode uintptr
var i int32
if objc != 1 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14397 /* "<error code>" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16108 /* "<error code>" */)
}
zCode = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
for i = 0; i < 200; i++ {
- if 0 == crt.Xstrcmp(tls, sqlite3.Xsqlite3ErrName(tls, i), zCode) {
+ if 0 == libc.Xstrcmp(tls, sqlite3.Xsqlite3ErrName(tls, i), zCode) {
break
}
}
@@ -41628,7 +46101,7 @@ func test_errstr(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
//
// Then run testfixture in the debugger and wait for the breakpoint to
// fire. Then additional breakpoints can be set to trace down the bug.
-func test_breakpoint(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:3404:26: */
+func test_breakpoint(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:3404:26: */
return 0 // Do nothing
}
@@ -41637,7 +46110,7 @@ func test_breakpoint(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// Test the sqlite3_bind_zeroblob interface. STMT is a prepared statement.
// IDX is the index of a wildcard in the prepared statement. This command
// binds a N-byte zero-filled BLOB to the wildcard.
-func test_bind_zeroblob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3420:26: */
+func test_bind_zeroblob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3420:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -41650,7 +46123,7 @@ func test_bind_zeroblob(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var rc int32
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14410 /* "STMT IDX N" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16121 /* "STMT IDX N" */)
return 1
}
@@ -41680,7 +46153,7 @@ func test_bind_zeroblob(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// Test the sqlite3_bind_zeroblob64 interface. STMT is a prepared statement.
// IDX is the index of a wildcard in the prepared statement. This command
// binds a N-byte zero-filled BLOB to the wildcard.
-func test_bind_zeroblob64(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3456:26: */
+func test_bind_zeroblob64(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3456:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -41693,7 +46166,7 @@ func test_bind_zeroblob64(tls *crt.TLS, clientData uintptr, interp uintptr, objc
var rc int32
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14410 /* "STMT IDX N" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16121 /* "STMT IDX N" */)
return 1
}
@@ -41712,7 +46185,7 @@ func test_bind_zeroblob64(tls *crt.TLS, clientData uintptr, interp uintptr, objc
return 1
}
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
@@ -41724,7 +46197,7 @@ func test_bind_zeroblob64(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// Test the sqlite3_bind_int interface. STMT is a prepared statement.
// N is the index of a wildcard in the prepared statement. This command
// binds a 32-bit integer VALUE to that wildcard.
-func test_bind_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3493:26: */
+func test_bind_int(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3493:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -41737,8 +46210,8 @@ func test_bind_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var rc int32
if objc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14421 /* " STMT N VALUE" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16132 /* " STMT N VALUE" */, 0))
return 1
}
@@ -41770,7 +46243,7 @@ func test_bind_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// Space to hold the array is obtained from malloc(). Call this procedure once
// with no arguments in order to release memory. Each call to this procedure
// overwrites the previous array.
-func test_intarray_addr(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3533:26: */
+func test_intarray_addr(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3533:26: */
var i int32
sqlite3.Xsqlite3_free(tls, p)
@@ -41800,7 +46273,7 @@ var p uintptr = uintptr(0) /* test1.c:3540:14 */
// Space to hold the array is obtained from malloc(). Call this procedure once
// with no arguments in order to release memory. Each call to this procedure
// overwrites the previous array.
-func test_int64array_addr(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3567:26: */
+func test_int64array_addr(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3567:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -41836,7 +46309,7 @@ var p1 uintptr = uintptr(0) /* test1.c:3574:24 */
// Space to hold the array is obtained from malloc(). Call this procedure once
// with no arguments in order to release memory. Each call to this procedure
// overwrites the previous array.
-func test_doublearray_addr(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3603:26: */
+func test_doublearray_addr(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3603:26: */
var i int32
sqlite3.Xsqlite3_free(tls, p2)
@@ -41866,7 +46339,7 @@ var p2 uintptr = uintptr(0) /* test1.c:3610:17 */
// Space to hold the array is obtained from malloc(). Call this procedure once
// with no arguments in order to release memory. Each call to this procedure
// overwrites the previous array.
-func test_textarray_addr(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3637:26: */
+func test_textarray_addr(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3637:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -41883,7 +46356,7 @@ func test_textarray_addr(tls *crt.TLS, clientData uintptr, interp uintptr, objc
return 1
}
for i = 0; i < (objc - 1); i++ {
- *(*uintptr)(unsafe.Pointer(p3 + uintptr(i)*8)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((1+i))*8)))))
+ *(*uintptr)(unsafe.Pointer(p3 + uintptr(i)*8)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr((1+i))*8)))))
}
}
n = (objc - 1)
@@ -41899,7 +46372,7 @@ var p3 uintptr = uintptr(0) /* test1.c:3645:15 */
// Test the sqlite3_bind_int64 interface. STMT is a prepared statement.
// N is the index of a wildcard in the prepared statement. This command
// binds a 64-bit integer VALUE to that wildcard.
-func test_bind_int64(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3670:26: */
+func test_bind_int64(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3670:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -41912,8 +46385,8 @@ func test_bind_int64(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
var rc int32
if objc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14421 /* " STMT N VALUE" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16132 /* " STMT N VALUE" */, 0))
return 1
}
@@ -41943,7 +46416,7 @@ func test_bind_int64(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// Test the sqlite3_bind_double interface. STMT is a prepared statement.
// N is the index of a wildcard in the prepared statement. This command
// binds a 64-bit integer VALUE to that wildcard.
-func test_bind_double(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3708:26: */
+func test_bind_double(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3708:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -41957,8 +46430,8 @@ func test_bind_double(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var i int32
if objc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14421 /* " STMT N VALUE" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16132 /* " STMT N VALUE" */, 0))
return 1
}
@@ -41979,14 +46452,14 @@ func test_bind_double(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
FiUpper uint32
FiLower uint32
}{}))); i++ {
- if crt.Xstrcmp(tls, aSpecialFp[i].FzName, zVal) == 0 {
+ if libc.Xstrcmp(tls, aSpecialFp[i].FzName, zVal) == 0 {
// var x sqlite3_uint64 at bp+56, 8
*(*sqlite3_uint64)(unsafe.Pointer(bp + 56 /* x */)) = sqlite3_uint64(aSpecialFp[i].FiUpper)
*(*sqlite3_uint64)(unsafe.Pointer(bp + 56 /* x */)) <<= 32
*(*sqlite3_uint64)(unsafe.Pointer(bp + 56 /* x */)) |= sqlite3_uint64(aSpecialFp[i].FiLower)
- crt.Xmemcpy(tls, bp+48 /* &value */, bp+56 /* &x */, uint64(8))
+ libc.Xmemcpy(tls, bp+48 /* &value */, bp+56 /* &x */, uint64(8))
break
}
}
@@ -42013,16 +46486,16 @@ var aSpecialFp = [10]struct {
FiUpper uint32
FiLower uint32
}{
- {FzName: ts + 14435 /* "NaN" */, FiUpper: uint32(0x7fffffff), FiLower: 0xffffffff},
- {FzName: ts + 14439 /* "SNaN" */, FiUpper: uint32(0x7ff7ffff), FiLower: 0xffffffff},
- {FzName: ts + 14444 /* "-NaN" */, FiUpper: 0xffffffff, FiLower: 0xffffffff},
- {FzName: ts + 14449 /* "-SNaN" */, FiUpper: 0xfff7ffff, FiLower: 0xffffffff},
- {FzName: ts + 14455 /* "+Inf" */, FiUpper: uint32(0x7ff00000), FiLower: uint32(0x00000000)},
- {FzName: ts + 14460 /* "-Inf" */, FiUpper: 0xfff00000, FiLower: uint32(0x00000000)},
- {FzName: ts + 14465 /* "Epsilon" */, FiUpper: uint32(0x00000000), FiLower: uint32(0x00000001)},
- {FzName: ts + 14473 /* "-Epsilon" */, FiUpper: 0x80000000, FiLower: uint32(0x00000001)},
- {FzName: ts + 14482 /* "NaN0" */, FiUpper: uint32(0x7ff80000), FiLower: uint32(0x00000000)},
- {FzName: ts + 14487 /* "-NaN0" */, FiUpper: 0xfff80000, FiLower: uint32(0x00000000)},
+ {FzName: ts + 16146 /* "NaN" */, FiUpper: uint32(0x7fffffff), FiLower: 0xffffffff},
+ {FzName: ts + 16150 /* "SNaN" */, FiUpper: uint32(0x7ff7ffff), FiLower: 0xffffffff},
+ {FzName: ts + 16155 /* "-NaN" */, FiUpper: 0xffffffff, FiLower: 0xffffffff},
+ {FzName: ts + 16160 /* "-SNaN" */, FiUpper: 0xfff7ffff, FiLower: 0xffffffff},
+ {FzName: ts + 16166 /* "+Inf" */, FiUpper: uint32(0x7ff00000), FiLower: uint32(0x00000000)},
+ {FzName: ts + 16171 /* "-Inf" */, FiUpper: 0xfff00000, FiLower: uint32(0x00000000)},
+ {FzName: ts + 16176 /* "Epsilon" */, FiUpper: uint32(0x00000000), FiLower: uint32(0x00000001)},
+ {FzName: ts + 16184 /* "-Epsilon" */, FiUpper: 0x80000000, FiLower: uint32(0x00000001)},
+ {FzName: ts + 16193 /* "NaN0" */, FiUpper: uint32(0x7ff80000), FiLower: uint32(0x00000000)},
+ {FzName: ts + 16198 /* "-NaN0" */, FiUpper: 0xfff80000, FiLower: uint32(0x00000000)},
} /* test1.c:3724:5 */
// Usage: sqlite3_bind_null STMT N
@@ -42030,7 +46503,7 @@ var aSpecialFp = [10]struct {
// Test the sqlite3_bind_null interface. STMT is a prepared statement.
// N is the index of a wildcard in the prepared statement. This command
// binds a NULL to the wildcard.
-func test_bind_null(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3784:26: */
+func test_bind_null(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3784:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -42041,8 +46514,8 @@ func test_bind_null(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
var rc int32
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14493 /* " STMT N" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16204 /* " STMT N" */, 0))
return 1
}
@@ -42070,7 +46543,7 @@ func test_bind_null(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// N is the index of a wildcard in the prepared statement. This command
// binds a UTF-8 string STRING to the wildcard. The string is BYTES bytes
// long.
-func test_bind_text(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3820:26: */
+func test_bind_text(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3820:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -42084,8 +46557,8 @@ func test_bind_text(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
var rc int32
if objc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14501 /* " STMT N VALUE BY..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16212 /* " STMT N VALUE BY..." */, 0))
return 1
}
@@ -42100,12 +46573,12 @@ func test_bind_text(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
return 1
}
- rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 56 /* idx */)), value, *(*int32)(unsafe.Pointer(bp + 60 /* bytes */)), crt.UintptrFromInt32(-1))
+ rc = sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 56 /* idx */)), value, *(*int32)(unsafe.Pointer(bp + 60 /* bytes */)), libc.UintptrFromInt32(-1))
if sqlite3TestErrCode(tls, interp, sqlite3.Xsqlite3_db_handle(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* pStmt */))), rc) != 0 {
return 1
}
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
@@ -42118,7 +46591,7 @@ func test_bind_text(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// N is the index of a wildcard in the prepared statement. This command
// binds a UTF-16 string STRING to the wildcard. The string is BYTES bytes
// long.
-func test_bind_text16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3861:26: */
+func test_bind_text16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3861:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -42135,7 +46608,7 @@ func test_bind_text16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
if objc == 6 {
return uintptr(0)
}
- return crt.UintptrFromInt32(-1)
+ return libc.UintptrFromInt32(-1)
}()
var oStmt uintptr = *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-4))*8))
var oN uintptr = *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-3))*8))
@@ -42143,8 +46616,8 @@ func test_bind_text16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var oBytes uintptr = *(*uintptr)(unsafe.Pointer(objv + uintptr((objc-1))*8))
if (objc != 5) && (objc != 6) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14501 /* " STMT N VALUE BY..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16212 /* " STMT N VALUE BY..." */, 0))
return 1
}
@@ -42164,7 +46637,7 @@ func test_bind_text16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
return 1
}
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
@@ -42176,7 +46649,7 @@ func test_bind_text16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// Test the sqlite3_bind_blob interface. STMT is a prepared statement.
// N is the index of a wildcard in the prepared statement. This command
// binds a BLOB to the wildcard. The BLOB is BYTES bytes in size.
-func test_bind_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3909:26: */
+func test_bind_blob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3909:26: */
bp := tls.Alloc(284)
defer tls.Free(284)
@@ -42190,11 +46663,11 @@ func test_bind_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
var value uintptr
var rc int32
- var xDestructor sqlite3_destructor_type = crt.UintptrFromInt32(-1)
+ var xDestructor sqlite3_destructor_type = libc.UintptrFromInt32(-1)
if (objc != 5) && (objc != 6) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14521 /* " STMT N DATA BYT..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+16232 /* " STMT N DATA BYT..." */, 0))
return 1
}
@@ -42219,8 +46692,8 @@ func test_bind_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// var zBuf [200]int8 at bp+84, 200
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+84, /* &zBuf[0] */
- ts+14540 /* "cannot use %d bl..." */, crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 80 /* bytes */)), *(*int32)(unsafe.Pointer(bp + 76 /* len */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, bp+84 /* &zBuf[0] */, -1))
+ ts+16251 /* "cannot use %d bl..." */, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 80 /* bytes */)), *(*int32)(unsafe.Pointer(bp + 76 /* len */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, bp+84 /* &zBuf[0] */, -1))
return 1
}
@@ -42238,14 +46711,14 @@ func test_bind_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// Usage: sqlite3_bind_parameter_count STMT
//
// Return the number of wildcards in the given statement.
-func test_bind_parameter_count(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3961:26: */
+func test_bind_parameter_count(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3961:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
// var pStmt uintptr at bp, 8
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14574 /* "STMT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16285 /* "STMT" */)
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &pStmt */) != 0 {
@@ -42260,7 +46733,7 @@ func test_bind_parameter_count(tls *crt.TLS, clientData uintptr, interp uintptr,
// Return the name of the Nth wildcard. The first wildcard is 1.
// An empty string is returned if N is out of range or if the wildcard
// is nameless.
-func test_bind_parameter_name(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3985:26: */
+func test_bind_parameter_name(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:3985:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -42269,7 +46742,7 @@ func test_bind_parameter_name(tls *crt.TLS, clientData uintptr, interp uintptr,
// var i int32 at bp+8, 4
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14579 /* "STMT N" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16290 /* "STMT N" */)
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &pStmt */) != 0 {
@@ -42287,14 +46760,14 @@ func test_bind_parameter_name(tls *crt.TLS, clientData uintptr, interp uintptr,
//
// Return the index of the wildcard called NAME. Return 0 if there is
// no such wildcard.
-func test_bind_parameter_index(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4012:26: */
+func test_bind_parameter_index(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4012:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
// var pStmt uintptr at bp, 8
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14586 /* "STMT NAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16297 /* "STMT NAME" */)
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &pStmt */) != 0 {
@@ -42308,14 +46781,14 @@ func test_bind_parameter_index(tls *crt.TLS, clientData uintptr, interp uintptr,
// Usage: sqlite3_clear_bindings STMT
//
-func test_clear_bindings(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4037:26: */
+func test_clear_bindings(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4037:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
// var pStmt uintptr at bp, 8
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14574 /* "STMT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16285 /* "STMT" */)
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &pStmt */) != 0 {
@@ -42326,14 +46799,14 @@ func test_clear_bindings(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
// Usage: sqlite3_sleep MILLISECONDS
-func test_sleep(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4057:26: */
+func test_sleep(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4057:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
// var ms int32 at bp, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10978 /* "MILLISECONDS" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+12628 /* "MILLISECONDS" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &ms */) != 0 {
@@ -42347,7 +46820,7 @@ func test_sleep(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, ob
//
// Return the string representation of the most recent sqlite3_* API
// error code. e.g. "SQLITE_ERROR".
-func test_ex_errcode(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4082:26: */
+func test_ex_errcode(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4082:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -42356,15 +46829,15 @@ func test_ex_errcode(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &db */) != 0 {
return 1
}
rc = sqlite3.Xsqlite3_extended_errcode(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 0
}
@@ -42372,7 +46845,7 @@ func test_ex_errcode(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
//
// Return the string representation of the most recent sqlite3_* API
// error code. e.g. "SQLITE_ERROR".
-func test_errcode(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4109:26: */
+func test_errcode(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4109:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -42381,15 +46854,15 @@ func test_errcode(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &db */) != 0 {
return 1
}
rc = sqlite3.Xsqlite3_errcode(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 0
}
@@ -42397,7 +46870,7 @@ func test_errcode(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
//
// Returns the UTF-8 representation of the error message string for the
// most recent sqlite3_* API call.
-func test_errmsg(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4135:26: */
+func test_errmsg(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4135:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -42406,8 +46879,8 @@ func test_errmsg(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
var zErr uintptr
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0 {
@@ -42425,7 +46898,7 @@ func test_errmsg(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// most recent sqlite3_* API call. This is a byte array object at the TCL
// level, and it includes the 0x00 0x00 terminator bytes at the end of the
// UTF-16 string.
-func test_errmsg16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4164:26: */
+func test_errmsg16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4164:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -42436,8 +46909,8 @@ func test_errmsg16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var bytes int32 = 0
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0 {
@@ -42460,7 +46933,7 @@ func test_errmsg16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// database handle <DB>. The parameter <tailval> is the name of a global
// variable that is set to the unused portion of <sql> (if any). A
// STMT handle is returned.
-func test_prepare(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4201:26: */
+func test_prepare(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4201:26: */
bp := tls.Alloc(162)
defer tls.Free(162)
@@ -42476,8 +46949,8 @@ func test_prepare(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var rc int32
if (objc != 5) && (objc != 4) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14596 /* " DB sql bytes ?t..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16307 /* " DB sql bytes ?t..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+80 /* &db */) != 0 {
@@ -42502,15 +46975,15 @@ func test_prepare(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
if *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) >= 0 {
*(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) = (*(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) - (int32((int64(*(*uintptr)(unsafe.Pointer(bp + 104 /* zTail */))) - int64(zSql)) / 1)))
}
- if int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 104 /* zTail */)))) < *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) {
- *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) = int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 104 /* zTail */))))
+ if int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 104 /* zTail */)))) < *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) {
+ *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) = int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(bp + 104 /* zTail */))))
}
tcl.XTcl_ObjSetVar2(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)), uintptr(0), tcl.XTcl_NewStringObj(tls, *(*uintptr)(unsafe.Pointer(bp + 104 /* zTail */)), *(*int32)(unsafe.Pointer(bp + 88 /* bytes */))), 0)
}
if rc != 0 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+14268 /* "(%d) " */, crt.VaList(bp+32, rc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+15979 /* "(%d) " */, libc.VaList(bp+32, rc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
return 1
}
@@ -42518,7 +46991,7 @@ func test_prepare(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
if sqlite3TestMakePointerStr(tls, interp, bp+112 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 96 /* pStmt */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
}
return 0
}
@@ -42529,7 +47002,7 @@ func test_prepare(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// database handle <DB>. The parameter <tailval> is the name of a global
// variable that is set to the unused portion of <sql> (if any). A
// STMT handle is returned.
-func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4258:26: */
+func test_prepare_v2(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4258:26: */
bp := tls.Alloc(162)
defer tls.Free(162)
@@ -42547,8 +47020,8 @@ func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
var rc int32
if (objc != 5) && (objc != 4) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14620 /* " DB sql bytes ta..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16331 /* " DB sql bytes ta..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+80 /* &db */) != 0 {
@@ -42563,12 +47036,12 @@ func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// directly from malloc(). The idea is to make it easier for valgrind
// to spot buffer overreads.
if *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) >= 0 {
- zCopy = crt.Xmalloc(tls, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
- crt.Xmemcpy(tls, zCopy, zSql, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
+ zCopy = libc.Xmalloc(tls, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
+ libc.Xmemcpy(tls, zCopy, zSql, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
} else {
- var n int32 = (int32(crt.Xstrlen(tls, zSql)) + 1)
- zCopy = crt.Xmalloc(tls, uint64(n))
- crt.Xmemcpy(tls, zCopy, zSql, uint64(n))
+ var n int32 = (int32(libc.Xstrlen(tls, zSql)) + 1)
+ zCopy = libc.Xmalloc(tls, uint64(n))
+ libc.Xmemcpy(tls, zCopy, zSql, uint64(n))
}
if objc >= 5 {
pzTail = bp + 96 /* &zTail */
@@ -42579,7 +47052,7 @@ func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
if objc >= 5 {
*(*uintptr)(unsafe.Pointer(bp + 96 /* zTail */)) = (zSql + uintptr(((int64(*(*uintptr)(unsafe.Pointer(bp + 96 /* zTail */))) - int64(zCopy)) / 1)))
}
- crt.Xfree(tls, zCopy)
+ libc.Xfree(tls, zCopy)
tcl.XTcl_ResetResult(tls, interp)
if sqlite3TestErrCode(tls, interp, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */)), rc) != 0 {
@@ -42593,8 +47066,8 @@ func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
if rc != 0 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+14268 /* "(%d) " */, crt.VaList(bp+32, rc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+15979 /* "(%d) " */, libc.VaList(bp+32, rc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
return 1
}
@@ -42602,7 +47075,7 @@ func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
if sqlite3TestMakePointerStr(tls, interp, bp+112 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 104 /* pStmt */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
}
return 0
}
@@ -42613,7 +47086,7 @@ func test_prepare_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// database handle <DB> and flags <flags>. The parameter <tailval> is
// the name of a global variable that is set to the unused portion of
// <sql> (if any). A STMT handle is returned.
-func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4332:26: */
+func test_prepare_v3(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4332:26: */
bp := tls.Alloc(162)
defer tls.Free(162)
@@ -42633,8 +47106,8 @@ func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
var rc int32
if (objc != 6) && (objc != 5) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14642 /* " DB sql bytes fl..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16353 /* " DB sql bytes fl..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+80 /* &db */) != 0 {
@@ -42652,12 +47125,12 @@ func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// directly from malloc(). The idea is to make it easier for valgrind
// to spot buffer overreads.
if *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)) >= 0 {
- zCopy = crt.Xmalloc(tls, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
- crt.Xmemcpy(tls, zCopy, zSql, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
+ zCopy = libc.Xmalloc(tls, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
+ libc.Xmemcpy(tls, zCopy, zSql, uint64(*(*int32)(unsafe.Pointer(bp + 88 /* bytes */))))
} else {
- var n int32 = (int32(crt.Xstrlen(tls, zSql)) + 1)
- zCopy = crt.Xmalloc(tls, uint64(n))
- crt.Xmemcpy(tls, zCopy, zSql, uint64(n))
+ var n int32 = (int32(libc.Xstrlen(tls, zSql)) + 1)
+ zCopy = libc.Xmalloc(tls, uint64(n))
+ libc.Xmemcpy(tls, zCopy, zSql, uint64(n))
}
if objc >= 6 {
pzTail = bp + 96 /* &zTail */
@@ -42665,7 +47138,7 @@ func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
pzTail = uintptr(0)
}
rc = sqlite3.Xsqlite3_prepare_v3(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */)), zCopy, *(*int32)(unsafe.Pointer(bp + 88 /* bytes */)), uint32(*(*int32)(unsafe.Pointer(bp + 92 /* flags */))), bp+104 /* &pStmt */, pzTail)
- crt.Xfree(tls, zCopy)
+ libc.Xfree(tls, zCopy)
*(*uintptr)(unsafe.Pointer(bp + 96 /* zTail */)) = (zSql + uintptr(((int64(*(*uintptr)(unsafe.Pointer(bp + 96 /* zTail */))) - int64(zCopy)) / 1)))
tcl.XTcl_ResetResult(tls, interp)
@@ -42680,8 +47153,8 @@ func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
if rc != 0 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+14268 /* "(%d) " */, crt.VaList(bp+32, rc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+15979 /* "(%d) " */, libc.VaList(bp+32, rc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
return 1
}
@@ -42689,7 +47162,7 @@ func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
if sqlite3TestMakePointerStr(tls, interp, bp+112 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 104 /* pStmt */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
}
return 0
}
@@ -42698,7 +47171,7 @@ func test_prepare_v3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
//
// Generate a prepared statement for a zero-byte string as a test
// for ticket #3134. The string should be preceded by a zero byte.
-func test_prepare_tkt3134(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4403:26: */
+func test_prepare_tkt3134(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4403:26: */
bp := tls.Alloc(146)
defer tls.Free(146)
@@ -42710,8 +47183,8 @@ func test_prepare_tkt3134(tls *crt.TLS, clientData uintptr, interp uintptr, objc
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14620 /* " DB sql bytes ta..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16331 /* " DB sql bytes ta..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+80 /* &db */) != 0 {
@@ -42724,8 +47197,8 @@ func test_prepare_tkt3134(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
if rc != 0 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+96 /* &zBuf[0] */, ts+14268 /* "(%d) " */, crt.VaList(bp+32, rc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+96 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+96 /* &zBuf[0] */, ts+15979 /* "(%d) " */, libc.VaList(bp+32, rc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+96 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
return 1
}
@@ -42733,12 +47206,12 @@ func test_prepare_tkt3134(tls *crt.TLS, clientData uintptr, interp uintptr, objc
if sqlite3TestMakePointerStr(tls, interp, bp+96 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 88 /* pStmt */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, bp+96 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, bp+96 /* &zBuf[0] */, 0))
}
return 0
}
-var zSql = *(*[10]int8)(unsafe.Pointer(ts + 14670 /* "\x00SELECT 1" */)) /* test1.c:4410:21 */
+var zSql = *(*[10]int8)(unsafe.Pointer(ts + 16381 /* "\x00SELECT 1" */)) /* test1.c:4410:21 */
// Usage: sqlite3_prepare16 DB sql bytes tailvar
//
@@ -42746,7 +47219,7 @@ var zSql = *(*[10]int8)(unsafe.Pointer(ts + 14670 /* "\x00SELECT 1" */)) /* test
// database handle <DB>. The parameter <tailval> is the name of a global
// variable that is set to the unused portion of <sql> (if any). A
// STMT handle is returned.
-func test_prepare16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4446:26: */
+func test_prepare16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4446:26: */
bp := tls.Alloc(130)
defer tls.Free(130)
@@ -42765,8 +47238,8 @@ func test_prepare16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// The byte-array length of arg 2
if (objc != 5) && (objc != 4) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14596 /* " DB sql bytes ?t..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16307 /* " DB sql bytes ?t..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &db */) != 0 {
@@ -42801,7 +47274,7 @@ func test_prepare16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
tcl.XTcl_ObjSetVar2(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)), uintptr(0), pTail, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pTail
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -42812,7 +47285,7 @@ func test_prepare16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
return 1
}
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+80 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+80 /* &zBuf[0] */, 0))
return 0
}
@@ -42822,7 +47295,7 @@ func test_prepare16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// database handle <DB>. The parameter <tailval> is the name of a global
// variable that is set to the unused portion of <sql> (if any). A
// STMT handle is returned.
-func test_prepare16_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4506:26: */
+func test_prepare16_v2(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4506:26: */
bp := tls.Alloc(130)
defer tls.Free(130)
@@ -42841,8 +47314,8 @@ func test_prepare16_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// The byte-array length of arg 2
if (objc != 5) && (objc != 4) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14596 /* " DB sql bytes ?t..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16307 /* " DB sql bytes ?t..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &db */) != 0 {
@@ -42877,7 +47350,7 @@ func test_prepare16_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
tcl.XTcl_ObjSetVar2(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)), uintptr(0), pTail, 0)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pTail
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -42888,12 +47361,12 @@ func test_prepare16_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
return 1
}
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+80 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+80 /* &zBuf[0] */, 0))
return 0
}
// Usage: sqlite3_open filename ?options-list?
-func test_open(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4561:26: */
+func test_open(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4561:26: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -42903,8 +47376,8 @@ func test_open(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, obj
// var zBuf [100]int8 at bp+56, 100
if ((objc != 3) && (objc != 2)) && (objc != 1) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14680 /* " filename option..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16391 /* " filename option..." */, 0))
return 1
}
@@ -42918,12 +47391,12 @@ func test_open(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, obj
if sqlite3TestMakePointerStr(tls, interp, bp+56 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+56 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+56 /* &zBuf[0] */, 0))
return 0
}
// Usage: sqlite3_open_v2 FILENAME FLAGS VFS
-func test_open_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4588:26: */
+func test_open_v2(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4588:26: */
bp := tls.Alloc(468)
defer tls.Free(468)
@@ -42942,7 +47415,7 @@ func test_open_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var i int32
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14703 /* "FILENAME FLAGS V..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16414 /* "FILENAME FLAGS V..." */)
return 1
}
zFilename = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -42959,29 +47432,29 @@ func test_open_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// var iFlag int32 at bp+352, 4
*(*[20]OpenFlag)(unsafe.Pointer(bp + 32 /* aFlag */)) = [20]OpenFlag{
- {FzFlag: ts + 14722 /* "SQLITE_OPEN_READ..." */, Fflag: 0x00000001},
- {FzFlag: ts + 14743 /* "SQLITE_OPEN_READ..." */, Fflag: 0x00000002},
- {FzFlag: ts + 14765 /* "SQLITE_OPEN_CREA..." */, Fflag: 0x00000004},
- {FzFlag: ts + 14784 /* "SQLITE_OPEN_DELE..." */, Fflag: 0x00000008},
- {FzFlag: ts + 14810 /* "SQLITE_OPEN_EXCL..." */, Fflag: 0x00000010},
- {FzFlag: ts + 14832 /* "SQLITE_OPEN_AUTO..." */, Fflag: 0x00000020},
- {FzFlag: ts + 14854 /* "SQLITE_OPEN_MAIN..." */, Fflag: 0x00000100},
- {FzFlag: ts + 14874 /* "SQLITE_OPEN_TEMP..." */, Fflag: 0x00000200},
- {FzFlag: ts + 14894 /* "SQLITE_OPEN_TRAN..." */, Fflag: 0x00000400},
- {FzFlag: ts + 14919 /* "SQLITE_OPEN_MAIN..." */, Fflag: 0x00000800},
- {FzFlag: ts + 14944 /* "SQLITE_OPEN_TEMP..." */, Fflag: 0x00001000},
- {FzFlag: ts + 14969 /* "SQLITE_OPEN_SUBJ..." */, Fflag: 0x00002000},
- {FzFlag: ts + 14992 /* "SQLITE_OPEN_MAST..." */, Fflag: 0x00004000},
- {FzFlag: ts + 15019 /* "SQLITE_OPEN_NOMU..." */, Fflag: 0x00008000},
- {FzFlag: ts + 15039 /* "SQLITE_OPEN_FULL..." */, Fflag: 0x00010000},
- {FzFlag: ts + 15061 /* "SQLITE_OPEN_SHAR..." */, Fflag: 0x00020000},
- {FzFlag: ts + 15085 /* "SQLITE_OPEN_PRIV..." */, Fflag: 0x00040000},
- {FzFlag: ts + 15110 /* "SQLITE_OPEN_WAL" */, Fflag: 0x00080000},
- {FzFlag: ts + 15126 /* "SQLITE_OPEN_URI" */, Fflag: 0x00000040},
+ {FzFlag: ts + 16433 /* "SQLITE_OPEN_READ..." */, Fflag: 0x00000001},
+ {FzFlag: ts + 16454 /* "SQLITE_OPEN_READ..." */, Fflag: 0x00000002},
+ {FzFlag: ts + 16476 /* "SQLITE_OPEN_CREA..." */, Fflag: 0x00000004},
+ {FzFlag: ts + 16495 /* "SQLITE_OPEN_DELE..." */, Fflag: 0x00000008},
+ {FzFlag: ts + 16521 /* "SQLITE_OPEN_EXCL..." */, Fflag: 0x00000010},
+ {FzFlag: ts + 16543 /* "SQLITE_OPEN_AUTO..." */, Fflag: 0x00000020},
+ {FzFlag: ts + 16565 /* "SQLITE_OPEN_MAIN..." */, Fflag: 0x00000100},
+ {FzFlag: ts + 16585 /* "SQLITE_OPEN_TEMP..." */, Fflag: 0x00000200},
+ {FzFlag: ts + 16605 /* "SQLITE_OPEN_TRAN..." */, Fflag: 0x00000400},
+ {FzFlag: ts + 16630 /* "SQLITE_OPEN_MAIN..." */, Fflag: 0x00000800},
+ {FzFlag: ts + 16655 /* "SQLITE_OPEN_TEMP..." */, Fflag: 0x00001000},
+ {FzFlag: ts + 16680 /* "SQLITE_OPEN_SUBJ..." */, Fflag: 0x00002000},
+ {FzFlag: ts + 16703 /* "SQLITE_OPEN_SUPE..." */, Fflag: 0x00004000},
+ {FzFlag: ts + 16729 /* "SQLITE_OPEN_NOMU..." */, Fflag: 0x00008000},
+ {FzFlag: ts + 16749 /* "SQLITE_OPEN_FULL..." */, Fflag: 0x00010000},
+ {FzFlag: ts + 16771 /* "SQLITE_OPEN_SHAR..." */, Fflag: 0x00020000},
+ {FzFlag: ts + 16795 /* "SQLITE_OPEN_PRIV..." */, Fflag: 0x00040000},
+ {FzFlag: ts + 16820 /* "SQLITE_OPEN_WAL" */, Fflag: 0x00080000},
+ {FzFlag: ts + 16836 /* "SQLITE_OPEN_URI" */, Fflag: 0x00000040},
{FzFlag: uintptr(0), Fflag: 0},
}
rc = tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 24 /* apFlag */)) + uintptr(i)*8)), bp+32 /* &aFlag[0] */, int32(unsafe.Sizeof(OpenFlag{})),
- ts+15142 /* "flag" */, 0, bp+352 /* &iFlag */)
+ ts+16852 /* "flag" */, 0, bp+352 /* &iFlag */)
if rc != 0 {
return rc
}
@@ -42992,7 +47465,7 @@ func test_open_v2(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
if sqlite3TestMakePointerStr(tls, interp, bp+368 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 360 /* db */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, bp+368 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, bp+368 /* &zBuf[0] */, 0))
return 0
}
@@ -43003,7 +47476,7 @@ type OpenFlag = struct {
}
// Usage: sqlite3_open16 filename options
-func test_open16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4658:26: */
+func test_open16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4658:26: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -43013,8 +47486,8 @@ func test_open16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// var zBuf [100]int8 at bp+56, 100
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14680 /* " filename option..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16391 /* " filename option..." */, 0))
return 1
}
@@ -43024,7 +47497,7 @@ func test_open16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
if sqlite3TestMakePointerStr(tls, interp, bp+56 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+56 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+56 /* &zBuf[0] */, 0))
return 0
}
@@ -43032,11 +47505,11 @@ func test_open16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
//
// Return 1 if the supplied argument is a complete SQL statement, or zero
// otherwise.
-func test_complete16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4690:26: */
+func test_complete16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4690:26: */
var zBuf uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15147 /* "<utf-16 sql>" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16857 /* "<utf-16 sql>" */)
return 1
}
@@ -43048,12 +47521,12 @@ func test_complete16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// Usage: sqlite3_normalize SQL
//
// Return the normalized value for an SQL statement.
-func test_normalize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4715:26: */
+func test_normalize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4715:26: */
var zSql uintptr
var zNorm uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+9753 /* "SQL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+9992 /* "SQL" */)
return 1
}
@@ -43069,7 +47542,7 @@ func test_normalize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// Usage: sqlite3_step STMT
//
// Advance the statement to the next row.
-func test_step(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4744:26: */
+func test_step(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4744:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -43078,8 +47551,8 @@ func test_step(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, obj
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14107 /* " STMT" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15818 /* " STMT" */, 0))
return 1
}
@@ -43093,14 +47566,14 @@ func test_step(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, obj
return 0
}
-func test_sql(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4767:26: */
+func test_sql(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4767:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
// var pStmt uintptr at bp, 8
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14574 /* "STMT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16285 /* "STMT" */)
return 1
}
@@ -43110,7 +47583,7 @@ func test_sql(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3_sql(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */))), uintptr(1))
return 0
}
-func test_ex_sql(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4784:26: */
+func test_ex_sql(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4784:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43119,7 +47592,7 @@ func test_ex_sql(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
var z uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14574 /* "STMT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16285 /* "STMT" */)
return 1
}
@@ -43135,15 +47608,15 @@ func test_ex_sql(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// Usage: sqlite3_column_count STMT
//
// Return the number of columns returned by the sql statement STMT.
-func test_column_count(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4829:26: */
+func test_column_count(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4829:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var pStmt uintptr at bp+32, 8
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43158,7 +47631,7 @@ func test_column_count(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// Usage: sqlite3_column_type STMT column
//
// Return the type of the data in column 'column' of the current row.
-func test_column_type(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4854:26: */
+func test_column_type(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4854:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43169,8 +47642,8 @@ func test_column_type(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var tp int32
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43184,19 +47657,19 @@ func test_column_type(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
tp = sqlite3.Xsqlite3_column_type(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))
switch tp {
case 1:
- tcl.XTcl_SetResult(tls, interp, ts+15173 /* "INTEGER" */, uintptr(0))
+ tcl.XTcl_SetResult(tls, interp, ts+2273 /* "INTEGER" */, uintptr(0))
break
case 5:
- tcl.XTcl_SetResult(tls, interp, ts+4252 /* "NULL" */, uintptr(0))
+ tcl.XTcl_SetResult(tls, interp, ts+5537 /* "NULL" */, uintptr(0))
break
case 2:
- tcl.XTcl_SetResult(tls, interp, ts+15181 /* "FLOAT" */, uintptr(0))
+ tcl.XTcl_SetResult(tls, interp, ts+16883 /* "FLOAT" */, uintptr(0))
break
case 3:
- tcl.XTcl_SetResult(tls, interp, ts+15187 /* "TEXT" */, uintptr(0))
+ tcl.XTcl_SetResult(tls, interp, ts+16889 /* "TEXT" */, uintptr(0))
break
case 4:
- tcl.XTcl_SetResult(tls, interp, ts+15192 /* "BLOB" */, uintptr(0))
+ tcl.XTcl_SetResult(tls, interp, ts+16894 /* "BLOB" */, uintptr(0))
break
default:
}
@@ -43208,7 +47681,7 @@ func test_column_type(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
//
// Return the data in column 'column' of the current row cast as an
// wide (64-bit) integer.
-func test_column_int64(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4903:26: */
+func test_column_int64(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4903:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43219,8 +47692,8 @@ func test_column_int64(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
var iVal i64
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43237,7 +47710,7 @@ func test_column_int64(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
// Usage: sqlite3_column_blob STMT column
-func test_column_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4930:26: */
+func test_column_blob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4930:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43249,8 +47722,8 @@ func test_column_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var pBlob uintptr
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43270,7 +47743,7 @@ func test_column_blob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// Usage: sqlite3_column_double STMT column
//
// Return the data in column 'column' of the current row cast as a double.
-func test_column_double(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4962:26: */
+func test_column_double(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4962:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43281,8 +47754,8 @@ func test_column_double(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var rVal float64
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43301,15 +47774,15 @@ func test_column_double(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// Usage: sqlite3_data_count STMT
//
// Return the number of columns returned by the sql statement STMT.
-func test_data_count(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4991:26: */
+func test_data_count(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:4991:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var pStmt uintptr at bp+32, 8
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43326,7 +47799,7 @@ func test_data_count(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// Usage: sqlite3_column_decltype STMT column
//
// Usage: sqlite3_column_name STMT column
-func test_stmt_utf8(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5018:26: */
+func test_stmt_utf8(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5018:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43339,8 +47812,8 @@ func test_stmt_utf8(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
xFunc = clientData
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43350,14 +47823,14 @@ func test_stmt_utf8(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+40 /* &col */) != 0 {
return 1
}
- zRet = (*(*func(*crt.TLS, uintptr, int32) uintptr)(unsafe.Pointer(&xFunc)))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))
+ zRet = (*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(&xFunc)))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))
if zRet != 0 {
tcl.XTcl_SetResult(tls, interp, zRet, uintptr(0))
}
return 0
}
-func test_global_recover(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5045:26: */
+func test_global_recover(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5045:26: */
var rc int32
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
@@ -43373,7 +47846,7 @@ func test_global_recover(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// Usage: sqlite3_column_decltype STMT column
//
// Usage: sqlite3_column_name STMT column
-func test_stmt_utf16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5070:26: */
+func test_stmt_utf16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5070:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43387,8 +47860,8 @@ func test_stmt_utf16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
xFunc = clientData
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43399,7 +47872,7 @@ func test_stmt_utf16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
return 1
}
- zName16 = (*(*func(*crt.TLS, uintptr, int32) uintptr)(unsafe.Pointer(&xFunc)))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))
+ zName16 = (*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer(&xFunc)))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))
if zName16 != 0 {
var n int32
var z uintptr = zName16
@@ -43418,7 +47891,7 @@ func test_stmt_utf16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
//
// Usage: sqlite3_column_bytes16 STMT column
//
-func test_stmt_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5114:26: */
+func test_stmt_int(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5114:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -43430,8 +47903,8 @@ func test_stmt_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
xFunc = clientData
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+15160 /* " STMT column" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16870 /* " STMT column" */, 0))
return 1
}
@@ -43442,34 +47915,34 @@ func test_stmt_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
return 1
}
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(&xFunc)))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(&xFunc)))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pStmt */)), *(*int32)(unsafe.Pointer(bp + 40 /* col */)))))
return 0
}
// Usage: sqlite_set_magic DB MAGIC-NUMBER
//
// Set the db->magic value. This is used to test error recovery logic.
-func sqlite_set_magic(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5143:26: */
+func sqlite_set_magic(tls *libc.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5143:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+15197 /* " DB MAGIC" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+16899 /* " DB MAGIC" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
return 1
}
- if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+15207 /* "SQLITE_MAGIC_OPE..." */) == 0 {
+ if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+16909 /* "SQLITE_MAGIC_OPE..." */) == 0 {
(*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).Fmagic = 0xa029a697
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+15225 /* "SQLITE_MAGIC_CLO..." */) == 0 {
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+16927 /* "SQLITE_MAGIC_CLO..." */) == 0 {
(*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).Fmagic = 0x9f3c2d33
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+15245 /* "SQLITE_MAGIC_BUS..." */) == 0 {
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+16947 /* "SQLITE_MAGIC_BUS..." */) == 0 {
(*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).Fmagic = 0xf03b7906
- } else if crt.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+15263 /* "SQLITE_MAGIC_ERR..." */) == 0 {
+ } else if libc.Xstrcmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ts+16965 /* "SQLITE_MAGIC_ERR..." */) == 0 {
(*sqlite31)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* db */)))).Fmagic = 0xb5357930
} else if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), (*(*uintptr)(unsafe.Pointer(bp + 32 /* db */))+112 /* &.magic */)) != 0 {
return 1
@@ -43480,14 +47953,14 @@ func sqlite_set_magic(tls *crt.TLS, clientData uintptr, interp uintptr, argc int
// Usage: sqlite3_interrupt DB
//
// Trigger an interrupt on DB
-func test_interrupt(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5175:26: */
+func test_interrupt(tls *libc.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5175:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -43502,7 +47975,7 @@ func test_interrupt(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32
// Delete the user function 'function-name' from database handle DB. It
// is assumed that the user function was created as UTF8, any number of
// arguments (the way the TCL interface does it).
-func delete_function(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5198:26: */
+func delete_function(tls *libc.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5198:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -43510,8 +47983,8 @@ func delete_function(tls *crt.TLS, clientData uintptr, interp uintptr, argc int3
// var db uintptr at bp+32, 8
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+15282 /* " DB function-nam..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+16984 /* " DB function-nam..." */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -43527,7 +48000,7 @@ func delete_function(tls *crt.TLS, clientData uintptr, interp uintptr, argc int3
// Delete the collation sequence 'collation-name' from database handle
// DB. It is assumed that the collation sequence was created as UTF8 (the
// way the TCL interface does it).
-func delete_collation(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5224:26: */
+func delete_collation(tls *libc.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5224:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -43535,8 +48008,8 @@ func delete_collation(tls *crt.TLS, clientData uintptr, interp uintptr, argc int
// var db uintptr at bp+32, 8
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+15282 /* " DB function-nam..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+16984 /* " DB function-nam..." */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+32 /* &db */) != 0 {
@@ -43551,7 +48024,7 @@ func delete_collation(tls *crt.TLS, clientData uintptr, interp uintptr, argc int
//
// Return true if the database DB is currently in auto-commit mode.
// Return false if not.
-func get_autocommit(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5249:26: */
+func get_autocommit(tls *libc.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5249:26: */
bp := tls.Alloc(94)
defer tls.Free(94)
@@ -43560,15 +48033,15 @@ func get_autocommit(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32
// var db uintptr at bp+56, 8
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+56 /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+64 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, sqlite3.Xsqlite3_get_autocommit(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */)))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+64 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+64 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, sqlite3.Xsqlite3_get_autocommit(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */)))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+64 /* &zBuf[0] */, 0))
return 0
}
@@ -43577,7 +48050,7 @@ func get_autocommit(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32
// Set the busy timeout. This is more easily done using the timeout
// method of the TCL interface. But we need a way to test the case
// where it returns SQLITE_MISUSE.
-func test_busy_timeout(tls *crt.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5275:26: */
+func test_busy_timeout(tls *libc.TLS, clientData uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test1.c:5275:26: */
bp := tls.Alloc(60)
defer tls.Free(60)
@@ -43587,8 +48060,8 @@ func test_busy_timeout(tls *crt.TLS, clientData uintptr, interp uintptr, argc in
// var db uintptr at bp+48, 8
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+48 /* &db */) != 0 {
@@ -43598,7 +48071,7 @@ func test_busy_timeout(tls *crt.TLS, clientData uintptr, interp uintptr, argc in
return 1
}
rc = sqlite3.Xsqlite3_busy_timeout(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), *(*int32)(unsafe.Pointer(bp + 56 /* ms */)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 0
}
@@ -43606,10 +48079,10 @@ func test_busy_timeout(tls *crt.TLS, clientData uintptr, interp uintptr, argc in
//
// Return the name of the internal representation for the
// value of the given variable.
-func tcl_variable_type(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5301:26: */
+func tcl_variable_type(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5301:26: */
var pVar uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15300 /* "VARIABLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17002 /* "VARIABLE" */)
return 1
}
pVar = tcl.XTcl_GetVar2Ex(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0), 0x200)
@@ -43627,7 +48100,26 @@ func tcl_variable_type(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// Attempt to release memory currently held but not actually required.
// The integer N is the number of bytes we are trying to release. The
// return value is the amount of memory actually released.
-func test_release_memory(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5327:26: */
+func test_release_memory(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5327:26: */
+ bp := tls.Alloc(4)
+ defer tls.Free(4)
+
+ // var N int32 at bp, 4
+
+ var amt int32
+ if (objc != 1) && (objc != 2) {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17011 /* "?N?" */)
+ return 1
+ }
+ if objc == 2 {
+ if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &N */) != 0 {
+ return 1
+ }
+ } else {
+ *(*int32)(unsafe.Pointer(bp /* N */)) = -1
+ }
+ amt = sqlite3.Xsqlite3_release_memory(tls, *(*int32)(unsafe.Pointer(bp /* N */)))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, amt))
return 0
}
@@ -43635,7 +48127,7 @@ func test_release_memory(tls *crt.TLS, clientData uintptr, interp uintptr, objc
//
// Attempt to release memory currently held by database DB. Return the
// result code (which in the current implementation is always zero).
-func test_db_release_memory(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5358:26: */
+func test_db_release_memory(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5358:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43657,7 +48149,7 @@ func test_db_release_memory(tls *crt.TLS, clientData uintptr, interp uintptr, ob
// Usage: sqlite3_db_cacheflush DB
//
// Attempt to flush any dirty pages to disk.
-func test_db_cacheflush(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5381:26: */
+func test_db_cacheflush(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5381:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43684,7 +48176,7 @@ func test_db_cacheflush(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// Usage: sqlite3_system_errno DB
//
// Return the low-level system errno value.
-func test_system_errno(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5409:26: */
+func test_system_errno(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5409:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43706,7 +48198,7 @@ func test_system_errno(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// Usage: sqlite3_db_filename DB DBNAME
//
// Return the name of a file associated with a database.
-func test_db_filename(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5432:26: */
+func test_db_filename(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5432:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -43714,14 +48206,14 @@ func test_db_filename(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var zDbName uintptr
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15309 /* "DB DBNAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15728 /* "DB DBNAME" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+16 /* &db */) != 0 {
return 1
}
zDbName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3_db_filename(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), zDbName), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3_db_filename(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), zDbName), uintptr(0)))
return 0
}
@@ -43729,7 +48221,7 @@ func test_db_filename(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
//
// Return 1 or 0 if DBNAME is readonly or not. Return -1 if DBNAME does
// not exist.
-func test_db_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5456:26: */
+func test_db_readonly(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5456:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -43737,7 +48229,7 @@ func test_db_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var zDbName uintptr
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15309 /* "DB DBNAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15728 /* "DB DBNAME" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
@@ -43753,14 +48245,14 @@ func test_db_readonly(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// Query or set the soft heap limit for the current thread. The
// limit is only changed if the N is present. The previous limit
// is returned.
-func test_soft_heap_limit(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5481:26: */
+func test_soft_heap_limit(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5481:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
var amt sqlite3_int64
*(*Tcl_WideInt)(unsafe.Pointer(bp /* N */)) = int64(-1)
if (objc != 1) && (objc != 2) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15319 /* "?N?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17011 /* "?N?" */)
return 1
}
if objc == 2 {
@@ -43778,14 +48270,14 @@ func test_soft_heap_limit(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// Query or set the hard heap limit for the current thread. The
// limit is only changed if the N is present. The previous limit
// is returned.
-func test_hard_heap_limit(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5508:26: */
+func test_hard_heap_limit(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5508:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
var amt sqlite3_int64
*(*Tcl_WideInt)(unsafe.Pointer(bp /* N */)) = int64(-1)
if (objc != 1) && (objc != 2) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15319 /* "?N?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17011 /* "?N?" */)
return 1
}
if objc == 2 {
@@ -43801,7 +48293,7 @@ func test_hard_heap_limit(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// Usage: sqlite3_thread_cleanup
//
// Call the sqlite3_thread_cleanup API.
-func test_thread_cleanup(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5533:26: */
+func test_thread_cleanup(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5533:26: */
sqlite3.Xsqlite3_thread_cleanup(tls)
return 0
}
@@ -43810,7 +48302,7 @@ func test_thread_cleanup(tls *crt.TLS, clientData uintptr, interp uintptr, objc
//
// Return a list of numbers which are the PagerRefcount for all
// pagers on each database connection.
-func test_pager_refcounts(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5551:26: */
+func test_pager_refcounts(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5551:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -43822,8 +48314,8 @@ func test_pager_refcounts(tls *crt.TLS, clientData uintptr, interp uintptr, objc
var pResult uintptr
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0 {
@@ -43855,19 +48347,19 @@ func test_pager_refcounts(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// This command is used to warn users that their TCL build is defective
// and that the errors they are seeing in the test scripts might be
// a result of their defective TCL rather than problems in SQLite.
-func working_64bit_int(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5597:26: */
+func working_64bit_int(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5597:26: */
var pTestObj uintptr
var working int32 = 0
pTestObj = tcl.XTcl_NewWideIntObj(tls, (int64(1000000) * int64(1234567890)))
- working = (crt.Bool32(crt.Xstrcmp(tls, tcl.XTcl_GetString(tls, pTestObj), ts+15323 /* "1234567890000000" */) == 0))
+ working = (libc.Bool32(libc.Xstrcmp(tls, tcl.XTcl_GetString(tls, pTestObj), ts+17015 /* "1234567890000000" */) == 0))
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pTestObj
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((working) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((working) != 0))))
return 0
}
@@ -43877,7 +48369,7 @@ func working_64bit_int(tls *crt.TLS, clientData ClientData, interp uintptr, objc
// it back again. This is used to test the ability to register a
// VFS when none are previously registered, and the ability to
// unregister the only available VFS. Ticket #2738
-func vfs_unlink_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5622:26: */
+func vfs_unlink_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5622:26: */
bp := tls.Alloc(496)
defer tls.Free(496)
@@ -43890,8 +48382,8 @@ func vfs_unlink_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
// var two sqlite3_vfs at bp+168, 168
sqlite3.Xsqlite3_vfs_unregister(tls, uintptr(0)) // Unregister of NULL is harmless
- (*sqlite3_vfs)(unsafe.Pointer(bp /* &one */)).FzName = ts + 15340 /* "__one" */
- (*sqlite3_vfs)(unsafe.Pointer(bp + 168 /* &two */)).FzName = ts + 15346 /* "__two" */
+ (*sqlite3_vfs)(unsafe.Pointer(bp /* &one */)).FzName = ts + 17032 /* "__one" */
+ (*sqlite3_vfs)(unsafe.Pointer(bp + 168 /* &two */)).FzName = ts + 17038 /* "__two" */
// Calling sqlite3_vfs_register with 2nd argument of 0 does not
// change the default VFS
@@ -43957,13 +48449,13 @@ func vfs_unlink_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
//
// This TCL command attempts to vfs_find and vfs_register when the
// sqlite3_initialize() interface is failing. All calls should fail.
-func vfs_initfail_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5724:26: */
+func vfs_initfail_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5724:26: */
bp := tls.Alloc(168)
defer tls.Free(168)
// var one sqlite3_vfs at bp, 168
- (*sqlite3_vfs)(unsafe.Pointer(bp /* &one */)).FzName = ts + 15340 /* "__one" */
+ (*sqlite3_vfs)(unsafe.Pointer(bp /* &one */)).FzName = ts + 17032 /* "__one" */
if sqlite3.Xsqlite3_vfs_find(tls, uintptr(0)) != 0 {
return 1
@@ -43986,7 +48478,7 @@ var nVfs int32 = 0 /* test1.c:5745:12 */
// tclcmd: vfs_unregister_all
//
// Unregister all VFSes.
-func vfs_unregister_all(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5752:26: */
+func vfs_unregister_all(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5752:26: */
var i int32
for i = 0; i < (int32(uint64(unsafe.Sizeof(apVfs)) / uint64(unsafe.Sizeof(uintptr(0))))); i++ {
apVfs[i] = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
@@ -44004,7 +48496,7 @@ func vfs_unregister_all(tls *crt.TLS, clientData ClientData, interp uintptr, obj
// Restore all VFSes that were removed using vfs_unregister_all. Taking
// care to put the linked list back together in the same order as it was
// in before vfs_unregister_all was invoked.
-func vfs_reregister_all(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5774:26: */
+func vfs_reregister_all(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5774:26: */
var i int32
for i = (nVfs - 1); i >= 0; i-- {
sqlite3.Xsqlite3_vfs_register(tls, apVfs[i], 1)
@@ -44016,7 +48508,7 @@ func vfs_reregister_all(tls *crt.TLS, clientData ClientData, interp uintptr, obj
//
// This TCL command runs the sqlite3_file_control interface and
// verifies correct operation of the same.
-func file_control_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5794:26: */
+func file_control_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5794:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -44027,8 +48519,8 @@ func file_control_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc
_ = rc
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0 {
@@ -44036,11 +48528,11 @@ func file_control_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc
}
rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), uintptr(0), 0, bp+40 /* &iArg */)
- rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+15352 /* "notadatabase" */, 1, bp+40 /* &iArg */)
+ rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+17044 /* "notadatabase" */, 1, bp+40 /* &iArg */)
rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+84 /* "main" */, -1, bp+40 /* &iArg */)
- rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+6914 /* "temp" */, -1, bp+40 /* &iArg */)
+ rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), ts+8199 /* "temp" */, -1, bp+40 /* &iArg */)
return 0
}
@@ -44049,7 +48541,7 @@ func file_control_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc
//
// This TCL command runs the sqlite3_file_control interface and
// verifies correct operation of the SQLITE_LAST_ERRNO verb.
-func file_control_lasterrno_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5829:26: */
+func file_control_lasterrno_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5829:26: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -44059,8 +48551,8 @@ func file_control_lasterrno_test(tls *crt.TLS, clientData ClientData, interp uin
var rc int32
if objc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+12853 /* " DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+14503 /* " DB" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+64 /* &db */) != 0 {
@@ -44072,8 +48564,8 @@ func file_control_lasterrno_test(tls *crt.TLS, clientData ClientData, interp uin
return 1
}
if *(*int32)(unsafe.Pointer(bp + 72 /* iArg */)) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+15365, /* "Unexpected non-z..." */
- tcl.XTcl_GetStringFromObj(tls, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 72 /* iArg */))), uintptr(0)), ts+3368 /* " " */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+17057, /* "Unexpected non-z..." */
+ tcl.XTcl_GetStringFromObj(tls, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 72 /* iArg */))), uintptr(0)), ts+4585 /* " " */, 0))
return 1
}
return 0
@@ -44083,7 +48575,7 @@ func file_control_lasterrno_test(tls *crt.TLS, clientData ClientData, interp uin
//
// This TCL command runs the sqlite3_file_control with the
// SQLITE_FCNTL_DATA_VERSION opcode, returning the result.
-func file_control_data_version(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5866:26: */
+func file_control_data_version(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5866:26: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -44096,7 +48588,7 @@ func file_control_data_version(tls *crt.TLS, clientData ClientData, interp uintp
// var zBuf [100]int8 at bp+20, 100
if (objc != 3) && (objc != 2) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15393 /* "DB [DBNAME]" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17085 /* "DB [DBNAME]" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+8 /* &db */) != 0 {
@@ -44113,7 +48605,7 @@ func file_control_data_version(tls *crt.TLS, clientData ClientData, interp uintp
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
return 1
} else {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+20 /* &zBuf[0] */, ts+15405 /* "%u" */, crt.VaList(bp, *(*uint32)(unsafe.Pointer(bp + 16 /* iVers */))))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+20 /* &zBuf[0] */, ts+17097 /* "%u" */, libc.VaList(bp, *(*uint32)(unsafe.Pointer(bp + 16 /* iVers */))))
tcl.XTcl_SetResult(tls, interp, bp+20 /* zBuf */, uintptr(1))
return 0
}
@@ -44125,7 +48617,7 @@ func file_control_data_version(tls *crt.TLS, clientData ClientData, interp uintp
// This TCL command runs the sqlite3_file_control interface and
// verifies correct operation of the SQLITE_GET_LOCKPROXYFILE and
// SQLITE_SET_LOCKPROXYFILE verbs.
-func file_control_chunksize_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5905:26: */
+func file_control_chunksize_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5905:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -44137,7 +48629,7 @@ func file_control_chunksize_test(tls *crt.TLS, clientData ClientData, interp uin
var rc int32 // file_control() return code
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15408 /* "DB DBNAME SIZE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17100 /* "DB DBNAME SIZE" */)
return 1
}
if (getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0) ||
@@ -44161,7 +48653,7 @@ func file_control_chunksize_test(tls *crt.TLS, clientData ClientData, interp uin
//
// This TCL command runs the sqlite3_file_control interface
// with SQLITE_FCNTL_SIZE_HINT
-func file_control_sizehint_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5942:26: */
+func file_control_sizehint_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5942:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -44173,7 +48665,7 @@ func file_control_sizehint_test(tls *crt.TLS, clientData ClientData, interp uint
var rc int32 // file_control() return code
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15408 /* "DB DBNAME SIZE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17100 /* "DB DBNAME SIZE" */)
return 1
}
if (getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0) ||
@@ -44198,15 +48690,15 @@ func file_control_sizehint_test(tls *crt.TLS, clientData ClientData, interp uint
// This TCL command runs the sqlite3_file_control interface and
// verifies correct operation of the SQLITE_GET_LOCKPROXYFILE and
// SQLITE_SET_LOCKPROXYFILE verbs.
-func file_control_lockproxy_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5980:26: */
+func file_control_lockproxy_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:5980:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15423 /* " DB PWD" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+17115 /* " DB PWD" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0 {
@@ -44220,7 +48712,7 @@ func file_control_lockproxy_test(tls *crt.TLS, clientData ClientData, interp uin
//
// This TCL command runs the sqlite3_file_control interface with
// the SQLITE_FCNTL_PERSIST_WAL opcode.
-func file_control_persist_wal(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6151:26: */
+func file_control_persist_wal(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6151:26: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -44232,8 +48724,8 @@ func file_control_persist_wal(tls *crt.TLS, clientData ClientData, interp uintpt
// var z [100]int8 at bp+76, 100
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15431 /* " DB FLAG" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+17123 /* " DB FLAG" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+64 /* &db */) != 0 {
@@ -44243,8 +48735,8 @@ func file_control_persist_wal(tls *crt.TLS, clientData ClientData, interp uintpt
return 1
}
rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), uintptr(0), 10, bp+72 /* &bPersist */)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+76 /* &z[0] */, ts+15440 /* "%d %d" */, crt.VaList(bp+32, rc, *(*int32)(unsafe.Pointer(bp + 72 /* bPersist */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, bp+76 /* &z[0] */, uintptr(0)))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+76 /* &z[0] */, ts+17132 /* "%d %d" */, libc.VaList(bp+32, rc, *(*int32)(unsafe.Pointer(bp + 72 /* bPersist */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, bp+76 /* &z[0] */, uintptr(0)))
return 0
}
@@ -44252,7 +48744,7 @@ func file_control_persist_wal(tls *crt.TLS, clientData ClientData, interp uintpt
//
// This TCL command runs the sqlite3_file_control interface with
// the SQLITE_FCNTL_POWERSAFE_OVERWRITE opcode.
-func file_control_powersafe_overwrite(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6183:26: */
+func file_control_powersafe_overwrite(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6183:26: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -44264,8 +48756,8 @@ func file_control_powersafe_overwrite(tls *crt.TLS, clientData ClientData, inter
// var z [100]int8 at bp+76, 100
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15431 /* " DB FLAG" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+17123 /* " DB FLAG" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+64 /* &db */) != 0 {
@@ -44275,15 +48767,15 @@ func file_control_powersafe_overwrite(tls *crt.TLS, clientData ClientData, inter
return 1
}
rc = sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), uintptr(0), 13, bp+72 /* &b */)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+76 /* &z[0] */, ts+15440 /* "%d %d" */, crt.VaList(bp+32, rc, *(*int32)(unsafe.Pointer(bp + 72 /* b */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, bp+76 /* &z[0] */, uintptr(0)))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+76 /* &z[0] */, ts+17132 /* "%d %d" */, libc.VaList(bp+32, rc, *(*int32)(unsafe.Pointer(bp + 72 /* b */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, bp+76 /* &z[0] */, uintptr(0)))
return 0
}
// tclcmd: file_control_vfsname DB ?AUXDB?
//
// Return a string that describes the stack of VFSes.
-func file_control_vfsname(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6215:26: */
+func file_control_vfsname(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6215:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -44293,8 +48785,8 @@ func file_control_vfsname(tls *crt.TLS, clientData ClientData, interp uintptr, o
*(*uintptr)(unsafe.Pointer(bp + 56 /* zVfsName */)) = uintptr(0)
if (objc != 2) && (objc != 3) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15446 /* " DB ?AUXDB?" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+17138 /* " DB ?AUXDB?" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &db */) != 0 {
@@ -44304,7 +48796,7 @@ func file_control_vfsname(tls *crt.TLS, clientData ClientData, interp uintptr, o
zDbName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
}
sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), zDbName, 12, bp+56 /* &zVfsName */)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zVfsName */)), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zVfsName */)), uintptr(0)))
sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zVfsName */)))
return 0
}
@@ -44312,7 +48804,7 @@ func file_control_vfsname(tls *crt.TLS, clientData ClientData, interp uintptr, o
// tclcmd: file_control_tempfilename DB ?AUXDB?
//
// Return a string that is a temporary filename
-func file_control_tempfilename(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6247:26: */
+func file_control_tempfilename(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6247:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -44322,8 +48814,8 @@ func file_control_tempfilename(tls *crt.TLS, clientData ClientData, interp uintp
*(*uintptr)(unsafe.Pointer(bp + 56 /* zTName */)) = uintptr(0)
if (objc != 2) && (objc != 3) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15446 /* " DB ?AUXDB?" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+17138 /* " DB ?AUXDB?" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &db */) != 0 {
@@ -44333,7 +48825,7 @@ func file_control_tempfilename(tls *crt.TLS, clientData ClientData, interp uintp
zDbName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
}
sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* db */)), zDbName, 16, bp+56 /* &zTName */)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zTName */)), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 56 /* zTName */)), uintptr(0)))
sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* zTName */)))
return 0
}
@@ -44341,7 +48833,7 @@ func file_control_tempfilename(tls *crt.TLS, clientData ClientData, interp uintp
// tclcmd: sqlite3_vfs_list
//
// Return a tcl list containing the names of all registered vfs's.
-func vfs_list(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6280:26: */
+func vfs_list(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6280:26: */
var pVfs uintptr
var pRet uintptr = tcl.XTcl_NewObj(tls)
if objc != 1 {
@@ -44359,7 +48851,7 @@ func vfs_list(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, o
//
// This TCL command runs the sqlite3_limit interface and
// verifies correct operation of the same.
-func test_limit(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6305:26: */
+func test_limit(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6305:26: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -44373,8 +48865,8 @@ func test_limit(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32,
var zId uintptr
if objc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+15458 /* " DB ID VALUE" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+17150 /* " DB ID VALUE" */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+56 /* &db */) != 0 {
@@ -44386,7 +48878,7 @@ func test_limit(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32,
Fid int32
_ [4]byte
}{}))); i++ {
- if crt.Xstrcmp(tls, zId, aId[i].FzName) == 0 {
+ if libc.Xstrcmp(tls, zId, aId[i].FzName) == 0 {
id = aId[i].Fid
break
}
@@ -44396,7 +48888,7 @@ func test_limit(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32,
Fid int32
_ [4]byte
}{}))) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+15471 /* "unknown limit ty..." */, zId, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+17163 /* "unknown limit ty..." */, zId, uintptr(0)))
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+64 /* &val */) != 0 {
@@ -44412,22 +48904,22 @@ var aId = [14]struct {
Fid int32
_ [4]byte
}{
- {FzName: ts + 15492 /* "SQLITE_LIMIT_LEN..." */, Fid: 0},
- {FzName: ts + 15512 /* "SQLITE_LIMIT_SQL..." */, Fid: 1},
- {FzName: ts + 15536 /* "SQLITE_LIMIT_COL..." */, Fid: 2},
- {FzName: ts + 15556 /* "SQLITE_LIMIT_EXP..." */, Fid: 3},
- {FzName: ts + 15580 /* "SQLITE_LIMIT_COM..." */, Fid: 4},
- {FzName: ts + 15609 /* "SQLITE_LIMIT_VDB..." */, Fid: 5},
- {FzName: ts + 15630 /* "SQLITE_LIMIT_FUN..." */, Fid: 6},
- {FzName: ts + 15656 /* "SQLITE_LIMIT_ATT..." */, Fid: 7},
- {FzName: ts + 15678 /* "SQLITE_LIMIT_LIK..." */, Fid: 8},
- {FzName: ts + 15711 /* "SQLITE_LIMIT_VAR..." */, Fid: 9},
- {FzName: ts + 15740 /* "SQLITE_LIMIT_TRI..." */, Fid: 10},
- {FzName: ts + 15767 /* "SQLITE_LIMIT_WOR..." */, Fid: 11},
+ {FzName: ts + 17184 /* "SQLITE_LIMIT_LEN..." */, Fid: 0},
+ {FzName: ts + 17204 /* "SQLITE_LIMIT_SQL..." */, Fid: 1},
+ {FzName: ts + 17228 /* "SQLITE_LIMIT_COL..." */, Fid: 2},
+ {FzName: ts + 17248 /* "SQLITE_LIMIT_EXP..." */, Fid: 3},
+ {FzName: ts + 17272 /* "SQLITE_LIMIT_COM..." */, Fid: 4},
+ {FzName: ts + 17301 /* "SQLITE_LIMIT_VDB..." */, Fid: 5},
+ {FzName: ts + 17322 /* "SQLITE_LIMIT_FUN..." */, Fid: 6},
+ {FzName: ts + 17348 /* "SQLITE_LIMIT_ATT..." */, Fid: 7},
+ {FzName: ts + 17370 /* "SQLITE_LIMIT_LIK..." */, Fid: 8},
+ {FzName: ts + 17403 /* "SQLITE_LIMIT_VAR..." */, Fid: 9},
+ {FzName: ts + 17432 /* "SQLITE_LIMIT_TRI..." */, Fid: 10},
+ {FzName: ts + 17459 /* "SQLITE_LIMIT_WOR..." */, Fid: 11},
// Out of range test cases
- {FzName: ts + 15795 /* "SQLITE_LIMIT_TOO..." */, Fid: -1},
- {FzName: ts + 15817 /* "SQLITE_LIMIT_TOO..." */, Fid: (11 + 1)},
+ {FzName: ts + 17487 /* "SQLITE_LIMIT_TOO..." */, Fid: -1},
+ {FzName: ts + 17509 /* "SQLITE_LIMIT_TOO..." */, Fid: (11 + 1)},
} /* test1.c:6316:5 */
// tclcmd: save_prng_state
@@ -44435,7 +48927,7 @@ var aId = [14]struct {
// Save the state of the pseudo-random number generator.
// At the same time, verify that sqlite3_test_control works even when
// called with an out-of-range opcode.
-func save_prng_state(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6368:26: */
+func save_prng_state(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6368:26: */
var rc int32 = sqlite3.Xsqlite3_test_control(tls, 9999, 0)
_ = rc
@@ -44446,13 +48938,13 @@ func save_prng_state(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
}
// tclcmd: restore_prng_state
-func restore_prng_state(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6384:26: */
+func restore_prng_state(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6384:26: */
sqlite3.Xsqlite3_test_control(tls, 6, 0)
return 0
}
// tclcmd: reset_prng_state
-func reset_prng_state(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6396:26: */
+func reset_prng_state(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6396:26: */
sqlite3.Xsqlite3_randomness(tls, 0, uintptr(0))
return 0
}
@@ -44470,14 +48962,14 @@ func reset_prng_state(tls *crt.TLS, clientData ClientData, interp uintptr, objc
//
// If INT==0 and DB==0 then use the default procedure of calling the
// xRandomness method on the default VFS to get the PRNG seed.
-func prng_seed(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6420:26: */
+func prng_seed(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6420:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
*(*int32)(unsafe.Pointer(bp + 16 /* i */)) = 0
*(*uintptr)(unsafe.Pointer(bp + 24 /* db */)) = uintptr(0)
if (objc != 2) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15837 /* "SEED ?DB?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17529 /* "SEED ?DB?" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), bp+16 /* &i */) != 0 {
@@ -44486,7 +48978,29 @@ func prng_seed(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32,
if (objc == 3) && (getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), bp+24 /* &db */) != 0) {
return 1
}
- sqlite3.Xsqlite3_test_control(tls, 28, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 16 /* i */)), *(*uintptr)(unsafe.Pointer(bp + 24 /* db */))))
+ sqlite3.Xsqlite3_test_control(tls, 28, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 16 /* i */)), *(*uintptr)(unsafe.Pointer(bp + 24 /* db */))))
+ return 0
+}
+
+// tclcmd: extra_schema_checks BOOLEAN
+//
+// Enable or disable schema checks when parsing the sqlite_schema file.
+// This is always enabled in production, but it is sometimes useful to
+// disable the checks in order to make some internal error states reachable
+// for testing.
+func extra_schema_checks(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6448:26: */
+ bp := tls.Alloc(12)
+ defer tls.Free(12)
+
+ *(*int32)(unsafe.Pointer(bp + 8 /* i */)) = 0
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17539 /* "BOOLEAN" */)
+ return 1
+ }
+ if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+8 /* &i */) != 0 {
+ return 1
+ }
+ sqlite3.Xsqlite3_test_control(tls, 29, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* i */))))
return 0
}
@@ -44494,11 +49008,11 @@ func prng_seed(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32,
//
// Indicate that database files might be corrupt. In other words, set the normal
// state of operation.
-func database_may_be_corrupt(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6446:26: */
+func database_may_be_corrupt(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6470:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
- sqlite3.Xsqlite3_test_control(tls, 20, crt.VaList(bp, 0))
+ sqlite3.Xsqlite3_test_control(tls, 20, libc.VaList(bp, 0))
return 0
}
@@ -44507,16 +49021,16 @@ func database_may_be_corrupt(tls *crt.TLS, clientData ClientData, interp uintptr
// Indicate that database files are always well-formed. This enables
// extra assert() statements that test conditions that are always true
// for well-formed databases.
-func database_never_corrupt(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6462:26: */
+func database_never_corrupt(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6486:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
- sqlite3.Xsqlite3_test_control(tls, 20, crt.VaList(bp, 1))
+ sqlite3.Xsqlite3_test_control(tls, 20, libc.VaList(bp, 1))
return 0
}
// tclcmd: pcache_stats
-func test_pcache_stats(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6475:26: */
+func test_pcache_stats(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6499:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -44533,13 +49047,13 @@ func test_pcache_stats(tls *crt.TLS, clientData ClientData, interp uintptr, objc
sqlite3.Xsqlite3PcacheStats(tls, bp /* &nCurrent */, bp+4 /* &nMax */, bp+8 /* &nMin */, bp+12 /* &nRecyclable */)
pRet = tcl.XTcl_NewObj(tls)
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+15847 /* "current" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+17547 /* "current" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp /* nCurrent */))))
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+15855 /* "max" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+17555 /* "max" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 4 /* nMax */))))
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+15859 /* "min" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+17559 /* "min" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 8 /* nMin */))))
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+15863 /* "recyclable" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+17563 /* "recyclable" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 12 /* nRecyclable */))))
tcl.XTcl_SetObjResult(tls, interp, pRet)
@@ -44547,15 +49061,15 @@ func test_pcache_stats(tls *crt.TLS, clientData ClientData, interp uintptr, objc
return 0
}
-func test_unlock_notify_cb(tls *crt.TLS, aArg uintptr, nArg int32) { /* test1.c:6505:13: */
+func test_unlock_notify_cb(tls *libc.TLS, aArg uintptr, nArg int32) { /* test1.c:6529:13: */
var ii int32
for ii = 0; ii < nArg; ii++ {
- tcl.XTcl_EvalEx(tls, *(*uintptr)(unsafe.Pointer(aArg + uintptr(ii)*8)), ts+11563 /* "unlock_notify" */, -1, 0x020000)
+ tcl.XTcl_EvalEx(tls, *(*uintptr)(unsafe.Pointer(aArg + uintptr(ii)*8)), ts+13194 /* "unlock_notify" */, -1, 0x020000)
}
}
// tclcmd: sqlite3_unlock_notify db
-func test_unlock_notify(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6517:26: */
+func test_unlock_notify(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6541:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44572,14 +49086,14 @@ func test_unlock_notify(tls *crt.TLS, clientData ClientData, interp uintptr, obj
return 1
}
rc = sqlite3.Xsqlite3_unlock_notify(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32)
+ f func(*libc.TLS, uintptr, int32)
}{test_unlock_notify_cb})), interp)
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
return 0
}
// tclcmd: sqlite3_wal_checkpoint db ?NAME?
-func test_wal_checkpoint(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6543:26: */
+func test_wal_checkpoint(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6567:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44589,7 +49103,7 @@ func test_wal_checkpoint(tls *crt.TLS, clientData ClientData, interp uintptr, ob
var rc int32
if (objc != 3) && (objc != 2) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15874 /* "DB ?NAME?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17574 /* "DB ?NAME?" */)
return 1
}
@@ -44620,7 +49134,7 @@ func test_wal_checkpoint(tls *crt.TLS, clientData ClientData, interp uintptr, ob
// are the values returned via the output parameters by wal_checkpoint_v2() -
// the number of frames in the log and the number of frames in the log
// that have been checkpointed.
-func test_wal_checkpoint_v2(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6587:26: */
+func test_wal_checkpoint_v2(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6611:26: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -44634,10 +49148,10 @@ func test_wal_checkpoint_v2(tls *crt.TLS, clientData ClientData, interp uintptr,
*(*int32)(unsafe.Pointer(bp + 92 /* nCkpt */)) = -555
var pRet uintptr
- *(*[5]uintptr)(unsafe.Pointer(bp + 48 /* aMode */)) = [5]uintptr{ts + 15884 /* "passive" */, ts + 15892 /* "full" */, ts + 15897 /* "restart" */, ts + 15905 /* "truncate" */, uintptr(0)}
+ *(*[5]uintptr)(unsafe.Pointer(bp + 48 /* aMode */)) = [5]uintptr{ts + 17584 /* "passive" */, ts + 17592 /* "full" */, ts + 17597 /* "restart" */, ts + 17605 /* "truncate" */, uintptr(0)}
if (objc != 3) && (objc != 4) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15914 /* "DB MODE ?NAME?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17614 /* "DB MODE ?NAME?" */)
return 1
}
@@ -44645,7 +49159,7 @@ func test_wal_checkpoint_v2(tls *crt.TLS, clientData ClientData, interp uintptr,
zDb = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
}
if (getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+32 /* &db */) != 0) || ((0 != tcl.XTcl_GetIntFromObj(tls, uintptr(0), *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+40 /* &eMode */)) &&
- (0 != tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+48 /* &aMode[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+15929 /* "mode" */, 0, bp+40 /* &eMode */))) {
+ (0 != tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+48 /* &aMode[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+17629 /* "mode" */, 0, bp+40 /* &eMode */))) {
return 1
}
@@ -44653,7 +49167,7 @@ func test_wal_checkpoint_v2(tls *crt.TLS, clientData ClientData, interp uintptr,
if (rc != 0) && (rc != 5) {
var zErrCode uintptr = sqlite3.Xsqlite3ErrName(tls, rc)
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, zErrCode, ts+15934 /* " - " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, zErrCode, ts+10102 /* " - " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */))), 0))
return 1
}
@@ -44672,7 +49186,7 @@ func test_wal_checkpoint_v2(tls *crt.TLS, clientData ClientData, interp uintptr,
}
// tclcmd: sqlite3_wal_autocheckpoint db VALUE
-func test_wal_autocheckpoint(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6643:26: */
+func test_wal_autocheckpoint(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6667:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -44682,7 +49196,7 @@ func test_wal_autocheckpoint(tls *crt.TLS, clientData ClientData, interp uintptr
// var iVal int32 at bp+8, 4
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15938 /* "DB VALUE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17634 /* "DB VALUE" */)
return 1
}
@@ -44709,8 +49223,8 @@ type LogCallback = struct {
}
// tclcmd: test_sqlite3_log ?SCRIPT?
-var logcallback = LogCallback{FpInterp: uintptr(0), FpObj: uintptr(0)} /* test1.c:6683:3 */
-func xLogcallback(tls *crt.TLS, unused uintptr, err int32, zMsg uintptr) { /* test1.c:6684:13: */
+var logcallback = LogCallback{FpInterp: uintptr(0), FpObj: uintptr(0)} /* test1.c:6707:3 */
+func xLogcallback(tls *libc.TLS, unused uintptr, err int32, zMsg uintptr) { /* test1.c:6708:13: */
var pNew uintptr = tcl.XTcl_DuplicateObj(tls, logcallback.FpObj)
(*Tcl_Obj)(unsafe.Pointer(pNew)).FrefCount++
tcl.XTcl_ListObjAppendElement(tls,
@@ -44719,36 +49233,36 @@ func xLogcallback(tls *crt.TLS, unused uintptr, err int32, zMsg uintptr) { /* te
tcl.XTcl_EvalObjEx(tls, logcallback.FpInterp, pNew, (0x020000 | 0x040000))
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pNew
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
}
-func test_sqlite3_log(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6694:26: */
+func test_sqlite3_log(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6718:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
if objc > 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+9746 /* "SCRIPT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+11405 /* "SCRIPT" */)
return 1
}
if logcallback.FpObj != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = logcallback.FpObj
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
logcallback.FpObj = uintptr(0)
logcallback.FpInterp = uintptr(0)
- sqlite3.Xsqlite3_config(tls, 16, crt.VaList(bp, uintptr(0), uintptr(0)))
+ sqlite3.Xsqlite3_config(tls, 16, libc.VaList(bp, uintptr(0), uintptr(0)))
}
if objc > 1 {
logcallback.FpObj = *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))
(*Tcl_Obj)(unsafe.Pointer(logcallback.FpObj)).FrefCount++
logcallback.FpInterp = interp
- sqlite3.Xsqlite3_config(tls, 16, crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ sqlite3.Xsqlite3_config(tls, 16, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{xLogcallback})), uintptr(0)))
}
return 0
@@ -44758,27 +49272,27 @@ func test_sqlite3_log(tls *crt.TLS, clientData ClientData, interp uintptr, objc
//
// Run a TCL command using its objProc interface. Throw an error if
// the command has no objProc interface.
-func runAsObjProc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6725:26: */
+func runAsObjProc(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6749:26: */
bp := tls.Alloc(112)
defer tls.Free(112)
// var cmdInfo Tcl_CmdInfo at bp+48, 64
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15947 /* "COMMAND ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17643 /* "COMMAND ..." */)
return 1
}
if !(tcl.XTcl_GetCommandInfo(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &cmdInfo */) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12711, /* "command not foun..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14361, /* "command not foun..." */
tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
if (*Tcl_CmdInfo)(unsafe.Pointer(bp+48 /* &cmdInfo */)).FobjProc == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, ts+15959, /* "command has no o..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+17655, /* "command has no o..." */
tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
- return (*(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer((bp + 48 /* &cmdInfo */ + 8 /* &.objProc */))))(tls, (*Tcl_CmdInfo)(unsafe.Pointer(bp+48 /* &cmdInfo */)).FobjClientData, interp, (objc - 1), (objv + uintptr(1)*8))
+ return (*(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer((bp + 48 /* &cmdInfo */ + 8 /* &.objProc */))))(tls, (*Tcl_CmdInfo)(unsafe.Pointer(bp+48 /* &cmdInfo */)).FobjClientData, interp, (objc - 1), (objv + uintptr(1)*8))
}
// WARNING: The following function, printExplainQueryPlan() is an exact
@@ -44787,7 +49301,7 @@ func runAsObjProc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// Argument pStmt is a prepared SQL statement. This function compiles
// an EXPLAIN QUERY PLAN command to report on the prepared statement,
// and prints the report to stdout using printf().
-func printExplainQueryPlan(tls *crt.TLS, pStmt uintptr) int32 { /* test1.c:6760:5: */
+func printExplainQueryPlan(tls *libc.TLS, pStmt uintptr) int32 { /* test1.c:6784:5: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -44802,7 +49316,7 @@ func printExplainQueryPlan(tls *crt.TLS, pStmt uintptr) int32 { /* test1.c:6760:
return 1
}
- zExplain = sqlite3.Xsqlite3_mprintf(tls, ts+234 /* "EXPLAIN QUERY PL..." */, crt.VaList(bp, zSql))
+ zExplain = sqlite3.Xsqlite3_mprintf(tls, ts+234 /* "EXPLAIN QUERY PL..." */, libc.VaList(bp, zSql))
if zExplain == uintptr(0) {
return 7
}
@@ -44819,13 +49333,13 @@ func printExplainQueryPlan(tls *crt.TLS, pStmt uintptr) int32 { /* test1.c:6760:
var iFrom int32 = sqlite3.Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pExplain */)), 2)
var zDetail uintptr = sqlite3.Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pExplain */)), 3)
- crt.Xprintf(tls, ts+15984 /* "%d %d %d %s\n" */, crt.VaList(bp+8, iSelectid, iOrder, iFrom, zDetail))
+ libc.Xprintf(tls, ts+17680 /* "%d %d %d %s\n" */, libc.VaList(bp+8, iSelectid, iOrder, iFrom, zDetail))
}
return sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(bp + 40 /* pExplain */)))
}
-func test_print_eqp(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6788:26: */
+func test_print_eqp(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6812:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -44833,7 +49347,7 @@ func test_print_eqp(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// var pStmt uintptr at bp, 8
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14574 /* "STMT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16285 /* "STMT" */)
return 1
}
if getStmtPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &pStmt */) != 0 {
@@ -44843,21 +49357,21 @@ func test_print_eqp(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// This is needed on Windows so that a test case using this
// function can open a read pipe and get the output of
// printExplainQueryPlan() immediately.
- crt.Xfflush(tls, crt.Xstdout)
+ libc.Xfflush(tls, libc.Xstdout)
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
return 0
}
// sqlite3_test_control VERB ARGS...
-func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6816:26: */
+func test_test_control(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6840:26: */
bp := tls.Alloc(184)
defer tls.Free(184)
*(*[4]Verb)(unsafe.Pointer(bp + 64 /* aVerb */)) = [4]Verb{
- {FzName: ts + 15997 /* "SQLITE_TESTCTRL_..." */, Fi: 18},
- {FzName: ts + 16029 /* "SQLITE_TESTCTRL_..." */, Fi: 24},
- {FzName: ts + 16057 /* "SQLITE_TESTCTRL_..." */, Fi: 25},
- {FzName: ts + 16082 /* "SQLITE_TESTCTRL_..." */, Fi: 17},
+ {FzName: ts + 17693 /* "SQLITE_TESTCTRL_..." */, Fi: 18},
+ {FzName: ts + 17725 /* "SQLITE_TESTCTRL_..." */, Fi: 24},
+ {FzName: ts + 17753 /* "SQLITE_TESTCTRL_..." */, Fi: 25},
+ {FzName: ts + 17778 /* "SQLITE_TESTCTRL_..." */, Fi: 17},
}
// var iVerb int32 at bp+128, 4
@@ -44865,12 +49379,12 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
var rc int32
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16117 /* "VERB ARGS..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17813 /* "VERB ARGS..." */)
return 1
}
rc = tcl.XTcl_GetIndexFromObjStruct(tls,
- interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+64 /* &aVerb[0] */, int32(unsafe.Sizeof(Verb{})), ts+16130 /* "VERB" */, 0, bp+128 /* &iVerb */)
+ interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+64 /* &aVerb[0] */, int32(unsafe.Sizeof(Verb{})), ts+17826 /* "VERB" */, 0, bp+128 /* &iVerb */)
if rc != 0 {
return rc
}
@@ -44887,7 +49401,7 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), bp+136 /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_test_control(tls, 17, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 136 /* db */))))
+ sqlite3.Xsqlite3_test_control(tls, 17, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(bp + 136 /* db */))))
break
}
case 18:
@@ -44895,13 +49409,13 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// var val int32 at bp+144, 4
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+16135 /* "ONOFF" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+17831 /* "ONOFF" */)
return 1
}
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+144 /* &val */) != 0 {
return 1
}
- sqlite3.Xsqlite3_test_control(tls, iFlag, crt.VaList(bp+8, *(*int32)(unsafe.Pointer(bp + 144 /* val */))))
+ sqlite3.Xsqlite3_test_control(tls, iFlag, libc.VaList(bp+8, *(*int32)(unsafe.Pointer(bp + 144 /* val */))))
break
}
@@ -44912,7 +49426,7 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// var db uintptr at bp+152, 8
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+16141 /* "DB LIMIT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+17837 /* "DB LIMIT" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), bp+152 /* &db */) != 0 {
@@ -44921,7 +49435,7 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+160 /* &val */) != 0 {
return 1
}
- sqlite3.Xsqlite3_test_control(tls, 24, crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 152 /* db */)), *(*int32)(unsafe.Pointer(bp + 160 /* val */))))
+ sqlite3.Xsqlite3_test_control(tls, 24, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(bp + 152 /* db */)), *(*int32)(unsafe.Pointer(bp + 160 /* val */))))
break
}
@@ -44935,7 +49449,7 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// var db uintptr at bp+168, 8
if objc != 6 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+16150 /* "DB dbName onOff ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+17846 /* "DB dbName onOff ..." */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), bp+168 /* &db */) != 0 {
@@ -44948,7 +49462,7 @@ func test_test_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(5)*8)), bp+180 /* &tnum */) != 0 {
return 1
}
- sqlite3.Xsqlite3_test_control(tls, 25, crt.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 168 /* db */)), zDbName, *(*int32)(unsafe.Pointer(bp + 176 /* onOff */)), *(*int32)(unsafe.Pointer(bp + 180 /* tnum */))))
+ sqlite3.Xsqlite3_test_control(tls, 25, libc.VaList(bp+32, *(*uintptr)(unsafe.Pointer(bp + 168 /* db */)), zDbName, *(*int32)(unsafe.Pointer(bp + 176 /* onOff */)), *(*int32)(unsafe.Pointer(bp + 180 /* tnum */))))
break
}
}
@@ -44963,12 +49477,6 @@ type Verb = struct {
_ [4]byte
}
-// Some versions of <linux/posix_types.h> define this macros.
-// It's easier to assume 8-bit bytes than to get CHAR_BIT.
-
-// fd_set for select and pselect.
-type fd_set1 = struct{ Ffds_bits [16]int64 } /* select.h:70:5 */
-
// Value to indicate that there is no limit.
// We can represent all limits.
@@ -45056,7 +49564,7 @@ type rusage = struct {
F__136 struct{ Fru_nivcsw int64 }
}
-func test_getrusage(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6906:26: */
+func test_getrusage(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:6930:26: */
bp := tls.Alloc(1216)
defer tls.Free(1216)
@@ -45064,12 +49572,12 @@ func test_getrusage(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// var r rusage at bp+48, 144
- crt.Xmemset(tls, bp+48 /* &r */, 0, uint64(unsafe.Sizeof(rusage{})))
- crt.Xgetrusage(tls, RUSAGE_SELF, bp+48 /* &r */)
+ libc.Xmemset(tls, bp+48 /* &r */, 0, uint64(unsafe.Sizeof(rusage{})))
+ libc.Xgetrusage(tls, RUSAGE_SELF, bp+48 /* &r */)
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([1024]int8{})), bp+192, /* &buf[0] */
- ts+16171, /* "ru_utime=%d.%06d..." */
- crt.VaList(bp, int32((*rusage)(unsafe.Pointer(bp+48 /* &r */)).Fru_utime.Ftv_sec), int32((*rusage)(unsafe.Pointer(bp+48 /* &r */)).Fru_utime.Ftv_usec),
+ ts+17867, /* "ru_utime=%d.%06d..." */
+ libc.VaList(bp, int32((*rusage)(unsafe.Pointer(bp+48 /* &r */)).Fru_utime.Ftv_sec), int32((*rusage)(unsafe.Pointer(bp+48 /* &r */)).Fru_utime.Ftv_usec),
int32((*rusage)(unsafe.Pointer(bp+48 /* &r */)).Fru_stime.Ftv_sec), int32((*rusage)(unsafe.Pointer(bp+48 /* &r */)).Fru_stime.Ftv_usec),
int32(*(*int64)(unsafe.Pointer(bp + 48 /* &r */ + 64 /* &.ru_minflt */))), int32(*(*int64)(unsafe.Pointer(bp + 48 /* &r */ + 72 /* &.ru_majflt */)))))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, bp+192 /* &buf[0] */, -1))
@@ -45081,7 +49589,7 @@ func test_getrusage(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// Enable or disable query optimizations using the sqlite3_test_control()
// interface. Disable if BOOLEAN is false and enable if BOOLEAN is true.
// OPT is the name of the optimization to be disabled.
-func optimization_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7186:26: */
+func optimization_control(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7210:26: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -45094,7 +49602,7 @@ func optimization_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc
var mask int32 = 0
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16231 /* "DB OPT BOOLEAN" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17927 /* "DB OPT BOOLEAN" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+56 /* &db */) != 0 {
@@ -45109,7 +49617,7 @@ func optimization_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc
Fmask int32
_ [4]byte
}{}))); i++ {
- if crt.Xstrcmp(tls, zOpt, aOpt[i].FzOptName) == 0 {
+ if libc.Xstrcmp(tls, zOpt, aOpt[i].FzOptName) == 0 {
mask = aOpt[i].Fmask
break
}
@@ -45122,18 +49630,18 @@ func optimization_control(tls *crt.TLS, clientData uintptr, interp uintptr, objc
Fmask int32
_ [4]byte
}{}))) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+16246, /* "unknown optimiza..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+17942, /* "unknown optimiza..." */
uintptr(0)))
for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aOpt)) / uint64(unsafe.Sizeof(struct {
FzOptName uintptr
Fmask int32
_ [4]byte
}{}))); i++ {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, ts+3368 /* " " */, aOpt[i].FzOptName, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, ts+4585 /* " " */, aOpt[i].FzOptName, uintptr(0)))
}
return 1
}
- sqlite3.Xsqlite3_test_control(tls, 15, crt.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */)), mask))
+ sqlite3.Xsqlite3_test_control(tls, 15, libc.VaList(bp+40, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */)), mask))
return 0
}
@@ -45142,25 +49650,25 @@ var aOpt = [13]struct {
Fmask int32
_ [4]byte
}{
- {FzOptName: ts + 16287 /* "all" */, Fmask: 0xffff},
- {FzOptName: ts + 16291 /* "none" */, Fmask: 0},
- {FzOptName: ts + 16296 /* "query-flattener" */, Fmask: 0x0001},
- {FzOptName: ts + 16312 /* "groupby-order" */, Fmask: 0x0004},
- {FzOptName: ts + 16326 /* "factor-constants" */, Fmask: 0x0008},
- {FzOptName: ts + 16343 /* "distinct-opt" */, Fmask: 0x0010},
- {FzOptName: ts + 16356 /* "cover-idx-scan" */, Fmask: 0x0020},
- {FzOptName: ts + 16371 /* "order-by-idx-joi..." */, Fmask: 0x0040},
- {FzOptName: ts + 16389 /* "transitive" */, Fmask: 0x0080},
- {FzOptName: ts + 16400 /* "omit-noop-join" */, Fmask: 0x0100},
- {FzOptName: ts + 16415 /* "stat4" */, Fmask: 0x0800},
- {FzOptName: ts + 16421 /* "skip-scan" */, Fmask: 0x4000},
- {FzOptName: ts + 16431 /* "push-down" */, Fmask: 0x1000},
-} /* test1.c:7200:5 */
+ {FzOptName: ts + 17983 /* "all" */, Fmask: 0xffff},
+ {FzOptName: ts + 17987 /* "none" */, Fmask: 0},
+ {FzOptName: ts + 17992 /* "query-flattener" */, Fmask: 0x0001},
+ {FzOptName: ts + 18008 /* "groupby-order" */, Fmask: 0x0004},
+ {FzOptName: ts + 18022 /* "factor-constants" */, Fmask: 0x0008},
+ {FzOptName: ts + 18039 /* "distinct-opt" */, Fmask: 0x0010},
+ {FzOptName: ts + 18052 /* "cover-idx-scan" */, Fmask: 0x0020},
+ {FzOptName: ts + 18067 /* "order-by-idx-joi..." */, Fmask: 0x0040},
+ {FzOptName: ts + 18085 /* "transitive" */, Fmask: 0x0080},
+ {FzOptName: ts + 18096 /* "omit-noop-join" */, Fmask: 0x0100},
+ {FzOptName: ts + 18111 /* "stat4" */, Fmask: 0x0800},
+ {FzOptName: ts + 18117 /* "skip-scan" */, Fmask: 0x4000},
+ {FzOptName: ts + 18127 /* "push-down" */, Fmask: 0x1000},
+} /* test1.c:7224:5 */
// load_static_extension DB NAME ...
//
// Load one or more statically linked extensions.
-func tclLoadStaticExtensionCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7247:26: */
+func tclLoadStaticExtensionCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7271:26: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -45172,7 +49680,7 @@ func tclLoadStaticExtensionCmd(tls *crt.TLS, clientData uintptr, interp uintptr,
var rc int32
*(*uintptr)(unsafe.Pointer(bp + 72 /* zErrMsg */)) = uintptr(0)
if objc < 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16441 /* "DB NAME ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18137 /* "DB NAME ..." */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+64 /* &db */) != 0 {
@@ -45184,7 +49692,7 @@ func tclLoadStaticExtensionCmd(tls *crt.TLS, clientData uintptr, interp uintptr,
FzExtName uintptr
FpInit uintptr
}{})))); i++ {
- if crt.Xstrcmp(tls, zName, aExtension[i].FzExtName) == 0 {
+ if libc.Xstrcmp(tls, zName, aExtension[i].FzExtName) == 0 {
break
}
}
@@ -45192,16 +49700,16 @@ func tclLoadStaticExtensionCmd(tls *crt.TLS, clientData uintptr, interp uintptr,
FzExtName uintptr
FpInit uintptr
}{})))) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+16453 /* "no such extensio..." */, zName, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+18149 /* "no such extensio..." */, zName, uintptr(0)))
return 1
}
if aExtension[i].FpInit != 0 {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aExtension)) + uintptr(i)*16 + 8 /* &.pInit */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), bp+72 /* &zErrMsg */, uintptr(0))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aExtension)) + uintptr(i)*16 + 8 /* &.pInit */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), bp+72 /* &zErrMsg */, uintptr(0))
} else {
rc = 0
}
if (rc != 0) || (*(*uintptr)(unsafe.Pointer(bp + 72 /* zErrMsg */)) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, ts+16473 /* "initialization o..." */, zName, ts+16492 /* " failed: " */, *(*uintptr)(unsafe.Pointer(bp + 72 /* zErrMsg */)),
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+18169 /* "initialization o..." */, zName, ts+18188 /* " failed: " */, *(*uintptr)(unsafe.Pointer(bp + 72 /* zErrMsg */)),
uintptr(0)))
sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* zErrMsg */)))
return 1
@@ -45210,42 +49718,43 @@ func tclLoadStaticExtensionCmd(tls *crt.TLS, clientData uintptr, interp uintptr,
return 0
}
-var aExtension = [20]struct {
+var aExtension = [21]struct {
FzExtName uintptr
FpInit uintptr
}{
- {FzExtName: ts + 16502 /* "amatch" */, FpInit: 0},
- {FzExtName: ts + 2713 /* "carray" */, FpInit: 0},
- {FzExtName: ts + 16509 /* "closure" */, FpInit: 0},
- {FzExtName: ts + 3357 /* "csv" */, FpInit: 0},
- {FzExtName: ts + 3370 /* "eval" */, FpInit: 0},
- {FzExtName: ts + 3448 /* "explain" */, FpInit: 0},
- {FzExtName: ts + 16517 /* "fileio" */, FpInit: 0},
- {FzExtName: ts + 3957 /* "fuzzer" */, FpInit: 0},
- {FzExtName: ts + 3981 /* "ieee754" */, FpInit: 0},
- {FzExtName: ts + 16524 /* "nextchar" */, FpInit: 0},
- {FzExtName: ts + 4493 /* "percentile" */, FpInit: 0},
- {FzExtName: ts + 4568 /* "prefixes" */, FpInit: 0},
- {FzExtName: ts + 4880 /* "regexp" */, FpInit: 0},
- {FzExtName: ts + 4887 /* "remember" */, FpInit: 0},
- {FzExtName: ts + 16533 /* "series" */, FpInit: 0},
- {FzExtName: ts + 16540 /* "spellfix" */, FpInit: 0},
- {FzExtName: ts + 16549 /* "totype" */, FpInit: 0},
- {FzExtName: ts + 6904 /* "unionvtab" */, FpInit: 0},
- {FzExtName: ts + 7446 /* "wholenumber" */, FpInit: 0},
- {FzExtName: ts + 7549 /* "zipfile" */, FpInit: 0},
-} /* test1.c:7280:5 */
+ {FzExtName: ts + 18198 /* "amatch" */, FpInit: 0},
+ {FzExtName: ts + 3862 /* "carray" */, FpInit: 0},
+ {FzExtName: ts + 18205 /* "closure" */, FpInit: 0},
+ {FzExtName: ts + 4506 /* "csv" */, FpInit: 0},
+ {FzExtName: ts + 4529 /* "decimal" */, FpInit: 0},
+ {FzExtName: ts + 4587 /* "eval" */, FpInit: 0},
+ {FzExtName: ts + 4665 /* "explain" */, FpInit: 0},
+ {FzExtName: ts + 18213 /* "fileio" */, FpInit: 0},
+ {FzExtName: ts + 5174 /* "fuzzer" */, FpInit: 0},
+ {FzExtName: ts + 5198 /* "ieee754" */, FpInit: 0},
+ {FzExtName: ts + 18220 /* "nextchar" */, FpInit: 0},
+ {FzExtName: ts + 5778 /* "percentile" */, FpInit: 0},
+ {FzExtName: ts + 5853 /* "prefixes" */, FpInit: 0},
+ {FzExtName: ts + 6165 /* "regexp" */, FpInit: 0},
+ {FzExtName: ts + 6172 /* "remember" */, FpInit: 0},
+ {FzExtName: ts + 18229 /* "series" */, FpInit: 0},
+ {FzExtName: ts + 18236 /* "spellfix" */, FpInit: 0},
+ {FzExtName: ts + 18245 /* "totype" */, FpInit: 0},
+ {FzExtName: ts + 8189 /* "unionvtab" */, FpInit: 0},
+ {FzExtName: ts + 8731 /* "wholenumber" */, FpInit: 0},
+ {FzExtName: ts + 8834 /* "zipfile" */, FpInit: 0},
+} /* test1.c:7305:5 */
// sorter_test_fakeheap BOOL
//
-func sorter_test_fakeheap(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7343:26: */
+func sorter_test_fakeheap(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7369:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
// var bArg int32 at bp, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16556 /* "BOOL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18252 /* "BOOL" */)
return 1
}
@@ -45255,10 +49764,10 @@ func sorter_test_fakeheap(tls *crt.TLS, clientData uintptr, interp uintptr, objc
if *(*int32)(unsafe.Pointer(bp /* bArg */)) != 0 {
if sqlite3.Xsqlite3Config.FpHeap == uintptr(0) {
- sqlite3.Xsqlite3Config.FpHeap = crt.UintptrFromInt64(int64(-1))
+ sqlite3.Xsqlite3Config.FpHeap = libc.UintptrFromInt64(int64(-1))
}
} else {
- if sqlite3.Xsqlite3Config.FpHeap == (crt.UintptrFromInt64(int64(-1))) {
+ if sqlite3.Xsqlite3Config.FpHeap == (libc.UintptrFromInt64(int64(-1))) {
sqlite3.Xsqlite3Config.FpHeap = uintptr(0)
}
}
@@ -45275,7 +49784,7 @@ func sorter_test_fakeheap(tls *crt.TLS, clientData uintptr, interp uintptr, objc
//
// Then execute statement $SQL2. Check that the statement returns the same
// set of integers in the same order as in the previous step (using $SQL1).
-func sorter_test_sort4_helper(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7383:26: */
+func sorter_test_sort4_helper(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7409:26: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -45300,7 +49809,7 @@ func sorter_test_sort4_helper(tls *crt.TLS, clientData uintptr, interp uintptr,
if !(objc != 5) {
goto __1
}
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16561 /* "DB SQL1 NSTEP SQ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18257 /* "DB SQL1 NSTEP SQ..." */)
return 1
__1:
;
@@ -45338,7 +49847,7 @@ __5:
if !(a != sqlite3.Xsqlite3_column_int(tls, *(*uintptr)(unsafe.Pointer(bp + 72 /* pStmt */)), iB)) {
goto __8
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+16580 /* "data error: (a!=..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+18276 /* "data error: (a!=..." */, 0))
return 1
__8:
;
@@ -45391,14 +49900,14 @@ __14:
if !(iCksum1 != iCksum2) {
goto __15
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, ts+16599 /* "checksum mismatc..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, ts+18295 /* "checksum mismatc..." */, 0))
return 1
__15:
;
return 0
sql_error:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+16617 /* "sql error: " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+18313 /* "sql error: " */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 56 /* db */))), 0))
return 1
}
@@ -45413,7 +49922,7 @@ sql_error:
// 2 Jump based on an uninitialized variable
// 3 Read after free
// 4 Panic
-func test_bad_behavior(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7586:26: */
+func test_bad_behavior(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7612:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -45426,7 +49935,7 @@ func test_bad_behavior(tls *crt.TLS, clientData ClientData, interp uintptr, objc
var a uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16629 /* "TYPE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18325 /* "TYPE" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &iType */) != 0 {
@@ -45451,17 +49960,17 @@ func test_bad_behavior(tls *crt.TLS, clientData ClientData, interp uintptr, objc
}
case 3:
{
- a = crt.Xmalloc(tls, (uint64(unsafe.Sizeof(int32(0))) * uint64(10)))
+ a = libc.Xmalloc(tls, (uint64(unsafe.Sizeof(int32(0))) * uint64(10)))
for j = 0; j < 10; j++ {
*(*int32)(unsafe.Pointer(a + uintptr(j)*4)) = j
}
- crt.Xfree(tls, a)
+ libc.Xfree(tls, a)
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(a + uintptr(i)*4))))
break
}
case 4:
{
- tcl.XTcl_Panic(tls, ts+16634 /* "Deliberate panic" */, 0)
+ tcl.XTcl_Panic(tls, ts+18330 /* "Deliberate panic" */, 0)
break
}
}
@@ -45471,7 +49980,7 @@ func test_bad_behavior(tls *crt.TLS, clientData ClientData, interp uintptr, objc
// tclcmd: register_dbstat_vtab DB
//
// Cause the dbstat virtual table to be available on the connection DB
-func test_register_dbstat_vtab(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7636:26: */
+func test_register_dbstat_vtab(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7662:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -45494,7 +50003,7 @@ func test_register_dbstat_vtab(tls *crt.TLS, clientData uintptr, interp uintptr,
// tclcmd: sqlite3_db_config DB SETTING VALUE
//
// Invoke sqlite3_db_config() for one of the setting values.
-func test_sqlite3_db_config(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7670:26: */
+func test_sqlite3_db_config(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7696:26: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -45504,20 +50013,20 @@ func test_sqlite3_db_config(tls *crt.TLS, clientData uintptr, interp uintptr, ob
// var db uintptr at bp+16, 8
if (objc != 4) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16651 /* "DB SETTING [VALU..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18347 /* "DB SETTING [VALU..." */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+16 /* &db */) != 0 {
return 1
}
zSetting = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
- if sqlite3.Xsqlite3_strglob(tls, ts+16670 /* "SQLITE_*" */, zSetting) == 0 {
+ if sqlite3.Xsqlite3_strglob(tls, ts+18366 /* "SQLITE_*" */, zSetting) == 0 {
zSetting += uintptr(7)
}
- if sqlite3.Xsqlite3_strglob(tls, ts+16679 /* "DBCONFIG_*" */, zSetting) == 0 {
+ if sqlite3.Xsqlite3_strglob(tls, ts+18375 /* "DBCONFIG_*" */, zSetting) == 0 {
zSetting += uintptr(9)
}
- if sqlite3.Xsqlite3_strglob(tls, ts+16690 /* "ENABLE_*" */, zSetting) == 0 {
+ if sqlite3.Xsqlite3_strglob(tls, ts+18386 /* "ENABLE_*" */, zSetting) == 0 {
zSetting += uintptr(7)
}
for i = 0; i < (int32(uint64(unsafe.Sizeof(aSetting)) / uint64(unsafe.Sizeof(struct {
@@ -45525,7 +50034,7 @@ func test_sqlite3_db_config(tls *crt.TLS, clientData uintptr, interp uintptr, ob
FeVal int32
_ [4]byte
}{})))); i++ {
- if crt.Xstrcmp(tls, zSetting, aSetting[i].FzName) == 0 {
+ if libc.Xstrcmp(tls, zSetting, aSetting[i].FzName) == 0 {
break
}
}
@@ -45535,7 +50044,7 @@ func test_sqlite3_db_config(tls *crt.TLS, clientData uintptr, interp uintptr, ob
_ [4]byte
}{})))) {
tcl.XTcl_SetObjResult(tls, interp,
- tcl.XTcl_NewStringObj(tls, ts+16699 /* "unknown sqlite3_..." */, -1))
+ tcl.XTcl_NewStringObj(tls, ts+18395 /* "unknown sqlite3_..." */, -1))
return 1
}
if objc == 4 {
@@ -45545,7 +50054,7 @@ func test_sqlite3_db_config(tls *crt.TLS, clientData uintptr, interp uintptr, ob
} else {
*(*int32)(unsafe.Pointer(bp + 24 /* v */)) = -1
}
- sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), aSetting[i].FeVal, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 24 /* v */)), bp+24 /* &v */))
+ sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), aSetting[i].FeVal, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 24 /* v */)), bp+24 /* &v */))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, *(*int32)(unsafe.Pointer(bp + 24 /* v */))))
return 0
}
@@ -45555,24 +50064,24 @@ var aSetting = [14]struct {
FeVal int32
_ [4]byte
}{
- {FzName: ts + 16733 /* "FKEY" */, FeVal: 1002},
- {FzName: ts + 16738 /* "TRIGGER" */, FeVal: 1003},
- {FzName: ts + 16746 /* "FTS3_TOKENIZER" */, FeVal: 1004},
- {FzName: ts + 16761 /* "LOAD_EXTENSION" */, FeVal: 1005},
- {FzName: ts + 16776 /* "NO_CKPT_ON_CLOSE" */, FeVal: 1006},
- {FzName: ts + 16793 /* "QPSG" */, FeVal: 1007},
- {FzName: ts + 16798 /* "TRIGGER_EQP" */, FeVal: 1008},
- {FzName: ts + 16810 /* "RESET_DB" */, FeVal: 1009},
- {FzName: ts + 16819 /* "DEFENSIVE" */, FeVal: 1010},
- {FzName: ts + 16829 /* "WRITABLE_SCHEMA" */, FeVal: 1011},
- {FzName: ts + 16845 /* "LEGACY_ALTER_TAB..." */, FeVal: 1012},
- {FzName: ts + 16864 /* "DQS_DML" */, FeVal: 1013},
- {FzName: ts + 16872 /* "DQS_DDL" */, FeVal: 1014},
- {FzName: ts + 16880 /* "LEGACY_FILE_FORM..." */, FeVal: 1016},
-} /* test1.c:7679:5 */
+ {FzName: ts + 18429 /* "FKEY" */, FeVal: 1002},
+ {FzName: ts + 18434 /* "TRIGGER" */, FeVal: 1003},
+ {FzName: ts + 18442 /* "FTS3_TOKENIZER" */, FeVal: 1004},
+ {FzName: ts + 18457 /* "LOAD_EXTENSION" */, FeVal: 1005},
+ {FzName: ts + 18472 /* "NO_CKPT_ON_CLOSE" */, FeVal: 1006},
+ {FzName: ts + 18489 /* "QPSG" */, FeVal: 1007},
+ {FzName: ts + 18494 /* "TRIGGER_EQP" */, FeVal: 1008},
+ {FzName: ts + 18506 /* "RESET_DB" */, FeVal: 1009},
+ {FzName: ts + 18515 /* "DEFENSIVE" */, FeVal: 1010},
+ {FzName: ts + 18525 /* "WRITABLE_SCHEMA" */, FeVal: 1011},
+ {FzName: ts + 18541 /* "LEGACY_ALTER_TAB..." */, FeVal: 1012},
+ {FzName: ts + 18560 /* "DQS_DML" */, FeVal: 1013},
+ {FzName: ts + 18568 /* "DQS_DDL" */, FeVal: 1014},
+ {FzName: ts + 18576 /* "LEGACY_FILE_FORM..." */, FeVal: 1016},
+} /* test1.c:7705:5 */
// Change the name of the main database schema from "main" to "icecube".
-func test_dbconfig_maindbname_icecube(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7730:26: */
+func test_dbconfig_maindbname_icecube(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7756:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -45586,7 +50095,7 @@ func test_dbconfig_maindbname_icecube(tls *crt.TLS, clientData uintptr, interp u
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+8 /* &db */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */)), 1000, crt.VaList(bp, ts+16899 /* "icecube" */))
+ rc = sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* db */)), 1000, libc.VaList(bp, ts+18595 /* "icecube" */))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
return 0
}
@@ -45594,12 +50103,12 @@ func test_dbconfig_maindbname_icecube(tls *crt.TLS, clientData uintptr, interp u
}
// Usage: sqlite3_mmap_warm DB DBNAME
-func test_mmap_warm(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7753:26: */
+func test_mmap_warm(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7779:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
if (objc != 2) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16907 /* "DB ?DBNAME?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18603 /* "DB ?DBNAME?" */)
return 1
} else {
var rc int32
@@ -45619,6 +50128,41 @@ func test_mmap_warm(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
return int32(0)
}
+// Usage: test_write_db DB OFFSET DATA
+//
+// Obtain the sqlite3_file* object for the database file for the "main" db
+// of handle DB. Then invoke its xWrite method to write data DATA to offset
+// OFFSET.
+func test_write_db(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7812:26: */
+ bp := tls.Alloc(32)
+ defer tls.Free(32)
+
+ *(*uintptr)(unsafe.Pointer(bp /* db */)) = uintptr(0)
+ *(*Tcl_WideInt)(unsafe.Pointer(bp + 8 /* iOff */)) = int64(0)
+ var aData uintptr = uintptr(0)
+ *(*int32)(unsafe.Pointer(bp + 16 /* nData */)) = 0
+ *(*uintptr)(unsafe.Pointer(bp + 24 /* pFile */)) = uintptr(0)
+ var rc int32
+
+ if objc != 4 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18615 /* "DB OFFSET DATA" */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ if tcl.XTcl_GetWideIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+8 /* &iOff */) != 0 {
+ return 1
+ }
+ aData = tcl.XTcl_GetByteArrayFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+16 /* &nData */)
+
+ sqlite3.Xsqlite3_file_control(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+84 /* "main" */, 7, bp+24 /* &pFile */)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 24 /* pFile */)))).FpMethods + 24 /* &.xWrite */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pFile */)), aData, *(*int32)(unsafe.Pointer(bp + 16 /* nData */)), int64(*(*Tcl_WideInt)(unsafe.Pointer(bp + 8 /* iOff */))))
+
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
+ return 0
+}
+
// Usage: decode_hexdb TEXT
//
// Example: db deserialize [decode_hexdb $output_of_dbtotxt]
@@ -45626,7 +50170,7 @@ func test_mmap_warm(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// This routine returns a byte-array for an SQLite database file that
// is constructed from a text input which is the output of the "dbtotxt"
// utility.
-func test_decode_hexdb(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7788:26: */
+func test_decode_hexdb(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test1.c:7849:26: */
bp := tls.Alloc(296)
defer tls.Free(296)
@@ -45645,7 +50189,7 @@ func test_decode_hexdb(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// var x [16]uint32 at bp+232, 64
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16919 /* "HEXDB" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18630 /* "HEXDB" */)
return 1
}
zIn = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -45662,34 +50206,34 @@ func test_decode_hexdb(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
if a == uintptr(0) {
// var pgsz int32 at bp+220, 4
- rc = crt.X__isoc99_sscanf(tls, (zIn + uintptr(i)), ts+16925 /* "| size %d pagesi..." */, crt.VaList(bp, bp+216 /* &n */, bp+220 /* &pgsz */))
+ rc = libc.X__isoc99_sscanf(tls, (zIn + uintptr(i)), ts+18636 /* "| size %d pagesi..." */, libc.VaList(bp, bp+216 /* &n */, bp+220 /* &pgsz */))
if rc != 2 {
continue
}
if ((*(*int32)(unsafe.Pointer(bp + 220 /* pgsz */)) < 512) || (*(*int32)(unsafe.Pointer(bp + 220 /* pgsz */)) > 65536)) || ((*(*int32)(unsafe.Pointer(bp + 220 /* pgsz */)) & (*(*int32)(unsafe.Pointer(bp + 220 /* pgsz */)) - 1)) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, ts+16947 /* "bad 'pagesize' f..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, ts+18658 /* "bad 'pagesize' f..." */, uintptr(0)))
return 1
}
*(*int32)(unsafe.Pointer(bp + 216 /* n */)) = (((*(*int32)(unsafe.Pointer(bp + 216 /* n */)) + *(*int32)(unsafe.Pointer(bp + 220 /* pgsz */))) - 1) & ^(*(*int32)(unsafe.Pointer(bp + 220 /* pgsz */)) - 1)) // Round n up to the next multiple of pgsz
if *(*int32)(unsafe.Pointer(bp + 216 /* n */)) < 512 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+16968 /* "bad 'size' field" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+18679 /* "bad 'size' field" */, uintptr(0)))
return 1
}
- a = crt.Xmalloc(tls, uint64(*(*int32)(unsafe.Pointer(bp + 216 /* n */))))
+ a = libc.Xmalloc(tls, uint64(*(*int32)(unsafe.Pointer(bp + 216 /* n */))))
if a == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+1929 /* "out of memory" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+1929 /* "out of memory" */, uintptr(0)))
return 1
}
- crt.Xmemset(tls, a, 0, uint64(*(*int32)(unsafe.Pointer(bp + 216 /* n */))))
+ libc.Xmemset(tls, a, 0, uint64(*(*int32)(unsafe.Pointer(bp + 216 /* n */))))
continue
}
- rc = crt.X__isoc99_sscanf(tls, (zIn + uintptr(i)), ts+16985 /* "| page %d offset..." */, crt.VaList(bp+64, bp+224 /* &j */, bp+228 /* &k */))
+ rc = libc.X__isoc99_sscanf(tls, (zIn + uintptr(i)), ts+18696 /* "| page %d offset..." */, libc.VaList(bp+64, bp+224 /* &j */, bp+228 /* &k */))
if rc == 2 {
iOffset = *(*int32)(unsafe.Pointer(bp + 228 /* k */))
continue
}
- rc = crt.X__isoc99_sscanf(tls, (zIn + uintptr(i)), ts+17005, /* "| %d: %x %x %x %..." */
- crt.VaList(bp+80, bp+224 /* &j */, (bp+232 /* &x */ +uintptr(0)*4), (bp+232 /* &x */ +uintptr(1)*4), (bp+232 /* &x */ +uintptr(2)*4), (bp+232 /* &x */ +uintptr(3)*4), (bp+232 /* &x */ +uintptr(4)*4), (bp+232 /* &x */ +uintptr(5)*4), (bp+232 /* &x */ +uintptr(6)*4), (bp+232 /* &x */ +uintptr(7)*4),
+ rc = libc.X__isoc99_sscanf(tls, (zIn + uintptr(i)), ts+18716, /* "| %d: %x %x %x %..." */
+ libc.VaList(bp+80, bp+224 /* &j */, (bp+232 /* &x */ +uintptr(0)*4), (bp+232 /* &x */ +uintptr(1)*4), (bp+232 /* &x */ +uintptr(2)*4), (bp+232 /* &x */ +uintptr(3)*4), (bp+232 /* &x */ +uintptr(4)*4), (bp+232 /* &x */ +uintptr(5)*4), (bp+232 /* &x */ +uintptr(6)*4), (bp+232 /* &x */ +uintptr(7)*4),
(bp+232 /* &x */ +uintptr(8)*4), (bp+232 /* &x */ +uintptr(9)*4), (bp+232 /* &x */ +uintptr(10)*4), (bp+232 /* &x */ +uintptr(11)*4), (bp+232 /* &x */ +uintptr(12)*4), (bp+232 /* &x */ +uintptr(13)*4), (bp+232 /* &x */ +uintptr(14)*4), (bp+232 /* &x */ +uintptr(15)*4)))
if rc == 17 {
*(*int32)(unsafe.Pointer(bp + 228 /* k */)) = (iOffset + *(*int32)(unsafe.Pointer(bp + 224 /* j */)))
@@ -45703,301 +50247,317 @@ func test_decode_hexdb(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
}
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewByteArrayObj(tls, a, *(*int32)(unsafe.Pointer(bp + 216 /* n */))))
- crt.Xfree(tls, a)
+ libc.Xfree(tls, a)
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest1_Init(tls *crt.TLS, interp uintptr) int32 { /* test1.c:7860:5: */
+func Sqlitetest1_Init(tls *libc.TLS, interp uintptr) int32 { /* test1.c:7921:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd1)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateCommand(tls, interp, aCmd[i].FzName, aCmd[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateCommand(tls, interp, aCmd1[i].FzName, aCmd1[i].FxProc, uintptr(0), uintptr(0))
}
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd1)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd[i].FzName,
- aObjCmd[i].FxProc, aObjCmd[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd1[i].FzName,
+ aObjCmd1[i].FxProc, aObjCmd1[i].FclientData, uintptr(0))
}
- tcl.XTcl_LinkVar(tls, interp, ts+17059, /* "sqlite_search_co..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18770, /* "sqlite_search_co..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_search_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17079, /* "sqlite_found_cou..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18790, /* "sqlite_found_cou..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_found_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17098, /* "sqlite_sort_coun..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18809, /* "sqlite_sort_coun..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_sort_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17116, /* "sqlite3_max_blob..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18827, /* "sqlite3_max_blob..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_max_blobsize)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17137, /* "sqlite_like_coun..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18848, /* "sqlite_like_coun..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_like_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17155, /* "sqlite_interrupt..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18866, /* "sqlite_interrupt..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_interrupt_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17178, /* "sqlite_open_file..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18889, /* "sqlite_open_file..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_open_file_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17201, /* "sqlite_current_t..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18912, /* "sqlite_current_t..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_current_time)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17221, /* "sqlite3_xferopt_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18932, /* "sqlite3_xferopt_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_xferopt_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17243, /* "sqlite3_pager_re..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18954, /* "sqlite3_pager_re..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_pager_readdb_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17270, /* "sqlite3_pager_wr..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+18981, /* "sqlite3_pager_wr..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_pager_writedb_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17298, /* "sqlite3_pager_wr..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19009, /* "sqlite3_pager_wr..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_pager_writej_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17325, /* "unaligned_string..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19036, /* "unaligned_string..." */
uintptr(unsafe.Pointer(&unaligned_string_counter)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17350, /* "sqlite_last_need..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19061, /* "sqlite_last_need..." */
uintptr(unsafe.Pointer(&pzNeededCollation)), (4 | 0x80))
{
- tcl.XTcl_LinkVar(tls, interp, ts+17379, /* "sqlite_query_pla..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19090, /* "sqlite_query_pla..." */
uintptr(unsafe.Pointer(&query_plan)), (4 | 0x80))
}
- tcl.XTcl_LinkVar(tls, interp, ts+17397, /* "sqlite_opentemp_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19108, /* "sqlite_opentemp_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_opentemp_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17419, /* "sqlite_static_bi..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19130, /* "sqlite_static_bi..." */
uintptr(unsafe.Pointer(&sqlite_static_bind_value)), 4)
- tcl.XTcl_LinkVar(tls, interp, ts+17444, /* "sqlite_static_bi..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19155, /* "sqlite_static_bi..." */
uintptr(unsafe.Pointer(&sqlite_static_bind_nbyte)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17469, /* "sqlite_temp_dire..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19180, /* "sqlite_temp_dire..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_temp_directory)), 4)
- tcl.XTcl_LinkVar(tls, interp, ts+17491, /* "sqlite_data_dire..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19202, /* "sqlite_data_dire..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_data_directory)), 4)
- tcl.XTcl_LinkVar(tls, interp, ts+17513, /* "bitmask_size" */
+ tcl.XTcl_LinkVar(tls, interp, ts+19224, /* "bitmask_size" */
uintptr(unsafe.Pointer(&bitmask_size)), (1 | 0x80))
- tcl.XTcl_LinkVar(tls, interp, ts+17526, /* "longdouble_size" */
+ tcl.XTcl_LinkVar(tls, interp, ts+19237, /* "longdouble_size" */
uintptr(unsafe.Pointer(&longdouble_size)), (1 | 0x80))
- tcl.XTcl_LinkVar(tls, interp, ts+17542, /* "sqlite_sync_coun..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19253, /* "sqlite_sync_coun..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_sync_count)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+17560, /* "sqlite_fullsync_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+19271, /* "sqlite_fullsync_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_fullsync_count)), 1)
return 0
}
-var iZero int32 = 0 /* test1.c:7873:14 */
-var aCmd = [40]struct {
+var iZero int32 = 0 /* test1.c:7934:14 */
+var aCmd1 = [40]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 17582 /* "db_enter" */, FxProc: 0},
- {FzName: ts + 17591 /* "db_leave" */, FxProc: 0},
- {FzName: ts + 17600 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17620 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17642 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17663 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17683 /* "sqlite3_snprintf..." */, FxProc: 0},
- {FzName: ts + 17704 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17728 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17751 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17774 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17800 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17823 /* "sqlite3_mprintf_..." */, FxProc: 0},
- {FzName: ts + 17846 /* "sqlite3_snprintf..." */, FxProc: 0},
- {FzName: ts + 17867 /* "sqlite3_last_ins..." */, FxProc: 0},
- {FzName: ts + 17893 /* "sqlite3_exec_pri..." */, FxProc: 0},
- {FzName: ts + 17913 /* "sqlite3_exec_hex" */, FxProc: 0},
- {FzName: ts + 17930 /* "sqlite3_exec" */, FxProc: 0},
- {FzName: ts + 17943 /* "sqlite3_exec_nr" */, FxProc: 0},
- {FzName: ts + 17959 /* "sqlite3_get_tabl..." */, FxProc: 0},
- {FzName: ts + 17984 /* "sqlite3_close" */, FxProc: 0},
- {FzName: ts + 17998 /* "sqlite3_close_v2" */, FxProc: 0},
- {FzName: ts + 18015 /* "sqlite3_create_f..." */, FxProc: 0},
- {FzName: ts + 18039 /* "sqlite3_create_a..." */, FxProc: 0},
- {FzName: ts + 18064 /* "sqlite3_drop_mod..." */, FxProc: 0},
- {FzName: ts + 18085 /* "sqlite_register_..." */, FxProc: 0},
- {FzName: ts + 18115 /* "sqlite_abort" */, FxProc: 0},
- {FzName: ts + 18128 /* "sqlite_bind" */, FxProc: 0},
- {FzName: ts + 18140 /* "breakpoint" */, FxProc: 0},
- {FzName: ts + 18151 /* "sqlite3_key" */, FxProc: 0},
- {FzName: ts + 18163 /* "sqlite3_rekey" */, FxProc: 0},
- {FzName: ts + 18177 /* "sqlite_set_magic" */, FxProc: 0},
- {FzName: ts + 18194 /* "sqlite3_interrup..." */, FxProc: 0},
- {FzName: ts + 18212 /* "sqlite_delete_fu..." */, FxProc: 0},
- {FzName: ts + 18235 /* "sqlite_delete_co..." */, FxProc: 0},
- {FzName: ts + 18259 /* "sqlite3_get_auto..." */, FxProc: 0},
- {FzName: ts + 18282 /* "sqlite3_busy_tim..." */, FxProc: 0},
- {FzName: ts + 18303 /* "printf" */, FxProc: 0},
- {FzName: ts + 18310 /* "sqlite3IoTrace" */, FxProc: 0},
- {FzName: ts + 18325 /* "clang_sanitize_a..." */, FxProc: 0},
-} /* test1.c:7877:5 */
-var aObjCmd = [139]struct {
+ {FzName: ts + 19293 /* "db_enter" */, FxProc: 0},
+ {FzName: ts + 19302 /* "db_leave" */, FxProc: 0},
+ {FzName: ts + 19311 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19331 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19353 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19374 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19394 /* "sqlite3_snprintf..." */, FxProc: 0},
+ {FzName: ts + 19415 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19439 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19462 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19485 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19511 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19534 /* "sqlite3_mprintf_..." */, FxProc: 0},
+ {FzName: ts + 19557 /* "sqlite3_snprintf..." */, FxProc: 0},
+ {FzName: ts + 19578 /* "sqlite3_last_ins..." */, FxProc: 0},
+ {FzName: ts + 19604 /* "sqlite3_exec_pri..." */, FxProc: 0},
+ {FzName: ts + 19624 /* "sqlite3_exec_hex" */, FxProc: 0},
+ {FzName: ts + 19641 /* "sqlite3_exec" */, FxProc: 0},
+ {FzName: ts + 19654 /* "sqlite3_exec_nr" */, FxProc: 0},
+ {FzName: ts + 19670 /* "sqlite3_get_tabl..." */, FxProc: 0},
+ {FzName: ts + 19695 /* "sqlite3_close" */, FxProc: 0},
+ {FzName: ts + 19709 /* "sqlite3_close_v2" */, FxProc: 0},
+ {FzName: ts + 19726 /* "sqlite3_create_f..." */, FxProc: 0},
+ {FzName: ts + 19750 /* "sqlite3_create_a..." */, FxProc: 0},
+ {FzName: ts + 19775 /* "sqlite3_drop_mod..." */, FxProc: 0},
+ {FzName: ts + 19796 /* "sqlite_register_..." */, FxProc: 0},
+ {FzName: ts + 19826 /* "sqlite_abort" */, FxProc: 0},
+ {FzName: ts + 19839 /* "sqlite_bind" */, FxProc: 0},
+ {FzName: ts + 19851 /* "breakpoint" */, FxProc: 0},
+ {FzName: ts + 19862 /* "sqlite3_key" */, FxProc: 0},
+ {FzName: ts + 19874 /* "sqlite3_rekey" */, FxProc: 0},
+ {FzName: ts + 19888 /* "sqlite_set_magic" */, FxProc: 0},
+ {FzName: ts + 19905 /* "sqlite3_interrup..." */, FxProc: 0},
+ {FzName: ts + 19923 /* "sqlite_delete_fu..." */, FxProc: 0},
+ {FzName: ts + 19946 /* "sqlite_delete_co..." */, FxProc: 0},
+ {FzName: ts + 19970 /* "sqlite3_get_auto..." */, FxProc: 0},
+ {FzName: ts + 19993 /* "sqlite3_busy_tim..." */, FxProc: 0},
+ {FzName: ts + 20014 /* "printf" */, FxProc: 0},
+ {FzName: ts + 20021 /* "sqlite3IoTrace" */, FxProc: 0},
+ {FzName: ts + 20036 /* "clang_sanitize_a..." */, FxProc: 0},
+} /* test1.c:7938:5 */
+var aObjCmd1 = [155]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 18348 /* "sqlite3_db_confi..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18366 /* "bad_behavior" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 18379 /* "register_dbstat_..." */, FxProc: 0},
- {FzName: ts + 18400 /* "sqlite3_connecti..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18427 /* "intarray_addr" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18441 /* "int64array_addr" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18457 /* "doublearray_addr" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18474 /* "textarray_addr" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18489 /* "sqlite3_bind_int" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18506 /* "sqlite3_bind_zer..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18528 /* "sqlite3_bind_zer..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18552 /* "sqlite3_bind_int..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18571 /* "sqlite3_bind_dou..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18591 /* "sqlite3_bind_nul..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18609 /* "sqlite3_bind_tex..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18627 /* "sqlite3_bind_tex..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18647 /* "sqlite3_bind_blo..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18665 /* "sqlite3_bind_par..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18694 /* "sqlite3_bind_par..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18722 /* "sqlite3_bind_par..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18751 /* "sqlite3_clear_bi..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18774 /* "sqlite3_sleep" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18788 /* "sqlite3_errcode" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18804 /* "sqlite3_extended..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18829 /* "sqlite3_errmsg" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18844 /* "sqlite3_errmsg16" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18861 /* "sqlite3_open" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18874 /* "sqlite3_open16" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18889 /* "sqlite3_open_v2" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18905 /* "sqlite3_complete..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18924 /* "sqlite3_normaliz..." */, FxProc: 0, FclientData: uintptr(0)},
-
- {FzName: ts + 18942 /* "sqlite3_prepare" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18958 /* "sqlite3_prepare1..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18976 /* "sqlite3_prepare_..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 18995 /* "sqlite3_prepare_..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19014 /* "sqlite3_prepare_..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19038 /* "sqlite3_prepare1..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19059 /* "sqlite3_finalize" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19076 /* "sqlite3_stmt_sta..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19096 /* "sqlite3_reset" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19110 /* "sqlite3_expired" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19126 /* "sqlite3_transfer..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19152 /* "sqlite3_changes" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19168 /* "sqlite3_step" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19181 /* "sqlite3_sql" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19193 /* "sqlite3_expanded..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19214 /* "sqlite3_next_stm..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19232 /* "sqlite3_stmt_rea..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19254 /* "sqlite3_stmt_ise..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19277 /* "sqlite3_stmt_bus..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19295 /* "uses_stmt_journa..." */, FxProc: 0, FclientData: uintptr(0)},
-
- {FzName: ts + 19313 /* "sqlite3_release_..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19336 /* "sqlite3_db_relea..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19362 /* "sqlite3_db_cache..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19384 /* "sqlite3_system_e..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19405 /* "sqlite3_db_filen..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19425 /* "sqlite3_db_reado..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19445 /* "sqlite3_soft_hea..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19469 /* "sqlite3_soft_hea..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19495 /* "sqlite3_hard_hea..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19521 /* "sqlite3_thread_c..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19544 /* "sqlite3_pager_re..." */, FxProc: 0, FclientData: uintptr(0)},
-
- {FzName: ts + 19568 /* "sqlite3_load_ext..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19591 /* "sqlite3_enable_l..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19621 /* "sqlite3_extended..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19651 /* "sqlite3_limit" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19665 /* "dbconfig_maindbn..." */, FxProc: 0},
-
- {FzName: ts + 19693 /* "save_prng_state" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19709 /* "restore_prng_sta..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19728 /* "reset_prng_state" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19745 /* "prng_seed" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19755 /* "database_never_c..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19778 /* "database_may_be_..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19802 /* "optimization_con..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19823 /* "tcl_objproc" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20059 /* "sqlite3_db_confi..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20077 /* "bad_behavior" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 20090 /* "register_dbstat_..." */, FxProc: 0},
+ {FzName: ts + 20111 /* "sqlite3_connecti..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20138 /* "intarray_addr" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20152 /* "int64array_addr" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20168 /* "doublearray_addr" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20185 /* "textarray_addr" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20200 /* "sqlite3_bind_int" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20217 /* "sqlite3_bind_zer..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20239 /* "sqlite3_bind_zer..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20263 /* "sqlite3_bind_int..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20282 /* "sqlite3_bind_dou..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20302 /* "sqlite3_bind_nul..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20320 /* "sqlite3_bind_tex..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20338 /* "sqlite3_bind_tex..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20358 /* "sqlite3_bind_blo..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20376 /* "sqlite3_bind_par..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20405 /* "sqlite3_bind_par..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20433 /* "sqlite3_bind_par..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20462 /* "sqlite3_clear_bi..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20485 /* "sqlite3_sleep" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20499 /* "sqlite3_errcode" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20515 /* "sqlite3_extended..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20540 /* "sqlite3_errmsg" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20555 /* "sqlite3_errmsg16" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20572 /* "sqlite3_open" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20585 /* "sqlite3_open16" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20600 /* "sqlite3_open_v2" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20616 /* "sqlite3_complete..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20635 /* "sqlite3_normaliz..." */, FxProc: 0, FclientData: uintptr(0)},
+
+ {FzName: ts + 20653 /* "sqlite3_prepare" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20669 /* "sqlite3_prepare1..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20687 /* "sqlite3_prepare_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20706 /* "sqlite3_prepare_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20725 /* "sqlite3_prepare_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20749 /* "sqlite3_prepare1..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20770 /* "sqlite3_finalize" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20787 /* "sqlite3_stmt_sta..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20807 /* "sqlite3_reset" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20821 /* "sqlite3_expired" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20837 /* "sqlite3_transfer..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20863 /* "sqlite3_changes" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20879 /* "sqlite3_step" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20892 /* "sqlite3_sql" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20904 /* "sqlite3_expanded..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20925 /* "sqlite3_next_stm..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20943 /* "sqlite3_stmt_rea..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20965 /* "sqlite3_stmt_ise..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 20988 /* "sqlite3_stmt_bus..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21006 /* "uses_stmt_journa..." */, FxProc: 0, FclientData: uintptr(0)},
+
+ {FzName: ts + 21024 /* "sqlite3_release_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21047 /* "sqlite3_db_relea..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21073 /* "sqlite3_db_cache..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21095 /* "sqlite3_system_e..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21116 /* "sqlite3_db_filen..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21136 /* "sqlite3_db_reado..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21156 /* "sqlite3_soft_hea..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21180 /* "sqlite3_soft_hea..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21206 /* "sqlite3_hard_hea..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21232 /* "sqlite3_thread_c..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21255 /* "sqlite3_pager_re..." */, FxProc: 0, FclientData: uintptr(0)},
+
+ {FzName: ts + 21279 /* "sqlite3_load_ext..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21302 /* "sqlite3_enable_l..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21332 /* "sqlite3_extended..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21362 /* "sqlite3_limit" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21376 /* "dbconfig_maindbn..." */, FxProc: 0},
+
+ {FzName: ts + 21404 /* "save_prng_state" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21420 /* "restore_prng_sta..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21439 /* "reset_prng_state" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21456 /* "prng_seed" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21466 /* "extra_schema_che..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21486 /* "database_never_c..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21509 /* "database_may_be_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21533 /* "optimization_con..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21554 /* "tcl_objproc" */, FxProc: 0, FclientData: uintptr(0)},
// sqlite3_column_*() API
- {FzName: ts + 19835 /* "sqlite3_column_c..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19856 /* "sqlite3_data_cou..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19875 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19895 /* "sqlite3_column_b..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19915 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19937 /* "sqlite3_column_i..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 19958 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 19978 /* "sqlite3_column_n..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 19998 /* "sqlite3_column_i..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 20017 /* "sqlite3_column_b..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 20038 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: 0},
-
- {FzName: ts + 20062 /* "sqlite3_column_b..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 20085 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 20107 /* "sqlite3_column_n..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 20129 /* "add_alignment_te..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20159 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 20185 /* "sqlite3_create_c..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20213 /* "sqlite3_global_r..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20236 /* "working_64bit_in..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20254 /* "vfs_unlink_test" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20270 /* "vfs_initfail_tes..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20288 /* "vfs_unregister_a..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20307 /* "vfs_reregister_a..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20326 /* "file_control_tes..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20344 /* "file_control_las..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20372 /* "file_control_loc..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20400 /* "file_control_chu..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20428 /* "file_control_siz..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20455 /* "file_control_dat..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20481 /* "file_control_per..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20506 /* "file_control_pow..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20539 /* "file_control_vfs..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20560 /* "file_control_tem..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20586 /* "sqlite3_vfs_list" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20603 /* "sqlite3_create_f..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21566 /* "sqlite3_column_c..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21587 /* "sqlite3_data_cou..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21606 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21626 /* "sqlite3_column_b..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21646 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21668 /* "sqlite3_column_i..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21689 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21709 /* "sqlite3_column_n..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21729 /* "sqlite3_column_i..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21748 /* "sqlite3_column_b..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21769 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21793 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21822 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21848 /* "sqlite3_column_o..." */, FxProc: 0, FclientData: 0},
+
+ {FzName: ts + 21875 /* "sqlite3_column_b..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21898 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21920 /* "sqlite3_column_n..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21942 /* "add_alignment_te..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 21972 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 21998 /* "sqlite3_column_d..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 22029 /* "sqlite3_column_t..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 22057 /* "sqlite3_column_o..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 22086 /* "sqlite3_create_c..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22114 /* "sqlite3_global_r..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22137 /* "working_64bit_in..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22155 /* "vfs_unlink_test" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22171 /* "vfs_initfail_tes..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22189 /* "vfs_unregister_a..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22208 /* "vfs_reregister_a..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22227 /* "file_control_tes..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22245 /* "file_control_las..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22273 /* "file_control_loc..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22301 /* "file_control_chu..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22329 /* "file_control_siz..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22356 /* "file_control_dat..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22382 /* "file_control_per..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22407 /* "file_control_pow..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22440 /* "file_control_vfs..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22461 /* "file_control_tem..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22487 /* "sqlite3_vfs_list" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22504 /* "sqlite3_create_f..." */, FxProc: 0, FclientData: uintptr(0)},
// Functions from os.h
- {FzName: ts + 20630 /* "add_test_collate" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20647 /* "add_test_collate..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20671 /* "add_test_functio..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20689 /* "add_test_utf16bi..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20715 /* "sqlite3_test_err..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20735 /* "tcl_variable_typ..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20753 /* "sqlite3_enable_s..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20781 /* "sqlite3_shared_c..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20809 /* "sqlite3_libversi..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20835 /* "sqlite3_table_co..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20865 /* "sqlite3_blob_reo..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20885 /* "pcache_stats" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20898 /* "sqlite3_unlock_n..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20920 /* "sqlite3_wal_chec..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20943 /* "sqlite3_wal_chec..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20969 /* "sqlite3_wal_auto..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 20996 /* "test_sqlite3_log" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21013 /* "print_explain_qu..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21038 /* "sqlite3_test_con..." */, FxProc: 0},
- {FzName: ts + 21059 /* "getrusage" */, FxProc: 0},
- {FzName: ts + 21069 /* "load_static_exte..." */, FxProc: 0},
- {FzName: ts + 21091 /* "sorter_test_fake..." */, FxProc: 0},
- {FzName: ts + 21112 /* "sorter_test_sort..." */, FxProc: 0},
- {FzName: ts + 21137 /* "vfs_current_time..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21160 /* "sqlite3_delete_d..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21184 /* "atomic_batch_wri..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21203 /* "sqlite3_mmap_war..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21221 /* "sqlite3_config_s..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 21246 /* "decode_hexdb" */, FxProc: 0, FclientData: uintptr(0)},
-} /* test1.c:7925:5 */
-var bitmask_size int32 = (int32(uint64(unsafe.Sizeof(Bitmask(0))) * uint64(8))) /* test1.c:8143:14 */
-var longdouble_size int32 = int32(unsafe.Sizeof(float64(0))) /* test1.c:8144:14 */
-var query_plan uintptr = ts + 21259 /* "*** OBSOLETE VAR..." */ /* test1.c:8219:23 */
+ {FzName: ts + 22531 /* "add_test_collate" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22548 /* "add_test_collate..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22572 /* "add_test_functio..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22590 /* "add_test_utf16bi..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22616 /* "sqlite3_test_err..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22636 /* "tcl_variable_typ..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22654 /* "sqlite3_enable_s..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22682 /* "sqlite3_shared_c..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22710 /* "sqlite3_libversi..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22736 /* "sqlite3_table_co..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22766 /* "sqlite3_blob_reo..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22786 /* "pcache_stats" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22799 /* "sqlite3_unlock_n..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22821 /* "sqlite3_wal_chec..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22844 /* "sqlite3_wal_chec..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22870 /* "sqlite3_wal_auto..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22897 /* "test_sqlite3_log" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22914 /* "print_explain_qu..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 22939 /* "sqlite3_test_con..." */, FxProc: 0},
+ {FzName: ts + 22960 /* "getrusage" */, FxProc: 0},
+ {FzName: ts + 22970 /* "load_static_exte..." */, FxProc: 0},
+ {FzName: ts + 22992 /* "sorter_test_fake..." */, FxProc: 0},
+ {FzName: ts + 23013 /* "sorter_test_sort..." */, FxProc: 0},
+ {FzName: ts + 23038 /* "vfs_current_time..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23061 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23082 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23104 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23126 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23147 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23172 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23198 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23225 /* "sqlite3_snapshot..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23251 /* "sqlite3_delete_d..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23275 /* "atomic_batch_wri..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23294 /* "sqlite3_mmap_war..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23312 /* "sqlite3_config_s..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23337 /* "decode_hexdb" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 23350 /* "test_write_db" */, FxProc: 0, FclientData: uintptr(0)},
+} /* test1.c:7986:5 */
+var bitmask_size int32 = (int32(uint64(unsafe.Sizeof(Bitmask(0))) * uint64(8))) /* test1.c:8206:14 */
+var longdouble_size int32 = int32(unsafe.Sizeof(float64(0))) /* test1.c:8207:14 */
+var query_plan uintptr = ts + 23364 /* "*** OBSOLETE VAR..." */ /* test1.c:8282:23 */
// Page size and reserved size used for testing.
var test_pagesize int32 = 1024 /* test2.c:31:12 */
// Dummy page reinitializer
-func pager_test_reiniter(tls *crt.TLS, pNotUsed uintptr) { /* test2.c:36:13: */
+func pager_test_reiniter(tls *libc.TLS, pNotUsed uintptr) { /* test2.c:36:13: */
return
}
// Usage: pager_open FILENAME N-PAGE
//
// Open a new pager
-func pager_open(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:45:26: */
+func pager_open(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:45:26: */
bp := tls.Alloc(192)
defer tls.Free(192)
- // var pageSize u321 at bp+88, 4
+ // var pageSize u322 at bp+88, 4
// var pPager uintptr at bp+80, 8
@@ -46007,8 +50567,8 @@ func pager_open(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// var zBuf [100]int8 at bp+92, 100
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21285 /* " FILENAME N-PAGE..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23390 /* " FILENAME N-PAGE..." */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+72 /* &nPage */) != 0 {
@@ -46016,37 +50576,37 @@ func pager_open(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
}
rc = sqlite3.Xsqlite3PagerOpen(tls, sqlite3.Xsqlite3_vfs_find(tls, uintptr(0)), bp+80 /* &pPager */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), 0, 0,
((0x00000002 | 0x00000004) | 0x00000100),
- *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{pager_test_reiniter})))
+ *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{pager_test_reiniter})))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
sqlite3.Xsqlite3PagerSetCachesize(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pPager */)), *(*int32)(unsafe.Pointer(bp + 72 /* nPage */)))
- *(*u321)(unsafe.Pointer(bp + 88 /* pageSize */)) = u321(test_pagesize)
+ *(*u322)(unsafe.Pointer(bp + 88 /* pageSize */)) = u322(test_pagesize)
sqlite3.Xsqlite3PagerSetPagesize(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pPager */)), bp+88 /* &pageSize */, -1)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+92 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 80 /* pPager */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+92 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+92 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 80 /* pPager */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+92 /* &zBuf[0] */, 0))
return 0
}
// Usage: pager_close ID
//
// Close the given pager.
-func pager_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:82:26: */
+func pager_close(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:82:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pPager uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerClose(tls, pPager, uintptr(0))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46055,21 +50615,21 @@ func pager_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// Usage: pager_rollback ID
//
// Rollback changes
-func pager_rollback(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:109:26: */
+func pager_rollback(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:109:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pPager uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerRollback(tls, pPager)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46078,26 +50638,26 @@ func pager_rollback(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, a
// Usage: pager_commit ID
//
// Commit all changes
-func pager_commit(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:136:26: */
+func pager_commit(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:136:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
var pPager uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerCommitPhaseOne(tls, pPager, uintptr(0), 0)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
rc = sqlite3.Xsqlite3PagerCommitPhaseTwo(tls, pPager)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46106,21 +50666,21 @@ func pager_commit(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, arg
// Usage: pager_stmt_begin ID
//
// Start a new checkpoint.
-func pager_stmt_begin(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:168:26: */
+func pager_stmt_begin(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:168:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pPager uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerOpenSavepoint(tls, pPager, 1)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46129,22 +50689,22 @@ func pager_stmt_begin(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// Usage: pager_stmt_rollback ID
//
// Rollback changes to a checkpoint
-func pager_stmt_rollback(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:195:26: */
+func pager_stmt_rollback(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:195:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pPager uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerSavepoint(tls, pPager, 2, 0)
sqlite3.Xsqlite3PagerSavepoint(tls, pPager, 1, 0)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46153,21 +50713,21 @@ func pager_stmt_rollback(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
// Usage: pager_stmt_commit ID
//
// Commit changes to a checkpoint
-func pager_stmt_commit(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:223:26: */
+func pager_stmt_commit(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:223:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pPager uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerSavepoint(tls, pPager, 1, 0)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46176,7 +50736,7 @@ func pager_stmt_commit(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
// Usage: pager_stats ID
//
// Return pager statistics.
-func pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:250:26: */
+func pager_stats(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:250:26: */
bp := tls.Alloc(140)
defer tls.Free(140)
@@ -46184,8 +50744,8 @@ func pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
var i int32
var a uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -46194,21 +50754,21 @@ func pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// var zBuf [100]int8 at bp+40, 100
tcl.XTcl_AppendElement(tls, interp, zName[i])
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+40 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, *(*int32)(unsafe.Pointer(a + uintptr(i)*4))))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+40 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(a + uintptr(i)*4))))
tcl.XTcl_AppendElement(tls, interp, bp+40 /* &zBuf[0] */)
}
return 0
}
var zName = [9]uintptr{
- ts + 21308 /* "ref" */, ts + 21312 /* "page" */, ts + 15855 /* "max" */, ts + 9654 /* "size" */, ts + 21317 /* "state" */, ts + 21323, /* "err" */
- ts + 21327 /* "hit" */, ts + 21331 /* "miss" */, ts + 21336, /* "ovfl" */
+ ts + 23413 /* "ref" */, ts + 23417 /* "page" */, ts + 17555 /* "max" */, ts + 11313 /* "size" */, ts + 10015 /* "state" */, ts + 23422, /* "err" */
+ ts + 23426 /* "hit" */, ts + 23430 /* "miss" */, ts + 23435, /* "ovfl" */
} /* test2.c:266:17 */
// Usage: pager_pagecount ID
//
// Return the size of the database file.
-func pager_pagecount(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:283:26: */
+func pager_pagecount(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:283:26: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -46218,21 +50778,21 @@ func pager_pagecount(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var nPage int32 at bp+56, 4
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
sqlite3.Xsqlite3PagerPagecount(tls, pPager, bp+56 /* &nPage */)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+60 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 56 /* nPage */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+60 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+60 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 56 /* nPage */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+60 /* &zBuf[0] */, 0))
return 0
}
// Usage: page_get ID PGNO
//
// Return a pointer to a page from the database.
-func page_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:309:26: */
+func page_get(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:309:26: */
bp := tls.Alloc(188)
defer tls.Free(188)
@@ -46244,8 +50804,8 @@ func page_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv ui
var rc int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21341 /* " ID PGNO\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23440 /* " ID PGNO\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -46257,11 +50817,11 @@ func page_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv ui
rc = sqlite3.Xsqlite3PagerGet(tls, pPager, uint32(*(*int32)(unsafe.Pointer(bp + 72 /* pgno */))), bp+80 /* &pPage */, 0)
}
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+88 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 80 /* pPage */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+88 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+88 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 80 /* pPage */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+88 /* &zBuf[0] */, 0))
return 0
}
@@ -46269,7 +50829,7 @@ func page_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv ui
//
// Return a pointer to a page if the page is already in cache.
// If not in cache, return an empty string.
-func page_lookup(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:346:26: */
+func page_lookup(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:346:26: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -46280,8 +50840,8 @@ func page_lookup(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// var pgno int32 at bp+56, 4
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21341 /* " ID PGNO\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23440 /* " ID PGNO\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -46290,14 +50850,14 @@ func page_lookup(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
}
pPage = sqlite3.Xsqlite3PagerLookup(tls, pPager, uint32(*(*int32)(unsafe.Pointer(bp + 56 /* pgno */))))
if pPage != 0 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+60 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+32, pPage))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+60 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+60 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+32, pPage))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+60 /* &zBuf[0] */, 0))
}
return 0
}
// Usage: pager_truncate ID PGNO
-func pager_truncate(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:374:26: */
+func pager_truncate(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:374:26: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -46305,8 +50865,8 @@ func pager_truncate(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, a
// var pgno int32 at bp+32, 4
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21341 /* " ID PGNO\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23440 /* " ID PGNO\"" */, 0))
return 1
}
pPager = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -46320,14 +50880,14 @@ func pager_truncate(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, a
// Usage: page_unref PAGE
//
// Drop a pointer to a page.
-func page_unref(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:399:26: */
+func page_unref(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:399:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
var pPage uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21351 /* " PAGE\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23450 /* " PAGE\"" */, 0))
return 1
}
pPage = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -46338,7 +50898,7 @@ func page_unref(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// Usage: page_read PAGE
//
// Return the content of a page
-func page_read(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:421:26: */
+func page_read(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:421:26: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -46346,20 +50906,20 @@ func page_read(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
var pPage uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21351 /* " PAGE\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23450 /* " PAGE\"" */, 0))
return 1
}
pPage = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
- crt.Xmemcpy(tls, bp+48 /* &zBuf[0] */, sqlite3.Xsqlite3PagerGetData(tls, pPage), uint64(unsafe.Sizeof([100]int8{})))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+48 /* &zBuf[0] */, 0))
+ libc.Xmemcpy(tls, bp+48 /* &zBuf[0] */, sqlite3.Xsqlite3PagerGetData(tls, pPage), uint64(unsafe.Sizeof([100]int8{})))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+48 /* &zBuf[0] */, 0))
return 0
}
// Usage: page_number PAGE
//
// Return the page number for a page.
-func page_number(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:445:26: */
+func page_number(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:445:26: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -46367,20 +50927,20 @@ func page_number(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
var pPage uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21351 /* " PAGE\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23450 /* " PAGE\"" */, 0))
return 1
}
pPage = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+56 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, sqlite3.Xsqlite3PagerPagenumber(tls, pPage)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+56 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+56 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, sqlite3.Xsqlite3PagerPagenumber(tls, pPage)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+56 /* &zBuf[0] */, 0))
return 0
}
// Usage: page_write PAGE DATA
//
// Write something into a page.
-func page_write(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:469:26: */
+func page_write(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:469:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -46388,18 +50948,18 @@ func page_write(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
var pData uintptr
var rc int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21358 /* " PAGE DATA\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23457 /* " PAGE DATA\"" */, 0))
return 1
}
pPage = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3PagerWrite(tls, pPage)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
pData = sqlite3.Xsqlite3PagerGetData(tls, pPage)
- crt.Xstrncpy(tls, pData, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), (uint64(test_pagesize - 1)))
+ libc.Xstrncpy(tls, pData, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), (uint64(test_pagesize - 1)))
*(*int8)(unsafe.Pointer(pData + uintptr((test_pagesize - 1)))) = int8(0)
return 0
}
@@ -46411,7 +50971,7 @@ func page_write(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// the next time the database is opened, SQLite will begin allocating
// new pages after N. If N is 2096 or bigger, this will test the
// ability of SQLite to write to large files.
-func fake_big_file(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:505:26: */
+func fake_big_file(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:505:26: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -46424,8 +50984,8 @@ func fake_big_file(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
var zFile uintptr
var nFile int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21370 /* " N-MEGABYTES FIL..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23469 /* " N-MEGABYTES FIL..." */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+80 /* &n */) != 0 {
@@ -46433,27 +50993,27 @@ func fake_big_file(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
}
pVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
- nFile = int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ nFile = int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
zFile = sqlite3.Xsqlite3_malloc(tls, (nFile + 2))
if zFile == uintptr(0) {
return 1
}
- crt.Xmemcpy(tls, zFile, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), (uint64(nFile + 1)))
+ libc.Xmemcpy(tls, zFile, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), (uint64(nFile + 1)))
*(*int8)(unsafe.Pointer(zFile + uintptr((nFile + 1)))) = int8(0)
rc = sqlite3.Xsqlite3OsOpenMalloc(tls, pVfs, zFile, bp+88, /* &fd */
((0x00000004 | 0x00000002) | 0x00000100), uintptr(0))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+21389 /* "open failed: " */, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+23488 /* "open failed: " */, sqlite3.Xsqlite3ErrName(tls, rc), 0))
sqlite3.Xsqlite3_free(tls, zFile)
return 1
}
offset = i64(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))
offset = offset * (int64(1024 * 1024))
- rc = sqlite3.Xsqlite3OsWrite(tls, *(*uintptr)(unsafe.Pointer(bp + 88 /* fd */)), ts+21403 /* "Hello, World!" */, 14, offset)
+ rc = sqlite3.Xsqlite3OsWrite(tls, *(*uintptr)(unsafe.Pointer(bp + 88 /* fd */)), ts+23502 /* "Hello, World!" */, 14, offset)
sqlite3.Xsqlite3OsCloseFree(tls, *(*uintptr)(unsafe.Pointer(bp + 88 /* fd */)))
sqlite3.Xsqlite3_free(tls, zFile)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, ts+21417 /* "write failed: " */, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, ts+23516 /* "write failed: " */, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -46462,7 +51022,7 @@ func fake_big_file(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
// test_control_pending_byte PENDING_BYTE
//
// Set the PENDING_BYTE using the sqlite3_test_control() interface.
-func testPendingByte(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:558:26: */
+func testPendingByte(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:558:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -46470,14 +51030,14 @@ func testPendingByte(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21432 /* " PENDING-BYTE\"" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23531 /* " PENDING-BYTE\"" */, uintptr(0)))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+40 /* &pbyte */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_test_control(tls, 11, crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 40 /* pbyte */))))
+ rc = sqlite3.Xsqlite3_test_control(tls, 11, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 40 /* pbyte */))))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
return 0
}
@@ -46486,7 +51046,7 @@ func testPendingByte(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
var faultSimInterp uintptr = uintptr(0) /* test2.c:580:19 */
var faultSimScriptSize int32 = 0 /* test2.c:581:12 */
var faultSimScript uintptr /* test2.c:582:13: */
-func faultSimCallback(tls *crt.TLS, x int32) int32 { /* test2.c:583:12: */
+func faultSimCallback(tls *libc.TLS, x int32) int32 { /* test2.c:583:12: */
bp := tls.Alloc(38)
defer tls.Free(38)
@@ -46496,7 +51056,7 @@ func faultSimCallback(tls *crt.TLS, x int32) int32 { /* test2.c:583:12: */
var isNeg int32
var rc int32
if x == 0 {
- crt.Xmemcpy(tls, (faultSimScript + uintptr(faultSimScriptSize)), ts+12045 /* "0" */, uint64(2))
+ libc.Xmemcpy(tls, (faultSimScript + uintptr(faultSimScriptSize)), ts+13695 /* "0" */, uint64(2))
} else {
// Convert x to text without using any sqlite3 routines
if x < 0 {
@@ -46523,16 +51083,16 @@ func faultSimCallback(tls *crt.TLS, x int32) int32 { /* test2.c:583:12: */
__3:
;
if isNeg != 0 {
- *(*int8)(unsafe.Pointer(bp + 8 /* &zInt[0] */ + uintptr(crt.PostDecInt32(&i, 1)))) = int8('-')
+ *(*int8)(unsafe.Pointer(bp + 8 /* &zInt[0] */ + uintptr(libc.PostDecInt32(&i, 1)))) = int8('-')
}
- crt.Xmemcpy(tls, (faultSimScript + uintptr(faultSimScriptSize)), ((bp + 8 /* &zInt[0] */ + uintptr(i)) + uintptr(1)), (uint64(unsafe.Sizeof([30]int8{})) - uint64(i)))
+ libc.Xmemcpy(tls, (faultSimScript + uintptr(faultSimScriptSize)), ((bp + 8 /* &zInt[0] */ + uintptr(i)) + uintptr(1)), (uint64(unsafe.Sizeof([30]int8{})) - uint64(i)))
}
rc = tcl.XTcl_Eval(tls, faultSimInterp, faultSimScript)
if rc != 0 {
- crt.Xfprintf(tls, crt.Xstderr, ts+21447 /* "fault simulator ..." */, crt.VaList(bp, faultSimScript))
+ libc.Xfprintf(tls, libc.Xstderr, ts+23546 /* "fault simulator ..." */, libc.VaList(bp, faultSimScript))
rc = 1
} else {
- rc = crt.Xatoi(tls, tcl.XTcl_GetStringResult(tls, faultSimInterp))
+ rc = libc.Xatoi(tls, tcl.XTcl_GetStringResult(tls, faultSimInterp))
}
tcl.XTcl_ResetResult(tls, faultSimInterp)
return rc
@@ -46543,7 +51103,7 @@ func faultSimCallback(tls *crt.TLS, x int32) int32 { /* test2.c:583:12: */
// Arrange to invoke SCRIPT with the integer argument to sqlite3FaultSim()
// appended, whenever sqlite3FaultSim() is called. Or, if SCRIPT is the
// empty string, cancel the sqlite3FaultSim() callback.
-func faultInstallCmd(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:623:26: */
+func faultInstallCmd(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:623:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -46551,32 +51111,32 @@ func faultInstallCmd(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
var nScript int32
var rc int32
if (argc != 1) && (argc != 2) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21483 /* " SCRIPT\"" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23582 /* " SCRIPT\"" */, uintptr(0)))
}
if argc == 2 {
zScript = *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))
} else {
zScript = ts + 488 /* "" */
}
- nScript = int32(crt.Xstrlen(tls, zScript))
+ nScript = int32(libc.Xstrlen(tls, zScript))
if faultSimScript != 0 {
- crt.Xfree(tls, faultSimScript)
+ libc.Xfree(tls, faultSimScript)
faultSimScript = uintptr(0)
}
if nScript == 0 {
- rc = sqlite3.Xsqlite3_test_control(tls, 9, crt.VaList(bp+32, 0))
+ rc = sqlite3.Xsqlite3_test_control(tls, 9, libc.VaList(bp+32, 0))
} else {
- faultSimScript = crt.Xmalloc(tls, (uint64(nScript + 100)))
+ faultSimScript = libc.Xmalloc(tls, (uint64(nScript + 100)))
if faultSimScript == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, ts+1929 /* "out of memory" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, ts+1929 /* "out of memory" */, uintptr(0)))
return 1
}
- crt.Xmemcpy(tls, faultSimScript, zScript, uint64(nScript))
+ libc.Xmemcpy(tls, faultSimScript, zScript, uint64(nScript))
*(*int8)(unsafe.Pointer(faultSimScript + uintptr(nScript))) = int8(' ')
faultSimScriptSize = (nScript + 1)
faultSimInterp = interp
- rc = sqlite3.Xsqlite3_test_control(tls, 9, crt.VaList(bp+56, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, int32) int32 }{faultSimCallback}))))
+ rc = sqlite3.Xsqlite3_test_control(tls, 9, libc.VaList(bp+56, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, int32) int32 }{faultSimCallback}))))
}
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
return 0
@@ -46586,7 +51146,7 @@ func faultInstallCmd(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Invoke the SQLITE_TESTCTRL_BITVEC_TEST operator on test_control.
// See comments on sqlite3BitvecBuiltinTest() for additional information.
-func testBitvecBuiltinTest(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:666:26: */
+func testBitvecBuiltinTest(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test2.c:666:26: */
bp := tls.Alloc(452)
defer tls.Free(452)
@@ -46598,8 +51158,8 @@ func testBitvecBuiltinTest(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
var z uintptr
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21492 /* " SIZE PROGRAM\"" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23591 /* " SIZE PROGRAM\"" */, uintptr(0)))
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+48 /* &sz */) != 0 {
return 1
@@ -46612,72 +51172,69 @@ func testBitvecBuiltinTest(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc i
if int32(*(*int8)(unsafe.Pointer(z))) == 0 {
break
}
- *(*int32)(unsafe.Pointer(bp + 52 /* &aProg[0] */ + uintptr(crt.PostIncInt32(&nProg, 1))*4)) = crt.Xatoi(tls, z)
+ *(*int32)(unsafe.Pointer(bp + 52 /* &aProg[0] */ + uintptr(libc.PostIncInt32(&nProg, 1))*4)) = libc.Xatoi(tls, z)
for (int32(sqlite3.Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z)))]) & 0x04) != 0 {
z++
}
}
*(*int32)(unsafe.Pointer(bp + 52 /* &aProg[0] */ + uintptr(nProg)*4)) = 0
- rc = sqlite3.Xsqlite3_test_control(tls, 8, crt.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 48 /* sz */)), bp+52 /* &aProg[0] */))
+ rc = sqlite3.Xsqlite3_test_control(tls, 8, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(bp + 48 /* sz */)), bp+52 /* &aProg[0] */))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest2_Init(tls *crt.TLS, interp uintptr) int32 { /* test2.c:697:5: */
+func Sqlitetest2_Init(tls *libc.TLS, interp uintptr) int32 { /* test2.c:697:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd1)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd2)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateCommand(tls, interp, aCmd1[i].FzName, aCmd1[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateCommand(tls, interp, aCmd2[i].FzName, aCmd2[i].FxProc, uintptr(0), uintptr(0))
}
- tcl.XTcl_LinkVar(tls, interp, ts+21507, /* "sqlite_io_error_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+23606, /* "sqlite_io_error_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_io_error_pending)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+21531, /* "sqlite_io_error_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+23630, /* "sqlite_io_error_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_io_error_persist)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+21555, /* "sqlite_io_error_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+23654, /* "sqlite_io_error_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_io_error_hit)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+21575, /* "sqlite_io_error_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+23674, /* "sqlite_io_error_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_io_error_hardhit)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+21599, /* "sqlite_diskfull_..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+23698, /* "sqlite_diskfull_..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_diskfull_pending)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+21623, /* "sqlite_diskfull" */
+ tcl.XTcl_LinkVar(tls, interp, ts+23722, /* "sqlite_diskfull" */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3_diskfull)), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+21639, /* "sqlite_pending_b..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+23738, /* "sqlite_pending_b..." */
uintptr(unsafe.Pointer(&sqlite3.Xsqlite3PendingByte)), (1 | 0x80))
return 0
}
-var aCmd1 = [20]struct {
+var aCmd2 = [20]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 21659 /* "pager_open" */, FxProc: 0},
- {FzName: ts + 21670 /* "pager_close" */, FxProc: 0},
- {FzName: ts + 21682 /* "pager_commit" */, FxProc: 0},
- {FzName: ts + 21695 /* "pager_rollback" */, FxProc: 0},
- {FzName: ts + 21710 /* "pager_stmt_begin" */, FxProc: 0},
- {FzName: ts + 21727 /* "pager_stmt_commi..." */, FxProc: 0},
- {FzName: ts + 21745 /* "pager_stmt_rollb..." */, FxProc: 0},
- {FzName: ts + 21765 /* "pager_stats" */, FxProc: 0},
- {FzName: ts + 21777 /* "pager_pagecount" */, FxProc: 0},
- {FzName: ts + 21793 /* "page_get" */, FxProc: 0},
- {FzName: ts + 21802 /* "page_lookup" */, FxProc: 0},
- {FzName: ts + 21814 /* "page_unref" */, FxProc: 0},
- {FzName: ts + 21825 /* "page_read" */, FxProc: 0},
- {FzName: ts + 21835 /* "page_write" */, FxProc: 0},
- {FzName: ts + 21846 /* "page_number" */, FxProc: 0},
- {FzName: ts + 21858 /* "pager_truncate" */, FxProc: 0},
- {FzName: ts + 21873 /* "fake_big_file" */, FxProc: 0},
- {FzName: ts + 21887 /* "sqlite3BitvecBui..." */, FxProc: 0},
- {FzName: ts + 21912 /* "sqlite3_test_con..." */, FxProc: 0},
- {FzName: ts + 21946 /* "sqlite3_test_con..." */, FxProc: 0},
+ {FzName: ts + 23758 /* "pager_open" */, FxProc: 0},
+ {FzName: ts + 23769 /* "pager_close" */, FxProc: 0},
+ {FzName: ts + 23781 /* "pager_commit" */, FxProc: 0},
+ {FzName: ts + 23794 /* "pager_rollback" */, FxProc: 0},
+ {FzName: ts + 23809 /* "pager_stmt_begin" */, FxProc: 0},
+ {FzName: ts + 23826 /* "pager_stmt_commi..." */, FxProc: 0},
+ {FzName: ts + 23844 /* "pager_stmt_rollb..." */, FxProc: 0},
+ {FzName: ts + 23864 /* "pager_stats" */, FxProc: 0},
+ {FzName: ts + 23876 /* "pager_pagecount" */, FxProc: 0},
+ {FzName: ts + 23892 /* "page_get" */, FxProc: 0},
+ {FzName: ts + 23901 /* "page_lookup" */, FxProc: 0},
+ {FzName: ts + 23913 /* "page_unref" */, FxProc: 0},
+ {FzName: ts + 23924 /* "page_read" */, FxProc: 0},
+ {FzName: ts + 23934 /* "page_write" */, FxProc: 0},
+ {FzName: ts + 23945 /* "page_number" */, FxProc: 0},
+ {FzName: ts + 23957 /* "pager_truncate" */, FxProc: 0},
+ {FzName: ts + 23972 /* "fake_big_file" */, FxProc: 0},
+ {FzName: ts + 23986 /* "sqlite3BitvecBui..." */, FxProc: 0},
+ {FzName: ts + 24011 /* "sqlite3_test_con..." */, FxProc: 0},
+ {FzName: ts + 24045 /* "sqlite3_test_con..." */, FxProc: 0},
} /* test2.c:707:5 */
-// Defer sourcing vdbe.h and btree.h until after the "u8" and
-// "BusyHandler" typedefs. vdbe.h also requires a few of the opaque
-// pointer types (i.e. FuncDef) defined above.
// 2001 September 15
//
// The author disclaims copyright to this source code. In place of
@@ -47214,7 +51771,7 @@ type BtLock = BtLock1 /* btreeInt.h:233:23 */
type CellInfo1 = struct {
FnKey i64
FpPayload uintptr
- FnPayload u321
+ FnPayload u322
FnLocal u16
FnSize u16
}
@@ -47316,19 +51873,19 @@ type CellInfo = CellInfo1 /* btreeInt.h:234:25 */
// detect pages that are used twice and orphaned pages (both of which
// indicate corruption).
type IntegrityCk1 = struct {
- FpBt uintptr
- FpPager uintptr
- FaPgRef uintptr
- FnPage Pgno
- FmxErr int32
- FnErr int32
- FmallocFailed int32
- FzPfx uintptr
- Fv1 int32
- Fv2 int32
- FerrMsg StrAccum
- Fheap uintptr
- Fdb uintptr
+ FpBt uintptr
+ FpPager uintptr
+ FaPgRef uintptr
+ FnPage Pgno
+ FmxErr int32
+ FnErr int32
+ FbOomFault int32
+ FzPfx uintptr
+ Fv1 Pgno
+ Fv2 int32
+ FerrMsg StrAccum
+ Fheap uintptr
+ Fdb uintptr
}
// Legal values for BtCursor.curFlags
@@ -47435,7 +51992,7 @@ var nRefSqlite3 int32 = 0 /* test3.c:33:12 */
// Usage: btree_open FILENAME NCACHE
//
// Open a new database
-func btree_open(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:40:26: */
+func btree_open(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:40:26: */
bp := tls.Alloc(188)
defer tls.Free(188)
@@ -47449,8 +52006,8 @@ func btree_open(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
var n int32
var zFilename uintptr
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21981 /* " FILENAME NCACHE..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24080 /* " FILENAME NCACHE..." */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+72 /* &nCache */) != 0 {
@@ -47462,44 +52019,44 @@ func btree_open(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
sDb.Fmutex = sqlite3.Xsqlite3MutexAlloc(tls, 1)
sqlite3.Xsqlite3_mutex_enter(tls, sDb.Fmutex)
}
- n = int32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
+ n = int32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
zFilename = sqlite3.Xsqlite3_malloc(tls, (n + 2))
if zFilename == uintptr(0) {
return 1
}
- crt.Xmemcpy(tls, zFilename, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), (uint64(n + 1)))
+ libc.Xmemcpy(tls, zFilename, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), (uint64(n + 1)))
*(*int8)(unsafe.Pointer(zFilename + uintptr((n + 1)))) = int8(0)
rc = sqlite3.Xsqlite3BtreeOpen(tls, sDb.FpVfs, zFilename, uintptr(unsafe.Pointer(&sDb)), bp+80 /* &pBt */, 0,
((0x00000002 | 0x00000004) | 0x00000100))
sqlite3.Xsqlite3_free(tls, zFilename)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
sqlite3.Xsqlite3BtreeSetCacheSize(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pBt */)), *(*int32)(unsafe.Pointer(bp + 72 /* nCache */)))
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+88 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 80 /* pBt */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+88 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+88 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(bp + 80 /* pBt */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+88 /* &zBuf[0] */, 0))
return 0
}
// Usage: btree_close ID
//
// Close the given database.
-func btree_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:86:26: */
+func btree_close(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:86:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pBt uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pBt = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
rc = sqlite3.Xsqlite3BtreeClose(tls, pBt)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
nRefSqlite3--
@@ -47515,15 +52072,15 @@ func btree_close(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// Usage: btree_begin_transaction ID
//
// Start a new transaction
-func btree_begin_transaction(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:121:26: */
+func btree_begin_transaction(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:121:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var pBt uintptr
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pBt = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -47531,7 +52088,7 @@ func btree_begin_transaction(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
rc = sqlite3.Xsqlite3BtreeBeginTrans(tls, pBt, 1, uintptr(0))
sqlite3.Xsqlite3BtreeLeave(tls, pBt)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -47540,7 +52097,7 @@ func btree_begin_transaction(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc
// Usage: btree_pager_stats ID
//
// Returns pager statistics
-func btree_pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:150:26: */
+func btree_pager_stats(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:150:26: */
bp := tls.Alloc(140)
defer tls.Free(140)
@@ -47549,8 +52106,8 @@ func btree_pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
var a uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pBt = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -47569,7 +52126,7 @@ func btree_pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
// var zBuf [100]int8 at bp+40, 100
tcl.XTcl_AppendElement(tls, interp, zName1[i])
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+40 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, *(*int32)(unsafe.Pointer(a + uintptr(i)*4))))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+40 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, *(*int32)(unsafe.Pointer(a + uintptr(i)*4))))
tcl.XTcl_AppendElement(tls, interp, bp+40 /* &zBuf[0] */)
}
sqlite3.Xsqlite3BtreeLeave(tls, pBt)
@@ -47580,14 +52137,14 @@ func btree_pager_stats(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
}
var zName1 = [11]uintptr{
- ts + 21308 /* "ref" */, ts + 21312 /* "page" */, ts + 15855 /* "max" */, ts + 9654 /* "size" */, ts + 21317 /* "state" */, ts + 21323, /* "err" */
- ts + 21327 /* "hit" */, ts + 21331 /* "miss" */, ts + 21336 /* "ovfl" */, ts + 22005 /* "read" */, ts + 22010, /* "write" */
+ ts + 23413 /* "ref" */, ts + 23417 /* "page" */, ts + 17555 /* "max" */, ts + 11313 /* "size" */, ts + 10015 /* "state" */, ts + 23422, /* "err" */
+ ts + 23426 /* "hit" */, ts + 23430 /* "miss" */, ts + 23435 /* "ovfl" */, ts + 24104 /* "read" */, ts + 24109, /* "write" */
} /* test3.c:179:17 */
// Usage: btree_cursor ID TABLENUM WRITEABLE
//
// Create a new cursor. Return the ID for the cursor.
-func btree_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:200:26: */
+func btree_cursor(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:200:26: */
bp := tls.Alloc(110)
defer tls.Free(110)
@@ -47601,8 +52158,8 @@ func btree_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, arg
// var zBuf [30]int8 at bp+80, 30
if argc != 4 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22016 /* " ID TABLENUM WRI..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24115 /* " ID TABLENUM WRI..." */, 0))
return 1
}
pBt = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -47616,29 +52173,29 @@ func btree_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, arg
*(*int32)(unsafe.Pointer(bp + 76 /* wrFlag */)) = 0x00000004
}
pCur = tcl.XTcl_Alloc(tls, uint32(sqlite3.Xsqlite3BtreeCursorSize(tls)))
- crt.Xmemset(tls, pCur, 0, uint64(sqlite3.Xsqlite3BtreeCursorSize(tls)))
+ libc.Xmemset(tls, pCur, 0, uint64(sqlite3.Xsqlite3BtreeCursorSize(tls)))
sqlite3.Xsqlite3_mutex_enter(tls, (*sqlite31)(unsafe.Pointer((*Btree)(unsafe.Pointer(pBt)).Fdb)).Fmutex)
sqlite3.Xsqlite3BtreeEnter(tls, pBt)
- rc = sqlite3.Xsqlite3BtreeLockTable(tls, pBt, *(*int32)(unsafe.Pointer(bp + 72 /* iTable */)), crt.BoolUint8(!(!(*(*int32)(unsafe.Pointer(bp + 76 /* wrFlag */)) != 0))))
+ rc = sqlite3.Xsqlite3BtreeLockTable(tls, pBt, *(*int32)(unsafe.Pointer(bp + 72 /* iTable */)), libc.BoolUint8(!(!(*(*int32)(unsafe.Pointer(bp + 76 /* wrFlag */)) != 0))))
if rc == 0 {
- rc = sqlite3.Xsqlite3BtreeCursor(tls, pBt, *(*int32)(unsafe.Pointer(bp + 72 /* iTable */)), *(*int32)(unsafe.Pointer(bp + 76 /* wrFlag */)), uintptr(0), pCur)
+ rc = sqlite3.Xsqlite3BtreeCursor(tls, pBt, uint32(*(*int32)(unsafe.Pointer(bp + 72 /* iTable */))), *(*int32)(unsafe.Pointer(bp + 76 /* wrFlag */)), uintptr(0), pCur)
}
sqlite3.Xsqlite3BtreeLeave(tls, pBt)
sqlite3.Xsqlite3_mutex_leave(tls, (*sqlite31)(unsafe.Pointer((*Btree)(unsafe.Pointer(pBt)).Fdb)).Fmutex)
if rc != 0 {
tcl.XTcl_Free(tls, pCur)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+80 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+48, pCur))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+80 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+80 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+48, pCur))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+80 /* &zBuf[0] */, 0))
return 0
}
// Usage: btree_close_cursor ID
//
// Close a cursor opened using btree_cursor.
-func btree_close_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:249:26: */
+func btree_close_cursor(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:249:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -47646,8 +52203,8 @@ func btree_close_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
var rc int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pCur = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -47661,7 +52218,7 @@ func btree_close_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
}
tcl.XTcl_Free(tls, pCur)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
return 0
@@ -47672,7 +52229,7 @@ func btree_close_cursor(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
// Move the cursor to the next entry in the table. Return 0 on success
// or 1 if the cursor was already on the last entry in the table or if
// the table is empty.
-func btree_next(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:291:26: */
+func btree_next(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:291:26: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -47682,8 +52239,8 @@ func btree_next(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// var zBuf [100]int8 at bp+72, 100
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pCur = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -47695,11 +52252,11 @@ func btree_next(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
}
sqlite3.Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+48, res))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+72 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+48, res))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+72 /* &zBuf[0] */, 0))
return 0
}
@@ -47707,7 +52264,7 @@ func btree_next(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
//
// Move the cursor to the first entry in the table. Return 0 if the
// cursor was left point to something and 1 if the table is empty.
-func btree_first(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:330:26: */
+func btree_first(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:330:26: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -47717,8 +52274,8 @@ func btree_first(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
// var zBuf [100]int8 at bp+76, 100
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pCur = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -47726,11 +52283,11 @@ func btree_first(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
rc = sqlite3.Xsqlite3BtreeFirst(tls, pCur, bp+72 /* &res */)
sqlite3.Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc), 0))
return 1
}
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+76 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 72 /* res */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+76 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+76 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+48, *(*int32)(unsafe.Pointer(bp + 72 /* res */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+76 /* &zBuf[0] */, 0))
return 0
}
@@ -47738,7 +52295,7 @@ func btree_first(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv
//
// Return TRUE if the given cursor is not pointing at a valid entry.
// Return FALSE if the cursor does point to a valid entry.
-func btree_eof(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:365:26: */
+func btree_eof(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:365:26: */
bp := tls.Alloc(106)
defer tls.Free(106)
@@ -47747,41 +52304,41 @@ func btree_eof(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv u
// var zBuf [50]int8 at bp+56, 50
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pCur = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
sqlite3.Xsqlite3BtreeEnter(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
rc = sqlite3.Xsqlite3BtreeEof(tls, pCur)
sqlite3.Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+56 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+32, rc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+56 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+56 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+32, rc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+56 /* &zBuf[0] */, 0))
return 0
}
// Usage: btree_payload_size ID
//
// Return the number of bytes of payload
-func btree_payload_size(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:394:26: */
+func btree_payload_size(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:394:26: */
bp := tls.Alloc(106)
defer tls.Free(106)
var pCur uintptr
- var n u321
+ var n u322
// var zBuf [50]int8 at bp+56, 50
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pCur = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
sqlite3.Xsqlite3BtreeEnter(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
n = sqlite3.Xsqlite3BtreePayloadSize(tls, pCur)
sqlite3.Xsqlite3BtreeLeave(tls, (*BtCursor)(unsafe.Pointer(pCur)).FpBtree)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+56 /* &zBuf[0] */, ts+15405 /* "%u" */, crt.VaList(bp+32, n))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+56 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+56 /* &zBuf[0] */, ts+17097 /* "%u" */, libc.VaList(bp+32, n))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+56 /* &zBuf[0] */, 0))
return 0
}
@@ -47797,17 +52354,17 @@ func btree_payload_size(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
//
// This command returns nothing if it works. It returns an error message
// if something goes wrong.
-func btree_varint_test(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:432:26: */
+func btree_varint_test(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:432:26: */
bp := tls.Alloc(516)
defer tls.Free(516)
- // var start u321 at bp+184, 4
+ // var start u322 at bp+184, 4
- // var mult u321 at bp+188, 4
+ // var mult u322 at bp+188, 4
- // var count u321 at bp+192, 4
+ // var count u322 at bp+192, 4
- // var incr u321 at bp+196, 4
+ // var incr u322 at bp+196, 4
var in u64
// var out u64 at bp+504, 8
@@ -47819,8 +52376,8 @@ func btree_varint_test(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
// var zBuf [100]uint8 at bp+200, 100
if argc != 5 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22040 /* " START MULTIPLIE..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24139 /* " START MULTIPLIE..." */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+184 /* &start */) != 0 {
@@ -47835,56 +52392,56 @@ func btree_varint_test(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)), bp+196 /* &incr */) != 0 {
return 1
}
- in = u64(*(*u321)(unsafe.Pointer(bp + 184 /* start */)))
- in = in * (u64(*(*u321)(unsafe.Pointer(bp + 188 /* mult */))))
- for i = 0; i < int32(*(*u321)(unsafe.Pointer(bp + 192 /* count */))); i++ {
+ in = u64(*(*u322)(unsafe.Pointer(bp + 184 /* start */)))
+ in = in * (u64(*(*u322)(unsafe.Pointer(bp + 188 /* mult */))))
+ for i = 0; i < int32(*(*u322)(unsafe.Pointer(bp + 192 /* count */))); i++ {
// var zErr [200]int8 at bp+300, 200
n1 = sqlite3.Xsqlite3PutVarint(tls, bp+200 /* &zBuf[0] */, in)
if (n1 > 9) || (n1 < 1) {
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+300, /* &zErr[0] */
- ts+22075 /* "putVarint return..." */, crt.VaList(bp+32, n1))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+300 /* &zErr[0] */, 0))
+ ts+24174 /* "putVarint return..." */, libc.VaList(bp+32, n1))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+300 /* &zErr[0] */, 0))
return 1
}
n2 = int32(sqlite3.Xsqlite3GetVarint(tls, bp+200 /* &zBuf[0] */, bp+504 /* &out */))
if n1 != n2 {
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+300, /* &zErr[0] */
- ts+22125 /* "putVarint return..." */, crt.VaList(bp+56, n1, n2))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, bp+300 /* &zErr[0] */, 0))
+ ts+24224 /* "putVarint return..." */, libc.VaList(bp+56, n1, n2))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, bp+300 /* &zErr[0] */, 0))
return 1
}
if in != *(*u64)(unsafe.Pointer(bp + 504 /* out */)) {
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+300, /* &zErr[0] */
- ts+22173 /* "Wrote 0x%016llx ..." */, crt.VaList(bp+88, in, *(*u64)(unsafe.Pointer(bp + 504 /* out */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+104, bp+300 /* &zErr[0] */, 0))
+ ts+24272 /* "Wrote 0x%016llx ..." */, libc.VaList(bp+88, in, *(*u64)(unsafe.Pointer(bp + 504 /* out */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+104, bp+300 /* &zErr[0] */, 0))
return 1
}
if (in & uint64(0xffffffff)) == in {
- // var out32 u321 at bp+512, 4
+ // var out32 u322 at bp+512, 4
n2 = int32(func() uint8 {
if int32(*(*uint8)(unsafe.Pointer(bp + 200 /* zBuf */))) < int32(u8(0x80)) {
return uint8(func() int32 {
- (*(*u321)(unsafe.Pointer(bp + 512 /* out32 */))) = u321(*(*uint8)(unsafe.Pointer(bp + 200 /* zBuf */)))
+ (*(*u322)(unsafe.Pointer(bp + 512 /* out32 */))) = u322(*(*uint8)(unsafe.Pointer(bp + 200 /* zBuf */)))
return 1
}())
}
return sqlite3.Xsqlite3GetVarint32(tls, bp+200 /* &zBuf[0] */, bp+512 /* &out32 */)
}())
- *(*u64)(unsafe.Pointer(bp + 504 /* out */)) = u64(*(*u321)(unsafe.Pointer(bp + 512 /* out32 */)))
+ *(*u64)(unsafe.Pointer(bp + 504 /* out */)) = u64(*(*u322)(unsafe.Pointer(bp + 512 /* out32 */)))
if n1 != n2 {
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+300, /* &zErr[0] */
- ts+22212, /* "putVarint return..." */
- crt.VaList(bp+120, n1, n2))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+136, bp+300 /* &zErr[0] */, 0))
+ ts+24311, /* "putVarint return..." */
+ libc.VaList(bp+120, n1, n2))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+136, bp+300 /* &zErr[0] */, 0))
return 1
}
if in != *(*u64)(unsafe.Pointer(bp + 504 /* out */)) {
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([200]int8{})), bp+300, /* &zErr[0] */
- ts+22262, /* "Wrote 0x%016llx ..." */
- crt.VaList(bp+152, in, *(*u64)(unsafe.Pointer(bp + 504 /* out */))))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+168, bp+300 /* &zErr[0] */, 0))
+ ts+24361, /* "Wrote 0x%016llx ..." */
+ libc.VaList(bp+152, in, *(*u64)(unsafe.Pointer(bp + 504 /* out */))))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+168, bp+300 /* &zErr[0] */, 0))
return 1
}
}
@@ -47895,7 +52452,7 @@ func btree_varint_test(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
for j = 0; j < 19; j++ {
sqlite3.Xsqlite3GetVarint(tls, bp+200 /* &zBuf[0] */, bp+504 /* &out */)
}
- in = in + (u64(*(*u321)(unsafe.Pointer(bp + 196 /* incr */))))
+ in = in + (u64(*(*u322)(unsafe.Pointer(bp + 196 /* incr */))))
}
return 0
}
@@ -47907,7 +52464,7 @@ func btree_varint_test(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
//
// sqlite3 db test.db
// set bt [btree_from_db db]
-func btree_from_db(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:516:26: */
+func btree_from_db(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:516:26: */
bp := tls.Alloc(236)
defer tls.Free(236)
@@ -47920,23 +52477,23 @@ func btree_from_db(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
var iDb int32 = 0
if (argc != 2) && (argc != 3) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22318 /* " DB-HANDLE ?N?\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24417 /* " DB-HANDLE ?N?\"" */, 0))
return 1
}
if 1 != tcl.XTcl_GetCommandInfo(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), bp+72 /* &info */) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22334 /* "No such db-handl..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+9801 /* "\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24433 /* "No such db-handl..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+11456 /* "\"" */, 0))
return 1
}
if argc == 3 {
- iDb = crt.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)))
+ iDb = libc.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)))
}
db = *(*uintptr)(unsafe.Pointer((*Tcl_CmdInfo)(unsafe.Pointer(bp + 72 /* &info */)).FobjClientData))
pBt = (*Db)(unsafe.Pointer((*sqlite31)(unsafe.Pointer(db)).FaDb + uintptr(iDb)*32)).FpBt
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+136 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp+64, pBt))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+136 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp+64, pBt))
tcl.XTcl_SetResult(tls, interp, bp+136 /* &zBuf[0] */, uintptr(1))
return 0
}
@@ -47944,7 +52501,7 @@ func btree_from_db(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
// Usage: btree_ismemdb ID
//
// Return true if the B-Tree is currently stored entirely in memory.
-func btree_ismemdb(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:556:26: */
+func btree_ismemdb(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:556:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -47953,25 +52510,25 @@ func btree_ismemdb(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, ar
var pFile uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+21303 /* " ID\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+23408 /* " ID\"" */, 0))
return 1
}
pBt = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
sqlite3.Xsqlite3_mutex_enter(tls, (*sqlite31)(unsafe.Pointer((*Btree)(unsafe.Pointer(pBt)).Fdb)).Fmutex)
sqlite3.Xsqlite3BtreeEnter(tls, pBt)
pFile = sqlite3.Xsqlite3PagerFile(tls, sqlite3.Xsqlite3BtreePager(tls, pBt))
- res = (crt.Bool32((*sqlite3_file)(unsafe.Pointer(pFile)).FpMethods == uintptr(0)))
+ res = (libc.Bool32((*sqlite3_file)(unsafe.Pointer(pFile)).FpMethods == uintptr(0)))
sqlite3.Xsqlite3BtreeLeave(tls, pBt)
sqlite3.Xsqlite3_mutex_leave(tls, (*sqlite31)(unsafe.Pointer((*Btree)(unsafe.Pointer(pBt)).Fdb)).Fmutex)
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((res) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((res) != 0))))
return 0
}
// usage: btree_set_cache_size ID NCACHE
//
// Set the size of the cache used by btree $ID.
-func btree_set_cache_size(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:587:26: */
+func btree_set_cache_size(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test3.c:587:26: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -47981,7 +52538,7 @@ func btree_set_cache_size(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
if argc != 3 {
tcl.XTcl_AppendResult(tls,
- interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+22355 /* " BT NCACHE\"" */, 0))
+ interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)), ts+24454 /* " BT NCACHE\"" */, 0))
return 1
}
pBt = sqlite3TestTextToPtr(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48000,7 +52557,7 @@ func btree_set_cache_size(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc in
// usage: btree_insert CSR ?KEY? VALUE
//
// Set the size of the cache used by btree $ID.
-func btree_insert(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test3.c:617:26: */
+func btree_insert(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test3.c:617:26: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -48010,11 +52567,11 @@ func btree_insert(tls *crt.TLS, clientData ClientData, interp uintptr, objc int3
// var x BtreePayload at bp+16, 48
if (objc != 4) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+22367 /* "?-intkey? CSR KE..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+24466 /* "?-intkey? CSR KE..." */)
return 1
}
- crt.Xmemset(tls, bp+16 /* &x */, 0, uint64(unsafe.Sizeof(BtreePayload{})))
+ libc.Xmemset(tls, bp+16 /* &x */, 0, uint64(unsafe.Sizeof(BtreePayload{})))
if objc == 4 {
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+64 /* &rc */) != 0 {
return 1
@@ -48035,50 +52592,290 @@ func btree_insert(tls *crt.TLS, clientData ClientData, interp uintptr, objc int3
tcl.XTcl_ResetResult(tls, interp)
if *(*int32)(unsafe.Pointer(bp + 64 /* rc */)) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3ErrName(tls, *(*int32)(unsafe.Pointer(bp + 64 /* rc */))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3ErrName(tls, *(*int32)(unsafe.Pointer(bp + 64 /* rc */))), 0))
return 1
}
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest3_Init(tls *crt.TLS, interp uintptr) int32 { /* test3.c:661:5: */
+func Sqlitetest3_Init(tls *libc.TLS, interp uintptr) int32 { /* test3.c:661:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd2)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd3)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateCommand(tls, interp, aCmd2[i].FzName, aCmd2[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateCommand(tls, interp, aCmd3[i].FzName, aCmd3[i].FxProc, uintptr(0), uintptr(0))
}
- tcl.XTcl_CreateObjCommand(tls, interp, ts+22391 /* "btree_insert" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+24490 /* "btree_insert" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{btree_insert})), uintptr(0), uintptr(0))
return 0
}
-var aCmd2 = [14]struct {
+var aCmd3 = [14]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 22404 /* "btree_open" */, FxProc: 0},
- {FzName: ts + 22415 /* "btree_close" */, FxProc: 0},
- {FzName: ts + 22427 /* "btree_begin_tran..." */, FxProc: 0},
- {FzName: ts + 22451 /* "btree_pager_stat..." */, FxProc: 0},
- {FzName: ts + 22469 /* "btree_cursor" */, FxProc: 0},
- {FzName: ts + 22482 /* "btree_close_curs..." */, FxProc: 0},
- {FzName: ts + 22501 /* "btree_next" */, FxProc: 0},
- {FzName: ts + 22512 /* "btree_eof" */, FxProc: 0},
- {FzName: ts + 22522 /* "btree_payload_si..." */, FxProc: 0},
- {FzName: ts + 22541 /* "btree_first" */, FxProc: 0},
- {FzName: ts + 22553 /* "btree_varint_tes..." */, FxProc: 0},
- {FzName: ts + 22571 /* "btree_from_db" */, FxProc: 0},
- {FzName: ts + 22585 /* "btree_ismemdb" */, FxProc: 0},
- {FzName: ts + 22599 /* "btree_set_cache_..." */, FxProc: 0},
+ {FzName: ts + 24503 /* "btree_open" */, FxProc: 0},
+ {FzName: ts + 24514 /* "btree_close" */, FxProc: 0},
+ {FzName: ts + 24526 /* "btree_begin_tran..." */, FxProc: 0},
+ {FzName: ts + 24550 /* "btree_pager_stat..." */, FxProc: 0},
+ {FzName: ts + 24568 /* "btree_cursor" */, FxProc: 0},
+ {FzName: ts + 24581 /* "btree_close_curs..." */, FxProc: 0},
+ {FzName: ts + 24600 /* "btree_next" */, FxProc: 0},
+ {FzName: ts + 24611 /* "btree_eof" */, FxProc: 0},
+ {FzName: ts + 24621 /* "btree_payload_si..." */, FxProc: 0},
+ {FzName: ts + 24640 /* "btree_first" */, FxProc: 0},
+ {FzName: ts + 24652 /* "btree_varint_tes..." */, FxProc: 0},
+ {FzName: ts + 24670 /* "btree_from_db" */, FxProc: 0},
+ {FzName: ts + 24684 /* "btree_ismemdb" */, FxProc: 0},
+ {FzName: ts + 24698 /* "btree_set_cache_..." */, FxProc: 0},
} /* test3.c:665:5 */
+// end block for C++
+
+// Local Variables:
+// mode: c
+// c-basic-offset: 4
+// fill-column: 78
+// End:
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.20 General utilities <stdlib.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.21 String handling <string.h>
+
+// Copyright (C) 2002-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Copyright (C) 1992-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface.
+// Copyright (C) 1996-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Get type definitions.
+// bits/types.h -- definitions of __*_t types underlying *_t types.
+// Copyright (C) 2002-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// Never include this file directly; use <sys/types.h> instead.
+
+// Copyright (C) 1989-2018 Free Software Foundation, Inc.
+//
+//This file is part of GCC.
+//
+//GCC is free software; you can redistribute it and/or modify
+//it under the terms of the GNU General Public License as published by
+//the Free Software Foundation; either version 3, or (at your option)
+//any later version.
+//
+//GCC is distributed in the hope that it will be useful,
+//but WITHOUT ANY WARRANTY; without even the implied warranty of
+//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+//GNU General Public License for more details.
+//
+//Under Section 7 of GPL version 3, you are granted additional
+//permissions described in the GCC Runtime Library Exception, version
+//3.1, as published by the Free Software Foundation.
+//
+//You should have received a copy of the GNU General Public License and
+//a copy of the GCC Runtime Library Exception along with this program;
+//see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+//<http://www.gnu.org/licenses/>.
+
+// ISO C Standard: 7.17 Common definitions <stddef.h>
+
+// Any one of these symbols __need_* means that GNU libc
+// wants us just to define one data type. So don't define
+// the symbols that indicate this file's entire job has been done.
+
+// This avoids lossage on SunOS but only if stdtypes.h comes first.
+// There's no way to win with the other order! Sun lossage.
+
+// On 4.3bsd-net2, make sure ansi.h is included, so we have
+// one less case to deal with in the following.
+// On FreeBSD 5, machine/ansi.h does not exist anymore...
+
+// In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
+// defined if the corresponding type is *not* defined.
+// FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
+// NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_
+
+// Sequent's header files use _PTRDIFF_T_ in some conflicting way.
+// Just ignore it.
+
+// On VxWorks, <type/vxTypesBase.h> may have defined macros like
+// _TYPE_size_t which will typedef size_t. fixincludes patched the
+// vxTypesBase.h so that this macro is only defined if _GCC_SIZE_T is
+// not defined, and so that defining this macro defines _GCC_SIZE_T.
+// If we find that the macros are still defined at this point, we must
+// invoke them so that the type is defined as expected.
+
+// In case nobody has defined these types, but we aren't running under
+// GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE_TYPE__, and
+// __WCHAR_TYPE__ have reasonable values. This can happen if the
+// parts of GCC is compiled by an older compiler, that actually
+// include gstddef.h, such as collect2.
+
+// Signed type of difference of two pointers.
+
+// Define this type if we are doing the whole job,
+// or if we want this type in particular.
+
+// If this symbol has done its job, get rid of it.
+
+// Unsigned type of `sizeof' something.
+
+// Define this type if we are doing the whole job,
+// or if we want this type in particular.
+
+// Wide character type.
+// Locale-writers should change this as necessary to
+// be big enough to hold unique values not between 0 and 127,
+// and not (wchar_t) -1, for each defined multibyte character.
+
+// Define this type if we are doing the whole job,
+// or if we want this type in particular.
+
+// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
+// are already defined.
+// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
+// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
+
+// A null pointer constant.
+
+// Offset of member MEMBER in a struct of type TYPE.
+
+// NB: Include guard matches what <linux/time.h> uses.
+
// Get system specific constant and data structure definitions.
// Definitions of constants and data structure for POSIX 1003.1b-1993
// scheduling interface.
@@ -48171,31 +52968,31 @@ type Thread = struct {
var threadset [26]Thread /* test4.c:61:15: */
// The main loop for a thread. Threads use busy waiting.
-func test_thread_main(tls *crt.TLS, pArg uintptr) uintptr { /* test4.c:67:13: */
+func test_thread_main(tls *libc.TLS, pArg uintptr) uintptr { /* test4.c:67:13: */
var p uintptr = pArg
if (*Thread)(unsafe.Pointer(p)).Fdb != 0 {
sqlite3.Xsqlite3_close(tls, (*Thread)(unsafe.Pointer(p)).Fdb)
}
sqlite3.Xsqlite3_open(tls, (*Thread)(unsafe.Pointer(p)).FzFilename, (p + 40 /* &.db */))
if 0 != sqlite3.Xsqlite3_errcode(tls, (*Thread)(unsafe.Pointer(p)).Fdb) {
- (*Thread)(unsafe.Pointer(p)).FzErr = crt.Xstrdup(tls, sqlite3.Xsqlite3_errmsg(tls, (*Thread)(unsafe.Pointer(p)).Fdb))
+ (*Thread)(unsafe.Pointer(p)).FzErr = libc.Xstrdup(tls, sqlite3.Xsqlite3_errmsg(tls, (*Thread)(unsafe.Pointer(p)).Fdb))
sqlite3.Xsqlite3_close(tls, (*Thread)(unsafe.Pointer(p)).Fdb)
(*Thread)(unsafe.Pointer(p)).Fdb = uintptr(0)
}
(*Thread)(unsafe.Pointer(p)).FpStmt = uintptr(0)
(*Thread)(unsafe.Pointer(p)).Fcompleted = 1
for (*Thread)(unsafe.Pointer(p)).Fopnum <= (*Thread)(unsafe.Pointer(p)).Fcompleted {
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
for (*Thread)(unsafe.Pointer(p)).FxOp != 0 {
if ((*Thread)(unsafe.Pointer(p)).FzErr != 0) && ((*Thread)(unsafe.Pointer(p)).FzErr != (*Thread)(unsafe.Pointer(p)).FzStaticErr) {
sqlite3.Xsqlite3_free(tls, (*Thread)(unsafe.Pointer(p)).FzErr)
(*Thread)(unsafe.Pointer(p)).FzErr = uintptr(0)
}
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((p + 8 /* &.xOp */))))(tls, p)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((p + 8 /* &.xOp */))))(tls, p)
(*Thread)(unsafe.Pointer(p)).Fcompleted++
for (*Thread)(unsafe.Pointer(p)).Fopnum <= (*Thread)(unsafe.Pointer(p)).Fcompleted {
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
}
if (*Thread)(unsafe.Pointer(p)).FpStmt != 0 {
@@ -48218,12 +53015,12 @@ func test_thread_main(tls *crt.TLS, pArg uintptr) uintptr { /* test4.c:67:13: */
// Get a thread ID which is an upper case letter. Return the index.
// If the argument is not a valid thread ID put an error message in
// the interpreter and return -1.
-func parse_thread_id(tls *crt.TLS, interp uintptr, zArg uintptr) int32 { /* test4.c:114:12: */
+func parse_thread_id(tls *libc.TLS, interp uintptr, zArg uintptr) int32 { /* test4.c:114:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
- if (((zArg == uintptr(0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) == 0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(1)))) != 0)) || !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zArg + uintptr(0))))))*2))) & int32(_ISupper)) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+22620 /* "thread ID must b..." */, 0))
+ if (((zArg == uintptr(0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) == 0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(1)))) != 0)) || !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zArg + uintptr(0))))))*2))) & int32(_ISupper)) != 0) {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+24719 /* "thread ID must b..." */, 0))
return -1
}
return (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) - 'A')
@@ -48233,7 +53030,7 @@ func parse_thread_id(tls *crt.TLS, interp uintptr, zArg uintptr) int32 { /* test
//
// NAME should be an upper case letter. Start the thread running with
// an open connection to the given database.
-func tcl_thread_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:128:26: */
+func tcl_thread_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:128:26: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -48243,8 +53040,8 @@ func tcl_thread_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
var rc int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22659 /* " ID FILENAME" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24758 /* " ID FILENAME" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48252,46 +53049,46 @@ func tcl_thread_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
return 1
}
if threadset[i].Fbusy != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22672 /* "thread " */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+22680 /* " is already runn..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24771 /* "thread " */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+24779 /* " is already runn..." */, 0))
return 1
}
threadset[i].Fbusy = 1
sqlite3.Xsqlite3_free(tls, threadset[i].FzFilename)
- threadset[i].FzFilename = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ threadset[i].FzFilename = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
threadset[i].Fopnum = 1
threadset[i].Fcompleted = 0
- rc = crt2.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr) uintptr
+ rc = libc2.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
}{test_thread_main})), (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, ts+22700 /* "failed to create..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, ts+24799 /* "failed to create..." */, 0))
sqlite3.Xsqlite3_free(tls, threadset[i].FzFilename)
threadset[i].Fbusy = 0
return 1
}
- crt2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */)))
+ libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */)))
return 0
}
// Wait for a thread to reach its idle state.
-func test_thread_wait(tls *crt.TLS, p uintptr) { /* test4.c:168:13: */
+func test_thread_wait(tls *libc.TLS, p uintptr) { /* test4.c:168:13: */
for (*Thread)(unsafe.Pointer(p)).Fopnum > (*Thread)(unsafe.Pointer(p)).Fcompleted {
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
}
// Usage: thread_wait ID
//
// Wait on thread ID to reach its idle state.
-func tcl_thread_wait(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:177:26: */
+func tcl_thread_wait(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:177:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48299,7 +53096,7 @@ func tcl_thread_wait(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
@@ -48307,7 +53104,7 @@ func tcl_thread_wait(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
}
// Stop a thread.
-func test_stop_thread(tls *crt.TLS, p uintptr) { /* test4.c:203:13: */
+func test_stop_thread(tls *libc.TLS, p uintptr) { /* test4.c:203:13: */
test_thread_wait(tls, p)
(*Thread)(unsafe.Pointer(p)).FxOp = uintptr(0)
(*Thread)(unsafe.Pointer(p)).Fopnum++
@@ -48323,15 +53120,15 @@ func test_stop_thread(tls *crt.TLS, p uintptr) { /* test4.c:203:13: */
//
// Cause a thread to shut itself down. Wait for the shutdown to be
// completed. If ID is "*" then stop all threads.
-func tcl_thread_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:221:26: */
+func tcl_thread_halt(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:221:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
if (int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)) + uintptr(0)))) == '*') && (int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)) + uintptr(1)))) == 0) {
@@ -48346,7 +53143,7 @@ func tcl_thread_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_stop_thread(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
@@ -48358,7 +53155,7 @@ func tcl_thread_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Wait on the most recent thread_step to complete, then return the
// number of columns in the result set.
-func tcl_thread_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:256:26: */
+func tcl_thread_argc(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:256:26: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -48366,8 +53163,8 @@ func tcl_thread_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var zBuf [100]int8 at bp+72, 100
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48375,12 +53172,12 @@ func tcl_thread_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+48, threadset[i].Fargc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+72 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+48, threadset[i].Fargc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+72 /* &zBuf[0] */, 0))
return 0
}
@@ -48388,7 +53185,7 @@ func tcl_thread_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Wait on the most recent thread_step to complete, then return the
// value of the N-th columns in the result set.
-func tcl_thread_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:288:26: */
+func tcl_thread_argv(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:288:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -48396,8 +53193,8 @@ func tcl_thread_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var n int32 at bp+80, 4
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22747 /* " ID N" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24846 /* " ID N" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48405,7 +53202,7 @@ func tcl_thread_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+80 /* &n */) != 0 {
@@ -48413,10 +53210,10 @@ func tcl_thread_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
if (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) < 0) || (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) >= threadset[i].Fargc) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+22753 /* "column number ou..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+24852 /* "column number ou..." */, 0))
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680 + 80 /* &.argv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680 + 80 /* &.argv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
return 0
}
@@ -48424,7 +53221,7 @@ func tcl_thread_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Wait on the most recent thread_step to complete, then return the
// name of the N-th columns in the result set.
-func tcl_thread_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:324:26: */
+func tcl_thread_colname(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:324:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -48432,8 +53229,8 @@ func tcl_thread_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
// var n int32 at bp+80, 4
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22747 /* " ID N" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24846 /* " ID N" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48441,7 +53238,7 @@ func tcl_thread_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+80 /* &n */) != 0 {
@@ -48449,10 +53246,10 @@ func tcl_thread_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
if (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) < 0) || (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) >= threadset[i].Fargc) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+22753 /* "column number ou..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+24852 /* "column number ou..." */, 0))
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680 + 880 /* &.colv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680 + 880 /* &.colv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
return 0
}
@@ -48460,7 +53257,7 @@ func tcl_thread_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
//
// Wait on the most recent operation to complete, then return the
// result code from that operation.
-func tcl_thread_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:360:26: */
+func tcl_thread_result(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:360:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -48468,8 +53265,8 @@ func tcl_thread_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
var zName uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48477,12 +53274,12 @@ func tcl_thread_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
zName = sqlite3.Xsqlite3ErrName(tls, threadset[i].Frc)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, zName, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, zName, 0))
return 0
}
@@ -48490,15 +53287,15 @@ func tcl_thread_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
//
// Wait on the most recent operation to complete, then return the
// error string.
-func tcl_thread_error(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:392:26: */
+func tcl_thread_error(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:392:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48506,18 +53303,18 @@ func tcl_thread_error(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, threadset[i].FzErr, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, threadset[i].FzErr, 0))
return 0
}
// This procedure runs in the thread to compile an SQL statement.
-func do_compile(tls *crt.TLS, p uintptr) { /* test4.c:419:13: */
+func do_compile(tls *libc.TLS, p uintptr) { /* test4.c:419:13: */
if (*Thread)(unsafe.Pointer(p)).Fdb == uintptr(0) {
- (*Thread)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22780 /* "no database is o..." */)
+ (*Thread)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24879 /* "no database is o..." */)
(*Thread)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -48531,14 +53328,14 @@ func do_compile(tls *crt.TLS, p uintptr) { /* test4.c:419:13: */
// Usage: thread_compile ID SQL
//
// Compile a new virtual machine.
-func tcl_thread_compile(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:437:26: */
+func tcl_thread_compile(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:437:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
var i int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22800 /* " ID SQL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24899 /* " ID SQL" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48546,22 +53343,22 @@ func tcl_thread_compile(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
- threadset[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_compile}))
+ threadset[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_compile}))
sqlite3.Xsqlite3_free(tls, threadset[i].FzArg)
- threadset[i].FzArg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+48, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ threadset[i].FzArg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
threadset[i].Fopnum++
return 0
}
// This procedure runs in the thread to step the virtual machine.
-func do_step(tls *crt.TLS, p uintptr) { /* test4.c:466:13: */
+func do_step(tls *libc.TLS, p uintptr) { /* test4.c:466:13: */
var i int32
if (*Thread)(unsafe.Pointer(p)).FpStmt == uintptr(0) {
- (*Thread)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22808 /* "no virtual machi..." */)
+ (*Thread)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24907 /* "no virtual machi..." */)
(*Thread)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -48580,14 +53377,14 @@ func do_step(tls *crt.TLS, p uintptr) { /* test4.c:466:13: */
// Usage: thread_step ID
//
// Advance the virtual machine by one step
-func tcl_thread_step(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:490:26: */
+func tcl_thread_step(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:490:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22837 /* " IDL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24936 /* " IDL" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48595,19 +53392,19 @@ func tcl_thread_step(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
- threadset[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_step}))
+ threadset[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_step}))
threadset[i].Fopnum++
return 0
}
// This procedure runs in the thread to finalize a virtual machine.
-func do_finalize(tls *crt.TLS, p uintptr) { /* test4.c:517:13: */
+func do_finalize(tls *libc.TLS, p uintptr) { /* test4.c:517:13: */
if (*Thread)(unsafe.Pointer(p)).FpStmt == uintptr(0) {
- (*Thread)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22808 /* "no virtual machi..." */)
+ (*Thread)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24907 /* "no virtual machi..." */)
(*Thread)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -48618,14 +53415,14 @@ func do_finalize(tls *crt.TLS, p uintptr) { /* test4.c:517:13: */
// Usage: thread_finalize ID
//
// Finalize the virtual machine.
-func tcl_thread_finalize(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:532:26: */
+func tcl_thread_finalize(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:532:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22837 /* " IDL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24936 /* " IDL" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48633,11 +53430,11 @@ func tcl_thread_finalize(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
- threadset[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_finalize}))
+ threadset[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_finalize}))
sqlite3.Xsqlite3_free(tls, threadset[i].FzArg)
threadset[i].FzArg = uintptr(0)
threadset[i].Fopnum++
@@ -48647,7 +53444,7 @@ func tcl_thread_finalize(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
// Usage: thread_swap ID ID
//
// Interchange the sqlite* pointer between two threads.
-func tcl_thread_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:563:26: */
+func tcl_thread_swap(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:563:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -48655,8 +53452,8 @@ func tcl_thread_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
var j int32
var temp uintptr
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22842 /* " ID1 ID2" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24941 /* " ID1 ID2" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48664,7 +53461,7 @@ func tcl_thread_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
@@ -48673,7 +53470,7 @@ func tcl_thread_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset[j].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(j)*1680))
@@ -48688,7 +53485,7 @@ func tcl_thread_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// Return the database connection pointer for the given thread. Then
// remove the pointer from the thread itself. Afterwards, the thread
// can be stopped and the connection can be used by the main thread.
-func tcl_thread_db_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:603:26: */
+func tcl_thread_db_get(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:603:26: */
bp := tls.Alloc(164)
defer tls.Free(164)
@@ -48696,8 +53493,8 @@ func tcl_thread_db_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
// var zBuf [100]int8 at bp+64, 100
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48705,26 +53502,26 @@ func tcl_thread_db_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
sqlite3TestMakePointerStr(tls, interp, bp+64 /* &zBuf[0] */, threadset[i].Fdb)
threadset[i].Fdb = uintptr(0)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, bp+64 /* &zBuf[0] */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, bp+64 /* &zBuf[0] */, uintptr(0)))
return 0
}
// Usage: thread_db_put ID DB
//
-func tcl_thread_db_put(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:634:26: */
+func tcl_thread_db_put(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:634:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22851 /* " ID DB" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24950 /* " ID DB" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48732,7 +53529,7 @@ func tcl_thread_db_put(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
@@ -48745,7 +53542,7 @@ func tcl_thread_db_put(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
//
// Return the database stmt pointer for the given thread. Then
// remove the pointer from the thread itself.
-func tcl_thread_stmt_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:666:26: */
+func tcl_thread_stmt_get(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test4.c:666:26: */
bp := tls.Alloc(164)
defer tls.Free(164)
@@ -48753,8 +53550,8 @@ func tcl_thread_stmt_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
// var zBuf [100]int8 at bp+64, 100
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_thread_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -48762,48 +53559,48 @@ func tcl_thread_stmt_get(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
return 1
}
if !(threadset[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
test_thread_wait(tls, (uintptr(unsafe.Pointer(&threadset)) + uintptr(i)*1680))
sqlite3TestMakePointerStr(tls, interp, bp+64 /* &zBuf[0] */, threadset[i].FpStmt)
threadset[i].FpStmt = uintptr(0)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, bp+64 /* &zBuf[0] */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, bp+64 /* &zBuf[0] */, uintptr(0)))
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest4_Init(tls *crt.TLS, interp uintptr) int32 { /* test4.c:696:5: */
+func Sqlitetest4_Init(tls *libc.TLS, interp uintptr) int32 { /* test4.c:696:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd3)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd4)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateCommand(tls, interp, aCmd3[i].FzName, aCmd3[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateCommand(tls, interp, aCmd4[i].FzName, aCmd4[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aCmd3 = [15]struct {
+var aCmd4 = [15]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 22858 /* "thread_create" */, FxProc: 0},
- {FzName: ts + 22872 /* "thread_wait" */, FxProc: 0},
- {FzName: ts + 22884 /* "thread_halt" */, FxProc: 0},
- {FzName: ts + 22896 /* "thread_argc" */, FxProc: 0},
- {FzName: ts + 22908 /* "thread_argv" */, FxProc: 0},
- {FzName: ts + 22920 /* "thread_colname" */, FxProc: 0},
- {FzName: ts + 22935 /* "thread_result" */, FxProc: 0},
- {FzName: ts + 22949 /* "thread_error" */, FxProc: 0},
- {FzName: ts + 22962 /* "thread_compile" */, FxProc: 0},
- {FzName: ts + 22977 /* "thread_step" */, FxProc: 0},
- {FzName: ts + 22989 /* "thread_finalize" */, FxProc: 0},
- {FzName: ts + 23005 /* "thread_swap" */, FxProc: 0},
- {FzName: ts + 23017 /* "thread_db_get" */, FxProc: 0},
- {FzName: ts + 23031 /* "thread_db_put" */, FxProc: 0},
- {FzName: ts + 23045 /* "thread_stmt_get" */, FxProc: 0},
+ {FzName: ts + 24957 /* "thread_create" */, FxProc: 0},
+ {FzName: ts + 24971 /* "thread_wait" */, FxProc: 0},
+ {FzName: ts + 24983 /* "thread_halt" */, FxProc: 0},
+ {FzName: ts + 24995 /* "thread_argc" */, FxProc: 0},
+ {FzName: ts + 25007 /* "thread_argv" */, FxProc: 0},
+ {FzName: ts + 25019 /* "thread_colname" */, FxProc: 0},
+ {FzName: ts + 25034 /* "thread_result" */, FxProc: 0},
+ {FzName: ts + 25048 /* "thread_error" */, FxProc: 0},
+ {FzName: ts + 25061 /* "thread_compile" */, FxProc: 0},
+ {FzName: ts + 25076 /* "thread_step" */, FxProc: 0},
+ {FzName: ts + 25088 /* "thread_finalize" */, FxProc: 0},
+ {FzName: ts + 25104 /* "thread_swap" */, FxProc: 0},
+ {FzName: ts + 25116 /* "thread_db_get" */, FxProc: 0},
+ {FzName: ts + 25130 /* "thread_db_put" */, FxProc: 0},
+ {FzName: ts + 25144 /* "thread_stmt_get" */, FxProc: 0},
} /* test4.c:700:5 */
// end block for C++
@@ -48854,7 +53651,7 @@ var aCmd3 = [15]struct {
// The first argument is a TCL UTF-8 string. Return the byte array
// object with the encoded representation of the string, including
// the NULL terminator.
-func binarize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:33:26: */
+func binarize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:33:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -48878,7 +53675,7 @@ func binarize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv
//
// If <do-calls> is 0, then the calls to sqlite3_value_text() are not
// actually made.
-func test_value_overhead(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:61:26: */
+func test_value_overhead(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:61:26: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -48890,8 +53687,8 @@ func test_value_overhead(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// var val Mem at bp+40, 56
if objc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+23061 /* " <repeat-count> ..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)), ts+25160 /* " <repeat-count> ..." */, 0))
return 1
}
@@ -48903,7 +53700,7 @@ func test_value_overhead(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
(*Mem)(unsafe.Pointer(bp + 40 /* &val */)).Fflags = (u16((0x0002 | 0x0200) | 0x0800))
- (*Mem)(unsafe.Pointer(bp + 40 /* &val */)).Fz = ts + 23088 /* "hello world" */
+ (*Mem)(unsafe.Pointer(bp + 40 /* &val */)).Fz = ts + 25187 /* "hello world" */
(*Mem)(unsafe.Pointer(bp + 40 /* &val */)).Fenc = u8(1)
for i = 0; i < *(*int32)(unsafe.Pointer(bp + 32 /* repeat_count */)); i++ {
@@ -48915,15 +53712,15 @@ func test_value_overhead(tls *crt.TLS, clientData uintptr, interp uintptr, objc
return 0
}
-func name_to_enc(tls *crt.TLS, interp uintptr, pObj uintptr) u8 { /* test5.c:94:11: */
+func name_to_enc(tls *libc.TLS, interp uintptr, pObj uintptr) u8 { /* test5.c:94:11: */
bp := tls.Alloc(104)
defer tls.Free(104)
*(*[5]EncName)(unsafe.Pointer(bp + 24 /* encnames */)) = [5]EncName{
- {FzName: ts + 23100 /* "UTF8" */, Fenc: u8(1)},
- {FzName: ts + 23105 /* "UTF16LE" */, Fenc: u8(2)},
- {FzName: ts + 23113 /* "UTF16BE" */, Fenc: u8(3)},
- {FzName: ts + 23121 /* "UTF16" */, Fenc: u8(4)},
+ {FzName: ts + 25199 /* "UTF8" */, Fenc: u8(1)},
+ {FzName: ts + 25204 /* "UTF16LE" */, Fenc: u8(2)},
+ {FzName: ts + 25212 /* "UTF16BE" */, Fenc: u8(3)},
+ {FzName: ts + 25220 /* "UTF16" */, Fenc: u8(4)},
{FzName: uintptr(0), Fenc: u8(0)},
}
var pEnc uintptr
@@ -48934,7 +53731,7 @@ func name_to_enc(tls *crt.TLS, interp uintptr, pObj uintptr) u8 { /* test5.c:94:
}
}
if !(int32((*EncName)(unsafe.Pointer(pEnc)).Fenc) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+23127 /* "No such encoding..." */, z, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+25226 /* "No such encoding..." */, z, 0))
}
if int32((*EncName)(unsafe.Pointer(pEnc)).Fenc) == 4 {
return u8(2)
@@ -48950,7 +53747,7 @@ type EncName = struct {
// Usage: test_translate <string/blob> <from enc> <to enc> ?<transient>?
//
-func test_translate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:125:26: */
+func test_translate(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:125:26: */
bp := tls.Alloc(44)
defer tls.Free(44)
@@ -48963,13 +53760,13 @@ func test_translate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
var xDel uintptr = uintptr(0)
if (objc != 4) && (objc != 5) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8)), uintptr(0)),
- ts+23146 /* " <string/blob> <..." */, 0))
+ ts+25245 /* " <string/blob> <..." */, 0))
return 1
}
if objc == 5 {
- xDel = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free}))
+ xDel = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free}))
}
enc_from = name_to_enc(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
@@ -48986,7 +53783,7 @@ func test_translate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
if int32(enc_from) == 1 {
z = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
if objc == 5 {
- z = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+32, z))
+ z = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+32, z))
}
sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, z, enc_from, xDel)
} else {
@@ -48994,7 +53791,7 @@ func test_translate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
if objc == 5 {
var zTmp uintptr = z
z = sqlite3.Xsqlite3_malloc(tls, *(*int32)(unsafe.Pointer(bp + 40 /* len */)))
- crt.Xmemcpy(tls, z, zTmp, uint64(*(*int32)(unsafe.Pointer(bp + 40 /* len */))))
+ libc.Xmemcpy(tls, z, zTmp, uint64(*(*int32)(unsafe.Pointer(bp + 40 /* len */))))
}
sqlite3.Xsqlite3ValueSetStr(tls, pVal, -1, z, enc_from, xDel)
}
@@ -49012,31 +53809,31 @@ func test_translate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
return 0
}
-func test_translate_selftest(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:189:26: */
+func test_translate_selftest(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test5.c:189:26: */
sqlite3.Xsqlite3UtfSelfTest(tls)
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest5_Init(tls *crt.TLS, interp uintptr) int32 { /* test5.c:205:5: */
+func Sqlitetest5_Init(tls *libc.TLS, interp uintptr) int32 { /* test5.c:205:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd4)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd5)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aCmd4[i].FzName, aCmd4[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aCmd5[i].FzName, aCmd5[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aCmd4 = [4]struct {
+var aCmd5 = [4]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 23181 /* "binarize" */, FxProc: 0},
- {FzName: ts + 23190 /* "test_value_overh..." */, FxProc: 0},
- {FzName: ts + 23210 /* "test_translate" */, FxProc: 0},
- {FzName: ts + 23225 /* "translate_selfte..." */, FxProc: 0},
+ {FzName: ts + 25280 /* "binarize" */, FxProc: 0},
+ {FzName: ts + 25289 /* "test_value_overh..." */, FxProc: 0},
+ {FzName: ts + 25309 /* "test_translate" */, FxProc: 0},
+ {FzName: ts + 25324 /* "translate_selfte..." */, FxProc: 0},
} /* test5.c:209:5 */
// end block for C++
@@ -49095,19 +53892,19 @@ var g = CrashGlobal{FpWriteList: uintptr(0), FpWriteListEnd: uintptr(0), FiSecto
// Set this global variable to 1 to enable crash testing.
var sqlite3CrashTestEnable int32 = 0 /* test6.c:161:12 */
-func crash_malloc(tls *crt.TLS, nByte int32) uintptr { /* test6.c:163:13: */
+func crash_malloc(tls *libc.TLS, nByte int32) uintptr { /* test6.c:163:13: */
return tcl.XTcl_AttemptAlloc(tls, uint32(size_t(nByte)))
}
-func crash_free(tls *crt.TLS, p uintptr) { /* test6.c:166:13: */
+func crash_free(tls *libc.TLS, p uintptr) { /* test6.c:166:13: */
tcl.XTcl_Free(tls, p)
}
-func crash_realloc(tls *crt.TLS, p uintptr, n int32) uintptr { /* test6.c:169:13: */
+func crash_realloc(tls *libc.TLS, p uintptr, n int32) uintptr { /* test6.c:169:13: */
return tcl.XTcl_AttemptRealloc(tls, p, uint32(size_t(n)))
}
// Wrapper around the sqlite3OsWrite() function that avoids writing to the
// 512 byte block begining at offset PENDING_BYTE.
-func writeDbFile(tls *crt.TLS, p uintptr, z uintptr, iAmt i64, iOff i64) int32 { /* test6.c:177:12: */
+func writeDbFile(tls *libc.TLS, p uintptr, z uintptr, iAmt i64, iOff i64) int32 { /* test6.c:177:12: */
var rc int32 = 0
var iSkip int32 = 0
if (iAmt - i64(iSkip)) > int64(0) {
@@ -49118,7 +53915,7 @@ func writeDbFile(tls *crt.TLS, p uintptr, z uintptr, iAmt i64, iOff i64) int32 {
// Flush the write-list as if xSync() had been called on file handle
// pFile. If isCrash is true, simulate a crash.
-func writeListSync(tls *crt.TLS, pFile uintptr, isCrash int32) int32 { /* test6.c:190:12: */
+func writeListSync(tls *libc.TLS, pFile uintptr, isCrash int32) int32 { /* test6.c:190:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -49265,7 +54062,7 @@ func writeListSync(tls *crt.TLS, pFile uintptr, isCrash int32) int32 { /* test6.
}
if (rc == 0) && (isCrash != 0) {
- crt.Xexit(tls, -1)
+ libc.Xexit(tls, -1)
}
for pWrite = g.FpWriteList; (pWrite != 0) && ((*WriteBuffer)(unsafe.Pointer(pWrite)).FpNext != 0); pWrite = (*WriteBuffer)(unsafe.Pointer(pWrite)).FpNext {
@@ -49276,20 +54073,20 @@ func writeListSync(tls *crt.TLS, pFile uintptr, isCrash int32) int32 { /* test6.
}
// Add an entry to the end of the write-list.
-func writeListAppend(tls *crt.TLS, pFile uintptr, iOffset sqlite3_int64, zBuf uintptr, nBuf int32) int32 { /* test6.c:362:12: */
+func writeListAppend(tls *libc.TLS, pFile uintptr, iOffset sqlite3_int64, zBuf uintptr, nBuf int32) int32 { /* test6.c:362:12: */
var pNew uintptr
pNew = crash_malloc(tls, (int32(uint64(unsafe.Sizeof(WriteBuffer{})) + uint64(nBuf))))
if pNew == uintptr(0) {
- crt.Xfprintf(tls, crt.Xstderr, ts+23244 /* "out of memory in..." */, 0)
+ libc.Xfprintf(tls, libc.Xstderr, ts+25343 /* "out of memory in..." */, 0)
}
- crt.Xmemset(tls, pNew, 0, (uint64(unsafe.Sizeof(WriteBuffer{})) + uint64(nBuf)))
+ libc.Xmemset(tls, pNew, 0, (uint64(unsafe.Sizeof(WriteBuffer{})) + uint64(nBuf)))
(*WriteBuffer)(unsafe.Pointer(pNew)).FiOffset = iOffset
(*WriteBuffer)(unsafe.Pointer(pNew)).FnBuf = nBuf
(*WriteBuffer)(unsafe.Pointer(pNew)).FpFile = pFile
if zBuf != 0 {
(*WriteBuffer)(unsafe.Pointer(pNew)).FzBuf = (pNew + uintptr(1)*40)
- crt.Xmemcpy(tls, (*WriteBuffer)(unsafe.Pointer(pNew)).FzBuf, zBuf, uint64(nBuf))
+ libc.Xmemcpy(tls, (*WriteBuffer)(unsafe.Pointer(pNew)).FzBuf, zBuf, uint64(nBuf))
}
if g.FpWriteList != 0 {
@@ -49304,7 +54101,7 @@ func writeListAppend(tls *crt.TLS, pFile uintptr, iOffset sqlite3_int64, zBuf ui
}
// Close a crash-file.
-func cfClose(tls *crt.TLS, pFile uintptr) int32 { /* test6.c:399:12: */
+func cfClose(tls *libc.TLS, pFile uintptr) int32 { /* test6.c:399:12: */
var pCrash uintptr = pFile
writeListSync(tls, pCrash, 0)
sqlite3.Xsqlite3OsClose(tls, (*CrashFile)(unsafe.Pointer(pCrash)).FpRealFile)
@@ -49312,7 +54109,7 @@ func cfClose(tls *crt.TLS, pFile uintptr) int32 { /* test6.c:399:12: */
}
// Read data from a crash-file.
-func cfRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test6.c:409:12: */
+func cfRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test6.c:409:12: */
var pCrash uintptr = pFile
var nCopy int32 = func() int32 {
if (i64(iAmt)) < ((*CrashFile)(unsafe.Pointer(pCrash)).FiSize - iOfst) {
@@ -49322,7 +54119,7 @@ func cfRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_
}()
if nCopy > 0 {
- crt.Xmemcpy(tls, zBuf, ((*CrashFile)(unsafe.Pointer(pCrash)).FzData + uintptr(iOfst)), uint64(nCopy))
+ libc.Xmemcpy(tls, zBuf, ((*CrashFile)(unsafe.Pointer(pCrash)).FzData + uintptr(iOfst)), uint64(nCopy))
}
// Check the file-size to see if this is a short-read
@@ -49334,7 +54131,7 @@ func cfRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_
}
// Write data to a crash-file.
-func cfWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test6.c:433:12: */
+func cfWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test6.c:433:12: */
var pCrash uintptr = pFile
if (sqlite_int64(iAmt) + iOfst) > (*CrashFile)(unsafe.Pointer(pCrash)).FiSize {
(*CrashFile)(unsafe.Pointer(pCrash)).FiSize = i64((int32(sqlite_int64(iAmt) + iOfst)))
@@ -49346,16 +54143,16 @@ func cfWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
if !(zNew != 0) {
return 7
}
- crt.Xmemset(tls, (zNew + uintptr((*CrashFile)(unsafe.Pointer(pCrash)).FnData)), 0, (uint64(nNew - (*CrashFile)(unsafe.Pointer(pCrash)).FnData)))
+ libc.Xmemset(tls, (zNew + uintptr((*CrashFile)(unsafe.Pointer(pCrash)).FnData)), 0, (uint64(nNew - (*CrashFile)(unsafe.Pointer(pCrash)).FnData)))
(*CrashFile)(unsafe.Pointer(pCrash)).FnData = nNew
(*CrashFile)(unsafe.Pointer(pCrash)).FzData = zNew
}
- crt.Xmemcpy(tls, ((*CrashFile)(unsafe.Pointer(pCrash)).FzData + uintptr(iOfst)), zBuf, uint64(iAmt))
+ libc.Xmemcpy(tls, ((*CrashFile)(unsafe.Pointer(pCrash)).FzData + uintptr(iOfst)), zBuf, uint64(iAmt))
return writeListAppend(tls, pFile, iOfst, zBuf, iAmt)
}
// Truncate a crash-file.
-func cfTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test6.c:461:12: */
+func cfTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test6.c:461:12: */
var pCrash uintptr = pFile
if (*CrashFile)(unsafe.Pointer(pCrash)).FiSize > size {
@@ -49365,14 +54162,14 @@ func cfTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test6
}
// Sync a crash-file.
-func cfSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test6.c:473:12: */
+func cfSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test6.c:473:12: */
var pCrash uintptr = pFile
var isCrash int32 = 0
var zName uintptr = (*CrashFile)(unsafe.Pointer(pCrash)).FzName
var zCrashFile uintptr = uintptr(unsafe.Pointer(&g)) + 28 /* &.zCrashFile */
- var nName int32 = int32(crt.Xstrlen(tls, zName))
- var nCrashFile int32 = int32(crt.Xstrlen(tls, zCrashFile))
+ var nName int32 = int32(libc.Xstrlen(tls, zName))
+ var nCrashFile int32 = int32(libc.Xstrlen(tls, zCrashFile))
if (nCrashFile > 0) && (int32(*(*int8)(unsafe.Pointer(zCrashFile + uintptr((nCrashFile - 1))))) == '*') {
nCrashFile--
@@ -49381,8 +54178,8 @@ func cfSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test6.c:473:12:
}
}
- if (nName == nCrashFile) && (0 == crt.Xmemcmp(tls, zName, zCrashFile, uint64(nName))) {
- if (crt.PreDecInt32(&g.FiCrash, 1)) == 0 {
+ if (nName == nCrashFile) && (0 == libc.Xmemcmp(tls, zName, zCrashFile, uint64(nName))) {
+ if (libc.PreDecInt32(&g.FiCrash, 1)) == 0 {
isCrash = 1
}
}
@@ -49391,23 +54188,23 @@ func cfSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test6.c:473:12:
}
// Return the current file-size of the crash-file.
-func cfFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test6.c:505:12: */
+func cfFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test6.c:505:12: */
var pCrash uintptr = pFile
*(*sqlite_int64)(unsafe.Pointer(pSize)) = (*CrashFile)(unsafe.Pointer(pCrash)).FiSize
return 0
}
// Calls related to file-locks are passed on to the real file handle.
-func cfLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test6.c:514:12: */
+func cfLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test6.c:514:12: */
return sqlite3.Xsqlite3OsLock(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile, eLock)
}
-func cfUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test6.c:517:12: */
+func cfUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test6.c:517:12: */
return sqlite3.Xsqlite3OsUnlock(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile, eLock)
}
-func cfCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test6.c:520:12: */
+func cfCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test6.c:520:12: */
return sqlite3.Xsqlite3OsCheckReservedLock(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile, pResOut)
}
-func cfFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test6.c:523:12: */
+func cfFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test6.c:523:12: */
if op == 5 {
var pCrash uintptr = pFile
var nByte i64 = *(*i64)(unsafe.Pointer(pArg))
@@ -49424,24 +54221,24 @@ func cfFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 {
// The xSectorSize() and xDeviceCharacteristics() functions return
// the global values configured by the [sqlite_crashparams] tcl
// interface.
-func cfSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test6.c:542:12: */
+func cfSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test6.c:542:12: */
return g.FiSectorSize
}
-func cfDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test6.c:545:12: */
+func cfDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test6.c:545:12: */
return g.FiDeviceCharacteristics
}
// Pass-throughs for WAL support.
-func cfShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test6.c:552:12: */
+func cfShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test6.c:552:12: */
return sqlite3.Xsqlite3OsShmLock(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile, ofst, n, flags)
}
-func cfShmBarrier(tls *crt.TLS, pFile uintptr) { /* test6.c:555:13: */
+func cfShmBarrier(tls *libc.TLS, pFile uintptr) { /* test6.c:555:13: */
sqlite3.Xsqlite3OsShmBarrier(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile)
}
-func cfShmUnmap(tls *crt.TLS, pFile uintptr, delFlag int32) int32 { /* test6.c:558:12: */
+func cfShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* test6.c:558:12: */
return sqlite3.Xsqlite3OsShmUnmap(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile, delFlag)
}
-func cfShmMap(tls *crt.TLS, pFile uintptr, iRegion int32, sz int32, w int32, pp uintptr) int32 { /* test6.c:561:12: */
+func cfShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, sz int32, w int32, pp uintptr) int32 { /* test6.c:561:12: */
return sqlite3.Xsqlite3OsShmMap(tls, (*CrashFile)(unsafe.Pointer(pFile)).FpRealFile, iRegion, sz, w, pp)
}
@@ -49474,7 +54271,7 @@ type crashAppData = struct{ FpOrig uintptr }
// and allocates space for the "real" file structure using
// sqlite3_malloc(). The assumption here is (pVfs->szOsFile) is
// equal or greater than sizeof(CrashFile).
-func cfOpen(tls *crt.TLS, pCfVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test6.c:607:12: */
+func cfOpen(tls *libc.TLS, pCfVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test6.c:607:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -49483,7 +54280,7 @@ func cfOpen(tls *crt.TLS, pCfVfs uintptr, zName uintptr, pFile uintptr, flags in
var pWrapper uintptr = pFile
var pReal uintptr = (pWrapper + uintptr(1)*56)
- crt.Xmemset(tls, pWrapper, 0, uint64(unsafe.Sizeof(CrashFile{})))
+ libc.Xmemset(tls, pWrapper, 0, uint64(unsafe.Sizeof(CrashFile{})))
rc = sqlite3.Xsqlite3OsOpen(tls, pVfs, zName, pReal, flags, pOutFlags)
if rc == 0 {
@@ -49509,7 +54306,7 @@ func cfOpen(tls *crt.TLS, pCfVfs uintptr, zName uintptr, pFile uintptr, flags in
// to the xRead() method reads less than 128KB of data.
var iOff i64
- crt.Xmemset(tls, (*CrashFile)(unsafe.Pointer(pWrapper)).FzData, 0, uint64((*CrashFile)(unsafe.Pointer(pWrapper)).FnData))
+ libc.Xmemset(tls, (*CrashFile)(unsafe.Pointer(pWrapper)).FzData, 0, uint64((*CrashFile)(unsafe.Pointer(pWrapper)).FnData))
for iOff = int64(0); iOff < (*CrashFile)(unsafe.Pointer(pWrapper)).FiSize; iOff = iOff + (int64(512)) {
var nRead int32 = (int32((*CrashFile)(unsafe.Pointer(pWrapper)).FiSize - iOff))
if nRead > 512 {
@@ -49527,69 +54324,69 @@ func cfOpen(tls *crt.TLS, pCfVfs uintptr, zName uintptr, pFile uintptr, flags in
return rc
}
-func cfDelete(tls *crt.TLS, pCfVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test6.c:661:12: */
+func cfDelete(tls *libc.TLS, pCfVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test6.c:661:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pVfs + 48 /* &.xDelete */))))(tls, pVfs, zPath, dirSync)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pVfs + 48 /* &.xDelete */))))(tls, pVfs, zPath, dirSync)
}
-func cfAccess(tls *crt.TLS, pCfVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test6.c:665:12: */
+func cfAccess(tls *libc.TLS, pCfVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test6.c:665:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 56 /* &.xAccess */))))(tls, pVfs, zPath, flags, pResOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 56 /* &.xAccess */))))(tls, pVfs, zPath, flags, pResOut)
}
-func cfFullPathname(tls *crt.TLS, pCfVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* test6.c:674:12: */
+func cfFullPathname(tls *libc.TLS, pCfVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* test6.c:674:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 64 /* &.xFullPathname */))))(tls, pVfs, zPath, nPathOut, zPathOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 64 /* &.xFullPathname */))))(tls, pVfs, zPath, nPathOut, zPathOut)
}
-func cfDlOpen(tls *crt.TLS, pCfVfs uintptr, zPath uintptr) uintptr { /* test6.c:683:13: */
+func cfDlOpen(tls *libc.TLS, pCfVfs uintptr, zPath uintptr) uintptr { /* test6.c:683:13: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 72 /* &.xDlOpen */))))(tls, pVfs, zPath)
+ return (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 72 /* &.xDlOpen */))))(tls, pVfs, zPath)
}
-func cfDlError(tls *crt.TLS, pCfVfs uintptr, nByte int32, zErrMsg uintptr) { /* test6.c:687:13: */
+func cfDlError(tls *libc.TLS, pCfVfs uintptr, nByte int32, zErrMsg uintptr) { /* test6.c:687:13: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- (*(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer((pVfs + 80 /* &.xDlError */))))(tls, pVfs, nByte, zErrMsg)
+ (*(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer((pVfs + 80 /* &.xDlError */))))(tls, pVfs, nByte, zErrMsg)
}
-func cfDlSym(tls *crt.TLS, pCfVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* test6.c:691:13: */
+func cfDlSym(tls *libc.TLS, pCfVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* test6.c:691:13: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 88 /* &.xDlSym */))))(tls, pVfs, pH, zSym)
+ return (*(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 88 /* &.xDlSym */))))(tls, pVfs, pH, zSym)
}
-func cfDlClose(tls *crt.TLS, pCfVfs uintptr, pHandle uintptr) { /* test6.c:695:13: */
+func cfDlClose(tls *libc.TLS, pCfVfs uintptr, pHandle uintptr) { /* test6.c:695:13: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer((pVfs + 96 /* &.xDlClose */))))(tls, pVfs, pHandle)
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer((pVfs + 96 /* &.xDlClose */))))(tls, pVfs, pHandle)
}
-func cfRandomness(tls *crt.TLS, pCfVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test6.c:699:12: */
+func cfRandomness(tls *libc.TLS, pCfVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test6.c:699:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 104 /* &.xRandomness */))))(tls, pVfs, nByte, zBufOut)
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 104 /* &.xRandomness */))))(tls, pVfs, nByte, zBufOut)
}
-func cfSleep(tls *crt.TLS, pCfVfs uintptr, nMicro int32) int32 { /* test6.c:703:12: */
+func cfSleep(tls *libc.TLS, pCfVfs uintptr, nMicro int32) int32 { /* test6.c:703:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer((pVfs + 112 /* &.xSleep */))))(tls, pVfs, nMicro)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((pVfs + 112 /* &.xSleep */))))(tls, pVfs, nMicro)
}
-func cfCurrentTime(tls *crt.TLS, pCfVfs uintptr, pTimeOut uintptr) int32 { /* test6.c:707:12: */
+func cfCurrentTime(tls *libc.TLS, pCfVfs uintptr, pTimeOut uintptr) int32 { /* test6.c:707:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 120 /* &.xCurrentTime */))))(tls, pVfs, pTimeOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pVfs + 120 /* &.xCurrentTime */))))(tls, pVfs, pTimeOut)
}
-func cfGetLastError(tls *crt.TLS, pCfVfs uintptr, n int32, z uintptr) int32 { /* test6.c:711:12: */
+func cfGetLastError(tls *libc.TLS, pCfVfs uintptr, n int32, z uintptr) int32 { /* test6.c:711:12: */
var pVfs uintptr = (*sqlite3_vfs)(unsafe.Pointer(pCfVfs)).FpAppData
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 128 /* &.xGetLastError */))))(tls, pVfs, n, z)
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 128 /* &.xGetLastError */))))(tls, pVfs, n, z)
}
-func processDevSymArgs(tls *crt.TLS, interp uintptr, objc int32, objv uintptr, piDeviceChar uintptr, piSectorSize uintptr) int32 { /* test6.c:716:12: */
+func processDevSymArgs(tls *libc.TLS, interp uintptr, objc int32, objv uintptr, piDeviceChar uintptr, piSectorSize uintptr) int32 { /* test6.c:716:12: */
bp := tls.Alloc(316)
defer tls.Free(316)
*(*[14]DeviceFlag)(unsafe.Pointer(bp + 88 /* aFlag */)) = [14]DeviceFlag{
- {FzName: ts + 23282 /* "atomic" */, FiValue: 0x00000001},
- {FzName: ts + 23289 /* "atomic512" */, FiValue: 0x00000002},
- {FzName: ts + 23299 /* "atomic1k" */, FiValue: 0x00000004},
- {FzName: ts + 23308 /* "atomic2k" */, FiValue: 0x00000008},
- {FzName: ts + 23317 /* "atomic4k" */, FiValue: 0x00000010},
- {FzName: ts + 23326 /* "atomic8k" */, FiValue: 0x00000020},
- {FzName: ts + 23335 /* "atomic16k" */, FiValue: 0x00000040},
- {FzName: ts + 23345 /* "atomic32k" */, FiValue: 0x00000080},
- {FzName: ts + 23355 /* "atomic64k" */, FiValue: 0x00000100},
- {FzName: ts + 23365 /* "sequential" */, FiValue: 0x00000400},
- {FzName: ts + 23376 /* "safe_append" */, FiValue: 0x00000200},
- {FzName: ts + 23388 /* "powersafe_overwr..." */, FiValue: 0x00001000},
- {FzName: ts + 23408 /* "batch-atomic" */, FiValue: 0x00004000},
+ {FzName: ts + 25381 /* "atomic" */, FiValue: 0x00000001},
+ {FzName: ts + 25388 /* "atomic512" */, FiValue: 0x00000002},
+ {FzName: ts + 25398 /* "atomic1k" */, FiValue: 0x00000004},
+ {FzName: ts + 25407 /* "atomic2k" */, FiValue: 0x00000008},
+ {FzName: ts + 25416 /* "atomic4k" */, FiValue: 0x00000010},
+ {FzName: ts + 25425 /* "atomic8k" */, FiValue: 0x00000020},
+ {FzName: ts + 25434 /* "atomic16k" */, FiValue: 0x00000040},
+ {FzName: ts + 25444 /* "atomic32k" */, FiValue: 0x00000080},
+ {FzName: ts + 25454 /* "atomic64k" */, FiValue: 0x00000100},
+ {FzName: ts + 25464 /* "sequential" */, FiValue: 0x00000400},
+ {FzName: ts + 25475 /* "safe_append" */, FiValue: 0x00000200},
+ {FzName: ts + 25487 /* "powersafe_overwr..." */, FiValue: 0x00001000},
+ {FzName: ts + 25507 /* "batch-atomic" */, FiValue: 0x00004000},
{FzName: uintptr(0), FiValue: 0},
}
var i int32
@@ -49603,15 +54400,15 @@ func processDevSymArgs(tls *crt.TLS, interp uintptr, objc int32, objv uintptr, p
var zOpt uintptr = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp+64 /* &nOpt */)
- if (((*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) > 11) || (*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) < 2)) || (crt.Xstrncmp(tls, ts+23421 /* "-sectorsize" */, zOpt, uint64(*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)))) != 0)) &&
- (((*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) > 16) || (*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) < 2)) || (crt.Xstrncmp(tls, ts+23433 /* "-characteristics" */, zOpt, uint64(*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)))) != 0)) {
+ if (((*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) > 11) || (*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) < 2)) || (libc.Xstrncmp(tls, ts+25520 /* "-sectorsize" */, zOpt, uint64(*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)))) != 0)) &&
+ (((*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) > 16) || (*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)) < 2)) || (libc.Xstrncmp(tls, ts+25532 /* "-characteristics" */, zOpt, uint64(*(*int32)(unsafe.Pointer(bp + 64 /* nOpt */)))) != 0)) {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp, ts+23450 /* "Bad option: \"" */, zOpt,
- ts+23464 /* "\" - must be \"-ch..." */, 0))
+ libc.VaList(bp, ts+25549 /* "Bad option: \"" */, zOpt,
+ ts+25563 /* "\" - must be \"-ch..." */, 0))
return 1
}
if i == (objc - 1) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+23512 /* "Option requires ..." */, zOpt, ts+9801 /* "\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+25611 /* "Option requires ..." */, zOpt, ts+11456 /* "\"" */, 0))
return 1
}
@@ -49638,10 +54435,10 @@ func processDevSymArgs(tls *crt.TLS, interp uintptr, objc int32, objv uintptr, p
tcl.XTcl_UtfToLower(tls, tcl.XTcl_GetString(tls, pFlag))
rc = tcl.XTcl_GetIndexFromObjStruct(tls,
- interp, pFlag, bp+88 /* &aFlag[0] */, int32(unsafe.Sizeof(DeviceFlag{})), ts+23543 /* "no such flag" */, 0, bp+312 /* &iChoice */)
+ interp, pFlag, bp+88 /* &aFlag[0] */, int32(unsafe.Sizeof(DeviceFlag{})), ts+25642 /* "no such flag" */, 0, bp+312 /* &iChoice */)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pFlag
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -49675,7 +54472,7 @@ type DeviceFlag = struct {
//
// Simulate a crash immediately. This function does not return
// (writeListSync() calls exit(-1)).
-func crashNowCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:816:26: */
+func crashNowCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:816:26: */
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
return 1
@@ -49689,7 +54486,7 @@ func crashNowCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
//
// Parameter ENABLE must be a boolean value. If true, then the "crash"
// vfs is added to the system. If false, it is removed.
-func crashEnableCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:837:26: */
+func crashEnableCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:837:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -49698,7 +54495,7 @@ func crashEnableCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
*(*int32)(unsafe.Pointer(bp + 4 /* isDefault */)) = 0
if (objc != 2) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+23556 /* "ENABLE ?DEFAULT?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25655 /* "ENABLE ?DEFAULT?" */)
return 1
}
@@ -49731,7 +54528,7 @@ var crashVfs = sqlite3_vfs{FiVersion: 2, FszOsFile: // iVersion
0, FmxPathname:// szOsFile
0, FpNext:// mxPathname
uintptr(0), FzName:// pNext
-ts + 23573, /* "crash" */ FpAppData:// zName
+ts + 25672, /* "crash" */ FpAppData:// zName
uintptr(0), FxOpen:// pAppData
0, FxDelete:// xOpen
@@ -49765,7 +54562,7 @@ uintptr(0), // xCurrentTimeInt64
//
// sqlite_crashparams -sect 1024 -char {atomic sequential} ./test.db 1
//
-func crashParamsObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:916:26: */
+func crashParamsObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:916:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -49784,7 +54581,7 @@ func crashParamsObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
if !(objc < 3) {
goto __1
}
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+23579 /* "?OPTIONS? DELAY ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25678 /* "?OPTIONS? DELAY ..." */)
goto error
__1:
;
@@ -49793,7 +54590,7 @@ __1:
if !(uint64(*(*int32)(unsafe.Pointer(bp + 32 /* nCrashFile */))) >= uint64(unsafe.Sizeof([500]int8{}))) {
goto __2
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+23605 /* "Filename is too ..." */, zCrashFile, ts+9801 /* "\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+25704 /* "Filename is too ..." */, zCrashFile, ts+11456 /* "\"" */, 0))
goto error
__2:
;
@@ -49825,7 +54622,7 @@ __6:
;
g.FiCrash = *(*int32)(unsafe.Pointer(bp + 36 /* iDelay */))
- crt.Xmemcpy(tls, uintptr(unsafe.Pointer(&g))+28 /* &.zCrashFile */, zCrashFile, (uint64(*(*int32)(unsafe.Pointer(bp + 32 /* nCrashFile */)) + 1)))
+ libc.Xmemcpy(tls, uintptr(unsafe.Pointer(&g))+28 /* &.zCrashFile */, zCrashFile, (uint64(*(*int32)(unsafe.Pointer(bp + 32 /* nCrashFile */)) + 1)))
sqlite3CrashTestEnable = 1
return 0
@@ -49833,7 +54630,7 @@ error:
return 1
}
-func devSymObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:963:26: */
+func devSymObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:963:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -49849,14 +54646,14 @@ func devSymObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
}
// tclcmd: sqlite3_crash_on_write N
-func writeCrashObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:985:26: */
+func writeCrashObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:985:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
*(*int32)(unsafe.Pointer(bp /* nWrite */)) = 0
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+23629 /* "NWRITE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25728 /* "NWRITE" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &nWrite */) != 0 {
@@ -49868,7 +54665,7 @@ func writeCrashObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
}
// tclcmd: unregister_devsim
-func dsUnregisterObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:1009:26: */
+func dsUnregisterObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:1009:26: */
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
@@ -49880,21 +54677,21 @@ func dsUnregisterObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
}
// tclcmd: register_jt_vfs ?-default? PARENT-VFS
-func jtObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:1029:26: */
+func jtObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:1029:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var zParent uintptr = uintptr(0)
if (objc != 2) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+23636 /* "?-default? PAREN..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25735 /* "?-default? PAREN..." */)
return 1
}
zParent = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
if objc == 3 {
- if crt.Xstrcmp(tls, zParent, ts+23658 /* "-default" */) != 0 {
+ if libc.Xstrcmp(tls, zParent, ts+25757 /* "-default" */) != 0 {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp, ts+9696 /* "bad option \"" */, zParent, ts+23667 /* "\": must be -defa..." */, 0))
+ libc.VaList(bp, ts+11355 /* "bad option \"" */, zParent, ts+25766 /* "\": must be -defa..." */, 0))
return 1
}
zParent = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
@@ -49903,8 +54700,8 @@ func jtObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv
if !(int32(*(*int8)(unsafe.Pointer(zParent))) != 0) {
zParent = uintptr(0)
}
- if jt_register(tls, zParent, (crt.Bool32(objc == 3))) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+23687 /* "Error in jt_regi..." */, 0))
+ if jt_register(tls, zParent, (libc.Bool32(objc == 3))) != 0 {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+25786 /* "Error in jt_regi..." */, 0))
return 1
}
@@ -49912,7 +54709,7 @@ func jtObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv
}
// tclcmd: unregister_jt_vfs
-func jtUnregisterObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:1067:26: */
+func jtUnregisterObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test6.c:1067:26: */
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
@@ -49924,30 +54721,30 @@ func jtUnregisterObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
}
// This procedure registers the TCL procedures defined in this file.
-func Sqlitetest6_Init(tls *crt.TLS, interp uintptr) int32 { /* test6.c:1089:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23708 /* "sqlite3_crash_en..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+func Sqlitetest6_Init(tls *libc.TLS, interp uintptr) int32 { /* test6.c:1089:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25807 /* "sqlite3_crash_en..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{crashEnableCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23729 /* "sqlite3_crashpar..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25828 /* "sqlite3_crashpar..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{crashParamsObjCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23749 /* "sqlite3_crash_no..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25848 /* "sqlite3_crash_no..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{crashNowCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23767 /* "sqlite3_simulate..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25866 /* "sqlite3_simulate..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{devSymObjCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23791 /* "sqlite3_crash_on..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25890 /* "sqlite3_crash_on..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{writeCrashObjCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23814 /* "unregister_devsi..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25913 /* "unregister_devsi..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{dsUnregisterObjCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23832 /* "register_jt_vfs" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25931 /* "register_jt_vfs" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{jtObjCmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+23848 /* "unregister_jt_vf..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+25947 /* "unregister_jt_vf..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{jtUnregisterObjCmd})), uintptr(0), uintptr(0))
return 0
}
@@ -49978,31 +54775,31 @@ type Thread1 = struct {
var threadset1 [26]Thread1 /* test7.c:90:15: */
// The main loop for a thread. Threads use busy waiting.
-func client_main(tls *crt.TLS, pArg uintptr) uintptr { /* test7.c:95:13: */
+func client_main(tls *libc.TLS, pArg uintptr) uintptr { /* test7.c:95:13: */
var p uintptr = pArg
if (*Thread1)(unsafe.Pointer(p)).Fdb != 0 {
sqlite3_client_close(tls, (*Thread1)(unsafe.Pointer(p)).Fdb)
}
sqlite3_client_open(tls, (*Thread1)(unsafe.Pointer(p)).FzFilename, (p + 40 /* &.db */))
if 0 != sqlite3.Xsqlite3_errcode(tls, (*Thread1)(unsafe.Pointer(p)).Fdb) {
- (*Thread1)(unsafe.Pointer(p)).FzErr = crt.Xstrdup(tls, sqlite3.Xsqlite3_errmsg(tls, (*Thread1)(unsafe.Pointer(p)).Fdb))
+ (*Thread1)(unsafe.Pointer(p)).FzErr = libc.Xstrdup(tls, sqlite3.Xsqlite3_errmsg(tls, (*Thread1)(unsafe.Pointer(p)).Fdb))
sqlite3_client_close(tls, (*Thread1)(unsafe.Pointer(p)).Fdb)
(*Thread1)(unsafe.Pointer(p)).Fdb = uintptr(0)
}
(*Thread1)(unsafe.Pointer(p)).FpStmt = uintptr(0)
(*Thread1)(unsafe.Pointer(p)).Fcompleted = 1
for (*Thread1)(unsafe.Pointer(p)).Fopnum <= (*Thread1)(unsafe.Pointer(p)).Fcompleted {
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
for (*Thread1)(unsafe.Pointer(p)).FxOp != 0 {
if ((*Thread1)(unsafe.Pointer(p)).FzErr != 0) && ((*Thread1)(unsafe.Pointer(p)).FzErr != (*Thread1)(unsafe.Pointer(p)).FzStaticErr) {
sqlite3.Xsqlite3_free(tls, (*Thread1)(unsafe.Pointer(p)).FzErr)
(*Thread1)(unsafe.Pointer(p)).FzErr = uintptr(0)
}
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((p + 8 /* &.xOp */))))(tls, p)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((p + 8 /* &.xOp */))))(tls, p)
(*Thread1)(unsafe.Pointer(p)).Fcompleted++
for (*Thread1)(unsafe.Pointer(p)).Fopnum <= (*Thread1)(unsafe.Pointer(p)).Fcompleted {
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
}
if (*Thread1)(unsafe.Pointer(p)).FpStmt != 0 {
@@ -50025,12 +54822,12 @@ func client_main(tls *crt.TLS, pArg uintptr) uintptr { /* test7.c:95:13: */
// Get a thread ID which is an upper case letter. Return the index.
// If the argument is not a valid thread ID put an error message in
// the interpreter and return -1.
-func parse_client_id(tls *crt.TLS, interp uintptr, zArg uintptr) int32 { /* test7.c:142:12: */
+func parse_client_id(tls *libc.TLS, interp uintptr, zArg uintptr) int32 { /* test7.c:142:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
- if (((zArg == uintptr(0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) == 0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(1)))) != 0)) || !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(crt.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zArg + uintptr(0))))))*2))) & int32(_ISupper)) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+22620 /* "thread ID must b..." */, 0))
+ if (((zArg == uintptr(0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) == 0)) || (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(1)))) != 0)) || !((int32(*(*uint16)(unsafe.Pointer((*(*uintptr)(unsafe.Pointer(libc.X__ctype_b_loc(tls)))) + uintptr(int32(uint8(*(*int8)(unsafe.Pointer(zArg + uintptr(0))))))*2))) & int32(_ISupper)) != 0) {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+24719 /* "thread ID must b..." */, 0))
return -1
}
return (int32(*(*int8)(unsafe.Pointer(zArg + uintptr(0)))) - 'A')
@@ -50040,7 +54837,7 @@ func parse_client_id(tls *crt.TLS, interp uintptr, zArg uintptr) int32 { /* test
//
// NAME should be an upper case letter. Start the thread running with
// an open connection to the given database.
-func tcl_client_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:156:26: */
+func tcl_client_create(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:156:26: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -50050,8 +54847,8 @@ func tcl_client_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
var rc int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22659 /* " ID FILENAME" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24758 /* " ID FILENAME" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50059,24 +54856,24 @@ func tcl_client_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
return 1
}
if threadset1[i].Fbusy != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22672 /* "thread " */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+22680 /* " is already runn..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24771 /* "thread " */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+24779 /* " is already runn..." */, 0))
return 1
}
threadset1[i].Fbusy = 1
sqlite3.Xsqlite3_free(tls, threadset1[i].FzFilename)
- threadset1[i].FzFilename = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ threadset1[i].FzFilename = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
threadset1[i].Fopnum = 1
threadset1[i].Fcompleted = 0
- rc = crt2.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr) uintptr
+ rc = libc2.Xpthread_create(tls, bp+88 /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
}{client_main})), (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, ts+22700 /* "failed to create..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, ts+24799 /* "failed to create..." */, 0))
sqlite3.Xsqlite3_free(tls, threadset1[i].FzFilename)
threadset1[i].Fbusy = 0
return 1
}
- crt2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */)))
+ libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp + 88 /* x */)))
if threadset1[i].FnServer == 0 {
threadset1[i].FnServer = 1
sqlite3_server_start2(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688 + 1680 /* &.nServer */))
@@ -50085,24 +54882,24 @@ func tcl_client_create(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
}
// Wait for a thread to reach its idle state.
-func client_wait(tls *crt.TLS, p uintptr) { /* test7.c:200:13: */
+func client_wait(tls *libc.TLS, p uintptr) { /* test7.c:200:13: */
for (*Thread1)(unsafe.Pointer(p)).Fopnum > (*Thread1)(unsafe.Pointer(p)).Fcompleted {
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
}
// Usage: client_wait ID
//
// Wait on thread ID to reach its idle state.
-func tcl_client_wait(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:209:26: */
+func tcl_client_wait(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:209:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50110,7 +54907,7 @@ func tcl_client_wait(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
@@ -50118,7 +54915,7 @@ func tcl_client_wait(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
}
// Stop a thread.
-func stop_thread(tls *crt.TLS, p uintptr) { /* test7.c:235:13: */
+func stop_thread(tls *libc.TLS, p uintptr) { /* test7.c:235:13: */
client_wait(tls, p)
(*Thread1)(unsafe.Pointer(p)).FxOp = uintptr(0)
(*Thread1)(unsafe.Pointer(p)).Fopnum++
@@ -50134,15 +54931,15 @@ func stop_thread(tls *crt.TLS, p uintptr) { /* test7.c:235:13: */
//
// Cause a client thread to shut itself down. Wait for the shutdown to be
// completed. If ID is "*" then stop all client threads.
-func tcl_client_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:253:26: */
+func tcl_client_halt(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:253:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
if (int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)) + uintptr(0)))) == '*') && (int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)) + uintptr(1)))) == 0) {
@@ -50157,7 +54954,7 @@ func tcl_client_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
stop_thread(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
@@ -50174,7 +54971,7 @@ func tcl_client_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
if i == 26 {
break
}
- crt2.Xsched_yield(tls)
+ libc2.Xsched_yield(tls)
}
}
return 0
@@ -50184,7 +54981,7 @@ func tcl_client_halt(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Wait on the most recent client_step to complete, then return the
// number of columns in the result set.
-func tcl_client_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:301:26: */
+func tcl_client_argc(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:301:26: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -50192,8 +54989,8 @@ func tcl_client_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var zBuf [100]int8 at bp+72, 100
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50201,12 +54998,12 @@ func tcl_client_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72 /* &zBuf[0] */, ts+1237 /* "%d" */, crt.VaList(bp+48, threadset1[i].Fargc))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+56, bp+72 /* &zBuf[0] */, 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+72 /* &zBuf[0] */, ts+1237 /* "%d" */, libc.VaList(bp+48, threadset1[i].Fargc))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+56, bp+72 /* &zBuf[0] */, 0))
return 0
}
@@ -50214,7 +55011,7 @@ func tcl_client_argc(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Wait on the most recent client_step to complete, then return the
// value of the N-th columns in the result set.
-func tcl_client_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:333:26: */
+func tcl_client_argv(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:333:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -50222,8 +55019,8 @@ func tcl_client_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// var n int32 at bp+80, 4
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22747 /* " ID N" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24846 /* " ID N" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50231,7 +55028,7 @@ func tcl_client_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+80 /* &n */) != 0 {
@@ -50239,10 +55036,10 @@ func tcl_client_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
if (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) < 0) || (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) >= threadset1[i].Fargc) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+22753 /* "column number ou..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+24852 /* "column number ou..." */, 0))
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688 + 80 /* &.argv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688 + 80 /* &.argv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
return 0
}
@@ -50250,7 +55047,7 @@ func tcl_client_argv(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
//
// Wait on the most recent client_step to complete, then return the
// name of the N-th columns in the result set.
-func tcl_client_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:369:26: */
+func tcl_client_colname(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:369:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -50258,8 +55055,8 @@ func tcl_client_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
// var n int32 at bp+80, 4
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22747 /* " ID N" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24846 /* " ID N" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50267,7 +55064,7 @@ func tcl_client_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
if tcl.XTcl_GetInt(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), bp+80 /* &n */) != 0 {
@@ -50275,10 +55072,10 @@ func tcl_client_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
if (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) < 0) || (*(*int32)(unsafe.Pointer(bp + 80 /* n */)) >= threadset1[i].Fargc) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+22753 /* "column number ou..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+24852 /* "column number ou..." */, 0))
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688 + 880 /* &.colv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, *(*uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688 + 880 /* &.colv */) + uintptr(*(*int32)(unsafe.Pointer(bp + 80 /* n */)))*8)), 0))
return 0
}
@@ -50286,7 +55083,7 @@ func tcl_client_colname(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
//
// Wait on the most recent operation to complete, then return the
// result code from that operation.
-func tcl_client_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:407:26: */
+func tcl_client_result(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:407:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -50294,8 +55091,8 @@ func tcl_client_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
var zName uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50303,12 +55100,12 @@ func tcl_client_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
zName = sqlite3.Xsqlite3ErrName(tls, threadset1[i].Frc)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, zName, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, zName, 0))
return 0
}
@@ -50316,15 +55113,15 @@ func tcl_client_result(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32
//
// Wait on the most recent operation to complete, then return the
// error string.
-func tcl_client_error(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:439:26: */
+func tcl_client_error(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:439:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22728 /* " ID" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24827 /* " ID" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50332,18 +55129,18 @@ func tcl_client_error(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, threadset1[i].FzErr, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, threadset1[i].FzErr, 0))
return 0
}
// This procedure runs in the thread to compile an SQL statement.
-func do_compile1(tls *crt.TLS, p uintptr) { /* test7.c:466:13: */
+func do_compile1(tls *libc.TLS, p uintptr) { /* test7.c:466:13: */
if (*Thread1)(unsafe.Pointer(p)).Fdb == uintptr(0) {
- (*Thread1)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22780 /* "no database is o..." */)
+ (*Thread1)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24879 /* "no database is o..." */)
(*Thread1)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -50357,14 +55154,14 @@ func do_compile1(tls *crt.TLS, p uintptr) { /* test7.c:466:13: */
// Usage: client_compile ID SQL
//
// Compile a new virtual machine.
-func tcl_client_compile(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:484:26: */
+func tcl_client_compile(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:484:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
var i int32
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22800 /* " ID SQL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24899 /* " ID SQL" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50372,22 +55169,22 @@ func tcl_client_compile(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int3
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
- threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_compile1}))
+ threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_compile1}))
sqlite3.Xsqlite3_free(tls, threadset1[i].FzArg)
- threadset1[i].FzArg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+48, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ threadset1[i].FzArg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+48, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
threadset1[i].Fopnum++
return 0
}
// This procedure runs in the thread to step the virtual machine.
-func do_step1(tls *crt.TLS, p uintptr) { /* test7.c:513:13: */
+func do_step1(tls *libc.TLS, p uintptr) { /* test7.c:513:13: */
var i int32
if (*Thread1)(unsafe.Pointer(p)).FpStmt == uintptr(0) {
- (*Thread1)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22808 /* "no virtual machi..." */)
+ (*Thread1)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24907 /* "no virtual machi..." */)
(*Thread1)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -50406,14 +55203,14 @@ func do_step1(tls *crt.TLS, p uintptr) { /* test7.c:513:13: */
// Usage: client_step ID
//
// Advance the virtual machine by one step
-func tcl_client_step(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:537:26: */
+func tcl_client_step(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:537:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22837 /* " IDL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24936 /* " IDL" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50421,19 +55218,19 @@ func tcl_client_step(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
- threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_step1}))
+ threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_step1}))
threadset1[i].Fopnum++
return 0
}
// This procedure runs in the thread to finalize a virtual machine.
-func do_finalize1(tls *crt.TLS, p uintptr) { /* test7.c:564:13: */
+func do_finalize1(tls *libc.TLS, p uintptr) { /* test7.c:564:13: */
if (*Thread1)(unsafe.Pointer(p)).FpStmt == uintptr(0) {
- (*Thread1)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22808 /* "no virtual machi..." */)
+ (*Thread1)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24907 /* "no virtual machi..." */)
(*Thread1)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -50444,14 +55241,14 @@ func do_finalize1(tls *crt.TLS, p uintptr) { /* test7.c:564:13: */
// Usage: client_finalize ID
//
// Finalize the virtual machine.
-func tcl_client_finalize(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:579:26: */
+func tcl_client_finalize(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:579:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22837 /* " IDL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24936 /* " IDL" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50459,11 +55256,11 @@ func tcl_client_finalize(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
- threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_finalize1}))
+ threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_finalize1}))
sqlite3.Xsqlite3_free(tls, threadset1[i].FzArg)
threadset1[i].FzArg = uintptr(0)
threadset1[i].Fopnum++
@@ -50471,9 +55268,9 @@ func tcl_client_finalize(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int
}
// This procedure runs in the thread to reset a virtual machine.
-func do_reset(tls *crt.TLS, p uintptr) { /* test7.c:608:13: */
+func do_reset(tls *libc.TLS, p uintptr) { /* test7.c:608:13: */
if (*Thread1)(unsafe.Pointer(p)).FpStmt == uintptr(0) {
- (*Thread1)(unsafe.Pointer(p)).FzErr = crt.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+22808 /* "no virtual machi..." */)
+ (*Thread1)(unsafe.Pointer(p)).FzErr = libc.AssignPtrUintptr(p+64 /* &.zStaticErr */, ts+24907 /* "no virtual machi..." */)
(*Thread1)(unsafe.Pointer(p)).Frc = 1
return
}
@@ -50484,14 +55281,14 @@ func do_reset(tls *crt.TLS, p uintptr) { /* test7.c:608:13: */
// Usage: client_reset ID
//
// Finalize the virtual machine.
-func tcl_client_reset(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:623:26: */
+func tcl_client_reset(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:623:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
var i int32
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22837 /* " IDL" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24936 /* " IDL" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50499,11 +55296,11 @@ func tcl_client_reset(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
- threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{do_reset}))
+ threadset1[i].FxOp = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{do_reset}))
sqlite3.Xsqlite3_free(tls, threadset1[i].FzArg)
threadset1[i].FzArg = uintptr(0)
threadset1[i].Fopnum++
@@ -50513,7 +55310,7 @@ func tcl_client_reset(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
// Usage: client_swap ID ID
//
// Interchange the sqlite* pointer between two threads.
-func tcl_client_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:654:26: */
+func tcl_client_swap(tls *libc.TLS, NotUsed uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test7.c:654:26: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -50521,8 +55318,8 @@ func tcl_client_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
var j int32
var temp uintptr
if argc != 3 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+22842 /* " ID1 ID2" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+24941 /* " ID1 ID2" */, 0))
return 1
}
i = parse_client_id(tls, interp, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
@@ -50530,7 +55327,7 @@ func tcl_client_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[i].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(i)*1688))
@@ -50539,7 +55336,7 @@ func tcl_client_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
return 1
}
if !(threadset1[j].Fbusy != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+22732 /* "no such thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+24831 /* "no such thread" */, 0))
return 1
}
client_wait(tls, (uintptr(unsafe.Pointer(&threadset1)) + uintptr(j)*1688))
@@ -50550,35 +55347,35 @@ func tcl_client_swap(tls *crt.TLS, NotUsed uintptr, interp uintptr, argc int32,
}
// Register commands with the TCL interpreter.
-func Sqlitetest7_Init(tls *crt.TLS, interp uintptr) int32 { /* test7.c:690:5: */
+func Sqlitetest7_Init(tls *libc.TLS, interp uintptr) int32 { /* test7.c:690:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd5)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd6)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateCommand(tls, interp, aCmd5[i].FzName, aCmd5[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateCommand(tls, interp, aCmd6[i].FzName, aCmd6[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aCmd5 = [13]struct {
+var aCmd6 = [13]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 23866 /* "client_create" */, FxProc: 0},
- {FzName: ts + 23880 /* "client_wait" */, FxProc: 0},
- {FzName: ts + 23892 /* "client_halt" */, FxProc: 0},
- {FzName: ts + 23904 /* "client_argc" */, FxProc: 0},
- {FzName: ts + 23916 /* "client_argv" */, FxProc: 0},
- {FzName: ts + 23928 /* "client_colname" */, FxProc: 0},
- {FzName: ts + 23943 /* "client_result" */, FxProc: 0},
- {FzName: ts + 23957 /* "client_error" */, FxProc: 0},
- {FzName: ts + 23970 /* "client_compile" */, FxProc: 0},
- {FzName: ts + 23985 /* "client_step" */, FxProc: 0},
- {FzName: ts + 23997 /* "client_reset" */, FxProc: 0},
- {FzName: ts + 24010 /* "client_finalize" */, FxProc: 0},
- {FzName: ts + 24026 /* "client_swap" */, FxProc: 0},
+ {FzName: ts + 25965 /* "client_create" */, FxProc: 0},
+ {FzName: ts + 25979 /* "client_wait" */, FxProc: 0},
+ {FzName: ts + 25991 /* "client_halt" */, FxProc: 0},
+ {FzName: ts + 26003 /* "client_argc" */, FxProc: 0},
+ {FzName: ts + 26015 /* "client_argv" */, FxProc: 0},
+ {FzName: ts + 26027 /* "client_colname" */, FxProc: 0},
+ {FzName: ts + 26042 /* "client_result" */, FxProc: 0},
+ {FzName: ts + 26056 /* "client_error" */, FxProc: 0},
+ {FzName: ts + 26069 /* "client_compile" */, FxProc: 0},
+ {FzName: ts + 26084 /* "client_step" */, FxProc: 0},
+ {FzName: ts + 26096 /* "client_reset" */, FxProc: 0},
+ {FzName: ts + 26109 /* "client_finalize" */, FxProc: 0},
+ {FzName: ts + 26125 /* "client_swap" */, FxProc: 0},
} /* test7.c:694:5 */
// end block for C++
@@ -50693,7 +55490,7 @@ type echo_cursor1 = struct {
type echo_cursor = echo_cursor1 /* test8.c:28:28 */
-func simulateVtabError(tls *crt.TLS, p uintptr, zMethod uintptr) int32 { /* test8.c:97:12: */
+func simulateVtabError(tls *libc.TLS, p uintptr, zMethod uintptr) int32 { /* test8.c:97:12: */
bp := tls.Alloc(152)
defer tls.Free(152)
@@ -50701,12 +55498,12 @@ func simulateVtabError(tls *crt.TLS, p uintptr, zMethod uintptr) int32 { /* test
// var zVarname [128]int8 at bp+24, 128
*(*int8)(unsafe.Pointer(bp + 24 /* &zVarname[0] */ + uintptr(127))) = int8(0)
- sqlite3.Xsqlite3_snprintf(tls, 127, bp+24 /* &zVarname[0] */, ts+24038 /* "echo_module_fail..." */, crt.VaList(bp, zMethod, (*echo_vtab)(unsafe.Pointer(p)).FzTableName))
+ sqlite3.Xsqlite3_snprintf(tls, 127, bp+24 /* &zVarname[0] */, ts+26137 /* "echo_module_fail..." */, libc.VaList(bp, zMethod, (*echo_vtab)(unsafe.Pointer(p)).FzTableName))
zErr = tcl.XTcl_GetVar2(tls, (*echo_vtab)(unsafe.Pointer(p)).Finterp, bp+24 /* &zVarname[0] */, uintptr(0), 1)
if zErr != 0 {
- (*echo_vtab)(unsafe.Pointer(p)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+24062 /* "echo-vtab-error:..." */, crt.VaList(bp+16, zErr))
+ (*echo_vtab)(unsafe.Pointer(p)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+26161 /* "echo-vtab-error:..." */, libc.VaList(bp+16, zErr))
}
- return (crt.Bool32(zErr != uintptr(0)))
+ return (libc.Bool32(zErr != uintptr(0)))
}
// Convert an SQL-style quoted string into a normal string by removing
@@ -50720,7 +55517,7 @@ func simulateVtabError(tls *crt.TLS, p uintptr, zMethod uintptr) int32 { /* test
// 'xyz' becomes xyz
// [pqr] becomes pqr
// `mno` becomes mno
-func dequoteString(tls *crt.TLS, z uintptr) { /* test8.c:122:13: */
+func dequoteString(tls *libc.TLS, z uintptr) { /* test8.c:122:13: */
var quote int32
var i int32
var j int32
@@ -50746,14 +55543,14 @@ func dequoteString(tls *crt.TLS, z uintptr) { /* test8.c:122:13: */
for ; *(*int8)(unsafe.Pointer(z + uintptr(i))) != 0; i++ {
if int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == quote {
if int32(*(*int8)(unsafe.Pointer(z + uintptr((i + 1))))) == quote {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8(quote)
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8(quote)
i++
} else {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = int8(0)
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = int8(0)
break
}
} else {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(i)))
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&j, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(i)))
}
}
}
@@ -50766,7 +55563,7 @@ func dequoteString(tls *crt.TLS, z uintptr) { /* test8.c:122:13: */
// set to point at sqlite3_malloc()'d space containing the array of
// nCol column names. The caller is responsible for calling sqlite3_free
// on *paCol.
-func getColumnNames(tls *crt.TLS, db uintptr, zTab uintptr, paCol uintptr, pnCol uintptr) int32 { /* test8.c:159:12: */
+func getColumnNames(tls *libc.TLS, db uintptr, zTab uintptr, paCol uintptr, pnCol uintptr) int32 { /* test8.c:159:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -50788,7 +55585,7 @@ func getColumnNames(tls *crt.TLS, db uintptr, zTab uintptr, paCol uintptr, pnCol
// Prepare the statement "SELECT * FROM <tbl>". The column names
// of the result set of the compiled SELECT will be the same as
// the column names of table <tbl>.
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+24082 /* "SELECT * FROM %Q" */, crt.VaList(bp, zTab))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+26181 /* "SELECT * FROM %Q" */, libc.VaList(bp, zTab))
if !(!(zSql != 0)) {
goto __1
}
@@ -50820,7 +55617,7 @@ __3:
goto out
__6:
;
- nBytes = nBytes + (int32(crt.Xstrlen(tls, zName)) + 1)
+ nBytes = nBytes + (int32(libc.Xstrlen(tls, zName)) + 1)
goto __4
__4:
ii++
@@ -50846,8 +55643,8 @@ __8:
goto __10
}
*(*uintptr)(unsafe.Pointer(aCol + uintptr(ii)*8)) = zSpace
- sqlite3.Xsqlite3_snprintf(tls, nBytes, zSpace, ts /* "%s" */, crt.VaList(bp+8, sqlite3.Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */)), ii)))
- zSpace += (uintptr(int32(crt.Xstrlen(tls, zSpace)) + 1))
+ sqlite3.Xsqlite3_snprintf(tls, nBytes, zSpace, ts /* "%s" */, libc.VaList(bp+8, sqlite3.Xsqlite3_column_name(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */)), ii)))
+ zSpace += (uintptr(int32(libc.Xstrlen(tls, zSpace)) + 1))
goto __9
__9:
ii++
@@ -50876,7 +55673,7 @@ out:
//
// See comments associated with the member variable aIndex above
// "struct echo_vtab" for details of the contents of the array.
-func getIndexArray(tls *crt.TLS, db uintptr, zTab uintptr, nCol int32, paIndex uintptr) int32 { /* test8.c:239:12: */
+func getIndexArray(tls *libc.TLS, db uintptr, zTab uintptr, nCol int32, paIndex uintptr) int32 { /* test8.c:239:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -50904,7 +55701,7 @@ __1:
;
// Compile an sqlite pragma to loop through all indices on table zTab
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+24099 /* "PRAGMA index_lis..." */, crt.VaList(bp, zTab))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+26198 /* "PRAGMA index_lis..." */, libc.VaList(bp, zTab))
if !(!(zSql != 0)) {
goto __2
}
@@ -50929,7 +55726,7 @@ __3:
goto __3
__5:
;
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+24121 /* "PRAGMA index_inf..." */, crt.VaList(bp+8, zIdx))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+26220 /* "PRAGMA index_inf..." */, libc.VaList(bp+8, zIdx))
if !(!(zSql != 0)) {
goto __6
}
@@ -50989,9 +55786,9 @@ __12:
// Global Tcl variable $echo_module is a list. This routine appends
// the string element zArg to that list in interpreter interp.
-func appendToEchoModule(tls *crt.TLS, interp uintptr, zArg uintptr) { /* test8.c:313:13: */
+func appendToEchoModule(tls *libc.TLS, interp uintptr, zArg uintptr) { /* test8.c:313:13: */
var flags int32 = ((4 | 8) | 1)
- tcl.XTcl_SetVar2(tls, interp, ts+24143 /* "echo_module" */, uintptr(0), func() uintptr {
+ tcl.XTcl_SetVar2(tls, interp, ts+26242 /* "echo_module" */, uintptr(0), func() uintptr {
if zArg != 0 {
return zArg
}
@@ -51014,7 +55811,7 @@ func appendToEchoModule(tls *crt.TLS, interp uintptr, zArg uintptr) { /* test8.c
// CREATE TABLE statement for the real table to sqlite3_declare_vtab().
// Hence, the virtual table should have exactly the same column names and
// types as the real table.
-func echoDeclareVtab(tls *crt.TLS, pVtab uintptr, db uintptr) int32 { /* test8.c:335:12: */
+func echoDeclareVtab(tls *libc.TLS, pVtab uintptr, db uintptr) int32 { /* test8.c:335:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -51023,7 +55820,7 @@ func echoDeclareVtab(tls *crt.TLS, pVtab uintptr, db uintptr) int32 { /* test8.c
if (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName != 0 {
*(*uintptr)(unsafe.Pointer(bp /* pStmt */)) = uintptr(0)
rc = sqlite3.Xsqlite3_prepare(tls, db,
- ts+24155, /* "SELECT sql FROM ..." */
+ ts+26254, /* "SELECT sql FROM ..." */
-1, bp /* &pStmt */, uintptr(0))
if rc == 0 {
sqlite3.Xsqlite3_bind_text(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), 1, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName, -1, uintptr(0))
@@ -51055,7 +55852,7 @@ func echoDeclareVtab(tls *crt.TLS, pVtab uintptr, db uintptr) int32 { /* test8.c
// This function frees all runtime structures associated with the virtual
// table pVtab.
-func echoDestructor(tls *crt.TLS, pVtab uintptr) int32 { /* test8.c:378:12: */
+func echoDestructor(tls *libc.TLS, pVtab uintptr) int32 { /* test8.c:378:12: */
var p uintptr = pVtab
sqlite3.Xsqlite3_free(tls, (*echo_vtab)(unsafe.Pointer(p)).FaIndex)
sqlite3.Xsqlite3_free(tls, (*echo_vtab)(unsafe.Pointer(p)).FaCol)
@@ -51073,7 +55870,7 @@ type EchoModule = EchoModule1 /* test8.c:389:27 */
// This function is called to do the work of the xConnect() method -
// to allocate the required in-memory structures for a newly connected
// virtual table.
-func echoConstructor(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test8.c:399:12: */
+func echoConstructor(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test8.c:399:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -51090,7 +55887,7 @@ func echoConstructor(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv ui
(*echo_vtab)(unsafe.Pointer(pVtab)).Fdb = db
// Allocate echo_vtab.zThis
- (*echo_vtab)(unsafe.Pointer(pVtab)).FzThis = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
+ (*echo_vtab)(unsafe.Pointer(pVtab)).FzThis = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))))
if !(int32((*echo_vtab)(unsafe.Pointer(pVtab)).FzThis) != 0) {
echoDestructor(tls, pVtab)
return 7
@@ -51098,10 +55895,10 @@ func echoConstructor(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv ui
// Allocate echo_vtab.zTableName
if argc > 3 {
- (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
+ (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
dequoteString(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName)
if ((*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName != 0) && (int32(*(*int8)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName + uintptr(0)))) == '*') {
- var z uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+24219 /* "%s%s" */, crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ((*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName+uintptr(1))))
+ var z uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+26318 /* "%s%s" */, libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)), ((*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName+uintptr(1))))
sqlite3.Xsqlite3_free(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName)
(*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName = z
(*echo_vtab)(unsafe.Pointer(pVtab)).FisPattern = 1
@@ -51132,12 +55929,12 @@ func echoConstructor(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv ui
}
// Echo virtual table module xCreate method.
-func echoCreate(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test8.c:464:12: */
+func echoCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test8.c:464:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
var rc int32 = 0
- appendToEchoModule(tls, (*EchoModule)(unsafe.Pointer(pAux)).Finterp, ts+24224 /* "xCreate" */)
+ appendToEchoModule(tls, (*EchoModule)(unsafe.Pointer(pAux)).Finterp, ts+26323 /* "xCreate" */)
rc = echoConstructor(tls, db, pAux, argc, argv, ppVtab, pzErr)
// If there were two arguments passed to the module at the SQL level
@@ -51152,12 +55949,12 @@ func echoCreate(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr
if (rc == 0) && (argc == 5) {
var zSql uintptr
var pVtab uintptr = *(*uintptr)(unsafe.Pointer(ppVtab))
- (*echo_vtab)(unsafe.Pointer(pVtab)).FzLogName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8))))
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+24232 /* "CREATE TABLE %Q(..." */, crt.VaList(bp+8, (*echo_vtab)(unsafe.Pointer(pVtab)).FzLogName))
+ (*echo_vtab)(unsafe.Pointer(pVtab)).FzLogName = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8))))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+26331 /* "CREATE TABLE %Q(..." */, libc.VaList(bp+8, (*echo_vtab)(unsafe.Pointer(pVtab)).FzLogName))
rc = sqlite3.Xsqlite3_exec(tls, db, zSql, uintptr(0), uintptr(0), uintptr(0))
sqlite3.Xsqlite3_free(tls, zSql)
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+16, sqlite3.Xsqlite3_errmsg(tls, db)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+16, sqlite3.Xsqlite3_errmsg(tls, db)))
}
}
@@ -51174,30 +55971,30 @@ func echoCreate(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr
}
// Echo virtual table module xConnect method.
-func echoConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test8.c:512:12: */
- appendToEchoModule(tls, (*EchoModule)(unsafe.Pointer(pAux)).Finterp, ts+24256 /* "xConnect" */)
+func echoConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test8.c:512:12: */
+ appendToEchoModule(tls, (*EchoModule)(unsafe.Pointer(pAux)).Finterp, ts+26355 /* "xConnect" */)
return echoConstructor(tls, db, pAux, argc, argv, ppVtab, pzErr)
}
// Echo virtual table module xDisconnect method.
-func echoDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test8.c:526:12: */
- appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+24265 /* "xDisconnect" */)
+func echoDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* test8.c:526:12: */
+ appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+26364 /* "xDisconnect" */)
return echoDestructor(tls, pVtab)
}
// Echo virtual table module xDestroy method.
-func echoDestroy(tls *crt.TLS, pVtab uintptr) int32 { /* test8.c:534:12: */
+func echoDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* test8.c:534:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var rc int32 = 0
var p uintptr = pVtab
- appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+24277 /* "xDestroy" */)
+ appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+26376 /* "xDestroy" */)
// Drop the "log" table, if one exists (see echoCreate() for details)
if (p != 0) && ((*echo_vtab)(unsafe.Pointer(p)).FzLogName != 0) {
var zSql uintptr
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+24286 /* "DROP TABLE %Q" */, crt.VaList(bp, (*echo_vtab)(unsafe.Pointer(p)).FzLogName))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+26385 /* "DROP TABLE %Q" */, libc.VaList(bp, (*echo_vtab)(unsafe.Pointer(p)).FzLogName))
rc = sqlite3.Xsqlite3_exec(tls, (*echo_vtab)(unsafe.Pointer(p)).Fdb, zSql, uintptr(0), uintptr(0), uintptr(0))
sqlite3.Xsqlite3_free(tls, zSql)
}
@@ -51209,9 +56006,9 @@ func echoDestroy(tls *crt.TLS, pVtab uintptr) int32 { /* test8.c:534:12: */
}
// Echo virtual table module xOpen method.
-func echoOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test8.c:556:12: */
+func echoOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test8.c:556:12: */
var pCur uintptr
- if simulateVtabError(tls, pVTab, ts+24300 /* "xOpen" */) != 0 {
+ if simulateVtabError(tls, pVTab, ts+26399 /* "xOpen" */) != 0 {
return 1
}
pCur = sqlite3.Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(echo_cursor{})))
@@ -51225,7 +56022,7 @@ func echoOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test8.c:
}
// Echo virtual table module xClose method.
-func echoClose(tls *crt.TLS, cur uintptr) int32 { /* test8.c:569:12: */
+func echoClose(tls *libc.TLS, cur uintptr) int32 { /* test8.c:569:12: */
var rc int32
var pCur uintptr = cur
var pStmt uintptr = (*echo_cursor)(unsafe.Pointer(pCur)).FpStmt
@@ -51237,7 +56034,7 @@ func echoClose(tls *crt.TLS, cur uintptr) int32 { /* test8.c:569:12: */
// Return non-zero if the cursor does not currently point to a valid record
// (i.e if the scan has finished), or zero otherwise.
-func echoEof(tls *crt.TLS, cur uintptr) int32 { /* test8.c:583:12: */
+func echoEof(tls *libc.TLS, cur uintptr) int32 { /* test8.c:583:12: */
return func() int32 {
if (*echo_cursor)(unsafe.Pointer(cur)).FpStmt != 0 {
return 0
@@ -51247,11 +56044,11 @@ func echoEof(tls *crt.TLS, cur uintptr) int32 { /* test8.c:583:12: */
}
// Echo virtual table module xNext method.
-func echoNext(tls *crt.TLS, cur uintptr) int32 { /* test8.c:590:12: */
+func echoNext(tls *libc.TLS, cur uintptr) int32 { /* test8.c:590:12: */
var rc int32 = 0
var pCur uintptr = cur
- if simulateVtabError(tls, (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab, ts+24306 /* "xNext" */) != 0 {
+ if simulateVtabError(tls, (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab, ts+26405 /* "xNext" */) != 0 {
return 1
}
@@ -51269,11 +56066,11 @@ func echoNext(tls *crt.TLS, cur uintptr) int32 { /* test8.c:590:12: */
}
// Echo virtual table module xColumn method.
-func echoColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test8.c:614:12: */
+func echoColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test8.c:614:12: */
var iCol int32 = (i + 1)
var pStmt uintptr = (*echo_cursor)(unsafe.Pointer(cur)).FpStmt
- if simulateVtabError(tls, (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab, ts+24312 /* "xColumn" */) != 0 {
+ if simulateVtabError(tls, (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab, ts+26411 /* "xColumn" */) != 0 {
return 1
}
@@ -51287,10 +56084,10 @@ func echoColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test
}
// Echo virtual table module xRowid method.
-func echoRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test8.c:634:12: */
+func echoRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test8.c:634:12: */
var pStmt uintptr = (*echo_cursor)(unsafe.Pointer(cur)).FpStmt
- if simulateVtabError(tls, (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab, ts+24320 /* "xRowid" */) != 0 {
+ if simulateVtabError(tls, (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab, ts+2164 /* "xRowid" */) != 0 {
return 1
}
@@ -51305,17 +56102,17 @@ func echoRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test8.c:634
// in echoBestIndex(), idxNum is set to the corresponding hash value.
// In echoFilter(), code assert()s that the supplied idxNum value is
// indeed the hash of the supplied idxStr.
-func hashString(tls *crt.TLS, zString uintptr) int32 { /* test8.c:654:12: */
- var val u321 = u321(0)
+func hashString(tls *libc.TLS, zString uintptr) int32 { /* test8.c:654:12: */
+ var val u322 = u322(0)
var ii int32
for ii = 0; *(*int8)(unsafe.Pointer(zString + uintptr(ii))) != 0; ii++ {
- val = ((val << 3) + u321(int32(*(*int8)(unsafe.Pointer(zString + uintptr(ii))))))
+ val = ((val << 3) + u322(int32(*(*int8)(unsafe.Pointer(zString + uintptr(ii))))))
}
- return (int32(val & u321(0x7fffffff)))
+ return (int32(val & u322(0x7fffffff)))
}
// Echo virtual table module xFilter method.
-func echoFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test8.c:666:12: */
+func echoFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test8.c:666:12: */
var rc int32
var i int32
@@ -51323,14 +56120,14 @@ func echoFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
var pVtab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab
var db uintptr = (*echo_vtab)(unsafe.Pointer(pVtab)).Fdb
- if simulateVtabError(tls, pVtab, ts+24327 /* "xFilter" */) != 0 {
+ if simulateVtabError(tls, pVtab, ts+26419 /* "xFilter" */) != 0 {
return 1
}
// Check that idxNum matches idxStr
// Log arguments to the ::echo_module Tcl variable
- appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+24327 /* "xFilter" */)
+ appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+26419 /* "xFilter" */)
appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, idxStr)
for i = 0; i < argc; i++ {
appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
@@ -51366,7 +56163,7 @@ func echoFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
//
// If the third argument, doFree, is true, then sqlite3_free() is
// also called to free the buffer pointed to by zAppend.
-func string_concat(tls *crt.TLS, pzStr uintptr, zAppend uintptr, doFree int32, pRc uintptr) { /* test8.c:726:13: */
+func string_concat(tls *libc.TLS, pzStr uintptr, zAppend uintptr, doFree int32, pRc uintptr) { /* test8.c:726:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -51380,10 +56177,10 @@ func string_concat(tls *crt.TLS, pzStr uintptr, zAppend uintptr, doFree int32, p
} else {
if zIn != 0 {
var zTemp uintptr = zIn
- zIn = sqlite3.Xsqlite3_mprintf(tls, ts+24219 /* "%s%s" */, crt.VaList(bp, zIn, zAppend))
+ zIn = sqlite3.Xsqlite3_mprintf(tls, ts+26318 /* "%s%s" */, libc.VaList(bp, zIn, zAppend))
sqlite3.Xsqlite3_free(tls, zTemp)
} else {
- zIn = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+16, zAppend))
+ zIn = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+16, zAppend))
}
if !(zIn != 0) {
*(*int32)(unsafe.Pointer(pRc)) = 7
@@ -51403,13 +56200,13 @@ func string_concat(tls *crt.TLS, pzStr uintptr, zAppend uintptr, doFree int32, p
// If the current SQLite version is earlier than 3.10.0, this is just "*"
// (select all columns). Or, for version 3.10.0 and greater, the list of
// columns identified by the pIdxInfo->colUsed mask.
-func echoSelectList(tls *crt.TLS, pTab uintptr, pIdxInfo uintptr) uintptr { /* test8.c:762:13: */
+func echoSelectList(tls *libc.TLS, pTab uintptr, pIdxInfo uintptr) uintptr { /* test8.c:762:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
var zRet uintptr = uintptr(0)
if sqlite3.Xsqlite3_libversion_number(tls) < 3010000 {
- zRet = sqlite3.Xsqlite3_mprintf(tls, ts+24335 /* ", *" */, 0)
+ zRet = sqlite3.Xsqlite3_mprintf(tls, ts+26427 /* ", *" */, 0)
} else {
var i int32
for i = 0; i < (*echo_vtab)(unsafe.Pointer(pTab)).FnCol; i++ {
@@ -51419,9 +56216,9 @@ func echoSelectList(tls *crt.TLS, pTab uintptr, pIdxInfo uintptr) uintptr { /* t
}
return i
}()))) != 0 {
- zRet = sqlite3.Xsqlite3_mprintf(tls, ts+24339 /* "%z, %s" */, crt.VaList(bp, zRet, *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pTab)).FaCol + uintptr(i)*8))))
+ zRet = sqlite3.Xsqlite3_mprintf(tls, ts+26431 /* "%z, %s" */, libc.VaList(bp, zRet, *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pTab)).FaCol + uintptr(i)*8))))
} else {
- zRet = sqlite3.Xsqlite3_mprintf(tls, ts+24346 /* "%z, NULL" */, crt.VaList(bp+16, zRet))
+ zRet = sqlite3.Xsqlite3_mprintf(tls, ts+26438 /* "%z, NULL" */, libc.VaList(bp+16, zRet))
}
if !(zRet != 0) {
break
@@ -51451,7 +56248,7 @@ func echoSelectList(tls *crt.TLS, pTab uintptr, pIdxInfo uintptr) uintptr { /* t
//
// where the <where-clause> and <order-by-clause> are determined
// by the contents of the structure pointed to by the pIdxInfo argument.
-func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8.c:802:12: */
+func echoBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8.c:802:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -51460,7 +56257,7 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
var zCol uintptr = uintptr(0)
var zNew uintptr
var nArg int32 = 0
- var zSep uintptr = ts + 7375 /* "WHERE" */
+ var zSep uintptr = ts + 8660 /* "WHERE" */
var pVtab uintptr = tab
*(*uintptr)(unsafe.Pointer(bp + 80 /* pStmt */)) = uintptr(0)
var interp uintptr = (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp
@@ -51471,11 +56268,11 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
var useCost int32 = 0
var cost float64 = float64(0)
var isIgnoreUsable int32 = 0
- if tcl.XTcl_GetVar2(tls, interp, ts+24355 /* "echo_module_igno..." */, uintptr(0), 1) != 0 {
+ if tcl.XTcl_GetVar2(tls, interp, ts+26447 /* "echo_module_igno..." */, uintptr(0), 1) != 0 {
isIgnoreUsable = 1
}
- if simulateVtabError(tls, pVtab, ts+24381 /* "xBestIndex" */) != 0 {
+ if simulateVtabError(tls, pVtab, ts+26473 /* "xBestIndex" */) != 0 {
return 1
}
@@ -51483,11 +56280,11 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
// variable nRow. The 'estimated-cost' of the scan will be the number of
// rows in the table for a linear scan, or the log (base 2) of the
// number of rows if the proposed scan uses an index.
- if tcl.XTcl_GetVar2(tls, interp, ts+24392 /* "echo_module_cost" */, uintptr(0), 1) != 0 {
- cost = crt.Xatof(tls, tcl.XTcl_GetVar2(tls, interp, ts+24392 /* "echo_module_cost" */, uintptr(0), 1))
+ if tcl.XTcl_GetVar2(tls, interp, ts+26484 /* "echo_module_cost" */, uintptr(0), 1) != 0 {
+ cost = libc.Xatof(tls, tcl.XTcl_GetVar2(tls, interp, ts+26484 /* "echo_module_cost" */, uintptr(0), 1))
useCost = 1
} else {
- *(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)) = sqlite3.Xsqlite3_mprintf(tls, ts+24409 /* "SELECT count(*) ..." */, crt.VaList(bp, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
+ *(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)) = sqlite3.Xsqlite3_mprintf(tls, ts+26501 /* "SELECT count(*) ..." */, libc.VaList(bp, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
if !(*(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)) != 0) {
return 7
}
@@ -51508,7 +56305,7 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
if !(zCol != 0) {
return 7
}
- *(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)) = sqlite3.Xsqlite3_mprintf(tls, ts+24433 /* "SELECT rowid%z F..." */, crt.VaList(bp+8, zCol, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
+ *(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)) = sqlite3.Xsqlite3_mprintf(tls, ts+26525 /* "SELECT rowid%z F..." */, libc.VaList(bp+8, zCol, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
if !(*(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)) != 0) {
return 7
}
@@ -51531,29 +56328,29 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
if iCol >= 0 {
zNewCol = *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pVtab)).FaCol + uintptr(iCol)*8))
} else {
- zNewCol = ts + 24456 /* "rowid" */
+ zNewCol = ts + 26548 /* "rowid" */
}
var zOp uintptr = uintptr(0)
useIdx = 1
switch int32((*sqlite3_index_constraint)(unsafe.Pointer(pConstraint)).Fop) {
case 2:
- zOp = ts + 24462 /* "=" */
+ zOp = ts + 26554 /* "=" */
break
fallthrough
case 16:
- zOp = ts + 24464 /* "<" */
+ zOp = ts + 26556 /* "<" */
break
fallthrough
case 4:
- zOp = ts + 24466 /* ">" */
+ zOp = ts + 26558 /* ">" */
break
fallthrough
case 8:
- zOp = ts + 24468 /* "<=" */
+ zOp = ts + 26560 /* "<=" */
break
fallthrough
case 32:
- zOp = ts + 24471 /* ">=" */
+ zOp = ts + 26563 /* ">=" */
break
fallthrough
case 64:
@@ -51563,31 +56360,31 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
// of code requires the first letter of this operator to be
// in upper-case to trigger the special MATCH handling (i.e.
// wrapping the bound parameter with literal '%'s).
- zOp = ts + 24474 /* "LIKE" */
+ zOp = ts + 26566 /* "LIKE" */
break
fallthrough
case 65:
- zOp = ts + 24479 /* "like" */
+ zOp = ts + 26571 /* "like" */
break
fallthrough
case 66:
- zOp = ts + 24484 /* "glob" */
+ zOp = ts + 26576 /* "glob" */
break
fallthrough
case 67:
- zOp = ts + 4880 /* "regexp" */
+ zOp = ts + 6165 /* "regexp" */
break
}
if zOp != 0 {
if int32(*(*int8)(unsafe.Pointer(zOp + uintptr(0)))) == 'L' {
- zNew = sqlite3.Xsqlite3_mprintf(tls, ts+24489, /* " %s %s LIKE (SEL..." */
- crt.VaList(bp+24, zSep, zNewCol))
+ zNew = sqlite3.Xsqlite3_mprintf(tls, ts+26581, /* " %s %s LIKE (SEL..." */
+ libc.VaList(bp+24, zSep, zNewCol))
} else {
- zNew = sqlite3.Xsqlite3_mprintf(tls, ts+24524 /* " %s %s %s ?" */, crt.VaList(bp+40, zSep, zNewCol, zOp))
+ zNew = sqlite3.Xsqlite3_mprintf(tls, ts+26616 /* " %s %s %s ?" */, libc.VaList(bp+40, zSep, zNewCol, zOp))
}
string_concat(tls, bp+88 /* &zQuery */, zNew, 1, bp+96 /* &rc */)
- zSep = ts + 7402 /* "AND" */
- (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = crt.PreIncInt32(&nArg, 1)
+ zSep = ts + 8687 /* "AND" */
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = libc.PreIncInt32(&nArg, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).Fomit = uint8(1)
}
}
@@ -51602,20 +56399,20 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
if iCol >= 0 {
zNewCol = *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pVtab)).FaCol + uintptr(iCol)*8))
} else {
- zNewCol = ts + 24456 /* "rowid" */
+ zNewCol = ts + 26548 /* "rowid" */
}
var zDir uintptr
if (*sqlite3_index_orderby)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaOrderBy)).Fdesc != 0 {
- zDir = ts + 24536 /* "DESC" */
+ zDir = ts + 26628 /* "DESC" */
} else {
- zDir = ts + 24541 /* "ASC" */
+ zDir = ts + 26633 /* "ASC" */
}
- zNew = sqlite3.Xsqlite3_mprintf(tls, ts+24545 /* " ORDER BY %s %s" */, crt.VaList(bp+64, zNewCol, zDir))
+ zNew = sqlite3.Xsqlite3_mprintf(tls, ts+26637 /* " ORDER BY %s %s" */, libc.VaList(bp+64, zNewCol, zDir))
string_concat(tls, bp+88 /* &zQuery */, zNew, 1, bp+96 /* &rc */)
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).ForderByConsumed = 1
}
- appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+24381 /* "xBestIndex" */)
+ appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, ts+26473 /* "xBestIndex" */)
appendToEchoModule(tls, (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp, *(*uintptr)(unsafe.Pointer(bp + 88 /* zQuery */)))
@@ -51652,7 +56449,7 @@ func echoBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test8
// NULL NULL (nCol args) INSERT INTO (automatic rowid value)
// NULL INTEGER (nCol args) INSERT (incl. rowid value)
//
-func echoUpdate(tls *crt.TLS, tab uintptr, nData int32, apData uintptr, pRowid uintptr) int32 { /* test8.c:968:5: */
+func echoUpdate(tls *libc.TLS, tab uintptr, nData int32, apData uintptr, pRowid uintptr) int32 { /* test8.c:968:5: */
bp := tls.Alloc(136)
defer tls.Free(136)
@@ -51669,36 +56466,36 @@ func echoUpdate(tls *crt.TLS, tab uintptr, nData int32, apData uintptr, pRowid u
// Ticket #3083 - make sure we always start a transaction prior to
// making any changes to a virtual table
- if simulateVtabError(tls, pVtab, ts+24561 /* "xUpdate" */) != 0 {
+ if simulateVtabError(tls, pVtab, ts+26653 /* "xUpdate" */) != 0 {
return 1
}
// If apData[0] is an integer and nData>1 then do an UPDATE
if (nData > 1) && (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apData + uintptr(0)*8))) == 1) {
- var zSep uintptr = ts + 24569 /* " SET" */
- *(*uintptr)(unsafe.Pointer(bp + 96 /* z */)) = sqlite3.Xsqlite3_mprintf(tls, ts+24574 /* "UPDATE %Q" */, crt.VaList(bp, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
+ var zSep uintptr = ts + 26661 /* " SET" */
+ *(*uintptr)(unsafe.Pointer(bp + 96 /* z */)) = sqlite3.Xsqlite3_mprintf(tls, ts+26666 /* "UPDATE %Q" */, libc.VaList(bp, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
if !(*(*uintptr)(unsafe.Pointer(bp + 96 /* z */)) != 0) {
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = 7
}
- bindArgOne = (crt.Bool32((*(*uintptr)(unsafe.Pointer(apData + uintptr(1)*8)) != 0) && (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apData + uintptr(1)*8))) == 1)))
+ bindArgOne = (libc.Bool32((*(*uintptr)(unsafe.Pointer(apData + uintptr(1)*8)) != 0) && (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apData + uintptr(1)*8))) == 1)))
bindArgZero = 1
if bindArgOne != 0 {
- string_concat(tls, bp+96 /* &z */, ts+24584 /* " SET rowid=?1 " */, 0, bp+104 /* &rc */)
- zSep = ts + 3300 /* "," */
+ string_concat(tls, bp+96 /* &z */, ts+26676 /* " SET rowid=?1 " */, 0, bp+104 /* &rc */)
+ zSep = ts + 4449 /* "," */
}
for i = 2; i < nData; i++ {
if *(*uintptr)(unsafe.Pointer(apData + uintptr(i)*8)) == uintptr(0) {
continue
}
string_concat(tls, bp+96 /* &z */, sqlite3.Xsqlite3_mprintf(tls,
- ts+24599 /* "%s %Q=?%d" */, crt.VaList(bp+8, zSep, *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pVtab)).FaCol + uintptr((i-2))*8)), i)), 1, bp+104 /* &rc */)
- zSep = ts + 3300 /* "," */
+ ts+26691 /* "%s %Q=?%d" */, libc.VaList(bp+8, zSep, *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pVtab)).FaCol + uintptr((i-2))*8)), i)), 1, bp+104 /* &rc */)
+ zSep = ts + 4449 /* "," */
}
- string_concat(tls, bp+96 /* &z */, sqlite3.Xsqlite3_mprintf(tls, ts+24609 /* " WHERE rowid=?%d" */, crt.VaList(bp+32, nData)), 1, bp+104 /* &rc */)
+ string_concat(tls, bp+96 /* &z */, sqlite3.Xsqlite3_mprintf(tls, ts+26701 /* " WHERE rowid=?%d" */, libc.VaList(bp+32, nData)), 1, bp+104 /* &rc */)
} else if (nData == 1) && (sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apData + uintptr(0)*8))) == 1) {
- *(*uintptr)(unsafe.Pointer(bp + 96 /* z */)) = sqlite3.Xsqlite3_mprintf(tls, ts+24626 /* "DELETE FROM %Q W..." */, crt.VaList(bp+40, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
+ *(*uintptr)(unsafe.Pointer(bp + 96 /* z */)) = sqlite3.Xsqlite3_mprintf(tls, ts+26718 /* "DELETE FROM %Q W..." */, libc.VaList(bp+40, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
if !(*(*uintptr)(unsafe.Pointer(bp + 96 /* z */)) != 0) {
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = 7
}
@@ -51708,26 +56505,26 @@ func echoUpdate(tls *crt.TLS, tab uintptr, nData int32, apData uintptr, pRowid u
*(*uintptr)(unsafe.Pointer(bp + 112 /* zInsert */)) = uintptr(0)
*(*uintptr)(unsafe.Pointer(bp + 120 /* zValues */)) = uintptr(0)
- *(*uintptr)(unsafe.Pointer(bp + 112 /* zInsert */)) = sqlite3.Xsqlite3_mprintf(tls, ts+24658 /* "INSERT INTO %Q (" */, crt.VaList(bp+48, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
+ *(*uintptr)(unsafe.Pointer(bp + 112 /* zInsert */)) = sqlite3.Xsqlite3_mprintf(tls, ts+26750 /* "INSERT INTO %Q (" */, libc.VaList(bp+48, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
if !(*(*uintptr)(unsafe.Pointer(bp + 112 /* zInsert */)) != 0) {
*(*int32)(unsafe.Pointer(bp + 104 /* rc */)) = 7
}
if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apData + uintptr(1)*8))) == 1 {
bindArgOne = 1
- *(*uintptr)(unsafe.Pointer(bp + 120 /* zValues */)) = sqlite3.Xsqlite3_mprintf(tls, ts+2063 /* "?" */, 0)
- string_concat(tls, bp+112 /* &zInsert */, ts+24456 /* "rowid" */, 0, bp+104 /* &rc */)
+ *(*uintptr)(unsafe.Pointer(bp + 120 /* zValues */)) = sqlite3.Xsqlite3_mprintf(tls, ts+3219 /* "?" */, 0)
+ string_concat(tls, bp+112 /* &zInsert */, ts+26548 /* "rowid" */, 0, bp+104 /* &rc */)
}
for ii = 2; ii < nData; ii++ {
string_concat(tls, bp+112, /* &zInsert */
- sqlite3.Xsqlite3_mprintf(tls, ts+24675 /* "%s%Q" */, crt.VaList(bp+56, func() uintptr {
+ sqlite3.Xsqlite3_mprintf(tls, ts+26767 /* "%s%Q" */, libc.VaList(bp+56, func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 120 /* zValues */)) != 0 {
return ts + 89 /* ", " */
}
return ts + 488 /* "" */
}(), *(*uintptr)(unsafe.Pointer((*echo_vtab)(unsafe.Pointer(pVtab)).FaCol + uintptr((ii-2))*8)))), 1, bp+104 /* &rc */)
string_concat(tls, bp+120, /* &zValues */
- sqlite3.Xsqlite3_mprintf(tls, ts+24680 /* "%s?%d" */, crt.VaList(bp+72, func() uintptr {
+ sqlite3.Xsqlite3_mprintf(tls, ts+26772 /* "%s?%d" */, libc.VaList(bp+72, func() uintptr {
if *(*uintptr)(unsafe.Pointer(bp + 120 /* zValues */)) != 0 {
return ts + 89 /* ", " */
}
@@ -51736,7 +56533,7 @@ func echoUpdate(tls *crt.TLS, tab uintptr, nData int32, apData uintptr, pRowid u
}
string_concat(tls, bp+96 /* &z */, *(*uintptr)(unsafe.Pointer(bp + 112 /* zInsert */)), 1, bp+104 /* &rc */)
- string_concat(tls, bp+96 /* &z */, ts+24686 /* ") VALUES(" */, 0, bp+104 /* &rc */)
+ string_concat(tls, bp+96 /* &z */, ts+26778 /* ") VALUES(" */, 0, bp+104 /* &rc */)
string_concat(tls, bp+96 /* &z */, *(*uintptr)(unsafe.Pointer(bp + 120 /* zValues */)), 1, bp+104 /* &rc */)
string_concat(tls, bp+96 /* &z */, ts+489 /* ")" */, 0, bp+104 /* &rc */)
} else {
@@ -51773,7 +56570,7 @@ func echoUpdate(tls *crt.TLS, tab uintptr, nData int32, apData uintptr, pRowid u
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_last_insert_rowid(tls, db)
}
if *(*int32)(unsafe.Pointer(bp + 104 /* rc */)) != 0 {
- (*sqlite3_vtab)(unsafe.Pointer(tab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+24062 /* "echo-vtab-error:..." */, crt.VaList(bp+88, sqlite3.Xsqlite3_errmsg(tls, db)))
+ (*sqlite3_vtab)(unsafe.Pointer(tab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+26161 /* "echo-vtab-error:..." */, libc.VaList(bp+88, sqlite3.Xsqlite3_errmsg(tls, db)))
}
return *(*int32)(unsafe.Pointer(bp + 104 /* rc */))
@@ -51782,13 +56579,13 @@ func echoUpdate(tls *crt.TLS, tab uintptr, nData int32, apData uintptr, pRowid u
// xBegin, xSync, xCommit and xRollback callbacks for echo module
// virtual tables. Do nothing other than add the name of the callback
// to the $::echo_module Tcl variable.
-func echoTransactionCall(tls *crt.TLS, tab uintptr, zCall uintptr) int32 { /* test8.c:1101:12: */
+func echoTransactionCall(tls *libc.TLS, tab uintptr, zCall uintptr) int32 { /* test8.c:1101:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var z uintptr
var pVtab uintptr = tab
- z = sqlite3.Xsqlite3_mprintf(tls, ts+24696 /* "echo(%s)" */, crt.VaList(bp, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
+ z = sqlite3.Xsqlite3_mprintf(tls, ts+26788 /* "echo(%s)" */, libc.VaList(bp, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName))
if z == uintptr(0) {
return 7
}
@@ -51797,7 +56594,7 @@ func echoTransactionCall(tls *crt.TLS, tab uintptr, zCall uintptr) int32 { /* te
sqlite3.Xsqlite3_free(tls, z)
return 0
}
-func echoBegin(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1111:12: */
+func echoBegin(tls *libc.TLS, tab uintptr) int32 { /* test8.c:1111:12: */
var rc int32
var pVtab uintptr = tab
var interp uintptr = (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp
@@ -51806,18 +56603,18 @@ func echoBegin(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1111:12: */
// Ticket #3083 - do not start a transaction if we are already in
// a transaction
- if simulateVtabError(tls, pVtab, ts+24705 /* "xBegin" */) != 0 {
+ if simulateVtabError(tls, pVtab, ts+26797 /* "xBegin" */) != 0 {
return 1
}
- rc = echoTransactionCall(tls, tab, ts+24705 /* "xBegin" */)
+ rc = echoTransactionCall(tls, tab, ts+26797 /* "xBegin" */)
if rc == 0 {
// Check if the $::echo_module_begin_fail variable is defined. If it is,
// and it is set to the name of the real table underlying this virtual
// echo module table, then cause this xSync operation to fail.
- zVal = tcl.XTcl_GetVar2(tls, interp, ts+24712 /* "echo_module_begi..." */, uintptr(0), 1)
- if (zVal != 0) && (0 == crt.Xstrcmp(tls, zVal, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName)) {
+ zVal = tcl.XTcl_GetVar2(tls, interp, ts+26804 /* "echo_module_begi..." */, uintptr(0), 1)
+ if (zVal != 0) && (0 == libc.Xstrcmp(tls, zVal, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName)) {
rc = 1
}
}
@@ -51826,7 +56623,7 @@ func echoBegin(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1111:12: */
}
return rc
}
-func echoSync(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1142:12: */
+func echoSync(tls *libc.TLS, tab uintptr) int32 { /* test8.c:1142:12: */
var rc int32
var pVtab uintptr = tab
var interp uintptr = (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp
@@ -51835,48 +56632,48 @@ func echoSync(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1142:12: */
// Ticket #3083 - Only call xSync if we have previously started a
// transaction
- if simulateVtabError(tls, pVtab, ts+24735 /* "xSync" */) != 0 {
+ if simulateVtabError(tls, pVtab, ts+26827 /* "xSync" */) != 0 {
return 1
}
- rc = echoTransactionCall(tls, tab, ts+24735 /* "xSync" */)
+ rc = echoTransactionCall(tls, tab, ts+26827 /* "xSync" */)
if rc == 0 {
// Check if the $::echo_module_sync_fail variable is defined. If it is,
// and it is set to the name of the real table underlying this virtual
// echo module table, then cause this xSync operation to fail.
- zVal = tcl.XTcl_GetVar2(tls, interp, ts+24741 /* "echo_module_sync..." */, uintptr(0), 1)
- if (zVal != 0) && (0 == crt.Xstrcmp(tls, zVal, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName)) {
+ zVal = tcl.XTcl_GetVar2(tls, interp, ts+26833 /* "echo_module_sync..." */, uintptr(0), 1)
+ if (zVal != 0) && (0 == libc.Xstrcmp(tls, zVal, (*echo_vtab)(unsafe.Pointer(pVtab)).FzTableName)) {
rc = -1
}
}
return rc
}
-func echoCommit(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1170:12: */
+func echoCommit(tls *libc.TLS, tab uintptr) int32 { /* test8.c:1170:12: */
var pVtab uintptr = tab
var rc int32
// Ticket #3083 - Only call xCommit if we have previously started
// a transaction
- if simulateVtabError(tls, pVtab, ts+24763 /* "xCommit" */) != 0 {
+ if simulateVtabError(tls, pVtab, ts+26855 /* "xCommit" */) != 0 {
return 1
}
sqlite3.Xsqlite3BeginBenignMalloc(tls)
- rc = echoTransactionCall(tls, tab, ts+24763 /* "xCommit" */)
+ rc = echoTransactionCall(tls, tab, ts+26855 /* "xCommit" */)
sqlite3.Xsqlite3EndBenignMalloc(tls)
(*echo_vtab)(unsafe.Pointer(pVtab)).FinTransaction = 0
return rc
}
-func echoRollback(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1188:12: */
+func echoRollback(tls *libc.TLS, tab uintptr) int32 { /* test8.c:1188:12: */
var rc int32
var pVtab uintptr = tab
// Ticket #3083 - Only call xRollback if we have previously started
// a transaction
- rc = echoTransactionCall(tls, tab, ts+24771 /* "xRollback" */)
+ rc = echoTransactionCall(tls, tab, ts+26863 /* "xRollback" */)
(*echo_vtab)(unsafe.Pointer(pVtab)).FinTransaction = 0
return rc
}
@@ -51884,7 +56681,7 @@ func echoRollback(tls *crt.TLS, tab uintptr) int32 { /* test8.c:1188:12: */
// Implementation of "GLOB" function on the echo module. Pass
// all arguments to the ::echo_glob_overload procedure of TCL
// and return the result of that procedure as a string.
-func overloadedGlobFunction(tls *crt.TLS, pContext uintptr, nArg int32, apArg uintptr) { /* test8.c:1206:13: */
+func overloadedGlobFunction(tls *libc.TLS, pContext uintptr, nArg int32, apArg uintptr) { /* test8.c:1206:13: */
bp := tls.Alloc(216)
defer tls.Free(216)
@@ -51894,7 +56691,7 @@ func overloadedGlobFunction(tls *crt.TLS, pContext uintptr, nArg int32, apArg ui
var i int32
var rc int32
tcl.XTcl_DStringInit(tls, bp /* &str */)
- tcl.XTcl_DStringAppendElement(tls, bp /* &str */, ts+24781 /* "::echo_glob_over..." */)
+ tcl.XTcl_DStringAppendElement(tls, bp /* &str */, ts+26873 /* "::echo_glob_over..." */)
for i = 0; i < nArg; i++ {
tcl.XTcl_DStringAppendElement(tls, bp /* &str */, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(apArg + uintptr(i)*8))))
}
@@ -51904,7 +56701,7 @@ func overloadedGlobFunction(tls *crt.TLS, pContext uintptr, nArg int32, apArg ui
sqlite3.Xsqlite3_result_error(tls, pContext, tcl.XTcl_GetStringResult(tls, interp), -1)
} else {
sqlite3.Xsqlite3_result_text(tls, pContext, tcl.XTcl_GetStringResult(tls, interp),
- -1, crt.UintptrFromInt32(-1))
+ -1, libc.UintptrFromInt32(-1))
}
tcl.XTcl_ResetResult(tls, interp)
}
@@ -51915,7 +56712,7 @@ func overloadedGlobFunction(tls *crt.TLS, pContext uintptr, nArg int32, apArg ui
// override the implementation of that function. It will choose to
// do so if the function is named "glob", and a TCL command named
// ::echo_glob_overload exists.
-func echoFindFunction(tls *crt.TLS, vtab uintptr, nArg int32, zFuncName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* test8.c:1239:12: */
+func echoFindFunction(tls *libc.TLS, vtab uintptr, nArg int32, zFuncName uintptr, pxFunc uintptr, ppArg uintptr) int32 { /* test8.c:1239:12: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -51923,34 +56720,34 @@ func echoFindFunction(tls *crt.TLS, vtab uintptr, nArg int32, zFuncName uintptr,
var interp uintptr = (*echo_vtab)(unsafe.Pointer(pVtab)).Finterp
// var info Tcl_CmdInfo at bp, 64
- if crt.Xstrcmp(tls, zFuncName, ts+24484 /* "glob" */) != 0 {
+ if libc.Xstrcmp(tls, zFuncName, ts+26576 /* "glob" */) != 0 {
return 0
}
- if tcl.XTcl_GetCommandInfo(tls, interp, ts+24781 /* "::echo_glob_over..." */, bp /* &info */) == 0 {
+ if tcl.XTcl_GetCommandInfo(tls, interp, ts+26873 /* "::echo_glob_over..." */, bp /* &info */) == 0 {
return 0
}
*(*uintptr)(unsafe.Pointer(pxFunc)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{overloadedGlobFunction}))
*(*uintptr)(unsafe.Pointer(ppArg)) = interp
return 1
}
-func echoRename(tls *crt.TLS, vtab uintptr, zNewName uintptr) int32 { /* test8.c:1260:12: */
+func echoRename(tls *libc.TLS, vtab uintptr, zNewName uintptr) int32 { /* test8.c:1260:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
var rc int32 = 0
var p uintptr = vtab
- if simulateVtabError(tls, p, ts+24802 /* "xRename" */) != 0 {
+ if simulateVtabError(tls, p, ts+26894 /* "xRename" */) != 0 {
return 1
}
if (*echo_vtab)(unsafe.Pointer(p)).FisPattern != 0 {
- var nThis int32 = int32(crt.Xstrlen(tls, (*echo_vtab)(unsafe.Pointer(p)).FzThis))
- var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+24810, /* "ALTER TABLE %s R..." */
- crt.VaList(bp, (*echo_vtab)(unsafe.Pointer(p)).FzTableName, zNewName, ((*echo_vtab)(unsafe.Pointer(p)).FzTableName+uintptr(nThis))))
+ var nThis int32 = int32(libc.Xstrlen(tls, (*echo_vtab)(unsafe.Pointer(p)).FzThis))
+ var zSql uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+26902, /* "ALTER TABLE %s R..." */
+ libc.VaList(bp, (*echo_vtab)(unsafe.Pointer(p)).FzTableName, zNewName, ((*echo_vtab)(unsafe.Pointer(p)).FzTableName+uintptr(nThis))))
rc = sqlite3.Xsqlite3_exec(tls, (*echo_vtab)(unsafe.Pointer(p)).Fdb, zSql, uintptr(0), uintptr(0), uintptr(0))
sqlite3.Xsqlite3_free(tls, zSql)
}
@@ -51958,17 +56755,17 @@ func echoRename(tls *crt.TLS, vtab uintptr, zNewName uintptr) int32 { /* test8.c
return rc
}
-func echoSavepoint(tls *crt.TLS, pVTab uintptr, iSavepoint int32) int32 { /* test8.c:1280:12: */
+func echoSavepoint(tls *libc.TLS, pVTab uintptr, iSavepoint int32) int32 { /* test8.c:1280:12: */
return 0
}
-func echoRelease(tls *crt.TLS, pVTab uintptr, iSavepoint int32) int32 { /* test8.c:1285:12: */
+func echoRelease(tls *libc.TLS, pVTab uintptr, iSavepoint int32) int32 { /* test8.c:1285:12: */
return 0
}
-func echoRollbackTo(tls *crt.TLS, pVTab uintptr, iSavepoint int32) int32 { /* test8.c:1290:12: */
+func echoRollbackTo(tls *libc.TLS, pVTab uintptr, iSavepoint int32) int32 { /* test8.c:1290:12: */
return 0
}
@@ -52010,12 +56807,12 @@ var echoModuleV2 = sqlite3_module{FiVersion: 2, FxCreate: // iVersion
0, FxRelease: 0, FxRollbackTo: 0,
} /* test8.c:1322:23 */
-func moduleDestroy(tls *crt.TLS, p uintptr) { /* test8.c:1354:13: */
+func moduleDestroy(tls *libc.TLS, p uintptr) { /* test8.c:1354:13: */
sqlite3.Xsqlite3_free(tls, p)
}
// Register the echo virtual table module.
-func register_echo_module(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test8.c:1361:26: */
+func register_echo_module(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test8.c:1361:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -52035,14 +56832,14 @@ func register_echo_module(tls *crt.TLS, clientData ClientData, interp uintptr, o
pMod = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(EchoModule{})))
(*EchoModule)(unsafe.Pointer(pMod)).Finterp = interp
rc = sqlite3.Xsqlite3_create_module_v2(tls,
- *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+24840 /* "echo" */, uintptr(unsafe.Pointer(&echoModule)), pMod, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{moduleDestroy})))
+ *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+26932 /* "echo" */, uintptr(unsafe.Pointer(&echoModule)), pMod, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{moduleDestroy})))
// Virtual table module "echo_v2"
if rc == 0 {
pMod = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(EchoModule{})))
(*EchoModule)(unsafe.Pointer(pMod)).Finterp = interp
- rc = sqlite3.Xsqlite3_create_module_v2(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+24845, /* "echo_v2" */
- uintptr(unsafe.Pointer(&echoModuleV2)), pMod, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{moduleDestroy})))
+ rc = sqlite3.Xsqlite3_create_module_v2(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+26937, /* "echo_v2" */
+ uintptr(unsafe.Pointer(&echoModuleV2)), pMod, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{moduleDestroy})))
}
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
@@ -52052,7 +56849,7 @@ func register_echo_module(tls *crt.TLS, clientData ClientData, interp uintptr, o
// Tcl interface to sqlite3_declare_vtab, invoked as follows from Tcl:
//
// sqlite3_declare_vtab DB SQL
-func declare_vtab(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test8.c:1401:26: */
+func declare_vtab(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test8.c:1401:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -52060,7 +56857,7 @@ func declare_vtab(tls *crt.TLS, clientData ClientData, interp uintptr, objc int3
var rc int32
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+24853 /* "DB SQL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+26945 /* "DB SQL" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
@@ -52075,26 +56872,26 @@ func declare_vtab(tls *crt.TLS, clientData ClientData, interp uintptr, objc int3
}
// Register commands with the TCL interpreter.
-func Sqlitetest8_Init(tls *crt.TLS, interp uintptr) int32 { /* test8.c:1427:5: */
+func Sqlitetest8_Init(tls *libc.TLS, interp uintptr) int32 { /* test8.c:1427:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd1)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd2)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd1[i].FzName,
- aObjCmd1[i].FxProc, aObjCmd1[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd2[i].FzName,
+ aObjCmd2[i].FxProc, aObjCmd2[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd1 = [2]struct {
+var aObjCmd2 = [2]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 24860 /* "register_echo_mo..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 24881 /* "sqlite3_declare_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 26952 /* "register_echo_mo..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 26973 /* "sqlite3_declare_..." */, FxProc: 0, FclientData: uintptr(0)},
} /* test8.c:1433:5 */
// end block for C++
@@ -52143,7 +56940,7 @@ var aObjCmd1 = [2]struct {
// ISO C99 Standard: 7.21 String handling <string.h>
// c_collation_test
-func c_collation_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test9.c:29:26: */
+func c_collation_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test9.c:29:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -52151,7 +56948,7 @@ func c_collation_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc
// var db uintptr at bp+24, 8
var rc int32
- zErrFunction = ts + 24902 /* "N/A" */
+ zErrFunction = ts + 26994 /* "N/A" */
if !(objc != 1) {
goto __1
}
@@ -52165,17 +56962,17 @@ __1:
if !(rc != 0) {
goto __2
}
- zErrFunction = ts + 18861 /* "sqlite3_open" */
+ zErrFunction = ts + 20572 /* "sqlite3_open" */
goto error_out
__2:
;
- rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* db */)), ts+11276 /* "collate" */, 456, uintptr(0), uintptr(0))
+ rc = sqlite3.Xsqlite3_create_collation(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* db */)), ts+12916 /* "collate" */, 456, uintptr(0), uintptr(0))
if !(rc != 21) {
goto __3
}
sqlite3.Xsqlite3_close(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* db */)))
- zErrFunction = ts + 24906 /* "sqlite3_create_c..." */
+ zErrFunction = ts + 26998 /* "sqlite3_create_c..." */
goto error_out
__3:
;
@@ -52185,18 +56982,18 @@ __3:
error_out:
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+24931 /* "Error testing fu..." */, zErrFunction, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+27023 /* "Error testing fu..." */, zErrFunction, 0))
return 1
}
// c_realloc_test
-func c_realloc_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test9.c:70:26: */
+func c_realloc_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test9.c:70:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
var p uintptr
var zErrFunction uintptr
- zErrFunction = ts + 24902 /* "N/A" */
+ zErrFunction = ts + 26994 /* "N/A" */
if !(objc != 1) {
goto __1
@@ -52210,7 +57007,7 @@ __1:
if !(!(p != 0)) {
goto __2
}
- zErrFunction = ts + 24956 /* "sqlite3_malloc" */
+ zErrFunction = ts + 27048 /* "sqlite3_malloc" */
goto error_out
__2:
;
@@ -52221,7 +57018,7 @@ __2:
if !(p != 0) {
goto __3
}
- zErrFunction = ts + 24971 /* "sqlite3_realloc" */
+ zErrFunction = ts + 27063 /* "sqlite3_realloc" */
goto error_out
__3:
;
@@ -52230,12 +57027,12 @@ __3:
error_out:
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+24931 /* "Error testing fu..." */, zErrFunction, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+27023 /* "Error testing fu..." */, zErrFunction, 0))
return 1
}
// c_misuse_test
-func c_misuse_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test9.c:111:26: */
+func c_misuse_test(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test9.c:111:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -52245,7 +57042,7 @@ func c_misuse_test(tls *crt.TLS, clientData ClientData, interp uintptr, objc int
// var pStmt uintptr at bp+32, 8
var rc int32
- zErrFunction = ts + 24902 /* "N/A" */
+ zErrFunction = ts + 26994 /* "N/A" */
*(*uintptr)(unsafe.Pointer(bp + 24 /* db */)) = uintptr(0)
if !(objc != 1) {
@@ -52262,7 +57059,7 @@ __1:
if !(rc != 0) {
goto __2
}
- zErrFunction = ts + 18861 /* "sqlite3_open" */
+ zErrFunction = ts + 20572 /* "sqlite3_open" */
goto error_out
__2:
;
@@ -52272,7 +57069,7 @@ __2:
if !(rc != 21) {
goto __3
}
- zErrFunction = ts + 18788 /* "sqlite3_errcode" */
+ zErrFunction = ts + 20499 /* "sqlite3_errcode" */
goto error_out
__3:
;
@@ -52282,7 +57079,7 @@ __3:
if !(rc != 21) {
goto __4
}
- zErrFunction = ts + 18942 /* "sqlite3_prepare" */
+ zErrFunction = ts + 20653 /* "sqlite3_prepare" */
goto error_out
__4:
;
@@ -52293,7 +57090,7 @@ __4:
if !(rc != 21) {
goto __5
}
- zErrFunction = ts + 18976 /* "sqlite3_prepare_..." */
+ zErrFunction = ts + 20687 /* "sqlite3_prepare_..." */
goto error_out
__5:
;
@@ -52303,7 +57100,7 @@ __5:
if !(rc != 21) {
goto __6
}
- zErrFunction = ts + 18958 /* "sqlite3_prepare1..." */
+ zErrFunction = ts + 20669 /* "sqlite3_prepare1..." */
goto error_out
__6:
;
@@ -52313,7 +57110,7 @@ __6:
if !(rc != 21) {
goto __7
}
- zErrFunction = ts + 19038 /* "sqlite3_prepare1..." */
+ zErrFunction = ts + 20749 /* "sqlite3_prepare1..." */
goto error_out
__7:
;
@@ -52322,32 +57119,32 @@ __7:
error_out:
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+24931 /* "Error testing fu..." */, zErrFunction, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+27023 /* "Error testing fu..." */, zErrFunction, 0))
return 1
}
// Register commands with the TCL interpreter.
-func Sqlitetest9_Init(tls *crt.TLS, interp uintptr) int32 { /* test9.c:188:5: */
+func Sqlitetest9_Init(tls *libc.TLS, interp uintptr) int32 { /* test9.c:188:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd2)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd3)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd2[i].FzName,
- aObjCmd2[i].FxProc, aObjCmd2[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd3[i].FzName,
+ aObjCmd3[i].FxProc, aObjCmd3[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd2 = [3]struct {
+var aObjCmd3 = [3]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 24987 /* "c_misuse_test" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 25001 /* "c_realloc_test" */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 25016 /* "c_collation_test" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 27079 /* "c_misuse_test" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 27093 /* "c_realloc_test" */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 27108 /* "c_collation_test" */, FxProc: 0, FclientData: uintptr(0)},
} /* test9.c:193:5 */
// end block for C++
@@ -52361,7 +57158,7 @@ var aObjCmd2 = [3]struct {
// This routine registers the custom TCL commands defined in this
// module. This should be the only procedure visible from outside
// of this module.
-func Sqlitetestasync_Init(tls *crt.TLS, interp uintptr) int32 { /* test_async.c:238:5: */
+func Sqlitetestasync_Init(tls *libc.TLS, interp uintptr) int32 { /* test_async.c:238:5: */
return 0
}
@@ -52381,29 +57178,29 @@ func Sqlitetestasync_Init(tls *crt.TLS, interp uintptr) int32 { /* test_async.c:
// tclcmd: sqlite3_reset_auto_extension
//
// Reset all auto-extensions
-func resetAutoExtObjCmd(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_autoext.c:196:26: */
+func resetAutoExtObjCmd(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_autoext.c:196:26: */
sqlite3.Xsqlite3_reset_auto_extension(tls)
return 0
}
// This procedure registers the TCL procs defined in this file.
-func Sqlitetest_autoext_Init(tls *crt.TLS, interp uintptr) int32 { /* test_autoext.c:210:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+25033, /* "sqlite3_reset_au..." */
+func Sqlitetest_autoext_Init(tls *libc.TLS, interp uintptr) int32 { /* test_autoext.c:210:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+27125, /* "sqlite3_reset_au..." */
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{resetAutoExtObjCmd})), uintptr(0), uintptr(0))
return 0
}
-func backupTestCmd(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_backup.c:33:26: */
+func backupTestCmd(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_backup.c:33:26: */
bp := tls.Alloc(196)
defer tls.Free(196)
*(*[5]BackupSubCommand)(unsafe.Pointer(bp /* aSub */)) = [5]BackupSubCommand{
- {FzCmd: ts + 10895 /* "step" */, FeCmd: uint32(0) /* BACKUP_STEP */, FnArg: 1, FzArg: ts + 25062 /* "npage" */},
- {FzCmd: ts + 25068 /* "finish" */, FeCmd: uint32(1) /* BACKUP_FINISH */, FnArg: 0, FzArg: ts + 488 /* "" */},
- {FzCmd: ts + 25075 /* "remaining" */, FeCmd: uint32(2) /* BACKUP_REMAINING */, FnArg: 0, FzArg: ts + 488 /* "" */},
- {FzCmd: ts + 25085 /* "pagecount" */, FeCmd: uint32(3) /* BACKUP_PAGECOUNT */, FnArg: 0, FzArg: ts + 488 /* "" */},
+ {FzCmd: ts + 9942 /* "step" */, FeCmd: uint32(0) /* BACKUP_STEP */, FnArg: 1, FzArg: ts + 27154 /* "npage" */},
+ {FzCmd: ts + 27160 /* "finish" */, FeCmd: uint32(1) /* BACKUP_FINISH */, FnArg: 0, FzArg: ts + 488 /* "" */},
+ {FzCmd: ts + 27167 /* "remaining" */, FeCmd: uint32(2) /* BACKUP_REMAINING */, FnArg: 0, FzArg: ts + 488 /* "" */},
+ {FzCmd: ts + 27177 /* "pagecount" */, FeCmd: uint32(3) /* BACKUP_PAGECOUNT */, FnArg: 0, FzArg: ts + 488 /* "" */},
{FzCmd: uintptr(0), FeCmd: uint32(0), FnArg: 0, FzArg: uintptr(0)},
}
@@ -52413,7 +57210,7 @@ func backupTestCmd(tls *crt.TLS, clientData ClientData, interp uintptr, objc int
var rc int32
rc = tcl.XTcl_GetIndexFromObjStruct(tls,
- interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &aSub[0] */, int32(unsafe.Sizeof(BackupSubCommand{})), ts+9536 /* "option" */, 0, bp+120 /* &iCmd */)
+ interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &aSub[0] */, int32(unsafe.Sizeof(BackupSubCommand{})), ts+11195 /* "option" */, 0, bp+120 /* &iCmd */)
if rc != 0 {
return rc
}
@@ -52471,14 +57268,14 @@ type BackupSubCommand = struct {
FzArg uintptr
}
-func backupTestFinish(tls *crt.TLS, clientData ClientData) { /* test_backup.c:108:27: */
+func backupTestFinish(tls *libc.TLS, clientData ClientData) { /* test_backup.c:108:27: */
var pBackup uintptr = clientData
sqlite3.Xsqlite3_backup_finish(tls, pBackup)
}
// sqlite3_backup CMDNAME DESTHANDLE DESTNAME SRCHANDLE SRCNAME
//
-func backupTestInit(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_backup.c:117:26: */
+func backupTestInit(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_backup.c:117:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -52493,7 +57290,7 @@ func backupTestInit(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
if objc != 6 {
tcl.XTcl_WrongNumArgs(tls,
- interp, 1, objv, ts+25095 /* "CMDNAME DESTHAND..." */)
+ interp, 1, objv, ts+27187 /* "CMDNAME DESTHAND..." */)
return 1
}
@@ -52505,20 +57302,20 @@ func backupTestInit(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
pBackup = sqlite3.Xsqlite3_backup_init(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* pDestDb */)), zDestName, *(*uintptr)(unsafe.Pointer(bp + 24 /* pSrcDb */)), zSrcName)
if !(pBackup != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+25141 /* "sqlite3_backup_i..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+27233 /* "sqlite3_backup_i..." */, 0))
return 1
}
tcl.XTcl_CreateObjCommand(tls, interp, zCmd, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
- }{backupTestCmd})), pBackup, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, ClientData) }{backupTestFinish})))
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{backupTestCmd})), pBackup, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, ClientData) }{backupTestFinish})))
tcl.XTcl_SetObjResult(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
return 0
}
-func Sqlitetestbackup_Init(tls *crt.TLS, interp uintptr) int32 { /* test_backup.c:154:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+25170 /* "sqlite3_backup" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+func Sqlitetestbackup_Init(tls *libc.TLS, interp uintptr) int32 { /* test_backup.c:154:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+27262 /* "sqlite3_backup" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{backupTestInit})), uintptr(0), uintptr(0))
return 0
}
@@ -52555,7 +57352,7 @@ type tcl_cursor1 = struct {
type tcl_cursor = tcl_cursor1 /* test_bestindex.c:105:27 */
// Dequote string z in place.
-func tclDequote(tls *crt.TLS, z uintptr) { /* test_bestindex.c:126:13: */
+func tclDequote(tls *libc.TLS, z uintptr) { /* test_bestindex.c:126:13: */
var q int8 = *(*int8)(unsafe.Pointer(z + uintptr(0)))
// Set stack variable q to the close-quote character
@@ -52577,10 +57374,10 @@ func tclDequote(tls *crt.TLS, z uintptr) { /* test_bestindex.c:126:13: */
// the input cursor past both and copy a single quote character
// to the output buffer.
iIn = iIn + (2)
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iOut, 1)))) = q
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = q
}
} else {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iIn, 1))))
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iIn, 1))))
}
}
@@ -52597,7 +57394,7 @@ func tclDequote(tls *crt.TLS, z uintptr) { /* test_bestindex.c:126:13: */
// argv[1] -> database name
// argv[2] -> table name
// argv[...] -> other module argument fields.
-func tclConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_bestindex.c:168:12: */
+func tclConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_bestindex.c:168:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -52608,16 +57405,16 @@ func tclConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr
var rc int32 = 0
if argc != 4 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+25185 /* "wrong number of ..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+27277 /* "wrong number of ..." */, 0)
return 1
}
- zCmd = sqlite3.Xsqlite3_malloc64(tls, (uint64(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))) + uint64(1))))
+ zCmd = sqlite3.Xsqlite3_malloc64(tls, (uint64(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))) + uint64(1))))
pTab = sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(tcl_vtab{})))
if (zCmd != 0) && (pTab != 0) {
- crt.Xmemcpy(tls, zCmd, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)), (crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))) + uint64(1)))
+ libc.Xmemcpy(tls, zCmd, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)), (libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))) + uint64(1)))
tclDequote(tls, zCmd)
- crt.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(tcl_vtab{})))
+ libc.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(tcl_vtab{})))
(*tcl_vtab)(unsafe.Pointer(pTab)).FpCmd = tcl.XTcl_NewStringObj(tls, zCmd, -1)
(*tcl_vtab)(unsafe.Pointer(pTab)).Finterp = interp
@@ -52626,11 +57423,11 @@ func tclConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr
pScript = tcl.XTcl_DuplicateObj(tls, (*tcl_vtab)(unsafe.Pointer(pTab)).FpCmd)
(*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, ts+24256 /* "xConnect" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, ts+26355 /* "xConnect" */, -1))
rc = tcl.XTcl_EvalObjEx(tls, interp, pScript, 0x020000)
if rc != 0 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, tcl.XTcl_GetStringResult(tls, interp)))
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, tcl.XTcl_GetStringResult(tls, interp)))
rc = 1
} else {
rc = sqlite3.Xsqlite3_declare_vtab(tls, db, tcl.XTcl_GetStringResult(tls, interp))
@@ -52650,11 +57447,11 @@ func tclConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr
}
// The xDisconnect and xDestroy methods are also the same
-func tclDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_bestindex.c:224:12: */
+func tclDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* test_bestindex.c:224:12: */
var pTab uintptr = pVtab
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*tcl_vtab)(unsafe.Pointer(pTab)).FpCmd
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -52663,19 +57460,19 @@ func tclDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_bestindex.c:224:
}
// Open a new tcl cursor.
-func tclOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_bestindex.c:234:12: */
+func tclOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_bestindex.c:234:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(tcl_cursor{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(tcl_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(tcl_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Close a tcl cursor.
-func tclClose(tls *crt.TLS, cur uintptr) int32 { /* test_bestindex.c:246:12: */
+func tclClose(tls *libc.TLS, cur uintptr) int32 { /* test_bestindex.c:246:12: */
var pCur uintptr = cur
if pCur != 0 {
sqlite3.Xsqlite3_finalize(tls, (*tcl_cursor)(unsafe.Pointer(pCur)).FpStmt)
@@ -52684,7 +57481,7 @@ func tclClose(tls *crt.TLS, cur uintptr) int32 { /* test_bestindex.c:246:12: */
return 0
}
-func tclNext(tls *crt.TLS, pVtabCursor uintptr) int32 { /* test_bestindex.c:255:12: */
+func tclNext(tls *libc.TLS, pVtabCursor uintptr) int32 { /* test_bestindex.c:255:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -52698,14 +57495,14 @@ func tclNext(tls *crt.TLS, pVtabCursor uintptr) int32 { /* test_bestindex.c:255:
(*tcl_cursor)(unsafe.Pointer(pCsr)).FpStmt = uintptr(0)
if rc != 0 {
zErr = sqlite3.Xsqlite3_errmsg(tls, (*tcl_vtab)(unsafe.Pointer(pTab)).Fdb)
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zErr))
}
}
}
return 0
}
-func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_bestindex.c:273:12: */
+func tclFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_bestindex.c:273:12: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -52719,7 +57516,7 @@ func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
pScript = tcl.XTcl_DuplicateObj(tls, (*tcl_vtab)(unsafe.Pointer(pTab)).FpCmd)
(*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, ts+24327 /* "xFilter" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, ts+26419 /* "xFilter" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewIntObj(tls, idxNum))
if idxStr != 0 {
tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, idxStr, -1))
@@ -52742,7 +57539,7 @@ func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
tcl.XTcl_ListObjAppendElement(tls, interp, pScript, pArg)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pArg
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -52751,7 +57548,7 @@ func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
if rc != 0 {
var zErr uintptr = tcl.XTcl_GetStringResult(tls, interp)
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zErr))
} else {
// Analyze the scripts return value. The return value should be a tcl
// list object with an even number of elements. The first element of each
@@ -52766,7 +57563,7 @@ func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
if rc != 0 {
var zErr uintptr = tcl.XTcl_GetStringResult(tls, interp)
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, zErr))
} else {
for ii = 0; (rc == 0) && (ii < *(*int32)(unsafe.Pointer(bp + 32 /* nElem */))); ii = ii + (2) {
var zCmd uintptr = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 40 /* apElem */)) + uintptr(ii)*8)))
@@ -52776,11 +57573,11 @@ func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
rc = sqlite3.Xsqlite3_prepare_v2(tls, (*tcl_vtab)(unsafe.Pointer(pTab)).Fdb, zSql, -1, (pCsr + 8 /* &.pStmt */), uintptr(0))
if rc != 0 {
var zErr uintptr = sqlite3.Xsqlite3_errmsg(tls, (*tcl_vtab)(unsafe.Pointer(pTab)).Fdb)
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+25211 /* "unexpected: %s" */, crt.VaList(bp+16, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+27303 /* "unexpected: %s" */, libc.VaList(bp+16, zErr))
}
} else {
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+25211 /* "unexpected: %s" */, crt.VaList(bp+24, zCmd))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+27303 /* "unexpected: %s" */, libc.VaList(bp+24, zCmd))
}
}
}
@@ -52792,24 +57589,24 @@ func tclFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr,
return rc
}
-func tclColumn(tls *crt.TLS, pVtabCursor uintptr, ctx uintptr, i int32) int32 { /* test_bestindex.c:356:12: */
+func tclColumn(tls *libc.TLS, pVtabCursor uintptr, ctx uintptr, i int32) int32 { /* test_bestindex.c:356:12: */
var pCsr uintptr = pVtabCursor
sqlite3.Xsqlite3_result_value(tls, ctx, sqlite3.Xsqlite3_column_value(tls, (*tcl_cursor)(unsafe.Pointer(pCsr)).FpStmt, (i+1)))
return 0
}
-func tclRowid(tls *crt.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* test_bestindex.c:366:12: */
+func tclRowid(tls *libc.TLS, pVtabCursor uintptr, pRowid uintptr) int32 { /* test_bestindex.c:366:12: */
var pCsr uintptr = pVtabCursor
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_column_int64(tls, (*tcl_cursor)(unsafe.Pointer(pCsr)).FpStmt, 0)
return 0
}
-func tclEof(tls *crt.TLS, pVtabCursor uintptr) int32 { /* test_bestindex.c:372:12: */
+func tclEof(tls *libc.TLS, pVtabCursor uintptr) int32 { /* test_bestindex.c:372:12: */
var pCsr uintptr = pVtabCursor
- return (crt.Bool32((*tcl_cursor)(unsafe.Pointer(pCsr)).FpStmt == uintptr(0)))
+ return (libc.Bool32((*tcl_cursor)(unsafe.Pointer(pCsr)).FpStmt == uintptr(0)))
}
-func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_bestindex.c:377:12: */
+func tclBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_bestindex.c:377:12: */
bp := tls.Alloc(76)
defer tls.Free(76)
@@ -52822,73 +57619,73 @@ func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_b
pScript = tcl.XTcl_DuplicateObj(tls, (*tcl_vtab)(unsafe.Pointer(pTab)).FpCmd)
(*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, ts+24381 /* "xBestIndex" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pScript, tcl.XTcl_NewStringObj(tls, ts+26473 /* "xBestIndex" */, -1))
pArg = tcl.XTcl_NewObj(tls)
(*Tcl_Obj)(unsafe.Pointer(pArg)).FrefCount++
for ii = 0; ii < (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint; ii++ {
var pCons uintptr = ((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraint + uintptr(ii)*12)
var pElem uintptr = tcl.XTcl_NewObj(tls)
- var zOp uintptr = ts + 2063 /* "?" */
+ var zOp uintptr = ts + 3219 /* "?" */
(*Tcl_Obj)(unsafe.Pointer(pElem)).FrefCount++
switch int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fop) {
case 2:
- zOp = ts + 25226 /* "eq" */
+ zOp = ts + 27318 /* "eq" */
break
case 4:
- zOp = ts + 25229 /* "gt" */
+ zOp = ts + 27321 /* "gt" */
break
case 8:
- zOp = ts + 25232 /* "le" */
+ zOp = ts + 27324 /* "le" */
break
case 16:
- zOp = ts + 25235 /* "lt" */
+ zOp = ts + 27327 /* "lt" */
break
case 32:
- zOp = ts + 25238 /* "ge" */
+ zOp = ts + 27330 /* "ge" */
break
case 64:
- zOp = ts + 25241 /* "match" */
+ zOp = ts + 27333 /* "match" */
break
case 65:
- zOp = ts + 24479 /* "like" */
+ zOp = ts + 26571 /* "like" */
break
case 66:
- zOp = ts + 24484 /* "glob" */
+ zOp = ts + 26576 /* "glob" */
break
case 67:
- zOp = ts + 4880 /* "regexp" */
+ zOp = ts + 6165 /* "regexp" */
break
case 68:
- zOp = ts + 25247 /* "ne" */
+ zOp = ts + 27339 /* "ne" */
break
case 69:
- zOp = ts + 25250 /* "isnot" */
+ zOp = ts + 27342 /* "isnot" */
break
case 70:
- zOp = ts + 25256 /* "isnotnull" */
+ zOp = ts + 27348 /* "isnotnull" */
break
case 71:
- zOp = ts + 25266 /* "isnull" */
+ zOp = ts + 27358 /* "isnull" */
break
case 72:
- zOp = ts + 4257 /* "is" */
+ zOp = ts + 5542 /* "is" */
break
}
- tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+25273 /* "op" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+27365 /* "op" */, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, zOp, -1))
- tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+25276 /* "column" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+27368 /* "column" */, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewIntObj(tls, (*sqlite3_index_constraint)(unsafe.Pointer(pCons)).FiColumn))
- tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+25283 /* "usable" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+27375 /* "usable" */, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewIntObj(tls, int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fusable)))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pArg, pElem)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pElem
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -52897,7 +57694,7 @@ func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_b
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pScript, pArg)
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pArg
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -52909,15 +57706,15 @@ func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_b
var pElem uintptr = tcl.XTcl_NewObj(tls)
(*Tcl_Obj)(unsafe.Pointer(pElem)).FrefCount++
- tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+25276 /* "column" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+27368 /* "column" */, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewIntObj(tls, (*sqlite3_index_orderby)(unsafe.Pointer(pOrder)).FiColumn))
- tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+25290 /* "desc" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewStringObj(tls, ts+27382 /* "desc" */, -1))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pElem, tcl.XTcl_NewIntObj(tls, int32((*sqlite3_index_orderby)(unsafe.Pointer(pOrder)).Fdesc)))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pArg, pElem)
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = pElem
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -52926,7 +57723,7 @@ func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_b
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pScript, pArg)
for ok3 := true; ok3; ok3 = 0 != 0 {
var _objPtr uintptr = pArg
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -52936,14 +57733,14 @@ func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_b
rc = tcl.XTcl_EvalObjEx(tls, interp, pScript, 0x020000)
for ok4 := true; ok4; ok4 = 0 != 0 {
var _objPtr uintptr = pScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
if rc != 0 {
var zErr uintptr = tcl.XTcl_GetStringResult(tls, interp)
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, zErr))
} else {
// Analyze the scripts return value. The return value should be a tcl
// list object with an even number of elements. The first element of each
@@ -52964,48 +57761,48 @@ func tclBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_b
if rc != 0 {
var zErr uintptr = tcl.XTcl_GetStringResult(tls, interp)
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, zErr))
} else {
var iArgv int32 = 1
for ii = 0; (rc == 0) && (ii < *(*int32)(unsafe.Pointer(bp + 48 /* nElem */))); ii = ii + (2) {
var zCmd uintptr = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 56 /* apElem */)) + uintptr(ii)*8)))
var p uintptr = *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 56 /* apElem */)) + uintptr((ii+1))*8))
- if sqlite3.Xsqlite3_stricmp(tls, ts+25295 /* "cost" */, zCmd) == 0 {
+ if sqlite3.Xsqlite3_stricmp(tls, ts+27387 /* "cost" */, zCmd) == 0 {
rc = tcl.XTcl_GetDoubleFromObj(tls, interp, p, (pIdxInfo + 64 /* &.estimatedCost */))
- } else if sqlite3.Xsqlite3_stricmp(tls, ts+25300 /* "orderby" */, zCmd) == 0 {
+ } else if sqlite3.Xsqlite3_stricmp(tls, ts+27392 /* "orderby" */, zCmd) == 0 {
rc = tcl.XTcl_GetIntFromObj(tls, interp, p, (pIdxInfo + 60 /* &.orderByConsumed */))
- } else if sqlite3.Xsqlite3_stricmp(tls, ts+25308 /* "idxnum" */, zCmd) == 0 {
+ } else if sqlite3.Xsqlite3_stricmp(tls, ts+27400 /* "idxnum" */, zCmd) == 0 {
rc = tcl.XTcl_GetIntFromObj(tls, interp, p, (pIdxInfo + 40 /* &.idxNum */))
- } else if sqlite3.Xsqlite3_stricmp(tls, ts+25315 /* "idxstr" */, zCmd) == 0 {
+ } else if sqlite3.Xsqlite3_stricmp(tls, ts+27407 /* "idxstr" */, zCmd) == 0 {
sqlite3.Xsqlite3_free(tls, (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr)
- (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+16, tcl.XTcl_GetString(tls, p)))
+ (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FidxStr = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+16, tcl.XTcl_GetString(tls, p)))
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FneedToFreeIdxStr = 1
- } else if sqlite3.Xsqlite3_stricmp(tls, ts+25322 /* "rows" */, zCmd) == 0 {
+ } else if sqlite3.Xsqlite3_stricmp(tls, ts+27414 /* "rows" */, zCmd) == 0 {
*(*Tcl_WideInt)(unsafe.Pointer(bp + 64 /* x */)) = int64(0)
rc = tcl.XTcl_GetWideIntFromObj(tls, interp, p, bp+64 /* &x */)
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedRows = sqlite3_int64(tRowcnt(*(*Tcl_WideInt)(unsafe.Pointer(bp + 64 /* x */))))
- } else if (sqlite3.Xsqlite3_stricmp(tls, ts+25327 /* "use" */, zCmd) == 0) ||
- (sqlite3.Xsqlite3_stricmp(tls, ts+25331 /* "omit" */, zCmd) == 0) {
+ } else if (sqlite3.Xsqlite3_stricmp(tls, ts+27419 /* "use" */, zCmd) == 0) ||
+ (sqlite3.Xsqlite3_stricmp(tls, ts+27423 /* "omit" */, zCmd) == 0) {
// var iCons int32 at bp+72, 4
rc = tcl.XTcl_GetIntFromObj(tls, interp, p, bp+72 /* &iCons */)
if rc == 0 {
if (*(*int32)(unsafe.Pointer(bp + 72 /* iCons */)) < 0) || (*(*int32)(unsafe.Pointer(bp + 72 /* iCons */)) >= (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint) {
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+25336 /* "unexpected: %d" */, crt.VaList(bp+24, *(*int32)(unsafe.Pointer(bp + 72 /* iCons */))))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+27428 /* "unexpected: %d" */, libc.VaList(bp+24, *(*int32)(unsafe.Pointer(bp + 72 /* iCons */))))
} else {
- var bOmit int32 = (crt.Bool32((int32(*(*int8)(unsafe.Pointer(zCmd + uintptr(0)))) == 'o') || (int32(*(*int8)(unsafe.Pointer(zCmd + uintptr(0)))) == 'O')))
- (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(*(*int32)(unsafe.Pointer(bp + 72 /* iCons */)))*8)).FargvIndex = crt.PostIncInt32(&iArgv, 1)
+ var bOmit int32 = (libc.Bool32((int32(*(*int8)(unsafe.Pointer(zCmd + uintptr(0)))) == 'o') || (int32(*(*int8)(unsafe.Pointer(zCmd + uintptr(0)))) == 'O')))
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(*(*int32)(unsafe.Pointer(bp + 72 /* iCons */)))*8)).FargvIndex = libc.PostIncInt32(&iArgv, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer((*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FaConstraintUsage + uintptr(*(*int32)(unsafe.Pointer(bp + 72 /* iCons */)))*8)).Fomit = uint8(bOmit)
}
}
} else {
rc = 1
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+25211 /* "unexpected: %s" */, crt.VaList(bp+32, zCmd))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+27303 /* "unexpected: %s" */, libc.VaList(bp+32, zCmd))
}
if (rc != 0) && ((*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg == uintptr(0)) {
var zErr uintptr = tcl.XTcl_GetStringResult(tls, interp)
- (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+40, zErr))
+ (*tcl_vtab)(unsafe.Pointer(pTab)).Fbase.FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+40, zErr))
}
}
}
@@ -53034,7 +57831,7 @@ uintptr(0), // xRename
} /* test_bestindex.c:549:23 */
// Register the echo virtual table module.
-func register_tcl_module(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_bestindex.c:580:26: */
+func register_tcl_module(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_bestindex.c:580:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -53047,40 +57844,40 @@ func register_tcl_module(tls *crt.TLS, clientData ClientData, interp uintptr, ob
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+25351 /* "tcl" */, uintptr(unsafe.Pointer(&tclModule)), interp)
+ sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+27443 /* "tcl" */, uintptr(unsafe.Pointer(&tclModule)), interp)
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetesttcl_Init(tls *crt.TLS, interp uintptr) int32 { /* test_bestindex.c:604:5: */
+func Sqlitetesttcl_Init(tls *libc.TLS, interp uintptr) int32 { /* test_bestindex.c:604:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd3)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd4)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd3[i].FzName,
- aObjCmd3[i].FxProc, aObjCmd3[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd4[i].FzName,
+ aObjCmd4[i].FxProc, aObjCmd4[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd3 = [1]struct {
+var aObjCmd4 = [1]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 25355 /* "register_tcl_mod..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 27447 /* "register_tcl_mod..." */, FxProc: 0, FclientData: uintptr(0)},
} /* test_bestindex.c:610:5 */
// Return a pointer to a buffer containing a text representation of the
// pointer passed as the only argument. The original pointer may be extracted
// from the text using sqlite3TestTextToPtr().
-func ptrToText(tls *crt.TLS, p uintptr) uintptr { /* test_blob.c:37:13: */
+func ptrToText(tls *libc.TLS, p uintptr) uintptr { /* test_blob.c:37:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
- sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof(buf)) - uint64(1))), uintptr(unsafe.Pointer(&buf)), ts+11197 /* "%p" */, crt.VaList(bp, p))
+ sqlite3.Xsqlite3_snprintf(tls, (int32(uint64(unsafe.Sizeof(buf)) - uint64(1))), uintptr(unsafe.Pointer(&buf)), ts+12843 /* "%p" */, libc.VaList(bp, p))
return uintptr(unsafe.Pointer(&buf))
}
@@ -53096,7 +57893,7 @@ var buf [100]int8 /* test_blob.c:38:15: */
// is assumed to be the name of a Tcl channel opened using the [db incrblob]
// command (see tclsqlite.c). Otherwise, it is assumed to be a pointer
// encoded using the ptrToText() routine or similar.
-func blobHandleFromObj1(tls *crt.TLS, interp uintptr, pObj uintptr, ppBlob uintptr) int32 { /* test_blob.c:55:12: */
+func blobHandleFromObj1(tls *libc.TLS, interp uintptr, pObj uintptr, ppBlob uintptr) int32 { /* test_blob.c:55:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -53106,7 +57903,7 @@ func blobHandleFromObj1(tls *crt.TLS, interp uintptr, pObj uintptr, ppBlob uintp
z = tcl.XTcl_GetStringFromObj(tls, pObj, bp /* &n */)
if *(*int32)(unsafe.Pointer(bp /* n */)) == 0 {
*(*uintptr)(unsafe.Pointer(ppBlob)) = uintptr(0)
- } else if (*(*int32)(unsafe.Pointer(bp /* n */)) > 9) && (0 == crt.Xmemcmp(tls, ts+25375 /* "incrblob_" */, z, uint64(9))) {
+ } else if (*(*int32)(unsafe.Pointer(bp /* n */)) > 9) && (0 == libc.Xmemcmp(tls, ts+27467 /* "incrblob_" */, z, uint64(9))) {
// var notUsed int32 at bp+4, 4
var channel Tcl_Channel
@@ -53131,7 +57928,7 @@ func blobHandleFromObj1(tls *crt.TLS, interp uintptr, pObj uintptr, ppBlob uintp
// Like Tcl_GetString(), except that if the string is 0 bytes in size, a
// NULL Pointer is returned.
-func blobStringFromObj(tls *crt.TLS, pObj uintptr) uintptr { /* test_blob.c:90:13: */
+func blobStringFromObj(tls *libc.TLS, pObj uintptr) uintptr { /* test_blob.c:90:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -53150,7 +57947,7 @@ func blobStringFromObj(tls *crt.TLS, pObj uintptr) uintptr { /* test_blob.c:90:1
// sqlite3_blob_open DB DATABASE TABLE COLUMN ROWID FLAGS VARNAME
//
// Tcl test harness for the sqlite3_blob_open() function.
-func test_blob_open(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:102:26: */
+func test_blob_open(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:102:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -53170,7 +57967,7 @@ func test_blob_open(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
var rc int32
if objc != 8 {
- var zUsage uintptr = ts + 25385 /* "DB DATABASE TABL..." */
+ var zUsage uintptr = ts + 27477 /* "DB DATABASE TABL..." */
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, zUsage)
return 1
}
@@ -53205,7 +58002,7 @@ func test_blob_open(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
}
// sqlite3_blob_close HANDLE
-func test_blob_close(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:153:26: */
+func test_blob_close(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:153:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -53214,7 +58011,7 @@ func test_blob_close(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
var rc int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
@@ -53232,7 +58029,7 @@ func test_blob_close(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
}
// sqlite3_blob_bytes HANDLE
-func test_blob_bytes(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:181:26: */
+func test_blob_bytes(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:181:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -53241,7 +58038,7 @@ func test_blob_bytes(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
var nByte int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
@@ -53267,7 +58064,7 @@ func test_blob_bytes(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
// returned. On failure, the interpreter result is set to the
// text representation of the returned error code (i.e. "SQLITE_NOMEM")
// and a Tcl exception is thrown.
-func test_blob_read(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:217:26: */
+func test_blob_read(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:217:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -53281,7 +58078,7 @@ func test_blob_read(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
var rc int32
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25437 /* "CHANNEL OFFSET N" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27529 /* "CHANNEL OFFSET N" */)
return 1
}
@@ -53296,7 +58093,7 @@ func test_blob_read(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
if *(*int32)(unsafe.Pointer(bp + 28 /* nByte */)) > 0 {
zBuf = tcl.XTcl_AttemptAlloc(tls, uint32(*(*int32)(unsafe.Pointer(bp + 28 /* nByte */))))
if zBuf == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+25454 /* "out of memory in..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+27546 /* "out of memory in..." */, 0))
return 1
}
}
@@ -53328,7 +58125,7 @@ func test_blob_read(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
// On success, an empty string is returned. On failure, the interpreter
// result is set to the text representation of the returned error code
// (i.e. "SQLITE_NOMEM") and a Tcl exception is thrown.
-func test_blob_write(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:273:26: */
+func test_blob_write(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_blob.c:273:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -53341,7 +58138,7 @@ func test_blob_write(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
// var nBuf int32 at bp+12, 4
if (objc != 4) && (objc != 5) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25515 /* "HANDLE OFFSET DA..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27607 /* "HANDLE OFFSET DA..." */)
return 1
}
@@ -53370,26 +58167,26 @@ func test_blob_write(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
}
// Register commands with the TCL interpreter.
-func Sqlitetest_blob_Init(tls *crt.TLS, interp uintptr) int32 { /* test_blob.c:312:5: */
+func Sqlitetest_blob_Init(tls *libc.TLS, interp uintptr) int32 { /* test_blob.c:312:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd4)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd5)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd4[i].FzName, aObjCmd4[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd5[i].FzName, aObjCmd5[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aObjCmd4 = [5]struct {
+var aObjCmd5 = [5]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 25542 /* "sqlite3_blob_ope..." */, FxProc: 0},
- {FzName: ts + 25560 /* "sqlite3_blob_clo..." */, FxProc: 0},
- {FzName: ts + 25579 /* "sqlite3_blob_byt..." */, FxProc: 0},
- {FzName: ts + 25598 /* "sqlite3_blob_rea..." */, FxProc: 0},
- {FzName: ts + 25616 /* "sqlite3_blob_wri..." */, FxProc: 0},
+ {FzName: ts + 27634 /* "sqlite3_blob_ope..." */, FxProc: 0},
+ {FzName: ts + 27652 /* "sqlite3_blob_clo..." */, FxProc: 0},
+ {FzName: ts + 27671 /* "sqlite3_blob_byt..." */, FxProc: 0},
+ {FzName: ts + 27690 /* "sqlite3_blob_rea..." */, FxProc: 0},
+ {FzName: ts + 27708 /* "sqlite3_blob_wri..." */, FxProc: 0},
} /* test_blob.c:317:5 */
// end block for C++
@@ -53404,7 +58201,7 @@ var aObjCmd4 = [5]struct {
//
// Return a list of file that are shared and the number of
// references to each file.
-func sqlite3BtreeSharedCacheReport(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_btree.c:29:19: */
+func sqlite3BtreeSharedCacheReport(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_btree.c:29:19: */
var pBt uintptr
var pRet uintptr = tcl.XTcl_NewObj(tls)
for pBt = sqlite3.Xsqlite3SharedCacheList; pBt != 0; pBt = (*BtShared)(unsafe.Pointer(pBt)).FpNext {
@@ -53417,7 +58214,7 @@ func sqlite3BtreeSharedCacheReport(tls *crt.TLS, clientData uintptr, interp uint
}
// Print debugging information about all cursors to standard output.
-func sqlite3BtreeCursorList(tls *crt.TLS, p uintptr) { /* test_btree.c:52:6: */
+func sqlite3BtreeCursorList(tls *libc.TLS, p uintptr) { /* test_btree.c:52:6: */
}
// end block for C++
@@ -53471,358 +58268,358 @@ func sqlite3BtreeCursorList(tls *crt.TLS, p uintptr) { /* test_btree.c:52:6: */
// This routine sets entries in the global ::sqlite_options() array variable
// according to the compile-time configuration of the database. Test
// procedures use this to determine when tests should be omitted.
-func set_options(tls *crt.TLS, interp uintptr) { /* test_config.c:47:13: */
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25650 /* "malloc_usable_si..." */, ts+12045, /* "0" */
+func set_options(tls *libc.TLS, interp uintptr) { /* test_config.c:47:13: */
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27742 /* "malloc_usable_si..." */, ts+27761, /* "1" */
1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25669 /* "rowid32" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27763 /* "rowid32" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25677 /* "casesensitivelik..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27771 /* "casesensitivelik..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25695 /* "curdir" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27789 /* "curdir" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25704 /* "win32malloc" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27796 /* "win32malloc" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25716 /* "debug" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27808 /* "debug" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25722 /* "default_ckptfull..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27814 /* "default_ckptfull..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25744 /* "direct_read" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27836 /* "direct_read" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25756 /* "dirsync" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27848 /* "dirsync" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25764 /* "lfs" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27856 /* "lfs" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25768 /* "pagecache_overfl..." */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27860 /* "pagecache_overfl..." */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25793 /* "mmap" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27885 /* "mmap" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25798, /* "worker_threads" */
- ts+25813 /* "8" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27890, /* "worker_threads" */
+ ts+27905 /* "8" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25815 /* "memdebug" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27907 /* "memdebug" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25824 /* "8_3_names" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27916 /* "8_3_names" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25834 /* "cursorhints" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27926 /* "cursorhints" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25846 /* "hiddencolumns" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27938 /* "hiddencolumns" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+11334 /* "deserialize" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+12974 /* "deserialize" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25860 /* "mem3" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27952 /* "mem3" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25865 /* "mem5" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27957 /* "mem5" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25870 /* "offset_sql_func" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27962 /* "offset_sql_func" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+11442 /* "preupdate" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+13082 /* "preupdate" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25886 /* "snapshot" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27978 /* "snapshot" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25895 /* "mutex" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27987 /* "mutex" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25901 /* "mutex_noop" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+27993 /* "mutex_noop" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25912 /* "altertable" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28004 /* "altertable" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+1817 /* "analyze" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+1817 /* "analyze" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25923 /* "api_armor" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28015 /* "api_armor" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25933 /* "atomicwrite" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28025 /* "atomicwrite" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25945 /* "json1" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28037 /* "json1" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25951 /* "has_codec" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28043 /* "has_codec" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25961 /* "like_match_blobs" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28053 /* "like_match_blobs" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25978 /* "attach" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28070 /* "attach" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25985 /* "auth" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28077 /* "auth" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25990 /* "autoinc" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28082 /* "autoinc" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+10905 /* "autoindex" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+12555 /* "autoindex" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+25998 /* "autoreset" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28090 /* "autoreset" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26008 /* "autovacuum" */, ts+25702 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26019, /* "default_autovacu..." */
- ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28100 /* "autovacuum" */, ts+27761 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28111, /* "default_autovacu..." */
+ ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26038 /* "between_opt" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28130 /* "between_opt" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26050 /* "builtin_test" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28142 /* "builtin_test" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26063 /* "bloblit" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28155 /* "bloblit" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26071 /* "cast" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28163 /* "cast" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26076 /* "check" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28168 /* "check" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26082 /* "cte" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28174 /* "cte" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26086 /* "columnmetadata" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28178 /* "columnmetadata" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26101 /* "oversize_cell_ch..." */, ts+12045, /* "0" */
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28193 /* "oversize_cell_ch..." */, ts+13695, /* "0" */
1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26121 /* "compileoption_di..." */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28213 /* "compileoption_di..." */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+11313 /* "complete" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+12953 /* "complete" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26141 /* "compound" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28233 /* "compound" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26150 /* "conflict" */, ts+25702 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26159 /* "crashtest" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28242 /* "conflict" */, ts+27761 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28251 /* "crashtest" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26169 /* "datetime" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28261 /* "datetime" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26178 /* "decltype" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28270 /* "decltype" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26187 /* "deprecated" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28279 /* "deprecated" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26198 /* "diskio" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28290 /* "diskio" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+3448 /* "explain" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+4665 /* "explain" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26205 /* "floatingpoint" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28297 /* "floatingpoint" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26219 /* "foreignkey" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28311 /* "foreignkey" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26230 /* "fts1" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28322 /* "fts1" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26235 /* "fts2" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28327 /* "fts2" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26240 /* "fts3" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28332 /* "fts3" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26245 /* "fts5" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28337 /* "fts5" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26250 /* "fts3_unicode" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28342 /* "fts3_unicode" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26263 /* "fts4_deferred" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28355 /* "fts4_deferred" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26277 /* "gettable" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28369 /* "gettable" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26286 /* "icu" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28378 /* "icu" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26290 /* "icu_collations" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28382 /* "icu_collations" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+8647 /* "incrblob" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+10346 /* "incrblob" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26305 /* "integrityck" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28397 /* "integrityck" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26317 /* "legacyformat" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28409 /* "legacyformat" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26330 /* "like_opt" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28422 /* "like_opt" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26339 /* "load_ext" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28431 /* "load_ext" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26348 /* "localtime" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28440 /* "localtime" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26358 /* "lookaside" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28450 /* "lookaside" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26368, /* "long_double" */
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28460, /* "long_double" */
func() uintptr {
if uint64(unsafe.Sizeof(float64(0))) > uint64(unsafe.Sizeof(float64(0))) {
- return ts + 25702 /* "1" */
+ return ts + 27761 /* "1" */
}
- return ts + 12045 /* "0" */
+ return ts + 13695 /* "0" */
}(),
1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26380 /* "memorydb" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28472 /* "memorydb" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26389 /* "memorymanage" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28481 /* "memorymanage" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26402 /* "mergesort" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28494 /* "mergesort" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26412 /* "null_trim" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28504 /* "null_trim" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26422 /* "or_opt" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28514 /* "or_opt" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26429 /* "rbu" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28521 /* "rbu" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26433 /* "pager_pragmas" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28525 /* "pager_pragmas" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26447 /* "pragma" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28539 /* "pragma" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+11460 /* "progress" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+10021 /* "progress" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26454 /* "reindex" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28546 /* "reindex" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26462 /* "rtree" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28554 /* "rtree" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26468 /* "rtree_int_only" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28560 /* "rtree_int_only" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26483 /* "schema_pragmas" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28575 /* "schema_pragmas" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26498 /* "schema_version" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28590 /* "schema_version" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26513 /* "session" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28605 /* "session" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+16415 /* "stat4" */, ts+12045 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26521 /* "stmtvtab" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+18111 /* "stat4" */, ts+27761 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28613 /* "stmtvtab" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26530 /* "scanstatus" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28622 /* "scanstatus" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26541 /* "lock_proxy_pragm..." */, ts+12045 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26560 /* "prefer_proxy_loc..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28633 /* "lock_proxy_pragm..." */, ts+13695 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28652 /* "prefer_proxy_loc..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26581 /* "shared_cache" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28673 /* "shared_cache" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26594 /* "subquery" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28686 /* "subquery" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26603 /* "tclvar" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28695 /* "tclvar" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26610, /* "threadsafe" */
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28702, /* "threadsafe" */
func() uintptr {
if 1 != 0 {
- return ts + 25702 /* "1" */
+ return ts + 27761 /* "1" */
}
- return ts + 12045 /* "0" */
+ return ts + 13695 /* "0" */
}(), 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26621, /* "threadsafe1" */
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28713, /* "threadsafe1" */
func() uintptr {
if 1 == 1 {
- return ts + 25702 /* "1" */
+ return ts + 27761 /* "1" */
}
- return ts + 12045 /* "0" */
+ return ts + 13695 /* "0" */
}(), 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26633, /* "threadsafe2" */
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28725, /* "threadsafe2" */
func() uintptr {
if 1 == 2 {
- return ts + 25702 /* "1" */
+ return ts + 27761 /* "1" */
}
- return ts + 12045 /* "0" */
+ return ts + 13695 /* "0" */
}(), 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26645 /* "tempdb" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28737 /* "tempdb" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+11536 /* "trace" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+13167 /* "trace" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26652 /* "trigger" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28744 /* "trigger" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26660 /* "truncate_opt" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28752 /* "truncate_opt" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+13590 /* "utf16" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+15230 /* "utf16" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26673 /* "vacuum" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28765 /* "vacuum" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26680 /* "view" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28772 /* "view" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26685 /* "vtab" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28777 /* "vtab" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26690 /* "wal" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28782 /* "wal" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26694 /* "wsd" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28786 /* "wsd" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26698 /* "update_delete_li..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28790 /* "update_delete_li..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+11563 /* "unlock_notify" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+13194 /* "unlock_notify" */, ts+27761 /* "1" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26718 /* "fast_secure_dele..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28810 /* "fast_secure_dele..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26737 /* "secure_delete" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28829 /* "secure_delete" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26751 /* "userauth" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28843 /* "userauth" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26760 /* "multiplex_ext_ov..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28852 /* "multiplex_ext_ov..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26784 /* "yytrackmaxstackd..." */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28876 /* "yytrackmaxstackd..." */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26805 /* "sqllog" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28897 /* "sqllog" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26812 /* "uri_00_error" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28904 /* "uri_00_error" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26825 /* "normalize" */, ts+12045 /* "0" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28917 /* "normalize" */, ts+13695 /* "0" */, 1)
- tcl.XTcl_SetVar2(tls, interp, ts+25635 /* "sqlite_options" */, ts+26835 /* "windowfunc" */, ts+25702 /* "1" */, 1)
+ tcl.XTcl_SetVar2(tls, interp, ts+27727 /* "sqlite_options" */, ts+28927 /* "windowfunc" */, ts+27761 /* "1" */, 1)
{
- tcl.XTcl_LinkVar(tls, interp, ts+26846 /* "SQLITE_MAX_LENGT..." */, uintptr(unsafe.Pointer(&cv_MAX_LENGTH)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+28938 /* "SQLITE_MAX_LENGT..." */, uintptr(unsafe.Pointer(&cv_MAX_LENGTH)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26864 /* "SQLITE_MAX_COLUM..." */, uintptr(unsafe.Pointer(&cv_MAX_COLUMN)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+28956 /* "SQLITE_MAX_COLUM..." */, uintptr(unsafe.Pointer(&cv_MAX_COLUMN)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26882 /* "SQLITE_MAX_SQL_L..." */, uintptr(unsafe.Pointer(&cv_MAX_SQL_LENGTH)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+28974 /* "SQLITE_MAX_SQL_L..." */, uintptr(unsafe.Pointer(&cv_MAX_SQL_LENGTH)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26904 /* "SQLITE_MAX_EXPR_..." */, uintptr(unsafe.Pointer(&cv_MAX_EXPR_DEPTH)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+28996 /* "SQLITE_MAX_EXPR_..." */, uintptr(unsafe.Pointer(&cv_MAX_EXPR_DEPTH)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26926 /* "SQLITE_MAX_COMPO..." */, uintptr(unsafe.Pointer(&cv_MAX_COMPOUND_SELECT)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29018 /* "SQLITE_MAX_COMPO..." */, uintptr(unsafe.Pointer(&cv_MAX_COMPOUND_SELECT)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26953 /* "SQLITE_MAX_VDBE_..." */, uintptr(unsafe.Pointer(&cv_MAX_VDBE_OP)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29045 /* "SQLITE_MAX_VDBE_..." */, uintptr(unsafe.Pointer(&cv_MAX_VDBE_OP)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26972 /* "SQLITE_MAX_FUNCT..." */, uintptr(unsafe.Pointer(&cv_MAX_FUNCTION_ARG)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29064 /* "SQLITE_MAX_FUNCT..." */, uintptr(unsafe.Pointer(&cv_MAX_FUNCTION_ARG)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+26996 /* "SQLITE_MAX_VARIA..." */, uintptr(unsafe.Pointer(&cv_MAX_VARIABLE_NUMBER)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29088 /* "SQLITE_MAX_VARIA..." */, uintptr(unsafe.Pointer(&cv_MAX_VARIABLE_NUMBER)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27023 /* "SQLITE_MAX_PAGE_..." */, uintptr(unsafe.Pointer(&cv_MAX_PAGE_SIZE)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29115 /* "SQLITE_MAX_PAGE_..." */, uintptr(unsafe.Pointer(&cv_MAX_PAGE_SIZE)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27044 /* "SQLITE_MAX_PAGE_..." */, uintptr(unsafe.Pointer(&cv_MAX_PAGE_COUNT)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29136 /* "SQLITE_MAX_PAGE_..." */, uintptr(unsafe.Pointer(&cv_MAX_PAGE_COUNT)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27066 /* "SQLITE_MAX_LIKE_..." */, uintptr(unsafe.Pointer(&cv_MAX_LIKE_PATTERN_LENGTH)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29158 /* "SQLITE_MAX_LIKE_..." */, uintptr(unsafe.Pointer(&cv_MAX_LIKE_PATTERN_LENGTH)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27097 /* "SQLITE_MAX_TRIGG..." */, uintptr(unsafe.Pointer(&cv_MAX_TRIGGER_DEPTH)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29189 /* "SQLITE_MAX_TRIGG..." */, uintptr(unsafe.Pointer(&cv_MAX_TRIGGER_DEPTH)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27122 /* "SQLITE_DEFAULT_C..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_CACHE_SIZE)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29214 /* "SQLITE_DEFAULT_C..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_CACHE_SIZE)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27148 /* "SQLITE_DEFAULT_P..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_PAGE_SIZE)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29240 /* "SQLITE_DEFAULT_P..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_PAGE_SIZE)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27173 /* "SQLITE_DEFAULT_F..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_FILE_FORMAT)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29265 /* "SQLITE_DEFAULT_F..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_FILE_FORMAT)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27200 /* "SQLITE_DEFAULT_S..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_SYNCHRONOUS)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29292 /* "SQLITE_DEFAULT_S..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_SYNCHRONOUS)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27227 /* "SQLITE_DEFAULT_W..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_WAL_SYNCHRONOUS)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29319 /* "SQLITE_DEFAULT_W..." */, uintptr(unsafe.Pointer(&cv_DEFAULT_WAL_SYNCHRONOUS)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27258 /* "SQLITE_MAX_ATTAC..." */, uintptr(unsafe.Pointer(&cv_MAX_ATTACHED)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29350 /* "SQLITE_MAX_ATTAC..." */, uintptr(unsafe.Pointer(&cv_MAX_ATTACHED)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27278 /* "SQLITE_MAX_DEFAU..." */, uintptr(unsafe.Pointer(&cv_MAX_DEFAULT_PAGE_SIZE)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29370 /* "SQLITE_MAX_DEFAU..." */, uintptr(unsafe.Pointer(&cv_MAX_DEFAULT_PAGE_SIZE)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27307 /* "SQLITE_MAX_WORKE..." */, uintptr(unsafe.Pointer(&cv_MAX_WORKER_THREADS)), (1 | 0x80))
+ tcl.XTcl_LinkVar(tls, interp, ts+29399 /* "SQLITE_MAX_WORKE..." */, uintptr(unsafe.Pointer(&cv_MAX_WORKER_THREADS)), (1 | 0x80))
}
{
- tcl.XTcl_LinkVar(tls, interp, ts+27333 /* "TEMP_STORE" */, uintptr(unsafe.Pointer(&cv_TEMP_STORE)),
+ tcl.XTcl_LinkVar(tls, interp, ts+29425 /* "TEMP_STORE" */, uintptr(unsafe.Pointer(&cv_TEMP_STORE)),
(1 | 0x80))
}
@@ -53831,7 +58628,7 @@ func set_options(tls *crt.TLS, interp uintptr) { /* test_config.c:47:13: */
var cv_MAX_LENGTH int32 = 1000000000 /* test_config.c:772:3 */
var cv_MAX_COLUMN int32 = 2000 /* test_config.c:773:3 */
var cv_MAX_SQL_LENGTH int32 = 1000000000 /* test_config.c:774:3 */
-var cv_MAX_EXPR_DEPTH int32 = 0 /* test_config.c:775:3 */
+var cv_MAX_EXPR_DEPTH int32 = 1000 /* test_config.c:775:3 */
var cv_MAX_COMPOUND_SELECT int32 = 500 /* test_config.c:776:3 */
var cv_MAX_VDBE_OP int32 = 250000000 /* test_config.c:777:3 */
var cv_MAX_FUNCTION_ARG int32 = 127 /* test_config.c:778:3 */
@@ -53844,14 +58641,14 @@ var cv_DEFAULT_CACHE_SIZE int32 = -2000 /* test_config.c:784:3 */
var cv_DEFAULT_PAGE_SIZE int32 = 1024 /* test_config.c:785:3 */
var cv_DEFAULT_FILE_FORMAT int32 = 4 /* test_config.c:786:3 */
var cv_DEFAULT_SYNCHRONOUS int32 = 2 /* test_config.c:787:3 */
-var cv_DEFAULT_WAL_SYNCHRONOUS int32 = 1 /* test_config.c:788:3 */
+var cv_DEFAULT_WAL_SYNCHRONOUS int32 = 2 /* test_config.c:788:3 */
var cv_MAX_ATTACHED int32 = 10 /* test_config.c:789:3 */
var cv_MAX_DEFAULT_PAGE_SIZE int32 = 8192 /* test_config.c:790:3 */
var cv_MAX_WORKER_THREADS int32 = 8 /* test_config.c:791:3 */
var cv_TEMP_STORE int32 = 1 /* test_config.c:794:22 */
// Register commands with the TCL interpreter.
-func Sqliteconfig_Init(tls *crt.TLS, interp uintptr) int32 { /* test_config.c:819:5: */
+func Sqliteconfig_Init(tls *libc.TLS, interp uintptr) int32 { /* test_config.c:819:5: */
set_options(tls, interp)
return 0
}
@@ -53867,14 +58664,14 @@ func Sqliteconfig_Init(tls *crt.TLS, interp uintptr) int32 { /* test_config.c:81
// This routine is a copy of (most of) the code from SQLite function
// sqlite3FileSuffix3(). It modifies the filename in buffer z in the
// same way as SQLite does when in 8.3 filenames mode.
-func sqlite3Delete83Name(tls *crt.TLS, z uintptr) { /* test_delete.c:46:13: */
+func sqlite3Delete83Name(tls *libc.TLS, z uintptr) { /* test_delete.c:46:13: */
var i int32
var sz int32
- sz = int32(crt.Xstrlen(tls, z))
+ sz = int32(libc.Xstrlen(tls, z))
for i = (sz - 1); ((i > 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) != '/')) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) != '.'); i-- {
}
if (int32(*(*int8)(unsafe.Pointer(z + uintptr(i)))) == '.') && (sz > (i + 4)) {
- crt.Xmemmove(tls, (z + uintptr((i + 1))), (z + uintptr((sz - 3))), uint64(4))
+ libc.Xmemmove(tls, (z + uintptr((i + 1))), (z + uintptr((sz - 3))), uint64(4))
}
}
@@ -53883,12 +58680,12 @@ func sqlite3Delete83Name(tls *crt.TLS, z uintptr) { /* test_delete.c:46:13: */
// set *pbExists to false before returning.
//
// If an error occurs, non-zero is returned. Or, if no error occurs, zero.
-func sqlite3DeleteUnlinkIfExists(tls *crt.TLS, pVfs uintptr, zFile uintptr, pbExists uintptr) int32 { /* test_delete.c:60:12: */
+func sqlite3DeleteUnlinkIfExists(tls *libc.TLS, pVfs uintptr, zFile uintptr, pbExists uintptr) int32 { /* test_delete.c:60:12: */
var rc int32 = 1
- rc = crt.Xaccess(tls, zFile, 0)
+ rc = libc.Xaccess(tls, zFile, 0)
if rc != 0 {
- if (*(*int32)(unsafe.Pointer(crt.X__errno_location(tls)))) == 2 {
+ if (*(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))) == 2 {
if pbExists != 0 {
*(*int32)(unsafe.Pointer(pbExists)) = 0
}
@@ -53898,14 +58695,14 @@ func sqlite3DeleteUnlinkIfExists(tls *crt.TLS, pVfs uintptr, zFile uintptr, pbEx
if pbExists != 0 {
*(*int32)(unsafe.Pointer(pbExists)) = 1
}
- rc = crt.Xunlink(tls, zFile)
+ rc = libc.Xunlink(tls, zFile)
}
return rc
}
// Delete the database file identified by the string argument passed to this
// function. The string must contain a filename, not an SQLite URI.
-func sqlite3_delete_database(tls *crt.TLS, zFile uintptr) int32 { /* test_delete.c:95:16: */
+func sqlite3_delete_database(tls *libc.TLS, zFile uintptr) int32 { /* test_delete.c:95:16: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -53914,22 +58711,22 @@ func sqlite3_delete_database(tls *crt.TLS, zFile uintptr) int32 { /* test_delete
var rc int32 = 0 // System error code
var i int32 // Iterate through azFmt[] and aMFile[]
- *(*[4]uintptr)(unsafe.Pointer(bp + 24 /* azFmt */)) = [4]uintptr{ts /* "%s" */, ts + 27344 /* "%s-journal" */, ts + 27355 /* "%s-wal" */, ts + 27362 /* "%s-shm" */}
+ *(*[4]uintptr)(unsafe.Pointer(bp + 24 /* azFmt */)) = [4]uintptr{ts /* "%s" */, ts + 29436 /* "%s-journal" */, ts + 29447 /* "%s-wal" */, ts + 29454 /* "%s-shm" */}
*(*[6]MFile)(unsafe.Pointer(bp + 56 /* aMFile */)) = [6]MFile{
- {FzFmt: ts + 27369 /* "%s%03d" */, FiOffset: 0, Fb83: 0},
- {FzFmt: ts + 27376 /* "%s-journal%03d" */, FiOffset: 0, Fb83: 0},
- {FzFmt: ts + 27391 /* "%s-wal%03d" */, FiOffset: 0, Fb83: 0},
- {FzFmt: ts + 27369 /* "%s%03d" */, FiOffset: 0, Fb83: 1},
- {FzFmt: ts + 27376 /* "%s-journal%03d" */, FiOffset: 400, Fb83: 1},
- {FzFmt: ts + 27391 /* "%s-wal%03d" */, FiOffset: 700, Fb83: 1},
+ {FzFmt: ts + 29461 /* "%s%03d" */, FiOffset: 0, Fb83: 0},
+ {FzFmt: ts + 29468 /* "%s-journal%03d" */, FiOffset: 0, Fb83: 0},
+ {FzFmt: ts + 29483 /* "%s-wal%03d" */, FiOffset: 0, Fb83: 0},
+ {FzFmt: ts + 29461 /* "%s%03d" */, FiOffset: 0, Fb83: 1},
+ {FzFmt: ts + 29468 /* "%s-journal%03d" */, FiOffset: 400, Fb83: 1},
+ {FzFmt: ts + 29483 /* "%s-wal%03d" */, FiOffset: 700, Fb83: 1},
}
var pVfs uintptr = uintptr(0)
// Allocate a buffer large enough for any of the files that need to be
// deleted.
- nBuf = (int32(crt.Xstrlen(tls, zFile)) + 100)
+ nBuf = (int32(libc.Xstrlen(tls, zFile)) + 100)
zBuf = sqlite3.Xsqlite3_malloc(tls, nBuf)
if zBuf == uintptr(0) {
return 7
@@ -53938,7 +58735,7 @@ func sqlite3_delete_database(tls *crt.TLS, zFile uintptr) int32 { /* test_delete
// Delete both the regular and 8.3 filenames versions of the database,
// journal, wal and shm files.
for i = 0; (rc == 0) && (uint64(i) < (uint64(unsafe.Sizeof([4]uintptr{})) / uint64(unsafe.Sizeof(uintptr(0))))); i++ {
- sqlite3.Xsqlite3_snprintf(tls, nBuf, zBuf, *(*uintptr)(unsafe.Pointer(bp + 24 /* &azFmt[0] */ + uintptr(i)*8)), crt.VaList(bp, zFile))
+ sqlite3.Xsqlite3_snprintf(tls, nBuf, zBuf, *(*uintptr)(unsafe.Pointer(bp + 24 /* &azFmt[0] */ + uintptr(i)*8)), libc.VaList(bp, zFile))
rc = sqlite3DeleteUnlinkIfExists(tls, pVfs, zBuf, uintptr(0))
if (rc == 0) && (i != 0) {
sqlite3Delete83Name(tls, zBuf)
@@ -53953,7 +58750,7 @@ func sqlite3_delete_database(tls *crt.TLS, zFile uintptr) int32 { /* test_delete
for iChunk = 1; iChunk <= 299; iChunk++ {
// var bExists int32 at bp+152, 4
- sqlite3.Xsqlite3_snprintf(tls, nBuf, zBuf, (*MFile)(unsafe.Pointer(p)).FzFmt, crt.VaList(bp+8, zFile, (iChunk+(*MFile)(unsafe.Pointer(p)).FiOffset)))
+ sqlite3.Xsqlite3_snprintf(tls, nBuf, zBuf, (*MFile)(unsafe.Pointer(p)).FzFmt, libc.VaList(bp+8, zFile, (iChunk+(*MFile)(unsafe.Pointer(p)).FiOffset)))
if (*MFile)(unsafe.Pointer(p)).Fb83 != 0 {
sqlite3Delete83Name(tls, zBuf)
}
@@ -53979,12 +58776,6 @@ type MFile = struct {
Fb83 int32
}
-// Some versions of <linux/posix_types.h> define this macros.
-// It's easier to assume 8-bit bytes than to get CHAR_BIT.
-
-// fd_set for select and pselect.
-type fd_set2 = struct{ F__fds_bits [16]int64 } /* select.h:70:5 */
-
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
@@ -54047,16 +58838,16 @@ type DemoFile = DemoFile1 /* test_demovfs.c:147:25 */
// Write directly to the file passed as the first argument. Even if the
// file has a write-buffer (DemoFile.aBuffer), ignore it.
-func demoDirectWrite(tls *crt.TLS, p uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_demovfs.c:161:12: */
+func demoDirectWrite(tls *libc.TLS, p uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_demovfs.c:161:12: */
var ofst off_t // Return value from lseek()
var nWrite size_t // Return value from write()
- ofst = crt.Xlseek(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, int64(iOfst), 0)
+ ofst = libc.Xlseek(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, int64(iOfst), 0)
if sqlite_int64(ofst) != iOfst {
return (10 | (int32(3) << 8))
}
- nWrite = size_t(crt.Xwrite(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, zBuf, uint64(iAmt)))
+ nWrite = size_t(libc.Xwrite(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, zBuf, uint64(iAmt)))
if nWrite != size_t(iAmt) {
return (10 | (int32(3) << 8))
}
@@ -54067,7 +58858,7 @@ func demoDirectWrite(tls *crt.TLS, p uintptr, zBuf uintptr, iAmt int32, iOfst sq
// Flush the contents of the DemoFile.aBuffer buffer to disk. This is a
// no-op if this particular file does not have a buffer (i.e. it is not
// a journal file) or if the buffer is currently empty.
-func demoFlushBuffer(tls *crt.TLS, p uintptr) int32 { /* test_demovfs.c:188:12: */
+func demoFlushBuffer(tls *libc.TLS, p uintptr) int32 { /* test_demovfs.c:188:12: */
var rc int32 = 0
if (*DemoFile)(unsafe.Pointer(p)).FnBuffer != 0 {
rc = demoDirectWrite(tls, p, (*DemoFile)(unsafe.Pointer(p)).FaBuffer, (*DemoFile)(unsafe.Pointer(p)).FnBuffer, (*DemoFile)(unsafe.Pointer(p)).FiBufferOfst)
@@ -54077,17 +58868,17 @@ func demoFlushBuffer(tls *crt.TLS, p uintptr) int32 { /* test_demovfs.c:188:12:
}
// Close a file.
-func demoClose(tls *crt.TLS, pFile uintptr) int32 { /* test_demovfs.c:200:12: */
+func demoClose(tls *libc.TLS, pFile uintptr) int32 { /* test_demovfs.c:200:12: */
var rc int32
var p uintptr = pFile
rc = demoFlushBuffer(tls, p)
sqlite3.Xsqlite3_free(tls, (*DemoFile)(unsafe.Pointer(p)).FaBuffer)
- crt.Xclose(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd)
+ libc.Xclose(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd)
return rc
}
// Read data from a file.
-func demoRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_demovfs.c:212:12: */
+func demoRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_demovfs.c:212:12: */
var p uintptr = pFile
var ofst off_t // Return value from lseek()
var nRead int32 // Return value from read()
@@ -54103,17 +58894,17 @@ func demoRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlit
return rc
}
- ofst = crt.Xlseek(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, int64(iOfst), 0)
+ ofst = libc.Xlseek(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, int64(iOfst), 0)
if sqlite_int64(ofst) != iOfst {
return (10 | (int32(1) << 8))
}
- nRead = int32(crt.Xread(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, zBuf, uint64(iAmt)))
+ nRead = int32(libc.Xread(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, zBuf, uint64(iAmt)))
if nRead == iAmt {
return 0
} else if nRead >= 0 {
if nRead < iAmt {
- crt.Xmemset(tls, ((zBuf) + uintptr(nRead)), 0, (uint64(iAmt - nRead)))
+ libc.Xmemset(tls, ((zBuf) + uintptr(nRead)), 0, (uint64(iAmt - nRead)))
}
return (10 | (int32(2) << 8))
}
@@ -54122,7 +58913,7 @@ func demoRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlit
}
// Write data to a crash-file.
-func demoWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_demovfs.c:255:12: */
+func demoWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_demovfs.c:255:12: */
var p uintptr = pFile
if (*DemoFile)(unsafe.Pointer(p)).FaBuffer != 0 {
@@ -54150,7 +58941,7 @@ func demoWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqli
if nCopy > n {
nCopy = n
}
- crt.Xmemcpy(tls, ((*DemoFile)(unsafe.Pointer(p)).FaBuffer + uintptr((*DemoFile)(unsafe.Pointer(p)).FnBuffer)), z, uint64(nCopy))
+ libc.Xmemcpy(tls, ((*DemoFile)(unsafe.Pointer(p)).FaBuffer + uintptr((*DemoFile)(unsafe.Pointer(p)).FnBuffer)), z, uint64(nCopy))
*(*int32)(unsafe.Pointer(p + 24 /* &.nBuffer */)) += (nCopy)
n = n - (nCopy)
@@ -54166,12 +58957,12 @@ func demoWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqli
// Truncate a file. This is a no-op for this VFS (see header comments at
// the top of the file).
-func demoTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_demovfs.c:307:12: */
+func demoTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_demovfs.c:307:12: */
return 0
}
// Sync the contents of the file to the persistent media.
-func demoSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_demovfs.c:317:12: */
+func demoSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_demovfs.c:317:12: */
var p uintptr = pFile
var rc int32
@@ -54180,7 +58971,7 @@ func demoSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_demovfs.
return rc
}
- rc = crt.Xfsync(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd)
+ rc = libc.Xfsync(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd)
return func() int32 {
if rc == 0 {
return 0
@@ -54190,13 +58981,13 @@ func demoSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_demovfs.
}
// Write the size of the file in bytes to *pSize.
-func demoFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_demovfs.c:333:12: */
+func demoFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_demovfs.c:333:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
var p uintptr = pFile
var rc int32 // Return code from fstat() call
- // var sStat struct {Fst_dev uint64;Fst_ino uint64;Fst_nlink uint64;Fst_mode uint32;Fst_uid uint32;Fst_gid uint32;F__pad0 int32;Fst_rdev uint64;Fst_size int64;Fst_blksize int64;Fst_blocks int64;Fst_atim timespec;Fst_mtim timespec;Fst_ctim timespec;F__glibc_reserved [3]int64;} at bp, 144
+ // var sStat stat at bp, 144
// Output of fstat() call
// Flush the contents of the buffer to disk. As with the flush in the
@@ -54208,27 +58999,11 @@ func demoFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_de
return rc
}
- rc = crt2.Xfstat(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, bp /* &sStat */)
+ rc = libc.Xfstat(tls, (*DemoFile)(unsafe.Pointer(p)).Ffd, bp /* &sStat */)
if rc != 0 {
return (10 | (int32(7) << 8))
}
- *(*sqlite_int64)(unsafe.Pointer(pSize)) = sqlite_int64((*struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
- })(unsafe.Pointer(bp /* &sStat */)).Fst_size)
+ *(*sqlite_int64)(unsafe.Pointer(pSize)) = sqlite_int64((*stat)(unsafe.Pointer(bp /* &sStat */)).Fst_size)
return 0
}
@@ -54236,34 +59011,34 @@ func demoFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_de
// The xCheckReservedLock() always indicates that no other process holds
// a reserved lock on the database file. This ensures that if a hot-journal
// file is found in the file-system it is rolled back.
-func demoLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_demovfs.c:360:12: */
+func demoLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_demovfs.c:360:12: */
return 0
}
-func demoUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_demovfs.c:363:12: */
+func demoUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_demovfs.c:363:12: */
return 0
}
-func demoCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_demovfs.c:366:12: */
+func demoCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_demovfs.c:366:12: */
*(*int32)(unsafe.Pointer(pResOut)) = 0
return 0
}
// No xFileControl() verbs are implemented by this VFS.
-func demoFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_demovfs.c:374:12: */
+func demoFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_demovfs.c:374:12: */
return 12
}
// The xSectorSize() and xDeviceCharacteristics() methods. These two
// may return special values allowing SQLite to optimize file-system
// access to some extent. But it is also safe to simply return 0.
-func demoSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_demovfs.c:383:12: */
+func demoSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_demovfs.c:383:12: */
return 0
}
-func demoDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_demovfs.c:386:12: */
+func demoDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_demovfs.c:386:12: */
return 0
}
// Open a file handle.
-func demoOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_demovfs.c:393:12: */
+func demoOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_demovfs.c:393:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -54295,8 +59070,8 @@ func demoOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags in
oflags = oflags | (02)
}
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DemoFile{})))
- (*DemoFile)(unsafe.Pointer(p)).Ffd = crt.Xopen(tls, zName, oflags, crt.VaList(bp, 0600))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(DemoFile{})))
+ (*DemoFile)(unsafe.Pointer(p)).Ffd = libc.Xopen(tls, zName, oflags, libc.VaList(bp, 0600))
if (*DemoFile)(unsafe.Pointer(p)).Ffd < 0 {
sqlite3.Xsqlite3_free(tls, aBuf)
return 14
@@ -54328,14 +59103,14 @@ var demoio = sqlite3_io_methods{FiVersion: 1, FxClose: // iVersion
// Delete the file identified by argument zPath. If the dirSync parameter
// is non-zero, then ensure the file-system modification to delete the
// file has been synced to disk before returning.
-func demoDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_demovfs.c:456:12: */
+func demoDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_demovfs.c:456:12: */
bp := tls.Alloc(529)
defer tls.Free(529)
var rc int32 // Return code
- rc = crt.Xunlink(tls, zPath)
- if (rc != 0) && ((*(*int32)(unsafe.Pointer(crt.X__errno_location(tls)))) == 2) {
+ rc = libc.Xunlink(tls, zPath)
+ if (rc != 0) && ((*(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))) == 2) {
return 0
}
@@ -54346,19 +59121,19 @@ func demoDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32
// Name of directory containing file zPath
// Figure out the directory name from the path of the file deleted.
- sqlite3.Xsqlite3_snprintf(tls, 512, bp+16 /* &zDir[0] */, ts /* "%s" */, crt.VaList(bp, zPath))
+ sqlite3.Xsqlite3_snprintf(tls, 512, bp+16 /* &zDir[0] */, ts /* "%s" */, libc.VaList(bp, zPath))
*(*int8)(unsafe.Pointer(bp + 16 /* &zDir[0] */ + uintptr(512))) = int8(0)
- for i = int32(crt.Xstrlen(tls, bp+16 /* &zDir[0] */)); (i > 1) && (int32(*(*int8)(unsafe.Pointer(bp + 16 /* &zDir[0] */ + uintptr(i)))) != '/'); i++ {
+ for i = int32(libc.Xstrlen(tls, bp+16 /* &zDir[0] */)); (i > 1) && (int32(*(*int8)(unsafe.Pointer(bp + 16 /* &zDir[0] */ + uintptr(i)))) != '/'); i++ {
}
*(*int8)(unsafe.Pointer(bp + 16 /* &zDir[0] */ + uintptr(i))) = int8(0)
// Open a file-descriptor on the directory. Sync. Close.
- dfd = crt.Xopen(tls, bp+16 /* &zDir[0] */, 00, crt.VaList(bp+8, 0))
+ dfd = libc.Xopen(tls, bp+16 /* &zDir[0] */, 00, libc.VaList(bp+8, 0))
if dfd < 0 {
rc = -1
} else {
- rc = crt.Xfsync(tls, dfd)
- crt.Xclose(tls, dfd)
+ rc = libc.Xfsync(tls, dfd)
+ libc.Xclose(tls, dfd)
}
}
return func() int32 {
@@ -54371,7 +59146,7 @@ func demoDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32
// Query the file-system to see if the named file exists, is readable or
// is both readable and writable.
-func demoAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_demovfs.c:499:12: */
+func demoAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_demovfs.c:499:12: */
var rc int32 // access() return code
var eAccess int32 = 0 // Second argument to access()
@@ -54382,8 +59157,8 @@ func demoAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut
eAccess = 4
}
- rc = crt.Xaccess(tls, zPath, eAccess)
- *(*int32)(unsafe.Pointer(pResOut)) = (crt.Bool32(rc == 0))
+ rc = libc.Xaccess(tls, zPath, eAccess)
+ *(*int32)(unsafe.Pointer(pResOut)) = (libc.Bool32(rc == 0))
return 0
}
@@ -54396,7 +59171,7 @@ func demoAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut
//
// 1. Path components are separated by a '/'. and
// 2. Full paths begin with a '/' character.
-func demoFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* test_demovfs.c:532:12: */
+func demoFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nPathOut int32, zPathOut uintptr) int32 { /* test_demovfs.c:532:12: */
bp := tls.Alloc(529)
defer tls.Free(529)
@@ -54405,13 +59180,13 @@ func demoFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nPathOut int32,
if int32(*(*int8)(unsafe.Pointer(zPath + uintptr(0)))) == '/' {
*(*int8)(unsafe.Pointer(bp + 16 /* &zDir[0] */ + uintptr(0))) = int8(0)
} else {
- if crt.Xgetcwd(tls, bp+16 /* &zDir[0] */, uint64(unsafe.Sizeof([513]int8{}))) == uintptr(0) {
+ if libc.Xgetcwd(tls, bp+16 /* &zDir[0] */, uint64(unsafe.Sizeof([513]int8{}))) == uintptr(0) {
return 10
}
}
*(*int8)(unsafe.Pointer(bp + 16 /* &zDir[0] */ + uintptr(512))) = int8(0)
- sqlite3.Xsqlite3_snprintf(tls, nPathOut, zPathOut, ts+3680 /* "%s/%s" */, crt.VaList(bp, bp+16 /* &zDir[0] */, zPath))
+ sqlite3.Xsqlite3_snprintf(tls, nPathOut, zPathOut, ts+4897 /* "%s/%s" */, libc.VaList(bp, bp+16 /* &zDir[0] */, zPath))
*(*int8)(unsafe.Pointer(zPathOut + uintptr((nPathOut - 1)))) = int8(0)
return 0
@@ -54427,31 +59202,31 @@ func demoFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nPathOut int32,
// are supposed to implement the functionality needed by SQLite to load
// extensions compiled as shared objects. This simple VFS does not support
// this functionality, so the following functions are no-ops.
-func demoDlOpen(tls *crt.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_demovfs.c:564:13: */
+func demoDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_demovfs.c:564:13: */
return uintptr(0)
}
-func demoDlError(tls *crt.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_demovfs.c:567:13: */
- sqlite3.Xsqlite3_snprintf(tls, nByte, zErrMsg, ts+27402 /* "Loadable extensi..." */, 0)
+func demoDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_demovfs.c:567:13: */
+ sqlite3.Xsqlite3_snprintf(tls, nByte, zErrMsg, ts+29494 /* "Loadable extensi..." */, 0)
*(*int8)(unsafe.Pointer(zErrMsg + uintptr((nByte - 1)))) = int8(0)
}
-func demoDlSym(tls *crt.TLS, pVfs uintptr, pH uintptr, z uintptr) uintptr { /* test_demovfs.c:571:13: */
+func demoDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, z uintptr) uintptr { /* test_demovfs.c:571:13: */
return uintptr(0)
}
-func demoDlClose(tls *crt.TLS, pVfs uintptr, pHandle uintptr) { /* test_demovfs.c:574:13: */
+func demoDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* test_demovfs.c:574:13: */
return
}
// Parameter zByte points to a buffer nByte bytes in size. Populate this
// buffer with pseudo-random data.
-func demoRandomness(tls *crt.TLS, pVfs uintptr, nByte int32, zByte uintptr) int32 { /* test_demovfs.c:582:12: */
+func demoRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zByte uintptr) int32 { /* test_demovfs.c:582:12: */
return 0
}
// Sleep for at least nMicro microseconds. Return the (approximate) number
// of microseconds slept for.
-func demoSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_demovfs.c:590:12: */
- crt.Xsleep(tls, (uint32(nMicro / 1000000)))
- crt.Xusleep(tls, (uint32(nMicro % 1000000)))
+func demoSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* test_demovfs.c:590:12: */
+ libc.Xsleep(tls, (uint32(nMicro / 1000000)))
+ libc.Xusleep(tls, (uint32(nMicro % 1000000)))
return nMicro
}
@@ -54464,8 +59239,8 @@ func demoSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_demovfs
// an integer number of seconds. Also, assuming time_t is a signed 32-bit
// value, it will stop working some time in the year 2038 AD (the so-called
// "year 2038" problem that afflicts systems that store time this way).
-func demoCurrentTime(tls *crt.TLS, pVfs uintptr, pTime uintptr) int32 { /* test_demovfs.c:607:12: */
- var t time_t = crt.Xtime(tls, uintptr(0))
+func demoCurrentTime(tls *libc.TLS, pVfs uintptr, pTime uintptr) int32 { /* test_demovfs.c:607:12: */
+ var t time_t = libc.Xtime(tls, uintptr(0))
*(*float64)(unsafe.Pointer(pTime)) = ((float64(t) / 86400.0) + 2440587.5)
return 0
}
@@ -54474,7 +59249,7 @@ func demoCurrentTime(tls *crt.TLS, pVfs uintptr, pTime uintptr) int32 { /* test_
// To make the VFS available to SQLite:
//
// sqlite3_vfs_register(sqlite3_demovfs(), 0);
-func sqlite3_demovfs(tls *crt.TLS) uintptr { /* test_demovfs.c:619:13: */
+func sqlite3_demovfs(tls *libc.TLS) uintptr { /* test_demovfs.c:619:13: */
return uintptr(unsafe.Pointer(&demovfs))
}
@@ -54482,7 +59257,7 @@ var demovfs = sqlite3_vfs{FiVersion: 1, FszOsFile: // iVersion
int32(unsafe.Sizeof(DemoFile{})), FmxPathname:// szOsFile
512, FpNext:// mxPathname
uintptr(0), FzName:// pNext
-ts + 27440, /* "demo" */ FpAppData:// zName
+ts + 29532, /* "demo" */ FpAppData:// zName
uintptr(0), FxOpen:// pAppData
0, FxDelete:// xOpen
0, FxAccess:// xDelete
@@ -54497,23 +59272,7 @@ uintptr(0), FxOpen:// pAppData
0, // xCurrentTime
} /* test_demovfs.c:620:22 */
-type Tcl_StatBuf = struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
-} /* tcl.h:470:25 */
+type Tcl_StatBuf = stat /* tcl.h:470:25 */
// end block for C++
@@ -54523,22 +59282,22 @@ type Tcl_StatBuf = struct {
// fill-column: 78
// End:
-func register_demovfs(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_demovfs.c:657:26: */
+func register_demovfs(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_demovfs.c:657:26: */
sqlite3.Xsqlite3_vfs_register(tls, sqlite3_demovfs(tls), 1)
return 0
}
-func unregister_demovfs(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_demovfs.c:666:26: */
+func unregister_demovfs(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_demovfs.c:666:26: */
sqlite3.Xsqlite3_vfs_unregister(tls, sqlite3_demovfs(tls))
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest_demovfs_Init(tls *crt.TLS, interp uintptr) int32 { /* test_demovfs.c:679:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+27445 /* "register_demovfs" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+func Sqlitetest_demovfs_Init(tls *libc.TLS, interp uintptr) int32 { /* test_demovfs.c:679:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+29537 /* "register_demovfs" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{register_demovfs})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+27462 /* "unregister_demov..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+29554 /* "unregister_demov..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{unregister_demovfs})), uintptr(0), uintptr(0))
return 0
}
@@ -54569,96 +59328,96 @@ type DevsymGlobal = struct {
var g1 = DevsymGlobal{FpVfs: uintptr(0), FiDeviceChar: 0, FiSectorSize: 512, FnWriteCrash: 0} /* test_devsym.c:82:21 */
// Close an devsym-file.
-func devsymClose(tls *crt.TLS, pFile uintptr) int32 { /* test_devsym.c:87:12: */
+func devsymClose(tls *libc.TLS, pFile uintptr) int32 { /* test_devsym.c:87:12: */
var p uintptr = pFile
sqlite3.Xsqlite3OsClose(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal)
return 0
}
// Read data from an devsym-file.
-func devsymRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_devsym.c:96:12: */
+func devsymRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_devsym.c:96:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsRead(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, zBuf, iAmt, iOfst)
}
// Write data to an devsym-file.
-func devsymWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_devsym.c:109:12: */
+func devsymWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_devsym.c:109:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsWrite(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, zBuf, iAmt, iOfst)
}
// Truncate an devsym-file.
-func devsymTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_devsym.c:122:12: */
+func devsymTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_devsym.c:122:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsTruncate(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, size)
}
// Sync an devsym-file.
-func devsymSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_devsym.c:130:12: */
+func devsymSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_devsym.c:130:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsSync(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, flags)
}
// Return the current file-size of an devsym-file.
-func devsymFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_devsym.c:138:12: */
+func devsymFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_devsym.c:138:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsFileSize(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, pSize)
}
// Lock an devsym-file.
-func devsymLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_devsym.c:146:12: */
+func devsymLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_devsym.c:146:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsLock(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, eLock)
}
// Unlock an devsym-file.
-func devsymUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_devsym.c:154:12: */
+func devsymUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_devsym.c:154:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsUnlock(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, eLock)
}
// Check if another file-handle holds a RESERVED lock on an devsym-file.
-func devsymCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_devsym.c:162:12: */
+func devsymCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_devsym.c:162:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsCheckReservedLock(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, pResOut)
}
// File control method. For custom operations on an devsym-file.
-func devsymFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_devsym.c:170:12: */
+func devsymFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_devsym.c:170:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsFileControl(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, op, pArg)
}
// Return the sector-size in bytes for an devsym-file.
-func devsymSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_devsym.c:178:12: */
+func devsymSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_devsym.c:178:12: */
return g1.FiSectorSize
}
// Return the device characteristic flags supported by an devsym-file.
-func devsymDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_devsym.c:185:12: */
+func devsymDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_devsym.c:185:12: */
return g1.FiDeviceChar
}
// Shared-memory methods are all pass-thrus.
-func devsymShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test_devsym.c:192:12: */
+func devsymShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test_devsym.c:192:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsShmLock(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, ofst, n, flags)
}
-func devsymShmMap(tls *crt.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* test_devsym.c:196:12: */
+func devsymShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* test_devsym.c:196:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsShmMap(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, iRegion, szRegion, isWrite, pp)
}
-func devsymShmBarrier(tls *crt.TLS, pFile uintptr) { /* test_devsym.c:206:13: */
+func devsymShmBarrier(tls *libc.TLS, pFile uintptr) { /* test_devsym.c:206:13: */
var p uintptr = pFile
sqlite3.Xsqlite3OsShmBarrier(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal)
}
-func devsymShmUnmap(tls *crt.TLS, pFile uintptr, delFlag int32) int32 { /* test_devsym.c:210:12: */
+func devsymShmUnmap(tls *libc.TLS, pFile uintptr, delFlag int32) int32 { /* test_devsym.c:210:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsShmUnmap(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, delFlag)
}
// Open an devsym file handle.
-func devsymOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_devsym.c:220:12: */
+func devsymOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_devsym.c:220:12: */
var rc int32
var p uintptr = pFile
(*devsym_file)(unsafe.Pointer(p)).FpReal = (p + uintptr(1)*16)
@@ -54691,66 +59450,66 @@ var devsym_io_methods = sqlite3_io_methods{FiVersion: 2, FxClose: // iVersion
// Delete the file located at zPath. If the dirSync argument is true,
// ensure the file-system modifications are synced to disk before
// returning.
-func devsymDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_devsym.c:262:12: */
+func devsymDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_devsym.c:262:12: */
return sqlite3.Xsqlite3OsDelete(tls, g1.FpVfs, zPath, dirSync)
}
// Test for access permissions. Return true if the requested permission
// is available, or false otherwise.
-func devsymAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_devsym.c:270:12: */
+func devsymAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_devsym.c:270:12: */
return sqlite3.Xsqlite3OsAccess(tls, g1.FpVfs, zPath, flags, pResOut)
}
// Populate buffer zOut with the full canonical pathname corresponding
// to the pathname in zPath. zOut is guaranteed to point to a buffer
// of at least (DEVSYM_MAX_PATHNAME+1) bytes.
-func devsymFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_devsym.c:284:12: */
+func devsymFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_devsym.c:284:12: */
return sqlite3.Xsqlite3OsFullPathname(tls, g1.FpVfs, zPath, nOut, zOut)
}
// Populate the buffer pointed to by zBufOut with nByte bytes of
// random data.
-func devsymRandomness(tls *crt.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_devsym.c:329:12: */
+func devsymRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_devsym.c:329:12: */
return sqlite3.Xsqlite3OsRandomness(tls, g1.FpVfs, nByte, zBufOut)
}
// Sleep for nMicro microseconds. Return the number of microseconds
// actually slept.
-func devsymSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_devsym.c:337:12: */
+func devsymSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* test_devsym.c:337:12: */
return sqlite3.Xsqlite3OsSleep(tls, g1.FpVfs, nMicro)
}
// Return the current time as a Julian Day number in *pTimeOut.
-func devsymCurrentTime(tls *crt.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_devsym.c:344:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((g1.FpVfs + 120 /* &.xCurrentTime */))))(tls, g1.FpVfs, pTimeOut)
+func devsymCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_devsym.c:344:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((g1.FpVfs + 120 /* &.xCurrentTime */))))(tls, g1.FpVfs, pTimeOut)
}
// Return the sector-size in bytes for an writecrash-file.
-func writecrashSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_devsym.c:351:12: */
+func writecrashSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_devsym.c:351:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsSectorSize(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal)
}
// Return the device characteristic flags supported by an writecrash-file.
-func writecrashDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_devsym.c:359:12: */
+func writecrashDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_devsym.c:359:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsDeviceCharacteristics(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal)
}
// Write data to an writecrash-file.
-func writecrashWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_devsym.c:367:12: */
+func writecrashWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_devsym.c:367:12: */
var p uintptr = pFile
if g1.FnWriteCrash > 0 {
g1.FnWriteCrash--
if g1.FnWriteCrash == 0 {
- crt.Xabort(tls)
+ libc.Xabort(tls)
}
}
return sqlite3.Xsqlite3OsWrite(tls, (*devsym_file)(unsafe.Pointer(p)).FpReal, zBuf, iAmt, iOfst)
}
// Open an writecrash file handle.
-func writecrashOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_devsym.c:384:12: */
+func writecrashOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_devsym.c:384:12: */
var rc int32
var p uintptr = pFile
(*devsym_file)(unsafe.Pointer(p)).FpReal = (p + uintptr(1)*16)
@@ -54784,7 +59543,7 @@ var devsym_vfs = sqlite3_vfs{FiVersion: 2, FszOsFile: // iVersion
int32(unsafe.Sizeof(devsym_file{})), FmxPathname:// szOsFile
512, FpNext:// mxPathname
uintptr(0), FzName:// pNext
-ts + 27481, /* "devsym" */ FpAppData:// zName
+ts + 29573, /* "devsym" */ FpAppData:// zName
uintptr(0), FxOpen:// pAppData
0, FxDelete:// xOpen
0, FxAccess:// xDelete
@@ -54805,7 +59564,7 @@ var writecrash_vfs = sqlite3_vfs{FiVersion: 2, FszOsFile: // iVersion
int32(unsafe.Sizeof(devsym_file{})), FmxPathname:// szOsFile
512, FpNext:// mxPathname
uintptr(0), FzName:// pNext
-ts + 27488, /* "writecrash" */ FpAppData:// zName
+ts + 29580, /* "writecrash" */ FpAppData:// zName
uintptr(0), FxOpen:// pAppData
0, FxDelete:// xOpen
0, FxAccess:// xDelete
@@ -54825,7 +59584,7 @@ uintptr(0), // xCurrentTimeInt64
// This procedure registers the devsym vfs with SQLite. If the argument is
// true, the devsym vfs becomes the new default vfs. It is the only publicly
// available function in this file.
-func devsym_register(tls *crt.TLS, iDeviceChar int32, iSectorSize int32) { /* test_devsym.c:485:6: */
+func devsym_register(tls *libc.TLS, iDeviceChar int32, iSectorSize int32) { /* test_devsym.c:485:6: */
if g1.FpVfs == uintptr(0) {
g1.FpVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
@@ -54846,7 +59605,7 @@ func devsym_register(tls *crt.TLS, iDeviceChar int32, iSectorSize int32) { /* te
}
}
-func devsym_unregister(tls *crt.TLS) { /* test_devsym.c:506:6: */
+func devsym_unregister(tls *libc.TLS) { /* test_devsym.c:506:6: */
sqlite3.Xsqlite3_vfs_unregister(tls, uintptr(unsafe.Pointer(&devsym_vfs)))
sqlite3.Xsqlite3_vfs_unregister(tls, uintptr(unsafe.Pointer(&writecrash_vfs)))
g1.FpVfs = uintptr(0)
@@ -54854,7 +59613,7 @@ func devsym_unregister(tls *crt.TLS) { /* test_devsym.c:506:6: */
g1.FiSectorSize = 0
}
-func devsym_crash_on_write(tls *crt.TLS, nWrite int32) { /* test_devsym.c:514:6: */
+func devsym_crash_on_write(tls *libc.TLS, nWrite int32) { /* test_devsym.c:514:6: */
if g1.FpVfs == uintptr(0) {
g1.FpVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
*(*int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 4 /* &.szOsFile */)) += ((*sqlite3_vfs)(unsafe.Pointer(g1.FpVfs)).FszOsFile)
@@ -54865,46 +59624,31 @@ func devsym_crash_on_write(tls *crt.TLS, nWrite int32) { /* test_devsym.c:514:6:
g1.FnWriteCrash = nWrite
}
-type Tcl_StatBuf1 = struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atime int64
- Fst_atimensec uint64
- Fst_mtime int64
- Fst_mtimensec uint64
- Fst_ctime int64
- Fst_ctimensec uint64
- F__glibc_reserved [3]int64
-} /* tcl.h:470:25 */
-
// Note stat64 has the same shape as stat for x86-64.
type stat64 = struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atime int64
- Fst_atimensec uint64
- Fst_mtime int64
- Fst_mtimensec uint64
- Fst_ctime int64
- Fst_ctimensec uint64
+ Fst_dev uint64
+ Fst_ino uint64
+ Fst_nlink uint64
+ Fst_mode uint32
+ Fst_uid uint32
+ Fst_gid uint32
+ F__pad0 int32
+ Fst_rdev uint64
+ Fst_size int64
+ Fst_blksize int64
+ Fst_blocks int64
+ Fst_atim struct {
+ Ftv_sec int64
+ Ftv_nsec int64
+ }
+ Fst_mtim struct {
+ Ftv_sec int64
+ Ftv_nsec int64
+ }
+ Fst_ctim struct {
+ Ftv_sec int64
+ Ftv_nsec int64
+ }
F__glibc_reserved [3]int64
}
@@ -54972,11 +59716,11 @@ type FsdirCsr = FsdirCsr1 /* test_fs.c:122:25 */
// argv[1] -> database name
// argv[2] -> table name
// argv[...] -> other module argument fields.
-func fsdirConnect1(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_fs.c:146:12: */
+func fsdirConnect1(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_fs.c:146:12: */
var pTab uintptr
if argc != 3 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+25185 /* "wrong number of ..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+27277 /* "wrong number of ..." */, 0)
return 1
}
@@ -54984,16 +59728,16 @@ func fsdirConnect1(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
if !(pTab != 0) {
return 7
}
- crt.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(FsdirVtab{})))
+ libc.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(FsdirVtab{})))
*(*uintptr)(unsafe.Pointer(ppVtab)) = (pTab /* &.base */)
- sqlite3.Xsqlite3_declare_vtab(tls, db, ts+27499 /* "CREATE TABLE xyz..." */)
+ sqlite3.Xsqlite3_declare_vtab(tls, db, ts+29591 /* "CREATE TABLE xyz..." */)
return 0
}
// xDestroy/xDisconnect implementation.
-func fsdirDisconnect1(tls *crt.TLS, pVtab uintptr) int32 { /* test_fs.c:173:12: */
+func fsdirDisconnect1(tls *libc.TLS, pVtab uintptr) int32 { /* test_fs.c:173:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
@@ -55001,7 +59745,7 @@ func fsdirDisconnect1(tls *crt.TLS, pVtab uintptr) int32 { /* test_fs.c:173:12:
// xBestIndex implementation. The only constraint supported is:
//
// (dir = ?)
-func fsdirBestIndex1(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_fs.c:183:12: */
+func fsdirBestIndex1(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_fs.c:183:12: */
var ii int32
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = 1000000000.0
@@ -55025,7 +59769,7 @@ func fsdirBestIndex1(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// xOpen implementation.
//
// Open a new fsdir cursor.
-func fsdirOpen1(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:209:12: */
+func fsdirOpen1(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:209:12: */
var pCur uintptr
// Allocate an extra 256 bytes because it is undefined how big dirent.d_name
// is and we need enough space. Linux provides plenty already, but
@@ -55034,16 +59778,16 @@ func fsdirOpen1(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_f
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(FsdirCsr{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(FsdirCsr{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
// Close a fsdir cursor.
-func fsdirClose1(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:224:12: */
+func fsdirClose1(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:224:12: */
var pCur uintptr = cur
if (*FsdirCsr)(unsafe.Pointer(pCur)).FpDir != 0 {
- crt.Xclosedir(tls, (*FsdirCsr)(unsafe.Pointer(pCur)).FpDir)
+ libc.Xclosedir(tls, (*FsdirCsr)(unsafe.Pointer(pCur)).FpDir)
}
sqlite3.Xsqlite3_free(tls, (*FsdirCsr)(unsafe.Pointer(pCur)).FzDir)
sqlite3.Xsqlite3_free(tls, pCur)
@@ -55051,13 +59795,13 @@ func fsdirClose1(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:224:12: */
}
// Skip the cursor to the next entry.
-func fsdirNext1(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:235:12: */
+func fsdirNext1(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:235:12: */
var pCsr uintptr = cur
if (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir != 0 {
- (*FsdirCsr)(unsafe.Pointer(pCsr)).FpEntry = crt.Xreaddir64(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir)
+ (*FsdirCsr)(unsafe.Pointer(pCsr)).FpEntry = libc.Xreaddir64(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir)
if (*FsdirCsr)(unsafe.Pointer(pCsr)).FpEntry == uintptr(0) {
- crt.Xclosedir(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir)
+ libc.Xclosedir(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir)
(*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir = uintptr(0)
}
(*FsdirCsr)(unsafe.Pointer(pCsr)).FiRowid++
@@ -55067,7 +59811,7 @@ func fsdirNext1(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:235:12: */
}
// xFilter method implementation.
-func fsdirFilter1(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_fs.c:253:12: */
+func fsdirFilter1(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_fs.c:253:12: */
var pCsr uintptr = pVtabCursor
var zDir uintptr
var nDir int32
@@ -55079,7 +59823,7 @@ func fsdirFilter1(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
(*FsdirCsr)(unsafe.Pointer(pCsr)).FiRowid = int64(0)
sqlite3.Xsqlite3_free(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FzDir)
if (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir != 0 {
- crt.Xclosedir(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir)
+ libc.Xclosedir(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir)
(*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir = uintptr(0)
}
@@ -55089,20 +59833,20 @@ func fsdirFilter1(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
if (*FsdirCsr)(unsafe.Pointer(pCsr)).FzDir == uintptr(0) {
return 7
}
- crt.Xmemcpy(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FzDir, zDir, (uint64(nDir + 1)))
+ libc.Xmemcpy(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FzDir, zDir, (uint64(nDir + 1)))
- (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir = crt.Xopendir(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FzDir)
+ (*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir = libc.Xopendir(tls, (*FsdirCsr)(unsafe.Pointer(pCsr)).FzDir)
return fsdirNext1(tls, pVtabCursor)
}
// xEof method implementation.
-func fsdirEof1(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:287:12: */
+func fsdirEof1(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:287:12: */
var pCsr uintptr = cur
- return (crt.Bool32((*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir == uintptr(0)))
+ return (libc.Bool32((*FsdirCsr)(unsafe.Pointer(pCsr)).FpDir == uintptr(0)))
}
// xColumn method implementation.
-func fsdirColumn1(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_fs.c:295:12: */
+func fsdirColumn1(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_fs.c:295:12: */
var pCsr uintptr = cur
switch i {
case 0: // dir
@@ -55110,7 +59854,7 @@ func fsdirColumn1(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
break
case 1: // name
- sqlite3.Xsqlite3_result_text(tls, ctx, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpEntry+19 /* &.d_name */, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, (*FsdirCsr)(unsafe.Pointer(pCsr)).FpEntry+19 /* &.d_name */, -1, libc.UintptrFromInt32(-1))
break
default:
@@ -55120,7 +59864,7 @@ func fsdirColumn1(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
}
// xRowid method implementation.
-func fsdirRowid1(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c:316:12: */
+func fsdirRowid1(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c:316:12: */
var pCsr uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*FsdirCsr)(unsafe.Pointer(pCsr)).FiRowid
return 0
@@ -55164,11 +59908,11 @@ type FstreeCsr = FstreeCsr1 /* test_fs.c:329:26 */
// argv[1] -> database name
// argv[2] -> table name
// argv[...] -> other module argument fields.
-func fstreeConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_fs.c:352:12: */
+func fstreeConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_fs.c:352:12: */
var pTab uintptr
if argc != 3 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+25185 /* "wrong number of ..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+27277 /* "wrong number of ..." */, 0)
return 1
}
@@ -55176,17 +59920,17 @@ func fstreeConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
if !(pTab != 0) {
return 7
}
- crt.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(FstreeVtab{})))
+ libc.Xmemset(tls, pTab, 0, uint64(unsafe.Sizeof(FstreeVtab{})))
(*FstreeVtab)(unsafe.Pointer(pTab)).Fdb = db
*(*uintptr)(unsafe.Pointer(ppVtab)) = (pTab /* &.base */)
- sqlite3.Xsqlite3_declare_vtab(tls, db, ts+27528 /* "CREATE TABLE xyz..." */)
+ sqlite3.Xsqlite3_declare_vtab(tls, db, ts+29620 /* "CREATE TABLE xyz..." */)
return 0
}
// xDestroy/xDisconnect implementation.
-func fstreeDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_fs.c:380:12: */
+func fstreeDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* test_fs.c:380:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
@@ -55194,7 +59938,7 @@ func fstreeDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_fs.c:380:12:
// xBestIndex implementation. The only constraint supported is:
//
// (dir = ?)
-func fstreeBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_fs.c:390:12: */
+func fstreeBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_fs.c:390:12: */
var ii int32
for ii = 0; ii < (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint; ii++ {
@@ -55218,27 +59962,27 @@ func fstreeBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// xOpen implementation.
//
// Open a new fstree cursor.
-func fstreeOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:418:12: */
+func fstreeOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:418:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(FstreeCsr{})))
if pCur == uintptr(0) {
return 7
}
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(FstreeCsr{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(FstreeCsr{})))
(*FstreeCsr)(unsafe.Pointer(pCur)).Ffd = -1
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
return 0
}
-func fstreeCloseFd(tls *crt.TLS, pCsr uintptr) { /* test_fs.c:428:13: */
+func fstreeCloseFd(tls *libc.TLS, pCsr uintptr) { /* test_fs.c:428:13: */
if (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd >= 0 {
- crt.Xclose(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd)
+ libc.Xclose(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd)
(*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd = -1
}
}
// Close a fstree cursor.
-func fstreeClose(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:438:12: */
+func fstreeClose(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:438:12: */
var pCsr uintptr = cur
sqlite3.Xsqlite3_finalize(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt)
fstreeCloseFd(tls, pCsr)
@@ -55247,7 +59991,7 @@ func fstreeClose(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:438:12: */
}
// Skip the cursor to the next entry.
-func fstreeNext(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:449:12: */
+func fstreeNext(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:449:12: */
var pCsr uintptr = cur
var rc int32
@@ -55258,21 +60002,21 @@ func fstreeNext(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:449:12: */
(*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt = uintptr(0)
} else {
rc = 0
- (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd = crt.Xopen64(tls, sqlite3.Xsqlite3_column_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 0), 00, 0)
+ (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd = libc.Xopen64(tls, sqlite3.Xsqlite3_column_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 0), 00, 0)
}
return rc
}
// xFilter method implementation.
-func fstreeFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_fs.c:469:12: */
+func fstreeFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_fs.c:469:12: */
bp := tls.Alloc(2)
defer tls.Free(2)
var pCsr uintptr = pVtabCursor
var pTab uintptr = (*FstreeCsr)(unsafe.Pointer(pCsr)).Fbase.FpVtab
var rc int32
- var zSql uintptr = ts + 27564 /* "WITH r(d) AS ( ..." */
+ var zSql uintptr = ts + 29656 /* "WITH r(d) AS ( ..." */
var zRoot uintptr
var nRoot int32
var zPrefix uintptr
@@ -55281,7 +60025,7 @@ func fstreeFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
var nDir int32
*(*[2]int8)(unsafe.Pointer(bp /* aWild */)) = [2]int8{int8(0), int8(0)}
- zRoot = ts + 27796 /* "/" */
+ zRoot = ts + 29888 /* "/" */
nRoot = 1
zPrefix = ts + 488 /* "" */
nPrefix = 0
@@ -55328,21 +60072,21 @@ func fstreeFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
nDir = 1
}
- sqlite3.Xsqlite3_bind_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 1, zDir, nDir, crt.UintptrFromInt32(-1))
- sqlite3.Xsqlite3_bind_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 2, zRoot, nRoot, crt.UintptrFromInt32(-1))
- sqlite3.Xsqlite3_bind_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 3, zPrefix, nPrefix, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_bind_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 1, zDir, nDir, libc.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_bind_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 2, zRoot, nRoot, libc.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_bind_text(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt, 3, zPrefix, nPrefix, libc.UintptrFromInt32(-1))
return fstreeNext(tls, pVtabCursor)
}
// xEof method implementation.
-func fstreeEof(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:557:12: */
+func fstreeEof(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:557:12: */
var pCsr uintptr = cur
- return (crt.Bool32((*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt == uintptr(0)))
+ return (libc.Bool32((*FstreeCsr)(unsafe.Pointer(pCsr)).FpStmt == uintptr(0)))
}
// xColumn method implementation.
-func fstreeColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_fs.c:565:12: */
+func fstreeColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_fs.c:565:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -55352,7 +60096,7 @@ func fstreeColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
} else {
// var sBuf stat64 at bp, 144
- crt.Xfstat64(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd, bp /* &sBuf */)
+ libc.Xfstat64(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd, bp /* &sBuf */)
if (((*stat64)(unsafe.Pointer(bp /* &sBuf */)).Fst_mode) & uint32(0170000)) == (uint32(0100000)) {
if i == 1 {
@@ -55363,11 +60107,11 @@ func fstreeColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
if !(aBuf != 0) {
return 7
}
- nRead = int32(crt.Xread(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd, aBuf, uint64((*stat64)(unsafe.Pointer(bp /* &sBuf */)).Fst_mode)))
+ nRead = int32(libc.Xread(tls, (*FstreeCsr)(unsafe.Pointer(pCsr)).Ffd, aBuf, uint64((*stat64)(unsafe.Pointer(bp /* &sBuf */)).Fst_mode)))
if uint32(nRead) != (*stat64)(unsafe.Pointer(bp /* &sBuf */)).Fst_mode {
return 10
}
- sqlite3.Xsqlite3_result_blob(tls, ctx, aBuf, nRead, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_blob(tls, ctx, aBuf, nRead, libc.UintptrFromInt32(-1))
sqlite3.Xsqlite3_free(tls, aBuf)
}
}
@@ -55377,7 +60121,7 @@ func fstreeColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
}
// xRowid method implementation.
-func fstreeRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c:596:12: */
+func fstreeRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c:596:12: */
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = int64(0)
return 0
}
@@ -55395,31 +60139,31 @@ func fstreeRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c
// argv[1] -> database name
// argv[2] -> table name
// argv[...] -> other module argument fields.
-func fsConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_fs.c:618:12: */
+func fsConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_fs.c:618:12: */
var pVtab uintptr
var nByte int32
var zTbl uintptr
var zDb uintptr = *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))
if argc != 4 {
- *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+25185 /* "wrong number of ..." */, 0)
+ *(*uintptr)(unsafe.Pointer(pzErr)) = sqlite3.Xsqlite3_mprintf(tls, ts+27277 /* "wrong number of ..." */, 0)
return 1
}
zTbl = *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))
- nByte = (int32((((uint64(unsafe.Sizeof(fs_vtab{})) + uint64(int32(crt.Xstrlen(tls, zTbl)))) + uint64(1)) + uint64(int32(crt.Xstrlen(tls, zDb)))) + uint64(1)))
+ nByte = (int32((((uint64(unsafe.Sizeof(fs_vtab{})) + uint64(int32(libc.Xstrlen(tls, zTbl)))) + uint64(1)) + uint64(int32(libc.Xstrlen(tls, zDb)))) + uint64(1)))
pVtab = sqlite3.Xsqlite3MallocZero(tls, uint64(nByte))
if !(pVtab != 0) {
return 7
}
(*fs_vtab)(unsafe.Pointer(pVtab)).FzTbl = (pVtab + uintptr(1)*48)
- (*fs_vtab)(unsafe.Pointer(pVtab)).FzDb = ((*fs_vtab)(unsafe.Pointer(pVtab)).FzTbl + uintptr((crt.Xstrlen(tls, zTbl) + uint64(1))))
+ (*fs_vtab)(unsafe.Pointer(pVtab)).FzDb = ((*fs_vtab)(unsafe.Pointer(pVtab)).FzTbl + uintptr((libc.Xstrlen(tls, zTbl) + uint64(1))))
(*fs_vtab)(unsafe.Pointer(pVtab)).Fdb = db
- crt.Xmemcpy(tls, (*fs_vtab)(unsafe.Pointer(pVtab)).FzTbl, zTbl, crt.Xstrlen(tls, zTbl))
- crt.Xmemcpy(tls, (*fs_vtab)(unsafe.Pointer(pVtab)).FzDb, zDb, crt.Xstrlen(tls, zDb))
+ libc.Xmemcpy(tls, (*fs_vtab)(unsafe.Pointer(pVtab)).FzTbl, zTbl, libc.Xstrlen(tls, zTbl))
+ libc.Xmemcpy(tls, (*fs_vtab)(unsafe.Pointer(pVtab)).FzDb, zDb, libc.Xstrlen(tls, zDb))
*(*uintptr)(unsafe.Pointer(ppVtab)) = (pVtab /* &.base */)
- sqlite3.Xsqlite3_declare_vtab(tls, db, ts+27798 /* "CREATE TABLE x(p..." */)
+ sqlite3.Xsqlite3_declare_vtab(tls, db, ts+29890 /* "CREATE TABLE x(p..." */)
return 0
}
@@ -55427,7 +60171,7 @@ func fsConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr,
// Note that for this virtual table, the xCreate and xConnect
// methods are identical.
-func fsDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_fs.c:653:12: */
+func fsDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* test_fs.c:653:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
@@ -55435,7 +60179,7 @@ func fsDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_fs.c:653:12: */
// The xDisconnect and xDestroy methods are also the same
// Open a new fs cursor.
-func fsOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:662:12: */
+func fsOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:662:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(fs_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
@@ -55443,7 +60187,7 @@ func fsOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_fs.c:
}
// Close a fs cursor.
-func fsClose(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:672:12: */
+func fsClose(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:672:12: */
var pCur uintptr = cur
sqlite3.Xsqlite3_finalize(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FpStmt)
sqlite3.Xsqlite3_free(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FzBuf)
@@ -55451,7 +60195,7 @@ func fsClose(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:672:12: */
return 0
}
-func fsNext(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:680:12: */
+func fsNext(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:680:12: */
var pCur uintptr = cur
var rc int32
@@ -55463,7 +60207,7 @@ func fsNext(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:680:12: */
return rc
}
-func fsFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_fs.c:690:12: */
+func fsFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_fs.c:690:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -55473,7 +60217,7 @@ func fsFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, a
if idxNum == 1 {
var zStmt uintptr = sqlite3.Xsqlite3_mprintf(tls,
- ts+27835 /* "SELECT * FROM %Q..." */, crt.VaList(bp, (*fs_vtab)(unsafe.Pointer(p)).FzDb, (*fs_vtab)(unsafe.Pointer(p)).FzTbl))
+ ts+29927 /* "SELECT * FROM %Q..." */, libc.VaList(bp, (*fs_vtab)(unsafe.Pointer(p)).FzDb, (*fs_vtab)(unsafe.Pointer(p)).FzTbl))
if !(zStmt != 0) {
return 7
}
@@ -55483,7 +60227,7 @@ func fsFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, a
sqlite3.Xsqlite3_bind_value(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FpStmt, 1, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
}
} else {
- var zStmt uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+2065 /* "SELECT * FROM %Q..." */, crt.VaList(bp+16, (*fs_vtab)(unsafe.Pointer(p)).FzDb, (*fs_vtab)(unsafe.Pointer(p)).FzTbl))
+ var zStmt uintptr = sqlite3.Xsqlite3_mprintf(tls, ts+3221 /* "SELECT * FROM %Q..." */, libc.VaList(bp+16, (*fs_vtab)(unsafe.Pointer(p)).FzDb, (*fs_vtab)(unsafe.Pointer(p)).FzTbl))
if !(zStmt != 0) {
return 7
}
@@ -55497,7 +60241,7 @@ func fsFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, a
return rc
}
-func fsColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_fs.c:722:12: */
+func fsColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_fs.c:722:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -55511,11 +60255,11 @@ func fsColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_f
var fd int32
var n int32
- fd = crt.Xopen64(tls, zFile, 00, 0)
+ fd = libc.Xopen64(tls, zFile, 00, 0)
if fd < 0 {
return 10
}
- crt.Xfstat64(tls, fd, bp /* &sbuf */)
+ libc.Xfstat64(tls, fd, bp /* &sbuf */)
if (*stat64)(unsafe.Pointer(bp /* &sbuf */)).Fst_size >= int64((*fs_cursor)(unsafe.Pointer(pCur)).FnAlloc) {
var nNew sqlite3_int64 = (sqlite3_int64((*stat64)(unsafe.Pointer(bp /* &sbuf */)).Fst_size * int64(2)))
@@ -55526,38 +60270,38 @@ func fsColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_f
zNew = sqlite3.Xsqlite3Realloc(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FzBuf, uint64(nNew))
if zNew == uintptr(0) {
- crt.Xclose(tls, fd)
+ libc.Xclose(tls, fd)
return 7
}
(*fs_cursor)(unsafe.Pointer(pCur)).FzBuf = zNew
(*fs_cursor)(unsafe.Pointer(pCur)).FnAlloc = int32(nNew)
}
- n = int32(crt.Xread(tls, fd, (*fs_cursor)(unsafe.Pointer(pCur)).FzBuf, uint64((*stat64)(unsafe.Pointer(bp /* &sbuf */)).Fst_size)))
- crt.Xclose(tls, fd)
+ n = int32(libc.Xread(tls, fd, (*fs_cursor)(unsafe.Pointer(pCur)).FzBuf, uint64((*stat64)(unsafe.Pointer(bp /* &sbuf */)).Fst_size)))
+ libc.Xclose(tls, fd)
if int64(n) != (*stat64)(unsafe.Pointer(bp /* &sbuf */)).Fst_size {
return 1
}
(*fs_cursor)(unsafe.Pointer(pCur)).FnBuf = int32((*stat64)(unsafe.Pointer(bp /* &sbuf */)).Fst_size)
*(*int8)(unsafe.Pointer((*fs_cursor)(unsafe.Pointer(pCur)).FzBuf + uintptr((*fs_cursor)(unsafe.Pointer(pCur)).FnBuf))) = int8(0)
- sqlite3.Xsqlite3_result_text(tls, ctx, (*fs_cursor)(unsafe.Pointer(pCur)).FzBuf, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, (*fs_cursor)(unsafe.Pointer(pCur)).FzBuf, -1, libc.UintptrFromInt32(-1))
}
return 0
}
-func fsRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c:763:12: */
+func fsRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test_fs.c:763:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite3.Xsqlite3_column_int64(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FpStmt, 0)
return 0
}
-func fsEof(tls *crt.TLS, cur uintptr) int32 { /* test_fs.c:769:12: */
+func fsEof(tls *libc.TLS, cur uintptr) int32 { /* test_fs.c:769:12: */
var pCur uintptr = cur
- return (crt.Bool32(sqlite3.Xsqlite3_data_count(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FpStmt) == 0))
+ return (libc.Bool32(sqlite3.Xsqlite3_data_count(tls, (*fs_cursor)(unsafe.Pointer(pCur)).FpStmt) == 0))
}
-func fsBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_fs.c:774:12: */
+func fsBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_fs.c:774:12: */
var ii int32
for ii = 0; ii < (*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FnConstraint; ii++ {
@@ -55641,7 +60385,7 @@ uintptr(0), // xRename
} /* test_fs.c:844:23 */
// Register the echo virtual table module.
-func register_fs_module(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_fs.c:875:26: */
+func register_fs_module(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_fs.c:875:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -55654,38 +60398,38 @@ func register_fs_module(tls *crt.TLS, clientData ClientData, interp uintptr, obj
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+27869 /* "fs" */, uintptr(unsafe.Pointer(&fsModule)), interp)
- sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+3799 /* "fsdir" */, uintptr(unsafe.Pointer(&fsdirModule)), uintptr(0))
- sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+27872 /* "fstree" */, uintptr(unsafe.Pointer(&fstreeModule)), uintptr(0))
+ sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+29961 /* "fs" */, uintptr(unsafe.Pointer(&fsModule)), interp)
+ sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+5016 /* "fsdir" */, uintptr(unsafe.Pointer(&fsdirModule)), uintptr(0))
+ sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+29964 /* "fstree" */, uintptr(unsafe.Pointer(&fstreeModule)), uintptr(0))
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetestfs_Init(tls *crt.TLS, interp uintptr) int32 { /* test_fs.c:901:5: */
+func Sqlitetestfs_Init(tls *libc.TLS, interp uintptr) int32 { /* test_fs.c:901:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd5)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd6)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd5[i].FzName,
- aObjCmd5[i].FxProc, aObjCmd5[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd6[i].FzName,
+ aObjCmd6[i].FxProc, aObjCmd6[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd5 = [1]struct {
+var aObjCmd6 = [1]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 27879 /* "register_fs_modu..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 29971 /* "register_fs_modu..." */, FxProc: 0, FclientData: uintptr(0)},
} /* test_fs.c:907:5 */
// Allocate nByte bytes of space using sqlite3_malloc(). If the
// allocation fails, call sqlite3_result_error_nomem() to notify
// the database handle that malloc() has failed.
-func testContextMalloc(tls *crt.TLS, context uintptr, nByte int32) uintptr { /* test_func.c:33:13: */
+func testContextMalloc(tls *libc.TLS, context uintptr, nByte int32) uintptr { /* test_func.c:33:13: */
var z uintptr = sqlite3.Xsqlite3_malloc(tls, nByte)
if !(z != 0) && (nByte > 0) {
sqlite3.Xsqlite3_result_error_nomem(tls, context)
@@ -55695,7 +60439,7 @@ func testContextMalloc(tls *crt.TLS, context uintptr, nByte int32) uintptr { /*
// This function generates a string of random characters. Used for
// generating test data.
-func randStr(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:45:13: */
+func randStr(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:45:13: */
bp := tls.Alloc(1004)
defer tls.Free(1004)
@@ -55736,10 +60480,10 @@ func randStr(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_
*(*uint8)(unsafe.Pointer(bp + 4 /* &zBuf[0] */ + uintptr(i))) = zSrc[(uint64(*(*uint8)(unsafe.Pointer(bp + 4 /* &zBuf[0] */ + uintptr(i)))) % (uint64(unsafe.Sizeof(zSrc)) - uint64(1)))]
}
*(*uint8)(unsafe.Pointer(bp + 4 /* &zBuf[0] */ + uintptr(n))) = uint8(0)
- sqlite3.Xsqlite3_result_text(tls, context, bp+4 /* zBuf */, n, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, bp+4 /* zBuf */, n, libc.UintptrFromInt32(-1))
}
-var zSrc = *(*[79]uint8)(unsafe.Pointer(ts + 27898 /* "abcdefghijklmnop..." */)) /* test_func.c:46:30 */
+var zSrc = *(*[79]uint8)(unsafe.Pointer(ts + 29990 /* "abcdefghijklmnop..." */)) /* test_func.c:46:30 */
// The following two SQL functions are used to test returning a text
// result with a destructor. Function 'test_destructor' takes one argument
@@ -55751,14 +60495,14 @@ var zSrc = *(*[79]uint8)(unsafe.Pointer(ts + 27898 /* "abcdefghijklmnop..." */))
//
// WARNING: Not threadsafe.
var test_destructor_count_var int32 = 0 /* test_func.c:91:12 */
-func destructor(tls *crt.TLS, p uintptr) { /* test_func.c:92:13: */
+func destructor(tls *libc.TLS, p uintptr) { /* test_func.c:92:13: */
var zVal uintptr = p
zVal--
sqlite3.Xsqlite3_free(tls, zVal)
test_destructor_count_var--
}
-func test_destructor(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:99:13: */
+func test_destructor(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:99:13: */
var zVal uintptr
var len int32
@@ -55775,10 +60519,10 @@ func test_destructor(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /*
*(*int8)(unsafe.Pointer(zVal + uintptr((len + 1)))) = int8(0)
*(*int8)(unsafe.Pointer(zVal + uintptr((len + 2)))) = int8(0)
zVal++
- crt.Xmemcpy(tls, zVal, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), uint64(len))
- sqlite3.Xsqlite3_result_text(tls, pCtx, zVal, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{destructor})))
+ libc.Xmemcpy(tls, zVal, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), uint64(len))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, zVal, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{destructor})))
}
-func test_destructor16(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:122:13: */
+func test_destructor16(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:122:13: */
var zVal uintptr
var len int32
@@ -55795,20 +60539,20 @@ func test_destructor16(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /
*(*int8)(unsafe.Pointer(zVal + uintptr((len + 1)))) = int8(0)
*(*int8)(unsafe.Pointer(zVal + uintptr((len + 2)))) = int8(0)
zVal++
- crt.Xmemcpy(tls, zVal, sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), uint64(len))
- sqlite3.Xsqlite3_result_text16(tls, pCtx, zVal, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{destructor})))
+ libc.Xmemcpy(tls, zVal, sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), uint64(len))
+ sqlite3.Xsqlite3_result_text16(tls, pCtx, zVal, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{destructor})))
}
-func test_destructor_count(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:145:13: */
+func test_destructor_count(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:145:13: */
sqlite3.Xsqlite3_result_int(tls, pCtx, test_destructor_count_var)
}
-func test_agg_errmsg16_step(tls *crt.TLS, a uintptr, b int32, c uintptr) { /* test_func.c:165:13: */
+func test_agg_errmsg16_step(tls *libc.TLS, a uintptr, b int32, c uintptr) { /* test_func.c:165:13: */
}
-func test_agg_errmsg16_final(tls *crt.TLS, ctx uintptr) { /* test_func.c:167:13: */
+func test_agg_errmsg16_final(tls *libc.TLS, ctx uintptr) { /* test_func.c:167:13: */
var z uintptr
var db uintptr = sqlite3.Xsqlite3_context_db_handle(tls, ctx)
sqlite3.Xsqlite3_aggregate_context(tls, ctx, 2048)
z = sqlite3.Xsqlite3_errmsg16(tls, db)
- sqlite3.Xsqlite3_result_text16(tls, ctx, z, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text16(tls, ctx, z, -1, libc.UintptrFromInt32(-1))
}
// Routines for testing the sqlite3_get_auxdata() and sqlite3_set_auxdata()
@@ -55820,16 +60564,16 @@ func test_agg_errmsg16_final(tls *crt.TLS, ctx uintptr) { /* test_func.c:167:13:
// call) then the result for that argument is 0. If there is a prior
// registration, the result for that argument is 1. The overall result
// is the individual argument results separated by spaces.
-func free_test_auxdata(tls *crt.TLS, p uintptr) { /* test_func.c:188:13: */
+func free_test_auxdata(tls *libc.TLS, p uintptr) { /* test_func.c:188:13: */
sqlite3.Xsqlite3_free(tls, p)
}
-func test_auxdata(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:189:13: */
+func test_auxdata(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:189:13: */
var i int32
var zRet uintptr = testContextMalloc(tls, pCtx, (nArg * 2))
if !(zRet != 0) {
return
}
- crt.Xmemset(tls, zRet, 0, (uint64(nArg * 2)))
+ libc.Xmemset(tls, zRet, 0, (uint64(nArg * 2)))
for i = 0; i < nArg; i++ {
var z uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if z != 0 {
@@ -55840,22 +60584,22 @@ func test_auxdata(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* tes
} else {
*(*int8)(unsafe.Pointer(zRet + uintptr((i * 2)))) = int8('0')
}
- n = (int32(crt.Xstrlen(tls, z)) + 1)
+ n = (int32(libc.Xstrlen(tls, z)) + 1)
zAux = testContextMalloc(tls, pCtx, n)
if zAux != 0 {
- crt.Xmemcpy(tls, zAux, z, uint64(n))
- sqlite3.Xsqlite3_set_auxdata(tls, pCtx, i, zAux, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{free_test_auxdata})))
+ libc.Xmemcpy(tls, zAux, z, uint64(n))
+ sqlite3.Xsqlite3_set_auxdata(tls, pCtx, i, zAux, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{free_test_auxdata})))
}
*(*int8)(unsafe.Pointer(zRet + uintptr(((i * 2) + 1)))) = int8(' ')
}
}
- sqlite3.Xsqlite3_result_text(tls, pCtx, zRet, ((2 * nArg) - 1), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{free_test_auxdata})))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, zRet, ((2 * nArg) - 1), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{free_test_auxdata})))
}
// A function to test error reporting from user functions. This function
// returns a copy of its first argument as the error message. If the
// second argument exists, it becomes the error code.
-func test_error(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:226:13: */
+func test_error(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:226:13: */
sqlite3.Xsqlite3_result_error(tls, pCtx, sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8))), -1)
if nArg == 2 {
sqlite3.Xsqlite3_result_error_code(tls, pCtx, sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8))))
@@ -55866,7 +60610,7 @@ func test_error(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_
// constant, then the first invocation will return X. The second X+1.
// and so forth. Can be used (for example) to provide a sequence number
// in a result set.
-func counterFunc(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:243:13: */
+func counterFunc(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:243:13: */
var pCounter uintptr = sqlite3.Xsqlite3_get_auxdata(tls, pCtx, 0)
if pCounter == uintptr(0) {
pCounter = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(int32(0))))
@@ -55875,7 +60619,7 @@ func counterFunc(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test
return
}
*(*int32)(unsafe.Pointer(pCounter)) = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
- sqlite3.Xsqlite3_set_auxdata(tls, pCtx, 0, pCounter, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_set_auxdata(tls, pCtx, 0, pCounter, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
} else {
*(*int32)(unsafe.Pointer(pCounter))++
}
@@ -55892,7 +60636,7 @@ func counterFunc(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test
//
// We want to verify that the type conversions that occur on the
// first argument do not invalidate the second argument.
-func test_isolation(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:276:13: */
+func test_isolation(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:276:13: */
sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
sqlite3.Xsqlite3_value_text16(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
@@ -55902,7 +60646,7 @@ func test_isolation(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* t
// Invoke an SQL statement recursively. The function result is the
// first column of the first row of the result set.
-func test_eval(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:294:13: */
+func test_eval(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:294:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -55924,14 +60668,14 @@ func test_eval(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_f
if rc != 0 {
var zErr uintptr
- zErr = sqlite3.Xsqlite3_mprintf(tls, ts+27977 /* "sqlite3_prepare_..." */, crt.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
- sqlite3.Xsqlite3_result_text(tls, pCtx, zErr, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ zErr = sqlite3.Xsqlite3_mprintf(tls, ts+30069 /* "sqlite3_prepare_..." */, libc.VaList(bp, sqlite3.Xsqlite3_errmsg(tls, db)))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, zErr, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
sqlite3.Xsqlite3_result_error_code(tls, pCtx, rc)
}
}
// convert one character from hex to binary
-func testHexChar(tls *crt.TLS, c int8) int32 { /* test_func.c:326:12: */
+func testHexChar(tls *libc.TLS, c int8) int32 { /* test_func.c:326:12: */
if (int32(c) >= '0') && (int32(c) <= '9') {
return (int32(c) - '0')
} else if (int32(c) >= 'a') && (int32(c) <= 'f') {
@@ -55943,9 +60687,9 @@ func testHexChar(tls *crt.TLS, c int8) int32 { /* test_func.c:326:12: */
}
// Convert hex to binary.
-func testHexToBin(tls *crt.TLS, zIn uintptr, zOut uintptr) { /* test_func.c:340:13: */
+func testHexToBin(tls *libc.TLS, zIn uintptr, zOut uintptr) { /* test_func.c:340:13: */
for (*(*int8)(unsafe.Pointer(zIn + uintptr(0))) != 0) && (*(*int8)(unsafe.Pointer(zIn + uintptr(1))) != 0) {
- *(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zOut, 1))) = (int8((testHexChar(tls, *(*int8)(unsafe.Pointer(zIn + uintptr(0)))) << 4) + testHexChar(tls, *(*int8)(unsafe.Pointer(zIn + uintptr(1))))))
+ *(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zOut, 1))) = (int8((testHexChar(tls, *(*int8)(unsafe.Pointer(zIn + uintptr(0)))) << 4) + testHexChar(tls, *(*int8)(unsafe.Pointer(zIn + uintptr(1))))))
zIn += uintptr(2)
}
}
@@ -55954,7 +60698,7 @@ func testHexToBin(tls *crt.TLS, zIn uintptr, zOut uintptr) { /* test_func.c:340:
//
// Convert the input string from HEX into binary. Then return the
// result using sqlite3_result_text16le().
-func testHexToUtf16be(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:354:13: */
+func testHexToUtf16be(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:354:13: */
var n int32
var zIn uintptr
var zOut uintptr
@@ -55966,7 +60710,7 @@ func testHexToUtf16be(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /*
sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
} else {
testHexToBin(tls, zIn, zOut)
- sqlite3.Xsqlite3_result_text16be(tls, pCtx, zOut, (n / 2), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text16be(tls, pCtx, zOut, (n / 2), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
@@ -55974,7 +60718,7 @@ func testHexToUtf16be(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /*
//
// Convert the input string from HEX into binary. Then return the
// result using sqlite3_result_text16le().
-func testHexToUtf8(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:381:13: */
+func testHexToUtf8(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:381:13: */
var n int32
var zIn uintptr
var zOut uintptr
@@ -55986,7 +60730,7 @@ func testHexToUtf8(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* te
sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
} else {
testHexToBin(tls, zIn, zOut)
- sqlite3.Xsqlite3_result_text(tls, pCtx, zOut, (n / 2), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text(tls, pCtx, zOut, (n / 2), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
@@ -55994,7 +60738,7 @@ func testHexToUtf8(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* te
//
// Convert the input string from HEX into binary. Then return the
// result using sqlite3_result_text16le().
-func testHexToUtf16le(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:408:13: */
+func testHexToUtf16le(tls *libc.TLS, pCtx uintptr, nArg int32, argv uintptr) { /* test_func.c:408:13: */
var n int32
var zIn uintptr
var zOut uintptr
@@ -56006,7 +60750,7 @@ func testHexToUtf16le(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /*
sqlite3.Xsqlite3_result_error_nomem(tls, pCtx)
} else {
testHexToBin(tls, zIn, zOut)
- sqlite3.Xsqlite3_result_text16le(tls, pCtx, zOut, (n / 2), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ sqlite3.Xsqlite3_result_text16le(tls, pCtx, zOut, (n / 2), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
}
}
@@ -56015,7 +60759,7 @@ func testHexToUtf16le(tls *crt.TLS, pCtx uintptr, nArg int32, argv uintptr) { /*
// If argument X is a real number, then convert it into a string which is
// the big-endian hexadecimal representation of the ieee754 encoding of
// that number. If X is not a real number, return NULL.
-func real2hex(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:436:13: */
+func real2hex(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:436:13: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -56026,19 +60770,19 @@ func real2hex(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test
var i int32
var bigEndian int32
*(*sqlite3_uint64)(unsafe.Pointer(bp /* &v */)) = uint64(1)
- bigEndian = (crt.Bool32(int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(0)))) == 0))
+ bigEndian = (libc.Bool32(int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(0)))) == 0))
*(*float64)(unsafe.Pointer(bp /* &v */)) = sqlite3.Xsqlite3_value_double(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
for i = 0; i < 8; i++ {
if bigEndian != 0 {
- *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr((i * 2)))) = *(*int8)(unsafe.Pointer(ts + 28008 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) >> 4))))
- *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr(((i * 2) + 1)))) = *(*int8)(unsafe.Pointer(ts + 28008 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) & 0xf))))
+ *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr((i * 2)))) = *(*int8)(unsafe.Pointer(ts + 30100 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) >> 4))))
+ *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr(((i * 2) + 1)))) = *(*int8)(unsafe.Pointer(ts + 30100 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) & 0xf))))
} else {
- *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr((14 - (i * 2))))) = *(*int8)(unsafe.Pointer(ts + 28008 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) >> 4))))
- *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr(((14 - (i * 2)) + 1)))) = *(*int8)(unsafe.Pointer(ts + 28008 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) & 0xf))))
+ *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr((14 - (i * 2))))) = *(*int8)(unsafe.Pointer(ts + 30100 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) >> 4))))
+ *(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr(((14 - (i * 2)) + 1)))) = *(*int8)(unsafe.Pointer(ts + 30100 /* "0123456789abcdef" */ + uintptr((int32(*(*uint8)(unsafe.Pointer((bp /* &v */ /* &.x */) + uintptr(i)))) & 0xf))))
}
}
*(*int8)(unsafe.Pointer(bp + 8 /* &zOut[0] */ + uintptr(16))) = int8(0)
- sqlite3.Xsqlite3_result_text(tls, context, bp+8 /* &zOut[0] */, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, bp+8 /* &zOut[0] */, -1, libc.UintptrFromInt32(-1))
}
// test_extract(record, field)
@@ -56047,7 +60791,7 @@ func real2hex(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test
// containing a formatted database record as the first argument. The
// second argument is the index of the field within that record to
// extract and return.
-func test_extract(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:473:13: */
+func test_extract(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:473:13: */
bp := tls.Alloc(72)
defer tls.Free(72)
@@ -56065,18 +60809,18 @@ func test_extract(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
iIdx = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
pHdr = (pRec + uintptr(sqlite3.Xsqlite3GetVarint(tls, pRec, bp /* &nHdr */)))
- pBody = crt.AssignUintptr(&pEndHdr, (pRec + uintptr(*(*u64)(unsafe.Pointer(bp /* nHdr */)))))
+ pBody = libc.AssignUintptr(&pEndHdr, (pRec + uintptr(*(*u64)(unsafe.Pointer(bp /* nHdr */)))))
for iCurrent = 0; (pHdr < pEndHdr) && (iCurrent <= iIdx); iCurrent++ {
// var iSerialType u64 at bp+64, 8
// var mem Mem at bp+8, 56
- crt.Xmemset(tls, bp+8 /* &mem */, 0, uint64(unsafe.Sizeof(Mem{})))
+ libc.Xmemset(tls, bp+8 /* &mem */, 0, uint64(unsafe.Sizeof(Mem{})))
(*Mem)(unsafe.Pointer(bp + 8 /* &mem */)).Fdb = db
(*Mem)(unsafe.Pointer(bp + 8 /* &mem */)).Fenc = (*sqlite31)(unsafe.Pointer(db)).Fenc
pHdr += uintptr(sqlite3.Xsqlite3GetVarint(tls, pHdr, bp+64 /* &iSerialType */))
- pBody += uintptr(sqlite3.Xsqlite3VdbeSerialGet(tls, pBody, u321(*(*u64)(unsafe.Pointer(bp + 64 /* iSerialType */))), bp+8 /* &mem */))
+ pBody += uintptr(sqlite3.Xsqlite3VdbeSerialGet(tls, pBody, u322(*(*u64)(unsafe.Pointer(bp + 64 /* iSerialType */))), bp+8 /* &mem */))
if iCurrent == iIdx {
sqlite3.Xsqlite3_result_value(tls, context, bp+8 /* &mem */)
@@ -56094,7 +60838,7 @@ func test_extract(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// containing a formatted database record as its only argument. It returns
// a tcl list (type SQLITE_TEXT) containing each of the values stored
// in the record.
-func test_decode(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:520:13: */
+func test_decode(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:520:13: */
bp := tls.Alloc(123)
defer tls.Free(123)
@@ -56113,18 +60857,18 @@ func test_decode(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* t
pRec = sqlite3.Xsqlite3_value_blob(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
pHdr = (pRec + uintptr(sqlite3.Xsqlite3GetVarint(tls, pRec, bp+32 /* &nHdr */)))
- pBody = crt.AssignUintptr(&pEndHdr, (pRec + uintptr(*(*u64)(unsafe.Pointer(bp + 32 /* nHdr */)))))
+ pBody = libc.AssignUintptr(&pEndHdr, (pRec + uintptr(*(*u64)(unsafe.Pointer(bp + 32 /* nHdr */)))))
for pHdr < pEndHdr {
var pVal uintptr = uintptr(0)
// var iSerialType u64 at bp+96, 8
// var mem Mem at bp+40, 56
- crt.Xmemset(tls, bp+40 /* &mem */, 0, uint64(unsafe.Sizeof(Mem{})))
+ libc.Xmemset(tls, bp+40 /* &mem */, 0, uint64(unsafe.Sizeof(Mem{})))
(*Mem)(unsafe.Pointer(bp + 40 /* &mem */)).Fdb = db
(*Mem)(unsafe.Pointer(bp + 40 /* &mem */)).Fenc = (*sqlite31)(unsafe.Pointer(db)).Fenc
pHdr += uintptr(sqlite3.Xsqlite3GetVarint(tls, pHdr, bp+96 /* &iSerialType */))
- pBody += uintptr(sqlite3.Xsqlite3VdbeSerialGet(tls, pBody, u321(*(*u64)(unsafe.Pointer(bp + 96 /* iSerialType */))), bp+40 /* &mem */))
+ pBody += uintptr(sqlite3.Xsqlite3VdbeSerialGet(tls, pBody, u322(*(*u64)(unsafe.Pointer(bp + 96 /* iSerialType */))), bp+40 /* &mem */))
switch sqlite3.Xsqlite3_value_type(tls, bp+40 /* &mem */) {
case 3:
@@ -56140,16 +60884,16 @@ func test_decode(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* t
var n int32 = sqlite3.Xsqlite3_value_bytes(tls, bp+40 /* &mem */)
var z uintptr = sqlite3.Xsqlite3_value_blob(tls, bp+40 /* &mem */)
var i int32
- pVal = tcl.XTcl_NewStringObj(tls, ts+28025 /* "x'" */, -1)
+ pVal = tcl.XTcl_NewStringObj(tls, ts+30117 /* "x'" */, -1)
for i = 0; i < n; i++ {
// var hex [3]int8 at bp+104, 3
*(*int8)(unsafe.Pointer(bp + 104 /* &hex[0] */ + uintptr(0))) = *(*int8)(unsafe.Pointer(bp + 107 /* &hexdigit[0] */ + uintptr(((int32(*(*u8)(unsafe.Pointer(z + uintptr(i)))) >> 4) & 0x0F))))
*(*int8)(unsafe.Pointer(bp + 104 /* &hex[0] */ + uintptr(1))) = *(*int8)(unsafe.Pointer(bp + 107 /* &hexdigit[0] */ + uintptr((int32(*(*u8)(unsafe.Pointer(z + uintptr(i)))) & 0x0F))))
*(*int8)(unsafe.Pointer(bp + 104 /* &hex[0] */ + uintptr(2))) = int8(0)
- tcl.XTcl_AppendStringsToObj(tls, pVal, crt.VaList(bp, bp+104 /* &hex[0] */, 0))
+ tcl.XTcl_AppendStringsToObj(tls, pVal, libc.VaList(bp, bp+104 /* &hex[0] */, 0))
}
- tcl.XTcl_AppendStringsToObj(tls, pVal, crt.VaList(bp+16, ts+4030 /* "'" */, 0))
+ tcl.XTcl_AppendStringsToObj(tls, pVal, libc.VaList(bp+16, ts+5315 /* "'" */, 0))
break
}
@@ -56162,7 +60906,7 @@ func test_decode(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* t
break
case 5:
- pVal = tcl.XTcl_NewStringObj(tls, ts+4252 /* "NULL" */, -1)
+ pVal = tcl.XTcl_NewStringObj(tls, ts+5537 /* "NULL" */, -1)
break
default:
@@ -56175,10 +60919,10 @@ func test_decode(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* t
}
}
- sqlite3.Xsqlite3_result_text(tls, context, tcl.XTcl_GetString(tls, pRet), -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, tcl.XTcl_GetString(tls, pRet), -1, libc.UintptrFromInt32(-1))
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pRet
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -56190,7 +60934,7 @@ func test_decode(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* t
// similar to the built-in zeroblob() function, except that it does not
// check that the integer parameter is within range before passing it
// to sqlite3_result_zeroblob().
-func test_zeroblob(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:612:13: */
+func test_zeroblob(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:612:13: */
var nZero int32 = sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
sqlite3.Xsqlite3_result_zeroblob(tls, context, nZero)
}
@@ -56198,7 +60942,7 @@ func test_zeroblob(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// test_getsubtype(V)
//
// Return the subtype for value V.
-func test_getsubtype(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:625:13: */
+func test_getsubtype(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:625:13: */
sqlite3.Xsqlite3_result_int(tls, context, int32(sqlite3.Xsqlite3_value_subtype(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))))
}
@@ -56206,7 +60950,7 @@ func test_getsubtype(tls *crt.TLS, context uintptr, argc int32, argv uintptr) {
//
// Return an integer bitmask that has a bit set for every argument
// (up to the first 63 arguments) that originates from a bind a parameter.
-func test_frombind(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:638:13: */
+func test_frombind(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:638:13: */
var m sqlite3_uint64 = uint64(0)
var i int32
for i = 0; (i < argc) && (i < 63); i++ {
@@ -56220,12 +60964,12 @@ func test_frombind(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /*
// test_setsubtype(V, T)
//
// Return the value V with its subtype changed to T
-func test_setsubtype(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:655:13: */
+func test_setsubtype(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_func.c:655:13: */
sqlite3.Xsqlite3_result_value(tls, context, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)))
sqlite3.Xsqlite3_result_subtype(tls, context, uint32(sqlite3.Xsqlite3_value_int(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))))
}
-func registerTestFunctions(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pThunk uintptr) int32 { /* test_func.c:664:12: */
+func registerTestFunctions(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pThunk uintptr) int32 { /* test_func.c:664:12: */
var i int32
for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aFuncs)) / uint64(unsafe.Sizeof(struct {
@@ -56238,10 +60982,10 @@ func registerTestFunctions(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pThunk ui
int32(aFuncs[i].FeTextRep), uintptr(0), aFuncs[i].FxFunc, uintptr(0), uintptr(0))
}
- sqlite3.Xsqlite3_create_function(tls, db, ts+28028 /* "test_agg_errmsg1..." */, 0, 5, uintptr(0), uintptr(0),
+ sqlite3.Xsqlite3_create_function(tls, db, ts+30120 /* "test_agg_errmsg1..." */, 0, 5, uintptr(0), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{test_agg_errmsg16_step})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{test_agg_errmsg16_final})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{test_agg_errmsg16_step})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{test_agg_errmsg16_final})))
return 0
}
@@ -56252,26 +60996,26 @@ var aFuncs = [20]struct {
FeTextRep uint32
FxFunc uintptr
}{
- {FzName: ts + 28046 /* "randstr" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28054 /* "test_destructor" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28070 /* "test_destructor1..." */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28088 /* "hex_to_utf16be" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28103 /* "hex_to_utf16le" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28118 /* "hex_to_utf8" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28130 /* "test_destructor_..." */, FnArg: int8(0), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28152 /* "test_auxdata" */, FnArg: int8(-1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28165 /* "test_error" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28165 /* "test_error" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28176 /* "test_eval" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28186 /* "test_isolation" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28201 /* "test_counter" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28214 /* "real2hex" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28223 /* "test_decode" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28235 /* "test_extract" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28248 /* "test_zeroblob" */, FnArg: int8(1), FeTextRep: (uint32(1 | 0x000000800)), FxFunc: 0},
- {FzName: ts + 28262 /* "test_getsubtype" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28278 /* "test_setsubtype" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
- {FzName: ts + 28294 /* "test_frombind" */, FnArg: int8(-1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30138 /* "randstr" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30146 /* "test_destructor" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30162 /* "test_destructor1..." */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30180 /* "hex_to_utf16be" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30195 /* "hex_to_utf16le" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30210 /* "hex_to_utf8" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30222 /* "test_destructor_..." */, FnArg: int8(0), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30244 /* "test_auxdata" */, FnArg: int8(-1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30257 /* "test_error" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30257 /* "test_error" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30268 /* "test_eval" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30278 /* "test_isolation" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30293 /* "test_counter" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30306 /* "real2hex" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30315 /* "test_decode" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30327 /* "test_extract" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30340 /* "test_zeroblob" */, FnArg: int8(1), FeTextRep: (uint32(1 | 0x000000800)), FxFunc: 0},
+ {FzName: ts + 30354 /* "test_getsubtype" */, FnArg: int8(1), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30370 /* "test_setsubtype" */, FnArg: int8(2), FeTextRep: uint32(1), FxFunc: 0},
+ {FzName: ts + 30386 /* "test_frombind" */, FnArg: int8(-1), FeTextRep: uint32(1), FxFunc: 0},
} /* test_func.c:674:5 */
// TCLCMD: autoinstall_test_functions
@@ -56279,13 +61023,13 @@ var aFuncs = [20]struct {
// Invoke this TCL command to use sqlite3_auto_extension() to cause
// the standard set of test functions to be loaded into each new
// database connection.
-func autoinstall_test_funcs(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_func.c:718:26: */
+func autoinstall_test_funcs(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_func.c:718:26: */
var rc int32 = sqlite3.Xsqlite3_auto_extension(tls, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
}{registerTestFunctions})))
if rc == 0 {
rc = sqlite3.Xsqlite3_auto_extension(tls, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
}{Md5_Register})))
}
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
@@ -56293,16 +61037,16 @@ func autoinstall_test_funcs(tls *crt.TLS, clientData uintptr, interp uintptr, ob
}
// A bogus step function and finalizer function.
-func tStep(tls *crt.TLS, a uintptr, b int32, c uintptr) { /* test_func.c:736:13: */
+func tStep(tls *libc.TLS, a uintptr, b int32, c uintptr) { /* test_func.c:736:13: */
}
-func tFinal(tls *crt.TLS, a uintptr) { /* test_func.c:737:13: */
+func tFinal(tls *libc.TLS, a uintptr) { /* test_func.c:737:13: */
}
// tclcmd: abuse_create_function
//
// Make various calls to sqlite3_create_function that do not have valid
// parameters. Verify that the error condition is detected and reported.
-func abuse_create_function(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_func.c:746:26: */
+func abuse_create_function(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_func.c:746:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -56318,11 +61062,11 @@ func abuse_create_function(tls *crt.TLS, clientData uintptr, interp uintptr, obj
__1:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{tStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{tFinal})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{tStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{tFinal})))
if !(rc != 21) {
goto __2
}
@@ -56330,10 +61074,10 @@ __1:
__2:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), uintptr(0))
if !(rc != 21) {
goto __3
@@ -56342,9 +61086,9 @@ __2:
__3:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{tStep})), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{tFinal})))
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, 1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{tStep})), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{tFinal})))
if !(rc != 21) {
goto __4
}
@@ -56352,7 +61096,7 @@ __3:
__4:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, 1, 1, uintptr(0), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{tFinal})))
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, 1, 1, uintptr(0), uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{tFinal})))
if !(rc != 21) {
goto __5
}
@@ -56360,8 +61104,8 @@ __4:
__5:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, 1, 1, uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, 1, 1, uintptr(0), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), uintptr(0))
if !(rc != 21) {
goto __6
@@ -56370,8 +61114,8 @@ __5:
__6:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, -2, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, -2, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), uintptr(0), uintptr(0))
if !(rc != 21) {
goto __7
@@ -56380,8 +61124,8 @@ __6:
__7:
;
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+28308 /* "tx" */, 128, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), ts+30400 /* "tx" */, 128, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), uintptr(0), uintptr(0))
if !(rc != 21) {
goto __8
@@ -56392,9 +61136,9 @@ __8:
rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)),
- ts+28311, /* "funcxx_123456789..." */
+ ts+30403, /* "funcxx_123456789..." */
1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), uintptr(0), uintptr(0))
if !(rc != 21) {
goto __9
@@ -56410,9 +61154,9 @@ __9:
mxArg = sqlite3.Xsqlite3_limit(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), 6, -1)
rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)),
- ts+28568, /* "nullx_123456789_..." */
+ ts+30660, /* "nullx_123456789_..." */
mxArg, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{tStep})), uintptr(0), uintptr(0))
if !(rc != 0) {
goto __10
@@ -56424,7 +61168,7 @@ __10:
return 0
abuse_err:
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+28824, /* "sqlite3_create_f..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+30916, /* "sqlite3_create_f..." */
uintptr(0)))
return 1
}
@@ -56461,7 +61205,7 @@ abuse_err:
// SELECT docid FROM documents
// WHERE documents MATCH <query>
// ORDER BY rank(matchinfo(documents), 1.0, 0.5) DESC
-func rankfunc(tls *crt.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* test_func.c:847:13: */
+func rankfunc(tls *libc.TLS, pCtx uintptr, nVal int32, apVal uintptr) { /* test_func.c:847:13: */
var aMatchinfo uintptr // Return value of matchinfo()
var nMatchinfo int32 // Number of elements in aMatchinfo[]
var nCol int32 // Number of columns in the table
@@ -56511,7 +61255,7 @@ __2:
goto __3
}
sqlite3.Xsqlite3_result_error(tls, pCtx,
- ts+28867 /* "invalid matchinf..." */, -1)
+ ts+30959 /* "invalid matchinf..." */, -1)
return
__3:
;
@@ -56572,10 +61316,10 @@ __7:
// Jump here if the wrong number of arguments are passed to this function
wrong_number_args:
- sqlite3.Xsqlite3_result_error(tls, pCtx, ts+28916 /* "wrong number of ..." */, -1)
+ sqlite3.Xsqlite3_result_error(tls, pCtx, ts+31008 /* "wrong number of ..." */, -1)
}
-func install_fts3_rank_function(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_func.c:910:26: */
+func install_fts3_rank_function(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_func.c:910:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -56589,39 +61333,39 @@ func install_fts3_rank_function(tls *crt.TLS, clientData uintptr, interp uintptr
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+28961 /* "rank" */, -1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+31053 /* "rank" */, -1, 1, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{rankfunc})), uintptr(0), uintptr(0))
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetest_func_Init(tls *crt.TLS, interp uintptr) int32 { /* test_func.c:933:5: */
+func Sqlitetest_func_Init(tls *libc.TLS, interp uintptr) int32 { /* test_func.c:933:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd6)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd7)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd6[i].FzName, aObjCmd6[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd7[i].FzName, aObjCmd7[i].FxProc, uintptr(0), uintptr(0))
}
sqlite3.Xsqlite3_initialize(tls)
sqlite3.Xsqlite3_auto_extension(tls, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
}{registerTestFunctions})))
sqlite3.Xsqlite3_auto_extension(tls, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
}{Md5_Register})))
return 0
}
-var aObjCmd6 = [3]struct {
+var aObjCmd7 = [3]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 28966 /* "autoinstall_test..." */, FxProc: 0},
- {FzName: ts + 28993 /* "abuse_create_fun..." */, FxProc: 0},
- {FzName: ts + 29015 /* "install_fts3_ran..." */, FxProc: 0},
+ {FzName: ts + 31058 /* "autoinstall_test..." */, FxProc: 0},
+ {FzName: ts + 31085 /* "abuse_create_fun..." */, FxProc: 0},
+ {FzName: ts + 31107 /* "install_fts3_ran..." */, FxProc: 0},
} /* test_func.c:937:5 */
// end block for C++
@@ -56719,20 +61463,20 @@ var aObjCmd6 = [3]struct {
// Convert binary to hex. The input zBuf[] contains N bytes of
// binary data. zBuf[] is 2*n+1 bytes long. Overwrite zBuf[]
// with a hexadecimal representation of its original binary input.
-func sqlite3TestBinToHex(tls *crt.TLS, zBuf uintptr, N int32) { /* test_hexio.c:36:6: */
+func sqlite3TestBinToHex(tls *libc.TLS, zBuf uintptr, N int32) { /* test_hexio.c:36:6: */
bp := tls.Alloc(17)
defer tls.Free(17)
- *(*[17]uint8)(unsafe.Pointer(bp /* zHex */)) = *(*[17]uint8)(unsafe.Pointer(ts + 29042 /* "0123456789ABCDEF" */))
+ *(*[17]uint8)(unsafe.Pointer(bp /* zHex */)) = *(*[17]uint8)(unsafe.Pointer(ts + 31134 /* "0123456789ABCDEF" */))
var i int32
var j int32
var c uint8
i = (N * 2)
- *(*uint8)(unsafe.Pointer(zBuf + uintptr(crt.PostDecInt32(&i, 1)))) = uint8(0)
+ *(*uint8)(unsafe.Pointer(zBuf + uintptr(libc.PostDecInt32(&i, 1)))) = uint8(0)
for j = (N - 1); j >= 0; j-- {
c = *(*uint8)(unsafe.Pointer(zBuf + uintptr(j)))
- *(*uint8)(unsafe.Pointer(zBuf + uintptr(crt.PostDecInt32(&i, 1)))) = *(*uint8)(unsafe.Pointer(bp /* &zHex[0] */ + uintptr((int32(c) & 0xf))))
- *(*uint8)(unsafe.Pointer(zBuf + uintptr(crt.PostDecInt32(&i, 1)))) = *(*uint8)(unsafe.Pointer(bp /* &zHex[0] */ + uintptr((int32(c) >> 4))))
+ *(*uint8)(unsafe.Pointer(zBuf + uintptr(libc.PostDecInt32(&i, 1)))) = *(*uint8)(unsafe.Pointer(bp /* &zHex[0] */ + uintptr((int32(c) & 0xf))))
+ *(*uint8)(unsafe.Pointer(zBuf + uintptr(libc.PostDecInt32(&i, 1)))) = *(*uint8)(unsafe.Pointer(bp /* &zHex[0] */ + uintptr((int32(c) >> 4))))
}
}
@@ -56741,7 +61485,7 @@ func sqlite3TestBinToHex(tls *crt.TLS, zBuf uintptr, N int32) { /* test_hexio.c:
// hexadecimal. Convert this into binary and write aOut[] with
// the binary data. Spaces in the original input are ignored.
// Return the number of bytes of binary rendered.
-func sqlite3TestHexToBin(tls *crt.TLS, zIn uintptr, N int32, aOut uintptr) int32 { /* test_hexio.c:56:5: */
+func sqlite3TestHexToBin(tls *libc.TLS, zIn uintptr, N int32, aOut uintptr) int32 { /* test_hexio.c:56:5: */
bp := tls.Alloc(256)
defer tls.Free(256)
@@ -56768,7 +61512,7 @@ func sqlite3TestHexToBin(tls *crt.TLS, zIn uintptr, N int32, aOut uintptr) int32
var hi int32 = 1
var c uint8
- for i = crt.AssignInt32(&j, 0); i < N; i++ {
+ for i = libc.AssignInt32(&j, 0); i < N; i++ {
c = *(*uint8)(unsafe.Pointer(bp /* &aMap[0] */ + uintptr(*(*uint8)(unsafe.Pointer(zIn + uintptr(i))))))
if int32(c) == 0 {
continue
@@ -56777,7 +61521,7 @@ func sqlite3TestHexToBin(tls *crt.TLS, zIn uintptr, N int32, aOut uintptr) int32
*(*uint8)(unsafe.Pointer(aOut + uintptr(j))) = (uint8((int32(c) - 1) << 4))
hi = 0
} else {
- *(*uint8)(unsafe.Pointer(aOut + uintptr(crt.PostIncInt32(&j, 1)))) |= uint8((int32(c) - 1))
+ *(*uint8)(unsafe.Pointer(aOut + uintptr(libc.PostIncInt32(&j, 1)))) |= uint8((int32(c) - 1))
hi = 1
}
}
@@ -56789,7 +61533,7 @@ func sqlite3TestHexToBin(tls *crt.TLS, zIn uintptr, N int32, aOut uintptr) int32
// Read AMT bytes from file FILENAME beginning at OFFSET from the
// beginning of the file. Convert that information to hexadecimal
// and return the resulting HEX string.
-func hexio_read(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:101:26: */
+func hexio_read(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:101:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -56803,7 +61547,7 @@ func hexio_read(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, ob
var in uintptr
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29059 /* "FILENAME OFFSET ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31151 /* "FILENAME OFFSET ..." */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+40 /* &offset */) != 0 {
@@ -56817,22 +61561,22 @@ func hexio_read(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, ob
if zBuf == uintptr(0) {
return 1
}
- in = crt.Xfopen64(tls, zFile, ts+2937 /* "rb" */)
+ in = libc.Xfopen64(tls, zFile, ts+4086 /* "rb" */)
if in == uintptr(0) {
- in = crt.Xfopen64(tls, zFile, ts+29079 /* "r" */)
+ in = libc.Xfopen64(tls, zFile, ts+31171 /* "r" */)
}
if in == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29081 /* "cannot open inpu..." */, zFile, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31173 /* "cannot open inpu..." */, zFile, 0))
return 1
}
- crt.Xfseek(tls, in, int64(*(*int32)(unsafe.Pointer(bp + 40 /* offset */))), 0)
- got = int32(crt.Xfread(tls, zBuf, uint64(1), uint64(*(*int32)(unsafe.Pointer(bp + 44 /* amt */))), in))
- crt.Xfclose(tls, in)
+ libc.Xfseek(tls, in, int64(*(*int32)(unsafe.Pointer(bp + 40 /* offset */))), 0)
+ got = int32(libc.Xfread(tls, zBuf, uint64(1), uint64(*(*int32)(unsafe.Pointer(bp + 44 /* amt */))), in))
+ libc.Xfclose(tls, in)
if got < 0 {
got = 0
}
sqlite3TestBinToHex(tls, zBuf, got)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, zBuf, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, zBuf, 0))
sqlite3.Xsqlite3_free(tls, zBuf)
return 0
}
@@ -56841,7 +61585,7 @@ func hexio_read(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, ob
//
// Write DATA into file FILENAME beginning at OFFSET from the
// beginning of the file. DATA is expressed in hexadecimal.
-func hexio_write(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:151:26: */
+func hexio_write(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:151:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -56857,7 +61601,7 @@ func hexio_write(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
var out uintptr
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29105 /* "FILENAME OFFSET ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31197 /* "FILENAME OFFSET ..." */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+24 /* &offset */) != 0 {
@@ -56870,18 +61614,18 @@ func hexio_write(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
return 1
}
nOut = sqlite3TestHexToBin(tls, zIn, *(*int32)(unsafe.Pointer(bp + 28 /* nIn */)), aOut)
- out = crt.Xfopen64(tls, zFile, ts+29129 /* "r+b" */)
+ out = libc.Xfopen64(tls, zFile, ts+31221 /* "r+b" */)
if out == uintptr(0) {
- out = crt.Xfopen64(tls, zFile, ts+29133 /* "r+" */)
+ out = libc.Xfopen64(tls, zFile, ts+31225 /* "r+" */)
}
if out == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29136 /* "cannot open outp..." */, zFile, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31228 /* "cannot open outp..." */, zFile, 0))
return 1
}
- crt.Xfseek(tls, out, int64(*(*int32)(unsafe.Pointer(bp + 24 /* offset */))), 0)
- written = int32(crt.Xfwrite(tls, aOut, uint64(1), uint64(nOut), out))
+ libc.Xfseek(tls, out, int64(*(*int32)(unsafe.Pointer(bp + 24 /* offset */))), 0)
+ written = int32(libc.Xfwrite(tls, aOut, uint64(1), uint64(nOut), out))
sqlite3.Xsqlite3_free(tls, aOut)
- crt.Xfclose(tls, out)
+ libc.Xfclose(tls, out)
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, written))
return 0
}
@@ -56891,7 +61635,7 @@ func hexio_write(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// Interpret the HEXDATA argument as a big-endian integer. Return
// the value of that integer. HEXDATA can contain between 2 and 8
// hexadecimal digits.
-func hexio_get_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:199:26: */
+func hexio_get_int(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:199:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -56904,7 +61648,7 @@ func hexio_get_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// var aNum [4]uint8 at bp+4, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29161 /* "HEXDATA" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31253 /* "HEXDATA" */)
return 1
}
zIn = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &nIn */)
@@ -56914,10 +61658,10 @@ func hexio_get_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
}
nOut = sqlite3TestHexToBin(tls, zIn, *(*int32)(unsafe.Pointer(bp /* nIn */)), aOut)
if nOut >= 4 {
- crt.Xmemcpy(tls, bp+4 /* &aNum[0] */, aOut, uint64(4))
+ libc.Xmemcpy(tls, bp+4 /* &aNum[0] */, aOut, uint64(4))
} else {
- crt.Xmemset(tls, bp+4 /* &aNum[0] */, 0, uint64(unsafe.Sizeof([4]uint8{})))
- crt.Xmemcpy(tls, (bp + 4 /* &aNum */ + uintptr((4 - nOut))), aOut, uint64(nOut))
+ libc.Xmemset(tls, bp+4 /* &aNum[0] */, 0, uint64(unsafe.Sizeof([4]uint8{})))
+ libc.Xmemcpy(tls, (bp + 4 /* &aNum */ + uintptr((4 - nOut))), aOut, uint64(nOut))
}
sqlite3.Xsqlite3_free(tls, aOut)
val = ((((int32(*(*uint8)(unsafe.Pointer(bp + 4 /* &aNum[0] */ + uintptr(0)))) << 24) | (int32(*(*uint8)(unsafe.Pointer(bp + 4 /* &aNum[0] */ + uintptr(1)))) << 16)) | (int32(*(*uint8)(unsafe.Pointer(bp + 4 /* &aNum[0] */ + uintptr(2)))) << 8)) | int32(*(*uint8)(unsafe.Pointer(bp + 4 /* &aNum[0] */ + uintptr(3)))))
@@ -56928,7 +61672,7 @@ func hexio_get_int(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// USAGE: hexio_render_int16 INTEGER
//
// Render INTEGER has a 16-bit big-endian integer in hexadecimal.
-func hexio_render_int16(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:239:26: */
+func hexio_render_int16(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:239:26: */
bp := tls.Alloc(14)
defer tls.Free(14)
@@ -56937,7 +61681,7 @@ func hexio_render_int16(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// var aNum [10]uint8 at bp+4, 10
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15173 /* "INTEGER" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2273 /* "INTEGER" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &val */) != 0 {
@@ -56953,7 +61697,7 @@ func hexio_render_int16(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// USAGE: hexio_render_int32 INTEGER
//
// Render INTEGER has a 32-bit big-endian integer in hexadecimal.
-func hexio_render_int32(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:266:26: */
+func hexio_render_int32(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:266:26: */
bp := tls.Alloc(14)
defer tls.Free(14)
@@ -56962,7 +61706,7 @@ func hexio_render_int32(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// var aNum [10]uint8 at bp+4, 10
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15173 /* "INTEGER" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2273 /* "INTEGER" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &val */) != 0 {
@@ -56982,36 +61726,36 @@ func hexio_render_int32(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// The argument is a UTF8 string represented in hexadecimal.
// The UTF8 might not be well-formed. Run this string through
// sqlite3Utf8to8() convert it back to hex and return the result.
-func utf8_to_utf8(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:296:26: */
+func utf8_to_utf8(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:296:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp, ts+29169 /* "[utf8_to_utf8] u..." */, 0))
+ libc.VaList(bp, ts+31261 /* "[utf8_to_utf8] u..." */, 0))
return 1
}
-func getFts3Varint(tls *crt.TLS, p uintptr, v uintptr) int32 { /* test_hexio.c:328:12: */
+func getFts3Varint(tls *libc.TLS, p uintptr, v uintptr) int32 { /* test_hexio.c:328:12: */
var q uintptr = p
var x sqlite_uint64 = uint64(0)
var y sqlite_uint64 = uint64(1)
for (int32(*(*uint8)(unsafe.Pointer(q))) & 0x80) == 0x80 {
- x = x + (y * (sqlite_uint64(int32(*(*uint8)(unsafe.Pointer(crt.PostIncUintptr(&q, 1)))) & 0x7f)))
+ x = x + (y * (sqlite_uint64(int32(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&q, 1)))) & 0x7f)))
y <<= 7
}
- x = x + (y * (sqlite_uint64(*(*uint8)(unsafe.Pointer(crt.PostIncUintptr(&q, 1))))))
+ x = x + (y * (sqlite_uint64(*(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&q, 1))))))
*(*sqlite_int64)(unsafe.Pointer(v)) = sqlite_int64(x)
return (int32((int64(q) - int64(p)) / 1))
}
-func putFts3Varint(tls *crt.TLS, p uintptr, v sqlite_int64) int32 { /* test_hexio.c:340:12: */
+func putFts3Varint(tls *libc.TLS, p uintptr, v sqlite_int64) int32 { /* test_hexio.c:340:12: */
var q uintptr = p
var vu sqlite_uint64 = sqlite_uint64(v)
for ok := true; ok; ok = (vu != uint64(0)) {
- *(*uint8)(unsafe.Pointer(crt.PostIncUintptr(&q, 1))) = (uint8((vu & uint64(0x7f)) | uint64(0x80)))
+ *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&q, 1))) = (uint8((vu & uint64(0x7f)) | uint64(0x80)))
vu >>= 7
}
- *(*uint8)(unsafe.Pointer(q + crt.UintptrFromInt32(-1))) &= uint8((0x7f)) // turn off high bit in final byte
+ *(*uint8)(unsafe.Pointer(q + libc.UintptrFromInt32(-1))) &= uint8((0x7f)) // turn off high bit in final byte
return (int32((int64(q) - int64(p)) / 1))
}
@@ -57020,7 +61764,7 @@ func putFts3Varint(tls *crt.TLS, p uintptr, v sqlite_int64) int32 { /* test_hexi
//
// Read a varint from the start of BLOB. Set variable VARNAME to contain
// the interpreted value. Return the number of bytes of BLOB consumed.
-func read_fts3varint(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:358:26: */
+func read_fts3varint(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:358:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -57032,7 +61776,7 @@ func read_fts3varint(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
var nVal int32
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29223 /* "BLOB VARNAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31315 /* "BLOB VARNAME" */)
return 1
}
zBlob = tcl.XTcl_GetByteArrayFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &nBlob */)
@@ -57044,7 +61788,7 @@ func read_fts3varint(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
// USAGE: make_fts3record ARGLIST
-func make_fts3record(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:384:26: */
+func make_fts3record(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_hexio.c:384:26: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -57056,7 +61800,7 @@ func make_fts3record(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
var i int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29236 /* "LIST" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31328 /* "LIST" */)
return 1
}
if tcl.XTcl_ListObjGetElements(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &nArg */, bp+8 /* &aArg */) != 0 {
@@ -57101,7 +61845,7 @@ func make_fts3record(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
aOut = aNew
nAlloc = nNew
}
- crt.Xmemcpy(tls, (aOut + uintptr(nOut)), zVal, uint64(*(*int32)(unsafe.Pointer(bp + 24 /* nVal */))))
+ libc.Xmemcpy(tls, (aOut + uintptr(nOut)), zVal, uint64(*(*int32)(unsafe.Pointer(bp + 24 /* nVal */))))
nOut = nOut + (*(*int32)(unsafe.Pointer(bp + 24 /* nVal */)))
}
}
@@ -57112,29 +61856,29 @@ func make_fts3record(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
// Register commands with the TCL interpreter.
-func Sqlitetest_hexio_Init(tls *crt.TLS, interp uintptr) int32 { /* test_hexio.c:446:5: */
+func Sqlitetest_hexio_Init(tls *libc.TLS, interp uintptr) int32 { /* test_hexio.c:446:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd7)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd8)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd7[i].FzName, aObjCmd7[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd8[i].FzName, aObjCmd8[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aObjCmd7 = [8]struct {
+var aObjCmd8 = [8]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 29241 /* "hexio_read" */, FxProc: 0},
- {FzName: ts + 29252 /* "hexio_write" */, FxProc: 0},
- {FzName: ts + 29264 /* "hexio_get_int" */, FxProc: 0},
- {FzName: ts + 29278 /* "hexio_render_int..." */, FxProc: 0},
- {FzName: ts + 29297 /* "hexio_render_int..." */, FxProc: 0},
- {FzName: ts + 29316 /* "utf8_to_utf8" */, FxProc: 0},
- {FzName: ts + 29329 /* "read_fts3varint" */, FxProc: 0},
- {FzName: ts + 29345 /* "make_fts3record" */, FxProc: 0},
+ {FzName: ts + 31333 /* "hexio_read" */, FxProc: 0},
+ {FzName: ts + 31344 /* "hexio_write" */, FxProc: 0},
+ {FzName: ts + 31356 /* "hexio_get_int" */, FxProc: 0},
+ {FzName: ts + 31370 /* "hexio_render_int..." */, FxProc: 0},
+ {FzName: ts + 31389 /* "hexio_render_int..." */, FxProc: 0},
+ {FzName: ts + 31408 /* "utf8_to_utf8" */, FxProc: 0},
+ {FzName: ts + 31421 /* "read_fts3varint" */, FxProc: 0},
+ {FzName: ts + 31437 /* "make_fts3record" */, FxProc: 0},
} /* test_hexio.c:450:5 */
// end block for C++
@@ -57167,155 +61911,174 @@ type Wrapped = struct {
var wrapped Wrapped /* test_init.c:47:3: */
-func wrMemInit(tls *crt.TLS, pAppData uintptr) int32 { /* test_init.c:49:12: */
+func wrMemInit(tls *libc.TLS, pAppData uintptr) int32 { /* test_init.c:49:12: */
var rc int32
if wrapped.Fmem_fail != 0 {
rc = 1
} else {
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 40 /* &.xInit */))))(tls, wrapped.Fmem.FpAppData)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 40 /* &.xInit */))))(tls, wrapped.Fmem.FpAppData)
}
if rc == 0 {
wrapped.Fmem_init = 1
}
return rc
}
-func wrMemShutdown(tls *crt.TLS, pAppData uintptr) { /* test_init.c:61:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 48 /* &.xShutdown */))))(tls, wrapped.Fmem.FpAppData)
+func wrMemShutdown(tls *libc.TLS, pAppData uintptr) { /* test_init.c:61:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 48 /* &.xShutdown */))))(tls, wrapped.Fmem.FpAppData)
wrapped.Fmem_init = 0
}
-func wrMemMalloc(tls *crt.TLS, n int32) uintptr { /* test_init.c:65:13: */
- return (*(*func(*crt.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ /* &.xMalloc */))))(tls, n)
+func wrMemMalloc(tls *libc.TLS, n int32) uintptr { /* test_init.c:65:13: */
+ return (*(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ /* &.xMalloc */))))(tls, n)
}
-func wrMemFree(tls *crt.TLS, p uintptr) { /* test_init.c:66:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 8 /* &.xFree */))))(tls, p)
+func wrMemFree(tls *libc.TLS, p uintptr) { /* test_init.c:66:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 8 /* &.xFree */))))(tls, p)
}
-func wrMemRealloc(tls *crt.TLS, p uintptr, n int32) uintptr { /* test_init.c:67:13: */
- return (*(*func(*crt.TLS, uintptr, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 16 /* &.xRealloc */))))(tls, p, n)
+func wrMemRealloc(tls *libc.TLS, p uintptr, n int32) uintptr { /* test_init.c:67:13: */
+ return (*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 16 /* &.xRealloc */))))(tls, p, n)
}
-func wrMemSize(tls *crt.TLS, p uintptr) int32 { /* test_init.c:68:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 24 /* &.xSize */))))(tls, p)
+func wrMemSize(tls *libc.TLS, p uintptr) int32 { /* test_init.c:68:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 24 /* &.xSize */))))(tls, p)
}
-func wrMemRoundup(tls *crt.TLS, n int32) int32 { /* test_init.c:69:12: */
- return (*(*func(*crt.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 32 /* &.xRoundup */))))(tls, n)
+func wrMemRoundup(tls *libc.TLS, n int32) int32 { /* test_init.c:69:12: */
+ return (*(*func(*libc.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 104 /* &.mem */ + 32 /* &.xRoundup */))))(tls, n)
}
-func wrMutexInit(tls *crt.TLS) int32 { /* test_init.c:72:12: */
+func wrMutexInit(tls *libc.TLS) int32 { /* test_init.c:72:12: */
var rc int32
if wrapped.Fmutex_fail != 0 {
rc = 1
} else {
- rc = (*(*func(*crt.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ /* &.xMutexInit */))))(tls)
+ rc = (*(*func(*libc.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ /* &.xMutexInit */))))(tls)
}
if rc == 0 {
wrapped.Fmutex_init = 1
}
return rc
}
-func wrMutexEnd(tls *crt.TLS) int32 { /* test_init.c:84:12: */
- (*(*func(*crt.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 8 /* &.xMutexEnd */))))(tls)
+func wrMutexEnd(tls *libc.TLS) int32 { /* test_init.c:84:12: */
+ (*(*func(*libc.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 8 /* &.xMutexEnd */))))(tls)
wrapped.Fmutex_init = 0
return 0
}
-func wrMutexAlloc(tls *crt.TLS, e int32) uintptr { /* test_init.c:89:22: */
- return (*(*func(*crt.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 16 /* &.xMutexAlloc */))))(tls, e)
+func wrMutexAlloc(tls *libc.TLS, e int32) uintptr { /* test_init.c:89:22: */
+ return (*(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 16 /* &.xMutexAlloc */))))(tls, e)
}
-func wrMutexFree(tls *crt.TLS, p uintptr) { /* test_init.c:92:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 24 /* &.xMutexFree */))))(tls, p)
+func wrMutexFree(tls *libc.TLS, p uintptr) { /* test_init.c:92:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 24 /* &.xMutexFree */))))(tls, p)
}
-func wrMutexEnter(tls *crt.TLS, p uintptr) { /* test_init.c:95:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 32 /* &.xMutexEnter */))))(tls, p)
+func wrMutexEnter(tls *libc.TLS, p uintptr) { /* test_init.c:95:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 32 /* &.xMutexEnter */))))(tls, p)
}
-func wrMutexTry(tls *crt.TLS, p uintptr) int32 { /* test_init.c:98:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 40 /* &.xMutexTry */))))(tls, p)
+func wrMutexTry(tls *libc.TLS, p uintptr) int32 { /* test_init.c:98:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 40 /* &.xMutexTry */))))(tls, p)
}
-func wrMutexLeave(tls *crt.TLS, p uintptr) { /* test_init.c:101:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 48 /* &.xMutexLeave */))))(tls, p)
+func wrMutexLeave(tls *libc.TLS, p uintptr) { /* test_init.c:101:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 48 /* &.xMutexLeave */))))(tls, p)
}
-func wrMutexHeld(tls *crt.TLS, p uintptr) int32 { /* test_init.c:104:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 56 /* &.xMutexHeld */))))(tls, p)
+func wrMutexHeld(tls *libc.TLS, p uintptr) int32 { /* test_init.c:104:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 56 /* &.xMutexHeld */))))(tls, p)
}
-func wrMutexNotheld(tls *crt.TLS, p uintptr) int32 { /* test_init.c:107:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 64 /* &.xMutexNotheld */))))(tls, p)
+func wrMutexNotheld(tls *libc.TLS, p uintptr) int32 { /* test_init.c:107:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) + 168 /* &.mutex */ + 64 /* &.xMutexNotheld */))))(tls, p)
}
-func wrPCacheInit(tls *crt.TLS, pArg uintptr) int32 { /* test_init.c:113:12: */
+func wrPCacheInit(tls *libc.TLS, pArg uintptr) int32 { /* test_init.c:113:12: */
var rc int32
if wrapped.Fpcache_fail != 0 {
rc = 1
} else {
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 16 /* &.xInit */))))(tls, wrapped.Fpcache.FpArg)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 16 /* &.xInit */))))(tls, wrapped.Fpcache.FpArg)
}
if rc == 0 {
wrapped.Fpcache_init = 1
}
return rc
}
-func wrPCacheShutdown(tls *crt.TLS, pArg uintptr) { /* test_init.c:125:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 24 /* &.xShutdown */))))(tls, wrapped.Fpcache.FpArg)
+func wrPCacheShutdown(tls *libc.TLS, pArg uintptr) { /* test_init.c:125:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 24 /* &.xShutdown */))))(tls, wrapped.Fpcache.FpArg)
wrapped.Fpcache_init = 0
}
-func wrPCacheCreate(tls *crt.TLS, a int32, b int32, c int32) uintptr { /* test_init.c:130:23: */
- return (*(*func(*crt.TLS, int32, int32, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 32 /* &.xCreate */))))(tls, a, b, c)
+func wrPCacheCreate(tls *libc.TLS, a int32, b int32, c int32) uintptr { /* test_init.c:130:23: */
+ return (*(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 32 /* &.xCreate */))))(tls, a, b, c)
}
-func wrPCacheCachesize(tls *crt.TLS, p uintptr, n int32) { /* test_init.c:133:13: */
- (*(*func(*crt.TLS, uintptr, int32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 40 /* &.xCachesize */))))(tls, p, n)
+func wrPCacheCachesize(tls *libc.TLS, p uintptr, n int32) { /* test_init.c:133:13: */
+ (*(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 40 /* &.xCachesize */))))(tls, p, n)
}
-func wrPCachePagecount(tls *crt.TLS, p uintptr) int32 { /* test_init.c:136:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 48 /* &.xPagecount */))))(tls, p)
+func wrPCachePagecount(tls *libc.TLS, p uintptr) int32 { /* test_init.c:136:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 48 /* &.xPagecount */))))(tls, p)
}
-func wrPCacheFetch(tls *crt.TLS, p uintptr, a uint32, b int32) uintptr { /* test_init.c:139:28: */
- return (*(*func(*crt.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 56 /* &.xFetch */))))(tls, p, a, b)
+func wrPCacheFetch(tls *libc.TLS, p uintptr, a uint32, b int32) uintptr { /* test_init.c:139:28: */
+ return (*(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 56 /* &.xFetch */))))(tls, p, a, b)
}
-func wrPCacheUnpin(tls *crt.TLS, p uintptr, a uintptr, b int32) { /* test_init.c:142:13: */
- (*(*func(*crt.TLS, uintptr, uintptr, int32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 64 /* &.xUnpin */))))(tls, p, a, b)
+func wrPCacheUnpin(tls *libc.TLS, p uintptr, a uintptr, b int32) { /* test_init.c:142:13: */
+ (*(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 64 /* &.xUnpin */))))(tls, p, a, b)
}
-func wrPCacheRekey(tls *crt.TLS, p uintptr, a uintptr, b uint32, c uint32) { /* test_init.c:145:13: */
- (*(*func(*crt.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 72 /* &.xRekey */))))(tls, p, a, b, c)
+func wrPCacheRekey(tls *libc.TLS, p uintptr, a uintptr, b uint32, c uint32) { /* test_init.c:145:13: */
+ (*(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 72 /* &.xRekey */))))(tls, p, a, b, c)
}
-func wrPCacheTruncate(tls *crt.TLS, p uintptr, a uint32) { /* test_init.c:153:13: */
- (*(*func(*crt.TLS, uintptr, uint32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 80 /* &.xTruncate */))))(tls, p, a)
+func wrPCacheTruncate(tls *libc.TLS, p uintptr, a uint32) { /* test_init.c:153:13: */
+ (*(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 80 /* &.xTruncate */))))(tls, p, a)
}
-func wrPCacheDestroy(tls *crt.TLS, p uintptr) { /* test_init.c:156:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 88 /* &.xDestroy */))))(tls, p)
+func wrPCacheDestroy(tls *libc.TLS, p uintptr) { /* test_init.c:156:13: */
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */ + 88 /* &.xDestroy */))))(tls, p)
}
-func installInitWrappers(tls *crt.TLS) { /* test_init.c:160:13: */
+func installInitWrappers(tls *libc.TLS) { /* test_init.c:160:13: */
bp := tls.Alloc(288)
defer tls.Free(288)
- *(*sqlite3_mutex_methods)(unsafe.Pointer(bp + 48 /* mutexmethods */)) = sqlite3_mutex_methods{FxMutexInit: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) int32 }{wrMutexInit})), FxMutexEnd: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) int32 }{wrMutexEnd})), FxMutexAlloc: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, int32) uintptr }{wrMutexAlloc})), FxMutexFree: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrMutexFree})), FxMutexEnter: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrMutexEnter})), FxMutexTry: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrMutexTry})), FxMutexLeave: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrMutexLeave})), FxMutexHeld: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrMutexHeld})), FxMutexNotheld: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrMutexNotheld}))}
- *(*sqlite3_pcache_methods2)(unsafe.Pointer(bp + 184 /* pcachemethods */)) = sqlite3_pcache_methods2{FiVersion: 1, FpArg: uintptr(0), FxInit: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrPCacheInit})), FxShutdown: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrPCacheShutdown})), FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, int32, int32) uintptr
+ *(*sqlite3_mutex_methods)(unsafe.Pointer(bp + 48 /* mutexmethods */)) = sqlite3_mutex_methods{FxMutexInit: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{wrMutexInit})), FxMutexEnd: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{wrMutexEnd})), FxMutexAlloc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, int32) uintptr
+ }{wrMutexAlloc})), FxMutexFree: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrMutexFree})), FxMutexEnter: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrMutexEnter})), FxMutexTry: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrMutexTry})), FxMutexLeave: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrMutexLeave})), FxMutexHeld: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrMutexHeld})), FxMutexNotheld: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrMutexNotheld})),
+ }
+ *(*sqlite3_pcache_methods2)(unsafe.Pointer(bp + 184 /* pcachemethods */)) = sqlite3_pcache_methods2{FiVersion: 1, FpArg: uintptr(0), FxInit: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrPCacheInit})), FxShutdown: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrPCacheShutdown})), FxCreate: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, int32, int32, int32) uintptr
}{wrPCacheCreate})), FxCachesize: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32)
- }{wrPCacheCachesize})), FxPagecount: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrPCachePagecount})), FxFetch: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uint32, int32) uintptr
+ f func(*libc.TLS, uintptr, int32)
+ }{wrPCacheCachesize})), FxPagecount: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrPCachePagecount})), FxFetch: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uint32, int32) uintptr
}{wrPCacheFetch})), FxUnpin: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32)
+ f func(*libc.TLS, uintptr, uintptr, int32)
}{wrPCacheUnpin})), FxRekey: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uint32, uint32)
+ f func(*libc.TLS, uintptr, uintptr, uint32, uint32)
}{wrPCacheRekey})), FxTruncate: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uint32)
- }{wrPCacheTruncate})), FxDestroy: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrPCacheDestroy})),
+ f func(*libc.TLS, uintptr, uint32)
+ }{wrPCacheTruncate})), FxDestroy: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrPCacheDestroy})),
}
- *(*sqlite3_mem_methods)(unsafe.Pointer(bp + 120 /* memmethods */)) = sqlite3_mem_methods{FxMalloc: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, int32) uintptr }{wrMemMalloc})), FxFree: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrMemFree})), FxRealloc: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{wrMemRealloc})), FxSize: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrMemSize})), FxRoundup: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, int32) int32 }{wrMemRoundup})), FxInit: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{wrMemInit})), FxShutdown: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{wrMemShutdown})), FpAppData: uintptr(0),
+ *(*sqlite3_mem_methods)(unsafe.Pointer(bp + 120 /* memmethods */)) = sqlite3_mem_methods{FxMalloc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, int32) uintptr
+ }{wrMemMalloc})), FxFree: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrMemFree})), FxRealloc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{wrMemRealloc})), FxSize: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrMemSize})), FxRoundup: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, int32) int32 }{wrMemRoundup})), FxInit: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{wrMemInit})), FxShutdown: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{wrMemShutdown})), FpAppData: uintptr(0),
}
- crt.Xmemset(tls, uintptr(unsafe.Pointer(&wrapped)), 0, uint64(unsafe.Sizeof(wrapped)))
+ libc.Xmemset(tls, uintptr(unsafe.Pointer(&wrapped)), 0, uint64(unsafe.Sizeof(wrapped)))
sqlite3.Xsqlite3_shutdown(tls)
- sqlite3.Xsqlite3_config(tls, 11, crt.VaList(bp, (uintptr(unsafe.Pointer(&wrapped))+168 /* &.mutex */)))
- sqlite3.Xsqlite3_config(tls, 5, crt.VaList(bp+8, (uintptr(unsafe.Pointer(&wrapped))+104 /* &.mem */)))
- sqlite3.Xsqlite3_config(tls, 19, crt.VaList(bp+16, (uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */)))
- sqlite3.Xsqlite3_config(tls, 10, crt.VaList(bp+24, bp+48 /* &mutexmethods */))
- sqlite3.Xsqlite3_config(tls, 4, crt.VaList(bp+32, bp+120 /* &memmethods */))
- sqlite3.Xsqlite3_config(tls, 18, crt.VaList(bp+40, bp+184 /* &pcachemethods */))
+ sqlite3.Xsqlite3_config(tls, 11, libc.VaList(bp, (uintptr(unsafe.Pointer(&wrapped))+168 /* &.mutex */)))
+ sqlite3.Xsqlite3_config(tls, 5, libc.VaList(bp+8, (uintptr(unsafe.Pointer(&wrapped))+104 /* &.mem */)))
+ sqlite3.Xsqlite3_config(tls, 19, libc.VaList(bp+16, (uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */)))
+ sqlite3.Xsqlite3_config(tls, 10, libc.VaList(bp+24, bp+48 /* &mutexmethods */))
+ sqlite3.Xsqlite3_config(tls, 4, libc.VaList(bp+32, bp+120 /* &memmethods */))
+ sqlite3.Xsqlite3_config(tls, 18, libc.VaList(bp+40, bp+184 /* &pcachemethods */))
}
-func init_wrapper_install(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:191:26: */
+func init_wrapper_install(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:191:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -57323,21 +62086,21 @@ func init_wrapper_install(tls *crt.TLS, clientData ClientData, interp uintptr, o
installInitWrappers(tls)
for i = 1; i < objc; i++ {
var z uintptr = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)))
- if crt.Xstrcmp(tls, z, ts+29361 /* "mem" */) == 0 {
+ if libc.Xstrcmp(tls, z, ts+31453 /* "mem" */) == 0 {
wrapped.Fmem_fail = 1
- } else if crt.Xstrcmp(tls, z, ts+25895 /* "mutex" */) == 0 {
+ } else if libc.Xstrcmp(tls, z, ts+27987 /* "mutex" */) == 0 {
wrapped.Fmutex_fail = 1
- } else if crt.Xstrcmp(tls, z, ts+29365 /* "pcache" */) == 0 {
+ } else if libc.Xstrcmp(tls, z, ts+31457 /* "pcache" */) == 0 {
wrapped.Fpcache_fail = 1
} else {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29372 /* "Unknown argument..." */, z, ts+9801 /* "\"" */))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31464 /* "Unknown argument..." */, z, ts+11456 /* "\"" */))
return 1
}
}
return 0
}
-func init_wrapper_uninstall(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:215:26: */
+func init_wrapper_uninstall(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:215:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -57347,13 +62110,13 @@ func init_wrapper_uninstall(tls *crt.TLS, clientData ClientData, interp uintptr,
}
sqlite3.Xsqlite3_shutdown(tls)
- sqlite3.Xsqlite3_config(tls, 10, crt.VaList(bp, (uintptr(unsafe.Pointer(&wrapped))+168 /* &.mutex */)))
- sqlite3.Xsqlite3_config(tls, 4, crt.VaList(bp+8, (uintptr(unsafe.Pointer(&wrapped))+104 /* &.mem */)))
- sqlite3.Xsqlite3_config(tls, 18, crt.VaList(bp+16, (uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */)))
+ sqlite3.Xsqlite3_config(tls, 10, libc.VaList(bp, (uintptr(unsafe.Pointer(&wrapped))+168 /* &.mutex */)))
+ sqlite3.Xsqlite3_config(tls, 4, libc.VaList(bp+8, (uintptr(unsafe.Pointer(&wrapped))+104 /* &.mem */)))
+ sqlite3.Xsqlite3_config(tls, 18, libc.VaList(bp+16, (uintptr(unsafe.Pointer(&wrapped)) /* &.pcache */)))
return 0
}
-func init_wrapper_clear(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:233:26: */
+func init_wrapper_clear(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:233:26: */
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
return 1
@@ -57365,7 +62128,7 @@ func init_wrapper_clear(tls *crt.TLS, clientData ClientData, interp uintptr, obj
return 0
}
-func init_wrapper_query(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:250:26: */
+func init_wrapper_query(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_init.c:250:26: */
var pRet uintptr
if objc != 1 {
@@ -57375,40 +62138,40 @@ func init_wrapper_query(tls *crt.TLS, clientData ClientData, interp uintptr, obj
pRet = tcl.XTcl_NewObj(tls)
if wrapped.Fmutex_init != 0 {
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+25895 /* "mutex" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+27987 /* "mutex" */, -1))
}
if wrapped.Fmem_init != 0 {
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+29361 /* "mem" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+31453 /* "mem" */, -1))
}
if wrapped.Fpcache_init != 0 {
- tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+29365 /* "pcache" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pRet, tcl.XTcl_NewStringObj(tls, ts+31457 /* "pcache" */, -1))
}
tcl.XTcl_SetObjResult(tls, interp, pRet)
return 0
}
-func Sqlitetest_init_Init(tls *crt.TLS, interp uintptr) int32 { /* test_init.c:278:5: */
+func Sqlitetest_init_Init(tls *libc.TLS, interp uintptr) int32 { /* test_init.c:278:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd8)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd9)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd8[i].FzName, aObjCmd8[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd9[i].FzName, aObjCmd9[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aObjCmd8 = [4]struct {
+var aObjCmd9 = [4]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 29392 /* "init_wrapper_ins..." */, FxProc: 0},
- {FzName: ts + 29413 /* "init_wrapper_que..." */, FxProc: 0},
- {FzName: ts + 29432 /* "init_wrapper_uni..." */, FxProc: 0},
- {FzName: ts + 29455 /* "init_wrapper_cle..." */, FxProc: 0},
+ {FzName: ts + 31484 /* "init_wrapper_ins..." */, FxProc: 0},
+ {FzName: ts + 31505 /* "init_wrapper_que..." */, FxProc: 0},
+ {FzName: ts + 31524 /* "init_wrapper_uni..." */, FxProc: 0},
+ {FzName: ts + 31547 /* "init_wrapper_cle..." */, FxProc: 0},
} /* test_init.c:282:5 */
//
@@ -57458,41 +62221,41 @@ type intarray_cursor = intarray_cursor1 /* test_intarray.c:42:32 */
// None of this works unless we have virtual tables.
// Free an sqlite3_intarray object.
-func intarrayFree(tls *crt.TLS, p uintptr) { /* test_intarray.c:64:13: */
+func intarrayFree(tls *libc.TLS, p uintptr) { /* test_intarray.c:64:13: */
if (*sqlite3_intarray)(unsafe.Pointer(p)).FxFree != 0 {
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((p + 16 /* &.xFree */))))(tls, (*sqlite3_intarray)(unsafe.Pointer(p)).Fa)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((p + 16 /* &.xFree */))))(tls, (*sqlite3_intarray)(unsafe.Pointer(p)).Fa)
}
sqlite3.Xsqlite3_free(tls, p)
}
// Table destructor for the intarray module.
-func intarrayDestroy(tls *crt.TLS, p uintptr) int32 { /* test_intarray.c:74:12: */
+func intarrayDestroy(tls *libc.TLS, p uintptr) int32 { /* test_intarray.c:74:12: */
var pVtab uintptr = p
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Table constructor for the intarray module.
-func intarrayCreate(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_intarray.c:83:12: */
+func intarrayCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_intarray.c:83:12: */
var rc int32 = 7
var pVtab uintptr = sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(intarray_vtab{})))
if pVtab != 0 {
- crt.Xmemset(tls, pVtab, 0, uint64(unsafe.Sizeof(intarray_vtab{})))
+ libc.Xmemset(tls, pVtab, 0, uint64(unsafe.Sizeof(intarray_vtab{})))
(*intarray_vtab)(unsafe.Pointer(pVtab)).FpContent = pAux
- rc = sqlite3.Xsqlite3_declare_vtab(tls, db, ts+29474 /* "CREATE TABLE x(v..." */)
+ rc = sqlite3.Xsqlite3_declare_vtab(tls, db, ts+31566 /* "CREATE TABLE x(v..." */)
}
*(*uintptr)(unsafe.Pointer(ppVtab)) = pVtab
return rc
}
// Open a new cursor on the intarray table.
-func intarrayOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_intarray.c:106:12: */
+func intarrayOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_intarray.c:106:12: */
var rc int32 = 7
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(intarray_cursor{})))
if pCur != 0 {
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(intarray_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(intarray_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = pCur
rc = 0
}
@@ -57500,14 +62263,14 @@ func intarrayOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test
}
// Close a intarray table cursor.
-func intarrayClose(tls *crt.TLS, cur uintptr) int32 { /* test_intarray.c:121:12: */
+func intarrayClose(tls *libc.TLS, cur uintptr) int32 { /* test_intarray.c:121:12: */
var pCur uintptr = cur
sqlite3.Xsqlite3_free(tls, pCur)
return 0
}
// Retrieve a column of data.
-func intarrayColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_intarray.c:130:12: */
+func intarrayColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_intarray.c:130:12: */
var pCur uintptr = cur
var pVtab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
if ((*intarray_cursor)(unsafe.Pointer(pCur)).Fi >= 0) && ((*intarray_cursor)(unsafe.Pointer(pCur)).Fi < (*sqlite3_intarray)(unsafe.Pointer((*intarray_vtab)(unsafe.Pointer(pVtab)).FpContent)).Fn) {
@@ -57517,34 +62280,34 @@ func intarrayColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /*
}
// Retrieve the current rowid.
-func intarrayRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_intarray.c:142:12: */
+func intarrayRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test_intarray.c:142:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite_int64((*intarray_cursor)(unsafe.Pointer(pCur)).Fi)
return 0
}
-func intarrayEof(tls *crt.TLS, cur uintptr) int32 { /* test_intarray.c:148:12: */
+func intarrayEof(tls *libc.TLS, cur uintptr) int32 { /* test_intarray.c:148:12: */
var pCur uintptr = cur
var pVtab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(cur)).FpVtab
- return (crt.Bool32((*intarray_cursor)(unsafe.Pointer(pCur)).Fi >= (*sqlite3_intarray)(unsafe.Pointer((*intarray_vtab)(unsafe.Pointer(pVtab)).FpContent)).Fn))
+ return (libc.Bool32((*intarray_cursor)(unsafe.Pointer(pCur)).Fi >= (*sqlite3_intarray)(unsafe.Pointer((*intarray_vtab)(unsafe.Pointer(pVtab)).FpContent)).Fn))
}
// Advance the cursor to the next row.
-func intarrayNext(tls *crt.TLS, cur uintptr) int32 { /* test_intarray.c:157:12: */
+func intarrayNext(tls *libc.TLS, cur uintptr) int32 { /* test_intarray.c:157:12: */
var pCur uintptr = cur
(*intarray_cursor)(unsafe.Pointer(pCur)).Fi++
return 0
}
// Reset a intarray table cursor.
-func intarrayFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_intarray.c:166:12: */
+func intarrayFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_intarray.c:166:12: */
var pCur uintptr = pVtabCursor
(*intarray_cursor)(unsafe.Pointer(pCur)).Fi = 0
return 0
}
// Analyse the WHERE condition.
-func intarrayBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_intarray.c:179:12: */
+func intarrayBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_intarray.c:179:12: */
return 0
}
@@ -57581,24 +62344,24 @@ uintptr(0), // xRename
// Destroy the intarray object by dropping the virtual table. If not done
// explicitly by the application, the virtual table will be dropped implicitly
// by the system when the database connection is closed.
-func sqlite3_intarray_create(tls *crt.TLS, db uintptr, zName uintptr, ppReturn uintptr) int32 { /* test_intarray.c:223:16: */
+func sqlite3_intarray_create(tls *libc.TLS, db uintptr, zName uintptr, ppReturn uintptr) int32 { /* test_intarray.c:223:16: */
bp := tls.Alloc(16)
defer tls.Free(16)
var rc int32 = 0
var p uintptr
- *(*uintptr)(unsafe.Pointer(ppReturn)) = crt.AssignUintptr(&p, sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(sqlite3_intarray{}))))
+ *(*uintptr)(unsafe.Pointer(ppReturn)) = libc.AssignUintptr(&p, sqlite3.Xsqlite3_malloc64(tls, uint64(unsafe.Sizeof(sqlite3_intarray{}))))
if p == uintptr(0) {
return 7
}
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(sqlite3_intarray{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(sqlite3_intarray{})))
rc = sqlite3.Xsqlite3_create_module_v2(tls, db, zName, uintptr(unsafe.Pointer(&intarrayModule)), p,
- *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{intarrayFree})))
+ *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{intarrayFree})))
if rc == 0 {
var zSql uintptr
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+29516, /* "CREATE VIRTUAL T..." */
- crt.VaList(bp, zName, zName))
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+31608, /* "CREATE VIRTUAL T..." */
+ libc.VaList(bp, zName, zName))
rc = sqlite3.Xsqlite3_exec(tls, db, zSql, uintptr(0), uintptr(0), uintptr(0))
sqlite3.Xsqlite3_free(tls, zSql)
}
@@ -57610,9 +62373,9 @@ func sqlite3_intarray_create(tls *crt.TLS, db uintptr, zName uintptr, ppReturn u
// The array of integers bound must be unchanged for the duration of
// any query against the corresponding virtual table. If the integer
// array does change or is deallocated undefined behavior will result.
-func sqlite3_intarray_bind(tls *crt.TLS, pIntArray uintptr, nElements int32, aElements uintptr, xFree uintptr) int32 { /* test_intarray.c:257:16: */
+func sqlite3_intarray_bind(tls *libc.TLS, pIntArray uintptr, nElements int32, aElements uintptr, xFree uintptr) int32 { /* test_intarray.c:257:16: */
if (*sqlite3_intarray)(unsafe.Pointer(pIntArray)).FxFree != 0 {
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((pIntArray + 16 /* &.xFree */))))(tls, (*sqlite3_intarray)(unsafe.Pointer(pIntArray)).Fa)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((pIntArray + 16 /* &.xFree */))))(tls, (*sqlite3_intarray)(unsafe.Pointer(pIntArray)).Fa)
}
(*sqlite3_intarray)(unsafe.Pointer(pIntArray)).Fn = nElements
(*sqlite3_intarray)(unsafe.Pointer(pIntArray)).Fa = aElements
@@ -57624,7 +62387,7 @@ func sqlite3_intarray_bind(tls *crt.TLS, pIntArray uintptr, nElements int32, aEl
//
// Invoke the sqlite3_intarray_create interface. A string that becomes
// the first parameter to sqlite3_intarray_bind.
-func test_intarray_create(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_intarray.c:300:26: */
+func test_intarray_create(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_intarray.c:300:26: */
bp := tls.Alloc(148)
defer tls.Free(148)
@@ -57646,18 +62409,18 @@ func test_intarray_create(tls *crt.TLS, clientData ClientData, interp uintptr, o
zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
rc = sqlite3_intarray_create(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), zName, bp+40 /* &pArray */)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0)))
return 1
}
sqlite3TestMakePointerStr(tls, interp, bp+48 /* &zPtr[0] */, *(*uintptr)(unsafe.Pointer(bp + 40 /* pArray */)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, bp+48 /* &zPtr[0] */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, bp+48 /* &zPtr[0] */, uintptr(0)))
return 0
}
// sqlite3_intarray_bind INTARRAY ?VALUE ...?
//
// Invoke the sqlite3_intarray_bind interface on the given array of integers.
-func test_intarray_bind(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_intarray.c:335:26: */
+func test_intarray_bind(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_intarray.c:335:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -57668,14 +62431,14 @@ func test_intarray_bind(tls *crt.TLS, clientData ClientData, interp uintptr, obj
var a uintptr
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29554 /* "INTARRAY" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31646 /* "INTARRAY" */)
return 1
}
pArray = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
n = (objc - 2)
a = sqlite3.Xsqlite3_malloc64(tls, (uint64(uint64(unsafe.Sizeof(sqlite3_int64(0))) * uint64(n))))
if a == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29563 /* "SQLITE_NOMEM" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31655 /* "SQLITE_NOMEM" */, uintptr(0)))
return 1
}
for i = 0; i < n; i++ {
@@ -57683,35 +62446,35 @@ func test_intarray_bind(tls *crt.TLS, clientData ClientData, interp uintptr, obj
tcl.XTcl_GetWideIntFromObj(tls, uintptr(0), *(*uintptr)(unsafe.Pointer(objv + uintptr((i+2))*8)), bp+32 /* &x */)
*(*sqlite3_int64)(unsafe.Pointer(a + uintptr(i)*8)) = sqlite3_int64(*(*Tcl_WideInt)(unsafe.Pointer(bp + 32 /* x */)))
}
- rc = sqlite3_intarray_bind(tls, pArray, n, a, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ rc = sqlite3_intarray_bind(tls, pArray, n, a, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0)))
return 1
}
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetestintarray_Init(tls *crt.TLS, interp uintptr) int32 { /* test_intarray.c:375:5: */
+func Sqlitetestintarray_Init(tls *libc.TLS, interp uintptr) int32 { /* test_intarray.c:375:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd9)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd10)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd9[i].FzName,
- aObjCmd9[i].FxProc, aObjCmd9[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd10[i].FzName,
+ aObjCmd10[i].FxProc, aObjCmd10[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd9 = [2]struct {
+var aObjCmd10 = [2]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 29576 /* "sqlite3_intarray..." */, FxProc: 0, FclientData: uintptr(0)},
- {FzName: ts + 29600 /* "sqlite3_intarray..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 31668 /* "sqlite3_intarray..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 31692 /* "sqlite3_intarray..." */, FxProc: 0, FclientData: uintptr(0)},
} /* test_intarray.c:380:5 */
// Maximum pathname length supported by the jt backend.
@@ -57723,8 +62486,8 @@ type jt_file1 = struct {
FzName uintptr
Fflags int32
FeLock int32
- FnPage u321
- FnPagesize u321
+ FnPage u322
+ FnPagesize u322
FpWritable uintptr
FaCksum uintptr
FnSync int32
@@ -57743,7 +62506,7 @@ var jt_vfs = sqlite3_vfs{FiVersion: 2, FszOsFile: // iVersion
int32(unsafe.Sizeof(jt_file{})), FmxPathname:// szOsFile
512, FpNext:// mxPathname
uintptr(0), FzName:// pNext
-ts + 29622, /* "jt" */ FpAppData:// zName
+ts + 31714, /* "jt" */ FpAppData:// zName
uintptr(0), FxOpen:// pAppData
0, FxDelete:// xOpen
0, FxAccess:// xDelete
@@ -57784,19 +62547,19 @@ var g2 = JtGlobal{FpVfs: uintptr(0), FpList: uintptr(0)} /* test_journal.c:207:2
// Functions to obtain and relinquish a mutex to protect g.pList. The
// STATIC_PRNG mutex is reused, purely for the sake of convenience.
-func enterJtMutex(tls *crt.TLS) { /* test_journal.c:213:13: */
+func enterJtMutex(tls *libc.TLS) { /* test_journal.c:213:13: */
sqlite3.Xsqlite3_mutex_enter(tls, sqlite3.Xsqlite3_mutex_alloc(tls, 5))
}
-func leaveJtMutex(tls *crt.TLS) { /* test_journal.c:216:13: */
+func leaveJtMutex(tls *libc.TLS) { /* test_journal.c:216:13: */
sqlite3.Xsqlite3_mutex_leave(tls, sqlite3.Xsqlite3_mutex_alloc(tls, 5))
}
-func stop_ioerr_simulation(tls *crt.TLS, piSave uintptr, piSave2 uintptr) { /* test_journal.c:222:13: */
+func stop_ioerr_simulation(tls *libc.TLS, piSave uintptr, piSave2 uintptr) { /* test_journal.c:222:13: */
*(*int32)(unsafe.Pointer(piSave)) = sqlite3.Xsqlite3_io_error_pending
*(*int32)(unsafe.Pointer(piSave2)) = sqlite3.Xsqlite3_io_error_hit
sqlite3.Xsqlite3_io_error_pending = -1
sqlite3.Xsqlite3_io_error_hit = 0
}
-func start_ioerr_simulation(tls *crt.TLS, iSave int32, iSave2 int32) { /* test_journal.c:228:13: */
+func start_ioerr_simulation(tls *libc.TLS, iSave int32, iSave2 int32) { /* test_journal.c:228:13: */
sqlite3.Xsqlite3_io_error_pending = iSave
sqlite3.Xsqlite3_io_error_hit = iSave2
}
@@ -57804,7 +62567,7 @@ func start_ioerr_simulation(tls *crt.TLS, iSave int32, iSave2 int32) { /* test_j
// The jt_file pointed to by the argument may or may not be a file-handle
// open on a main database file. If it is, and a transaction is currently
// opened on the file, then discard all transaction related data.
-func closeTransaction(tls *crt.TLS, p uintptr) { /* test_journal.c:238:13: */
+func closeTransaction(tls *libc.TLS, p uintptr) { /* test_journal.c:238:13: */
sqlite3.Xsqlite3BitvecDestroy(tls, (*jt_file)(unsafe.Pointer(p)).FpWritable)
sqlite3.Xsqlite3_free(tls, (*jt_file)(unsafe.Pointer(p)).FaCksum)
(*jt_file)(unsafe.Pointer(p)).FpWritable = uintptr(0)
@@ -57813,7 +62576,7 @@ func closeTransaction(tls *crt.TLS, p uintptr) { /* test_journal.c:238:13: */
}
// Close an jt-file.
-func jtClose(tls *crt.TLS, pFile uintptr) int32 { /* test_journal.c:249:12: */
+func jtClose(tls *libc.TLS, pFile uintptr) int32 { /* test_journal.c:249:12: */
var pp uintptr
var p uintptr = pFile
@@ -57830,7 +62593,7 @@ func jtClose(tls *crt.TLS, pFile uintptr) int32 { /* test_journal.c:249:12: */
}
// Read data from an jt-file.
-func jtRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_journal.c:267:12: */
+func jtRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_journal.c:267:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsRead(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, zBuf, iAmt, iOfst)
}
@@ -57850,14 +62613,14 @@ func jtRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_
// c) There is currently a reserved lock on the file. This
// condition is waived if the noLock argument is non-zero.
//
-func locateDatabaseHandle(tls *crt.TLS, zJournal uintptr, noLock int32) uintptr { /* test_journal.c:292:16: */
+func locateDatabaseHandle(tls *libc.TLS, zJournal uintptr, noLock int32) uintptr { /* test_journal.c:292:16: */
var pMain uintptr = uintptr(0)
enterJtMutex(tls)
for pMain = g2.FpList; pMain != 0; pMain = (*jt_file)(unsafe.Pointer(pMain)).FpNext {
- var nName int32 = (int32(crt.Xstrlen(tls, zJournal) - crt.Xstrlen(tls, ts+29625 /* "-journal" */)))
+ var nName int32 = (int32(libc.Xstrlen(tls, zJournal) - libc.Xstrlen(tls, ts+31717 /* "-journal" */)))
if (((((*jt_file)(unsafe.Pointer(pMain)).Fflags & 0x00000100) != 0) &&
- (int32(crt.Xstrlen(tls, (*jt_file)(unsafe.Pointer(pMain)).FzName)) == nName)) &&
- (0 == crt.Xmemcmp(tls, (*jt_file)(unsafe.Pointer(pMain)).FzName, zJournal, uint64(nName)))) &&
+ (int32(libc.Xstrlen(tls, (*jt_file)(unsafe.Pointer(pMain)).FzName)) == nName)) &&
+ (0 == libc.Xmemcmp(tls, (*jt_file)(unsafe.Pointer(pMain)).FzName, zJournal, uint64(nName)))) &&
(((*jt_file)(unsafe.Pointer(pMain)).FeLock >= 2) || (noLock != 0)) {
break
}
@@ -57869,17 +62632,17 @@ func locateDatabaseHandle(tls *crt.TLS, zJournal uintptr, noLock int32) uintptr
// Parameter z points to a buffer of 4 bytes in size containing a
// unsigned 32-bit integer stored in big-endian format. Decode the
// integer and return its value.
-func decodeUint32(tls *crt.TLS, z uintptr) u321 { /* test_journal.c:314:12: */
- return (u321((((int32(*(*uint8)(unsafe.Pointer(z + uintptr(0)))) << 24) + (int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))) << 16)) + (int32(*(*uint8)(unsafe.Pointer(z + uintptr(2)))) << 8)) + int32(*(*uint8)(unsafe.Pointer(z + uintptr(3))))))
+func decodeUint32(tls *libc.TLS, z uintptr) u322 { /* test_journal.c:314:12: */
+ return (u322((((int32(*(*uint8)(unsafe.Pointer(z + uintptr(0)))) << 24) + (int32(*(*uint8)(unsafe.Pointer(z + uintptr(1)))) << 16)) + (int32(*(*uint8)(unsafe.Pointer(z + uintptr(2)))) << 8)) + int32(*(*uint8)(unsafe.Pointer(z + uintptr(3))))))
}
// Calculate a checksum from the buffer of length n bytes pointed to
// by parameter z.
-func genCksum(tls *crt.TLS, z uintptr, n int32) u321 { /* test_journal.c:322:12: */
+func genCksum(tls *libc.TLS, z uintptr, n int32) u322 { /* test_journal.c:322:12: */
var i int32
- var cksum u321 = u321(0)
+ var cksum u322 = u322(0)
for i = 0; i < n; i++ {
- cksum = ((cksum + u321(*(*uint8)(unsafe.Pointer(z + uintptr(i))))) + (cksum << 3))
+ cksum = ((cksum + u322(*(*uint8)(unsafe.Pointer(z + uintptr(i))))) + (cksum << 3))
}
return cksum
}
@@ -57891,32 +62654,32 @@ func genCksum(tls *crt.TLS, z uintptr, n int32) u321 { /* test_journal.c:322:12:
//
// SQLITE_OK is returned if the journal-header is successfully
// decoded. Otherwise, SQLITE_ERROR.
-func decodeJournalHdr(tls *crt.TLS, zBuf uintptr, pnRec uintptr, pnPage uintptr, pnSector uintptr, pnPagesize uintptr) int32 { /* test_journal.c:340:12: */
+func decodeJournalHdr(tls *libc.TLS, zBuf uintptr, pnRec uintptr, pnPage uintptr, pnSector uintptr, pnPagesize uintptr) int32 { /* test_journal.c:340:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
*(*[8]uint8)(unsafe.Pointer(bp /* aMagic */)) = [8]uint8{uint8(0xd9), uint8(0xd5), uint8(0x05), uint8(0xf9), uint8(0x20), uint8(0xa1), uint8(0x63), uint8(0xd7)}
- if crt.Xmemcmp(tls, bp /* &aMagic[0] */, zBuf, uint64(8)) != 0 {
+ if libc.Xmemcmp(tls, bp /* &aMagic[0] */, zBuf, uint64(8)) != 0 {
return 1
}
if pnRec != 0 {
- *(*u321)(unsafe.Pointer(pnRec)) = decodeUint32(tls, (zBuf + uintptr(8)))
+ *(*u322)(unsafe.Pointer(pnRec)) = decodeUint32(tls, (zBuf + uintptr(8)))
}
if pnPage != 0 {
- *(*u321)(unsafe.Pointer(pnPage)) = decodeUint32(tls, (zBuf + uintptr(16)))
+ *(*u322)(unsafe.Pointer(pnPage)) = decodeUint32(tls, (zBuf + uintptr(16)))
}
if pnSector != 0 {
- *(*u321)(unsafe.Pointer(pnSector)) = decodeUint32(tls, (zBuf + uintptr(20)))
+ *(*u322)(unsafe.Pointer(pnSector)) = decodeUint32(tls, (zBuf + uintptr(20)))
}
if pnPagesize != 0 {
- *(*u321)(unsafe.Pointer(pnPagesize)) = decodeUint32(tls, (zBuf + uintptr(24)))
+ *(*u322)(unsafe.Pointer(pnPagesize)) = decodeUint32(tls, (zBuf + uintptr(24)))
}
return 0
}
// This function is called when a new transaction is opened, just after
// the first journal-header is written to the journal file.
-func openTransaction(tls *crt.TLS, pMain uintptr, pJournal uintptr) int32 { /* test_journal.c:360:12: */
+func openTransaction(tls *libc.TLS, pMain uintptr, pJournal uintptr) int32 { /* test_journal.c:360:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -57927,13 +62690,13 @@ func openTransaction(tls *crt.TLS, pMain uintptr, pJournal uintptr) int32 { /* t
closeTransaction(tls, pMain)
aData = sqlite3.Xsqlite3_malloc(tls, int32((*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
(*jt_file)(unsafe.Pointer(pMain)).FpWritable = sqlite3.Xsqlite3BitvecCreate(tls, (*jt_file)(unsafe.Pointer(pMain)).FnPage)
- (*jt_file)(unsafe.Pointer(pMain)).FaCksum = sqlite3.Xsqlite3_malloc(tls, (int32(uint64(unsafe.Sizeof(u321(0))) * (uint64((*jt_file)(unsafe.Pointer(pMain)).FnPage + u321(1))))))
+ (*jt_file)(unsafe.Pointer(pMain)).FaCksum = sqlite3.Xsqlite3_malloc(tls, (int32(uint64(unsafe.Sizeof(u322(0))) * (uint64((*jt_file)(unsafe.Pointer(pMain)).FnPage + u322(1))))))
(*jt_file)(unsafe.Pointer(pJournal)).FiMaxOff = int64(0)
if (!(int32((*jt_file)(unsafe.Pointer(pMain)).FpWritable) != 0) || !(int32((*jt_file)(unsafe.Pointer(pMain)).FaCksum) != 0)) || !(aData != 0) {
rc = (10 | (int32(12) << 8))
- } else if (*jt_file)(unsafe.Pointer(pMain)).FnPage > u321(0) {
- var iTrunk u321
+ } else if (*jt_file)(unsafe.Pointer(pMain)).FnPage > u322(0) {
+ var iTrunk u322
// var iSave int32 at bp, 4
// var iSave2 int32 at bp+4, 4
@@ -57944,23 +62707,23 @@ func openTransaction(tls *crt.TLS, pMain uintptr, pJournal uintptr) int32 { /* t
// leaf to the jt_file.pWritable bitvec.
rc = sqlite3.Xsqlite3OsRead(tls, p, aData, int32((*jt_file)(unsafe.Pointer(pMain)).FnPagesize), int64(0))
if rc == 0 {
- var nDbsize u321 = decodeUint32(tls, (aData + uintptr(28)))
- if (nDbsize > u321(0)) && (crt.Xmemcmp(tls, (aData+uintptr(24)), (aData+uintptr(92)), uint64(4)) == 0) {
- var iPg u321
- for iPg = (nDbsize + u321(1)); iPg <= (*jt_file)(unsafe.Pointer(pMain)).FnPage; iPg++ {
+ var nDbsize u322 = decodeUint32(tls, (aData + uintptr(28)))
+ if (nDbsize > u322(0)) && (libc.Xmemcmp(tls, (aData+uintptr(24)), (aData+uintptr(92)), uint64(4)) == 0) {
+ var iPg u322
+ for iPg = (nDbsize + u322(1)); iPg <= (*jt_file)(unsafe.Pointer(pMain)).FnPage; iPg++ {
sqlite3.Xsqlite3BitvecSet(tls, (*jt_file)(unsafe.Pointer(pMain)).FpWritable, iPg)
}
}
}
iTrunk = decodeUint32(tls, (aData + uintptr(32)))
- for (rc == 0) && (iTrunk > u321(0)) {
- var nLeaf u321
- var iLeaf u321
- var iOff sqlite3_int64 = ((i64(iTrunk - u321(1))) * i64((*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
+ for (rc == 0) && (iTrunk > u322(0)) {
+ var nLeaf u322
+ var iLeaf u322
+ var iOff sqlite3_int64 = ((i64(iTrunk - u322(1))) * i64((*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
rc = sqlite3.Xsqlite3OsRead(tls, p, aData, int32((*jt_file)(unsafe.Pointer(pMain)).FnPagesize), iOff)
nLeaf = decodeUint32(tls, (aData + uintptr(4)))
- for iLeaf = u321(0); (rc == 0) && (iLeaf < nLeaf); iLeaf++ {
- var pgno u321 = decodeUint32(tls, (aData + uintptr((u321(8) + (u321(4) * iLeaf)))))
+ for iLeaf = u322(0); (rc == 0) && (iLeaf < nLeaf); iLeaf++ {
+ var pgno u322 = decodeUint32(tls, (aData + uintptr((u322(8) + (u322(4) * iLeaf)))))
sqlite3.Xsqlite3BitvecSet(tls, (*jt_file)(unsafe.Pointer(pMain)).FpWritable, pgno)
}
iTrunk = decodeUint32(tls, aData)
@@ -57975,7 +62738,7 @@ func openTransaction(tls *crt.TLS, pMain uintptr, pJournal uintptr) int32 { /* t
continue
}
rc = sqlite3.Xsqlite3OsRead(tls, (*jt_file)(unsafe.Pointer(pMain)).FpReal, aData, int32((*jt_file)(unsafe.Pointer(pMain)).FnPagesize), iOff)
- *(*u321)(unsafe.Pointer((*jt_file)(unsafe.Pointer(pMain)).FaCksum + uintptr(ii)*4)) = genCksum(tls, aData, int32((*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
+ *(*u322)(unsafe.Pointer((*jt_file)(unsafe.Pointer(pMain)).FaCksum + uintptr(ii)*4)) = genCksum(tls, aData, int32((*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
if ((ii + 1) == int32((*jt_file)(unsafe.Pointer(pMain)).FnPage)) && (rc == (10 | (int32(2) << 8))) {
rc = 0
}
@@ -57992,7 +62755,7 @@ func openTransaction(tls *crt.TLS, pMain uintptr, pJournal uintptr) int32 { /* t
// The first argument to this function is a handle open on a journal file.
// This function reads the journal file and adds the page number for each
// page in the journal to the Bitvec object passed as the second argument.
-func readJournalFile(tls *crt.TLS, p uintptr, pMain uintptr) int32 { /* test_journal.c:433:12: */
+func readJournalFile(tls *libc.TLS, p uintptr, pMain uintptr) int32 { /* test_journal.c:433:12: */
bp := tls.Alloc(52)
defer tls.Free(52)
@@ -58007,18 +62770,18 @@ func readJournalFile(tls *crt.TLS, p uintptr, pMain uintptr) int32 { /* test_jou
// var iSave2 int32 at bp+4, 4
- var cksum u321
+ var cksum u322
_ = cksum
- var pgno u321
- // var nRec u321 at bp+36, 4
+ var pgno u322
+ // var nRec u322 at bp+36, 4
- // var nPage u321 at bp+40, 4
+ // var nPage u322 at bp+40, 4
- // var nSector u321 at bp+44, 4
+ // var nSector u322 at bp+44, 4
- // var nPagesize u321 at bp+48, 4
+ // var nPagesize u322 at bp+48, 4
- var ii u321
+ var ii u322
rc = 0
pReal = (*jt_file)(unsafe.Pointer(p)).FpReal
iOff = int64(0)
@@ -58048,15 +62811,15 @@ __2:
goto finish_rjf
__4:
;
- iOff = iOff + (sqlite3_int64(*(*u321)(unsafe.Pointer(bp + 44 /* nSector */))))
+ iOff = iOff + (sqlite3_int64(*(*u322)(unsafe.Pointer(bp + 44 /* nSector */))))
- if !(*(*u321)(unsafe.Pointer(bp + 36 /* nRec */)) == u321(0)) {
+ if !(*(*u322)(unsafe.Pointer(bp + 36 /* nRec */)) == u322(0)) {
goto __5
}
// A trick. There might be another journal-header immediately
// following this one. In this case, 0 records means 0 records,
// not "read until the end of the file". See also ticket #2565.
- if !(iSize >= (iOff + sqlite3_int64(*(*u321)(unsafe.Pointer(bp + 44 /* nSector */))))) {
+ if !(iSize >= (iOff + sqlite3_int64(*(*u322)(unsafe.Pointer(bp + 44 /* nSector */))))) {
goto __6
}
rc = sqlite3.Xsqlite3OsRead(tls, pReal, bp+8 /* &zBuf[0] */, 28, iOff)
@@ -58068,14 +62831,14 @@ __7:
;
__6:
;
- *(*u321)(unsafe.Pointer(bp + 36 /* nRec */)) = (u321((iSize - iOff) / (sqlite3_int64((*jt_file)(unsafe.Pointer(pMain)).FnPagesize + u321(8)))))
+ *(*u322)(unsafe.Pointer(bp + 36 /* nRec */)) = (u322((iSize - iOff) / (sqlite3_int64((*jt_file)(unsafe.Pointer(pMain)).FnPagesize + u322(8)))))
__5:
;
// Read all the records that follow the journal-header just read.
- ii = u321(0)
+ ii = u322(0)
__8:
- if !(((rc == 0) && (ii < *(*u321)(unsafe.Pointer(bp + 36 /* nRec */)))) && (iOff < iSize)) {
+ if !(((rc == 0) && (ii < *(*u322)(unsafe.Pointer(bp + 36 /* nRec */)))) && (iOff < iSize)) {
goto __10
}
rc = sqlite3.Xsqlite3OsRead(tls, pReal, bp+8 /* &zBuf[0] */, 4, iOff)
@@ -58083,7 +62846,7 @@ __8:
goto __11
}
pgno = decodeUint32(tls, bp+8 /* &zBuf[0] */)
- if !((pgno > u321(0)) && (pgno <= (*jt_file)(unsafe.Pointer(pMain)).FnPage)) {
+ if !((pgno > u322(0)) && (pgno <= (*jt_file)(unsafe.Pointer(pMain)).FnPage)) {
goto __12
}
if !(0 == sqlite3.Xsqlite3BitvecTest(tls, (*jt_file)(unsafe.Pointer(pMain)).FpWritable, pgno)) {
@@ -58101,7 +62864,7 @@ __13:
sqlite3.Xsqlite3BitvecSet(tls, (*jt_file)(unsafe.Pointer(pMain)).FpWritable, pgno)
__12:
;
- iOff = iOff + (sqlite3_int64(u321(8) + (*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
+ iOff = iOff + (sqlite3_int64(u322(8) + (*jt_file)(unsafe.Pointer(pMain)).FnPagesize))
__11:
;
goto __9
@@ -58112,7 +62875,7 @@ __9:
__10:
;
- iOff = (((iOff + (sqlite3_int64(*(*u321)(unsafe.Pointer(bp + 44 /* nSector */)) - u321(1)))) / sqlite3_int64(*(*u321)(unsafe.Pointer(bp + 44 /* nSector */)))) * sqlite3_int64(*(*u321)(unsafe.Pointer(bp + 44 /* nSector */))))
+ iOff = (((iOff + (sqlite3_int64(*(*u322)(unsafe.Pointer(bp + 44 /* nSector */)) - u322(1)))) / sqlite3_int64(*(*u322)(unsafe.Pointer(bp + 44 /* nSector */)))) * sqlite3_int64(*(*u322)(unsafe.Pointer(bp + 44 /* nSector */))))
goto __2
__3:
;
@@ -58130,7 +62893,7 @@ __15:
}
// Write data to an jt-file.
-func jtWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_journal.c:512:12: */
+func jtWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_journal.c:512:12: */
var rc int32
var p uintptr = pFile
if ((*jt_file)(unsafe.Pointer(p)).Fflags & 0x00000800) != 0 {
@@ -58147,7 +62910,7 @@ func jtWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
var z uintptr = zBuf
(*jt_file)(unsafe.Pointer(pMain)).FnPage = decodeUint32(tls, (z + uintptr(16)))
(*jt_file)(unsafe.Pointer(pMain)).FnPagesize = decodeUint32(tls, (z + uintptr(24)))
- if 0 != (crt.AssignInt32(&rc, openTransaction(tls, pMain, p))) {
+ if 0 != (libc.AssignInt32(&rc, openTransaction(tls, pMain, p))) {
return rc
}
}
@@ -58159,11 +62922,11 @@ func jtWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
if (((*jt_file)(unsafe.Pointer(p)).Fflags & 0x00000100) != 0) && ((*jt_file)(unsafe.Pointer(p)).FpWritable != 0) {
if (((iAmt < int32((*jt_file)(unsafe.Pointer(p)).FnPagesize)) &&
- (((*jt_file)(unsafe.Pointer(p)).FnPagesize % u321(iAmt)) == u321(0))) &&
+ (((*jt_file)(unsafe.Pointer(p)).FnPagesize % u322(iAmt)) == u322(0))) &&
(iOfst >= (sqlite_int64(sqlite3.Xsqlite3PendingByte + 512)))) &&
- ((iOfst + sqlite_int64(iAmt)) <= (sqlite_int64(u321(sqlite3.Xsqlite3PendingByte) + (*jt_file)(unsafe.Pointer(p)).FnPagesize))) {
+ ((iOfst + sqlite_int64(iAmt)) <= (sqlite_int64(u322(sqlite3.Xsqlite3PendingByte) + (*jt_file)(unsafe.Pointer(p)).FnPagesize))) {
} else {
- var pgno u321 = (u321((iOfst / sqlite_int64((*jt_file)(unsafe.Pointer(p)).FnPagesize)) + int64(1)))
+ var pgno u322 = (u322((iOfst / sqlite_int64((*jt_file)(unsafe.Pointer(p)).FnPagesize)) + int64(1)))
_ = pgno
// The following assert() statements may fail if this layer is used
@@ -58185,7 +62948,7 @@ func jtWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
}
// Truncate an jt-file.
-func jtTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_journal.c:580:12: */
+func jtTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_journal.c:580:12: */
var p uintptr = pFile
if (((*jt_file)(unsafe.Pointer(p)).Fflags & 0x00000800) != 0) && (size == int64(0)) {
// Truncating a journal file. This is the end of a transaction.
@@ -58193,17 +62956,17 @@ func jtTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_
closeTransaction(tls, pMain)
}
if (((*jt_file)(unsafe.Pointer(p)).Fflags & 0x00000100) != 0) && ((*jt_file)(unsafe.Pointer(p)).FpWritable != 0) {
- var pgno u321
- var locking_page u321 = ((u321(sqlite3.Xsqlite3PendingByte) / (*jt_file)(unsafe.Pointer(p)).FnPagesize) + u321(1))
+ var pgno u322
+ var locking_page u322 = ((u322(sqlite3.Xsqlite3PendingByte) / (*jt_file)(unsafe.Pointer(p)).FnPagesize) + u322(1))
_ = locking_page
- for pgno = (u321((size / sqlite_int64((*jt_file)(unsafe.Pointer(p)).FnPagesize)) + int64(1))); pgno <= (*jt_file)(unsafe.Pointer(p)).FnPage; pgno++ {
+ for pgno = (u322((size / sqlite_int64((*jt_file)(unsafe.Pointer(p)).FnPagesize)) + int64(1))); pgno <= (*jt_file)(unsafe.Pointer(p)).FnPage; pgno++ {
}
}
return sqlite3.Xsqlite3OsTruncate(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, size)
}
// Sync an jt-file.
-func jtSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_journal.c:600:12: */
+func jtSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_journal.c:600:12: */
var p uintptr = pFile
if ((*jt_file)(unsafe.Pointer(p)).Fflags & 0x00000800) != 0 {
@@ -58230,13 +62993,13 @@ func jtSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_journal.c:
}
// Return the current file-size of an jt-file.
-func jtFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_journal.c:630:12: */
+func jtFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_journal.c:630:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsFileSize(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, pSize)
}
// Lock an jt-file.
-func jtLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_journal.c:638:12: */
+func jtLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_journal.c:638:12: */
var rc int32
var p uintptr = pFile
rc = sqlite3.Xsqlite3OsLock(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, eLock)
@@ -58247,7 +63010,7 @@ func jtLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_journal.c:
}
// Unlock an jt-file.
-func jtUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_journal.c:651:12: */
+func jtUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_journal.c:651:12: */
var rc int32
var p uintptr = pFile
rc = sqlite3.Xsqlite3OsUnlock(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, eLock)
@@ -58258,31 +63021,31 @@ func jtUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_journal.
}
// Check if another file-handle holds a RESERVED lock on an jt-file.
-func jtCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_journal.c:664:12: */
+func jtCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_journal.c:664:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsCheckReservedLock(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, pResOut)
}
// File control method. For custom operations on an jt-file.
-func jtFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_journal.c:672:12: */
+func jtFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_journal.c:672:12: */
var p uintptr = pFile
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*jt_file)(unsafe.Pointer(p)).FpReal)).FpMethods + 80 /* &.xFileControl */))))(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, op, pArg)
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*jt_file)(unsafe.Pointer(p)).FpReal)).FpMethods + 80 /* &.xFileControl */))))(tls, (*jt_file)(unsafe.Pointer(p)).FpReal, op, pArg)
}
// Return the sector-size in bytes for an jt-file.
-func jtSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_journal.c:680:12: */
+func jtSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_journal.c:680:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsSectorSize(tls, (*jt_file)(unsafe.Pointer(p)).FpReal)
}
// Return the device characteristic flags supported by an jt-file.
-func jtDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_journal.c:688:12: */
+func jtDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_journal.c:688:12: */
var p uintptr = pFile
return sqlite3.Xsqlite3OsDeviceCharacteristics(tls, (*jt_file)(unsafe.Pointer(p)).FpReal)
}
// Open an jt file handle.
-func jtOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_journal.c:696:12: */
+func jtOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_journal.c:696:12: */
var rc int32
var p uintptr = pFile
(*sqlite3_file)(unsafe.Pointer(pFile)).FpMethods = uintptr(0)
@@ -58311,9 +63074,9 @@ func jtOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int3
// Delete the file located at zPath. If the dirSync argument is true,
// ensure the file-system modifications are synced to disk before
// returning.
-func jtDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_journal.c:733:12: */
- var nPath int32 = int32(crt.Xstrlen(tls, zPath))
- if (nPath > 8) && (0 == crt.Xstrcmp(tls, ts+29625 /* "-journal" */, (zPath+uintptr((nPath-8))))) {
+func jtDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_journal.c:733:12: */
+ var nPath int32 = int32(libc.Xstrlen(tls, zPath))
+ if (nPath > 8) && (0 == libc.Xstrcmp(tls, ts+31717 /* "-journal" */, (zPath+uintptr((nPath-8))))) {
// Deleting a journal file. The end of a transaction.
var pMain uintptr = locateDatabaseHandle(tls, zPath, 0)
if pMain != 0 {
@@ -58326,63 +63089,63 @@ func jtDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 {
// Test for access permissions. Return true if the requested permission
// is available, or false otherwise.
-func jtAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_journal.c:750:12: */
+func jtAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_journal.c:750:12: */
return sqlite3.Xsqlite3OsAccess(tls, g2.FpVfs, zPath, flags, pResOut)
}
// Populate buffer zOut with the full canonical pathname corresponding
// to the pathname in zPath. zOut is guaranteed to point to a buffer
// of at least (JT_MAX_PATHNAME+1) bytes.
-func jtFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_journal.c:764:12: */
+func jtFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_journal.c:764:12: */
return sqlite3.Xsqlite3OsFullPathname(tls, g2.FpVfs, zPath, nOut, zOut)
}
// Open the dynamic library located at zPath and return a handle.
-func jtDlOpen(tls *crt.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_journal.c:776:13: */
- return (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((g2.FpVfs + 72 /* &.xDlOpen */))))(tls, g2.FpVfs, zPath)
+func jtDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_journal.c:776:13: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((g2.FpVfs + 72 /* &.xDlOpen */))))(tls, g2.FpVfs, zPath)
}
// Populate the buffer zErrMsg (size nByte bytes) with a human readable
// utf-8 string describing the most recent error encountered associated
// with dynamic libraries.
-func jtDlError(tls *crt.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_journal.c:785:13: */
- (*(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer((g2.FpVfs + 80 /* &.xDlError */))))(tls, g2.FpVfs, nByte, zErrMsg)
+func jtDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_journal.c:785:13: */
+ (*(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer((g2.FpVfs + 80 /* &.xDlError */))))(tls, g2.FpVfs, nByte, zErrMsg)
}
// Return a pointer to the symbol zSymbol in the dynamic library pHandle.
-func jtDlSym(tls *crt.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* test_journal.c:792:13: */
- return (*(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((g2.FpVfs + 88 /* &.xDlSym */))))(tls, g2.FpVfs, p, zSym)
+func jtDlSym(tls *libc.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* test_journal.c:792:13: */
+ return (*(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((g2.FpVfs + 88 /* &.xDlSym */))))(tls, g2.FpVfs, p, zSym)
}
// Close the dynamic library handle pHandle.
-func jtDlClose(tls *crt.TLS, pVfs uintptr, pHandle uintptr) { /* test_journal.c:799:13: */
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer((g2.FpVfs + 96 /* &.xDlClose */))))(tls, g2.FpVfs, pHandle)
+func jtDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* test_journal.c:799:13: */
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer((g2.FpVfs + 96 /* &.xDlClose */))))(tls, g2.FpVfs, pHandle)
}
// Populate the buffer pointed to by zBufOut with nByte bytes of
// random data.
-func jtRandomness(tls *crt.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_journal.c:807:12: */
+func jtRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_journal.c:807:12: */
return sqlite3.Xsqlite3OsRandomness(tls, g2.FpVfs, nByte, zBufOut)
}
// Sleep for nMicro microseconds. Return the number of microseconds
// actually slept.
-func jtSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_journal.c:815:12: */
+func jtSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* test_journal.c:815:12: */
return sqlite3.Xsqlite3OsSleep(tls, g2.FpVfs, nMicro)
}
// Return the current time as a Julian Day number in *pTimeOut.
-func jtCurrentTime(tls *crt.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_journal.c:822:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((g2.FpVfs + 120 /* &.xCurrentTime */))))(tls, g2.FpVfs, pTimeOut)
+func jtCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_journal.c:822:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((g2.FpVfs + 120 /* &.xCurrentTime */))))(tls, g2.FpVfs, pTimeOut)
}
// Return the current time as a Julian Day number in *pTimeOut.
-func jtCurrentTimeInt64(tls *crt.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_journal.c:828:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((g2.FpVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, g2.FpVfs, pTimeOut)
+func jtCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_journal.c:828:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((g2.FpVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, g2.FpVfs, pTimeOut)
}
-func jtGetLastError(tls *crt.TLS, pVfs uintptr, n int32, z uintptr) int32 { /* test_journal.c:832:12: */
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((g2.FpVfs + 128 /* &.xGetLastError */))))(tls, g2.FpVfs, n, z)
+func jtGetLastError(tls *libc.TLS, pVfs uintptr, n int32, z uintptr) int32 { /* test_journal.c:832:12: */
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((g2.FpVfs + 128 /* &.xGetLastError */))))(tls, g2.FpVfs, n, z)
}
// *************************************************************************
@@ -58394,7 +63157,7 @@ func jtGetLastError(tls *crt.TLS, pVfs uintptr, n int32, z uintptr) int32 { /* t
// as the new default VFS for SQLite connections. If isDefault is not
// true, then the jt VFS is installed as non-default. In this case it
// is available via its name, "jt".
-func jt_register(tls *crt.TLS, zWrap uintptr, isDefault int32) int32 { /* test_journal.c:847:5: */
+func jt_register(tls *libc.TLS, zWrap uintptr, isDefault int32) int32 { /* test_journal.c:847:5: */
g2.FpVfs = sqlite3.Xsqlite3_vfs_find(tls, zWrap)
if g2.FpVfs == uintptr(0) {
return 1
@@ -58410,7 +63173,7 @@ func jt_register(tls *crt.TLS, zWrap uintptr, isDefault int32) int32 { /* test_j
}
// Uninstall the jt VFS, if it is installed.
-func jt_unregister(tls *crt.TLS) { /* test_journal.c:865:6: */
+func jt_unregister(tls *libc.TLS) { /* test_journal.c:865:6: */
sqlite3.Xsqlite3_vfs_unregister(tls, uintptr(unsafe.Pointer(&jt_vfs)))
}
@@ -58619,7 +63382,7 @@ var memfault MemFault /* test_malloc.c:41:3: */
// This routine exists as a place to set a breakpoint that will
// fire on any simulated malloc() failure.
-func sqlite3Fault(tls *crt.TLS) { /* test_malloc.c:47:13: */
+func sqlite3Fault(tls *libc.TLS) { /* test_malloc.c:47:13: */
cnt1++
}
@@ -58629,7 +63392,7 @@ var cnt1 int32 = 0 /* test_malloc.c:48:14 */
// fire the first time any malloc() fails on a single test case.
// The sqlite3Fault() routine above runs on every malloc() failure.
// This routine only runs on the first such failure.
-func sqlite3FirstFault(tls *crt.TLS) { /* test_malloc.c:58:13: */
+func sqlite3FirstFault(tls *libc.TLS) { /* test_malloc.c:58:13: */
cnt2++
}
@@ -58637,7 +63400,7 @@ var cnt2 int32 = 0 /* test_malloc.c:59:14 */
// Check to see if a fault should be simulated. Return true to simulate
// the fault. Return false if the fault should not be simulated.
-func faultsimStep(tls *crt.TLS) int32 { /* test_malloc.c:67:12: */
+func faultsimStep(tls *libc.TLS) int32 { /* test_malloc.c:67:12: */
if !(int32(memfault.Fenable) != 0) {
memfault.FnOkAfter++
return 0
@@ -58664,60 +63427,36 @@ func faultsimStep(tls *crt.TLS) int32 { /* test_malloc.c:67:12: */
// A version of sqlite3_mem_methods.xMalloc() that includes fault simulation
// logic.
-func faultsimMalloc(tls *crt.TLS, n int32) uintptr { /* test_malloc.c:94:13: */
+func faultsimMalloc(tls *libc.TLS, n int32) uintptr { /* test_malloc.c:94:13: */
var p uintptr = uintptr(0)
if !(faultsimStep(tls) != 0) {
- p = (*(*func(*crt.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ /* &.xMalloc */))))(tls, n)
+ p = (*(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ /* &.xMalloc */))))(tls, n)
}
return p
}
// A version of sqlite3_mem_methods.xRealloc() that includes fault simulation
// logic.
-func faultsimRealloc(tls *crt.TLS, pOld uintptr, n int32) uintptr { /* test_malloc.c:107:13: */
+func faultsimRealloc(tls *libc.TLS, pOld uintptr, n int32) uintptr { /* test_malloc.c:107:13: */
var p uintptr = uintptr(0)
if !(faultsimStep(tls) != 0) {
- p = (*(*func(*crt.TLS, uintptr, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 16 /* &.xRealloc */))))(tls, pOld, n)
+ p = (*(*func(*libc.TLS, uintptr, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 16 /* &.xRealloc */))))(tls, pOld, n)
}
return p
}
-// The following method calls are passed directly through to the underlying
-// malloc system:
-//
-// xFree
-// xSize
-// xRoundup
-// xInit
-// xShutdown
-func faultsimFree(tls *crt.TLS, p uintptr) { /* test_malloc.c:125:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 8 /* &.xFree */))))(tls, p)
-}
-func faultsimSize(tls *crt.TLS, p uintptr) int32 { /* test_malloc.c:128:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 24 /* &.xSize */))))(tls, p)
-}
-func faultsimRoundup(tls *crt.TLS, n int32) int32 { /* test_malloc.c:131:12: */
- return (*(*func(*crt.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 32 /* &.xRoundup */))))(tls, n)
-}
-func faultsimInit(tls *crt.TLS, p uintptr) int32 { /* test_malloc.c:134:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 40 /* &.xInit */))))(tls, memfault.Fm.FpAppData)
-}
-func faultsimShutdown(tls *crt.TLS, p uintptr) { /* test_malloc.c:137:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&memfault)) + 40 /* &.m */ + 48 /* &.xShutdown */))))(tls, memfault.Fm.FpAppData)
-}
-
// This routine configures the malloc failure simulation. After
// calling this routine, the next nDelay mallocs will succeed, followed
// by a block of nRepeat failures, after which malloc() calls will begin
// to succeed again.
-func faultsimConfig(tls *crt.TLS, nDelay int32, nRepeat int32) { /* test_malloc.c:147:13: */
+func faultsimConfig(tls *libc.TLS, nDelay int32, nRepeat int32) { /* test_malloc.c:121:13: */
memfault.FiCountdown = nDelay
memfault.FnRepeat = nRepeat
memfault.FnBenign = 0
memfault.FnFail = 0
memfault.FnOkBefore = 0
memfault.FnOkAfter = 0
- memfault.Fenable = (u8(crt.Bool32(nDelay >= 0)))
+ memfault.Fenable = (u8(libc.Bool32(nDelay >= 0)))
// Sometimes, when running multi-threaded tests, the isBenignMode
// variable is not properly incremented/decremented so that it is
@@ -58730,19 +63469,19 @@ func faultsimConfig(tls *crt.TLS, nDelay int32, nRepeat int32) { /* test_malloc.
// Return the number of faults (both hard and benign faults) that have
// occurred since the injector was last configured.
-func faultsimFailures(tls *crt.TLS) int32 { /* test_malloc.c:170:12: */
+func faultsimFailures(tls *libc.TLS) int32 { /* test_malloc.c:144:12: */
return memfault.FnFail
}
// Return the number of benign faults that have occurred since the
// injector was last configured.
-func faultsimBenignFailures(tls *crt.TLS) int32 { /* test_malloc.c:178:12: */
+func faultsimBenignFailures(tls *libc.TLS) int32 { /* test_malloc.c:152:12: */
return memfault.FnBenign
}
// Return the number of successes that will occur before the next failure.
// If no failures are scheduled, return -1.
-func faultsimPending(tls *crt.TLS) int32 { /* test_malloc.c:186:12: */
+func faultsimPending(tls *libc.TLS) int32 { /* test_malloc.c:160:12: */
if memfault.Fenable != 0 {
return memfault.FiCountdown
} else {
@@ -58751,18 +63490,18 @@ func faultsimPending(tls *crt.TLS) int32 { /* test_malloc.c:186:12: */
return int32(0)
}
-func faultsimBeginBenign(tls *crt.TLS) { /* test_malloc.c:195:13: */
+func faultsimBeginBenign(tls *libc.TLS) { /* test_malloc.c:169:13: */
memfault.FisBenignMode++
}
-func faultsimEndBenign(tls *crt.TLS) { /* test_malloc.c:198:13: */
+func faultsimEndBenign(tls *libc.TLS) { /* test_malloc.c:172:13: */
memfault.FisBenignMode--
}
// Add or remove the fault-simulation layer using sqlite3_config(). If
// the argument is non-zero, the
-func faultsimInstall(tls *crt.TLS, install int32) int32 { /* test_malloc.c:206:12: */
- bp := tls.Alloc(136)
- defer tls.Free(136)
+func faultsimInstall(tls *libc.TLS, install int32) int32 { /* test_malloc.c:180:12: */
+ bp := tls.Alloc(200)
+ defer tls.Free(200)
var rc int32
@@ -58778,25 +63517,32 @@ func faultsimInstall(tls *crt.TLS, install int32) int32 { /* test_malloc.c:206:1
}
if install != 0 {
- rc = sqlite3.Xsqlite3_config(tls, 5, crt.VaList(bp, (uintptr(unsafe.Pointer(&memfault))+40 /* &.m */)))
+ rc = sqlite3.Xsqlite3_config(tls, 5, libc.VaList(bp, (uintptr(unsafe.Pointer(&memfault))+40 /* &.m */)))
if rc == 0 {
- rc = sqlite3.Xsqlite3_config(tls, 4, crt.VaList(bp+8, uintptr(unsafe.Pointer(&m))))
+ *(*sqlite3_mem_methods)(unsafe.Pointer(bp + 72 /* m */)) = memfault.Fm
+ (*sqlite3_mem_methods)(unsafe.Pointer(bp + 72 /* &m */)).FxMalloc = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, int32) uintptr
+ }{faultsimMalloc}))
+ (*sqlite3_mem_methods)(unsafe.Pointer(bp + 72 /* &m */)).FxRealloc = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{faultsimRealloc}))
+ rc = sqlite3.Xsqlite3_config(tls, 4, libc.VaList(bp+8, bp+72 /* &m */))
}
sqlite3.Xsqlite3_test_control(tls, 10,
- crt.VaList(bp+16, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) }{faultsimBeginBenign})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) }{faultsimEndBenign}))))
+ libc.VaList(bp+16, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) }{faultsimBeginBenign})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) }{faultsimEndBenign}))))
} else {
- // var m2 sqlite3_mem_methods at bp+72, 64
+ // var m2 sqlite3_mem_methods at bp+136, 64
// One should be able to reset the default memory allocator by storing
// a zeroed allocator then calling GETMALLOC.
- crt.Xmemset(tls, bp+72 /* &m2 */, 0, uint64(unsafe.Sizeof(sqlite3_mem_methods{})))
- sqlite3.Xsqlite3_config(tls, 4, crt.VaList(bp+32, bp+72 /* &m2 */))
- sqlite3.Xsqlite3_config(tls, 5, crt.VaList(bp+40, bp+72 /* &m2 */))
+ libc.Xmemset(tls, bp+136 /* &m2 */, 0, uint64(unsafe.Sizeof(sqlite3_mem_methods{})))
+ sqlite3.Xsqlite3_config(tls, 4, libc.VaList(bp+32, bp+136 /* &m2 */))
+ sqlite3.Xsqlite3_config(tls, 5, libc.VaList(bp+40, bp+136 /* &m2 */))
- rc = sqlite3.Xsqlite3_config(tls, 4, crt.VaList(bp+48, (uintptr(unsafe.Pointer(&memfault))+40 /* &.m */)))
+ rc = sqlite3.Xsqlite3_config(tls, 4, libc.VaList(bp+48, (uintptr(unsafe.Pointer(&memfault))+40 /* &.m */)))
sqlite3.Xsqlite3_test_control(tls, 10,
- crt.VaList(bp+56, uintptr(0), uintptr(0)))
+ libc.VaList(bp+56, uintptr(0), uintptr(0)))
}
if rc == 0 {
@@ -58805,18 +63551,8 @@ func faultsimInstall(tls *crt.TLS, install int32) int32 { /* test_malloc.c:206:1
return rc
}
-var m = sqlite3_mem_methods1{FxMalloc: 0, FxFree: // xMalloc
-0, FxRealloc:// xFree
-0, FxSize:// xRealloc
-0, FxRoundup:// xSize
-0, FxInit:// xRoundup
-0, FxShutdown:// xInit
-0, FpAppData:// xShutdown
-uintptr(0), // pAppData
-} /* test_malloc.c:207:37 */
-
// Transform pointers to text and back again
-func pointerToText(tls *crt.TLS, p uintptr, z uintptr) { /* test_malloc.c:272:13: */
+func pointerToText(tls *libc.TLS, p uintptr, z uintptr) { /* test_malloc.c:239:13: */
bp := tls.Alloc(20)
defer tls.Free(20)
*(*uintptr)(unsafe.Pointer(bp + 8)) = p
@@ -58828,13 +63564,13 @@ func pointerToText(tls *crt.TLS, p uintptr, z uintptr) { /* test_malloc.c:272:13
// var n sqlite3_uint64 at bp, 8
if *(*uintptr)(unsafe.Pointer(bp + 8 /* p */)) == uintptr(0) {
- crt.Xstrcpy(tls, z, ts+12045 /* "0" */)
+ libc.Xstrcpy(tls, z, ts+13695 /* "0" */)
return
}
if uint64(unsafe.Sizeof(sqlite3_uint64(0))) == uint64(unsafe.Sizeof(uintptr(0))) {
- crt.Xmemcpy(tls, bp /* &n */, bp+8 /* &p */, uint64(unsafe.Sizeof(uintptr(0))))
+ libc.Xmemcpy(tls, bp /* &n */, bp+8 /* &p */, uint64(unsafe.Sizeof(uintptr(0))))
} else if uint64(unsafe.Sizeof(uint32(0))) == uint64(unsafe.Sizeof(uintptr(0))) {
- crt.Xmemcpy(tls, bp+16 /* &u */, bp+8 /* &p */, uint64(unsafe.Sizeof(uint32(0))))
+ libc.Xmemcpy(tls, bp+16 /* &u */, bp+8 /* &p */, uint64(unsafe.Sizeof(uint32(0))))
*(*sqlite3_uint64)(unsafe.Pointer(bp /* n */)) = sqlite3_uint64(*(*uint32)(unsafe.Pointer(bp + 16 /* u */)))
} else {
}
@@ -58859,8 +63595,8 @@ __3:
*(*int8)(unsafe.Pointer(z + uintptr((uint64(unsafe.Sizeof(uintptr(0))) * uint64(2))))) = int8(0)
}
-var zHex = *(*[17]int8)(unsafe.Pointer(ts + 28008 /* "0123456789abcdef" */)) /* test_malloc.c:273:21 */
-func hexToInt(tls *crt.TLS, h int32) int32 { /* test_malloc.c:295:12: */
+var zHex = *(*[17]int8)(unsafe.Pointer(ts + 30100 /* "0123456789abcdef" */)) /* test_malloc.c:240:21 */
+func hexToInt(tls *libc.TLS, h int32) int32 { /* test_malloc.c:262:12: */
if (h >= '0') && (h <= '9') {
return (h - '0')
} else if (h >= 'a') && (h <= 'f') {
@@ -58870,7 +63606,7 @@ func hexToInt(tls *crt.TLS, h int32) int32 { /* test_malloc.c:295:12: */
}
return int32(0)
}
-func textToPointer(tls *crt.TLS, z uintptr, pp uintptr) int32 { /* test_malloc.c:304:12: */
+func textToPointer(tls *libc.TLS, z uintptr, pp uintptr) int32 { /* test_malloc.c:271:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -58880,7 +63616,7 @@ func textToPointer(tls *crt.TLS, z uintptr, pp uintptr) int32 { /* test_malloc.c
for i = 0; (uint64(i) < (uint64(unsafe.Sizeof(uintptr(0))) * uint64(2))) && (*(*int8)(unsafe.Pointer(z + uintptr(0))) != 0); i++ {
var v int32
- v = hexToInt(tls, int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1)))))
+ v = hexToInt(tls, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))))
if v < 0 {
return 1
}
@@ -58890,10 +63626,10 @@ func textToPointer(tls *crt.TLS, z uintptr, pp uintptr) int32 { /* test_malloc.c
return 1
}
if uint64(unsafe.Sizeof(sqlite3_uint64(0))) == uint64(unsafe.Sizeof(uintptr(0))) {
- crt.Xmemcpy(tls, pp, bp /* &n */, uint64(unsafe.Sizeof(sqlite3_uint64(0))))
+ libc.Xmemcpy(tls, pp, bp /* &n */, uint64(unsafe.Sizeof(sqlite3_uint64(0))))
} else if uint64(unsafe.Sizeof(uint32(0))) == uint64(unsafe.Sizeof(uintptr(0))) {
*(*uint32)(unsafe.Pointer(bp + 8 /* u */)) = uint32(*(*sqlite3_uint64)(unsafe.Pointer(bp /* n */)))
- crt.Xmemcpy(tls, pp, bp+8 /* &u */, uint64(unsafe.Sizeof(uint32(0))))
+ libc.Xmemcpy(tls, pp, bp+8 /* &u */, uint64(unsafe.Sizeof(uint32(0))))
} else {
}
return 0
@@ -58902,7 +63638,7 @@ func textToPointer(tls *crt.TLS, z uintptr, pp uintptr) int32 { /* test_malloc.c
// Usage: sqlite3_malloc NBYTES
//
// Raw test interface for sqlite3_malloc().
-func test_malloc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:331:26: */
+func test_malloc(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:298:26: */
bp := tls.Alloc(120)
defer tls.Free(120)
@@ -58912,7 +63648,7 @@ func test_malloc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// var zOut [100]int8 at bp+20, 100
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29634 /* "NBYTES" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31726 /* "NBYTES" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+16 /* &nByte */) != 0 {
@@ -58920,14 +63656,14 @@ func test_malloc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
}
p = sqlite3.Xsqlite3_malloc(tls, int32(uint32(*(*int32)(unsafe.Pointer(bp + 16 /* nByte */)))))
pointerToText(tls, p, bp+20 /* &zOut[0] */)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, bp+20 /* &zOut[0] */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, bp+20 /* &zOut[0] */, uintptr(0)))
return 0
}
// Usage: sqlite3_realloc PRIOR NBYTES
//
// Raw test interface for sqlite3_realloc().
-func test_realloc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:356:26: */
+func test_realloc(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:323:26: */
bp := tls.Alloc(156)
defer tls.Free(156)
@@ -58939,37 +63675,37 @@ func test_realloc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
// var zOut [100]int8 at bp+56, 100
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29641 /* "PRIOR NBYTES" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31733 /* "PRIOR NBYTES" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+40 /* &nByte */) != 0 {
return 1
}
if textToPointer(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+48 /* &pPrior */) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29654 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31746 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
p = sqlite3.Xsqlite3_realloc(tls, *(*uintptr)(unsafe.Pointer(bp + 48 /* pPrior */)), int32(uint32(*(*int32)(unsafe.Pointer(bp + 40 /* nByte */)))))
pointerToText(tls, p, bp+56 /* &zOut[0] */)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, bp+56 /* &zOut[0] */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, bp+56 /* &zOut[0] */, uintptr(0)))
return 0
}
// Usage: sqlite3_free PRIOR
//
// Raw test interface for sqlite3_free().
-func test_free(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:385:26: */
+func test_free(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:352:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
// var pPrior uintptr at bp+24, 8
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29668 /* "PRIOR" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31760 /* "PRIOR" */)
return 1
}
if textToPointer(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+24 /* &pPrior */) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29654 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31746 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer(bp + 24 /* pPrior */)))
@@ -58980,7 +63716,7 @@ func test_free(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, obj
//
// Set a chunk of memory (obtained from malloc, probably) to a
// specified hex pattern.
-func test_memset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:416:26: */
+func test_memset(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:383:26: */
bp := tls.Alloc(172)
defer tls.Free(172)
@@ -58996,18 +63732,18 @@ func test_memset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// var zBin [100]int8 at bp+72, 100
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29674 /* "ADDRESS SIZE HEX" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31766 /* "ADDRESS SIZE HEX" */)
return 1
}
if textToPointer(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+56 /* &p */) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29654 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31746 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+64 /* &size */) != 0 {
return 1
}
if *(*int32)(unsafe.Pointer(bp + 64 /* size */)) <= 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, ts+29691 /* "size must be pos..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+31783 /* "size must be pos..." */, uintptr(0)))
return 1
}
zHex = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+68 /* &n */)
@@ -59016,7 +63752,7 @@ func test_memset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
}
*(*int32)(unsafe.Pointer(bp + 68 /* n */)) = sqlite3TestHexToBin(tls, zHex, *(*int32)(unsafe.Pointer(bp + 68 /* n */)), bp+72 /* &zBin[0] */)
if *(*int32)(unsafe.Pointer(bp + 68 /* n */)) == 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, ts+29713 /* "no data" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, ts+31805 /* "no data" */, uintptr(0)))
return 1
}
zOut = *(*uintptr)(unsafe.Pointer(bp + 56 /* p */))
@@ -59029,7 +63765,7 @@ func test_memset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// Usage: memget ADDRESS SIZE
//
// Return memory as hexadecimal text.
-func test_memget(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:462:26: */
+func test_memget(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:429:26: */
bp := tls.Alloc(168)
defer tls.Free(168)
@@ -59042,18 +63778,18 @@ func test_memget(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// var zHex [100]int8 at bp+68, 100
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29721 /* "ADDRESS SIZE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31813 /* "ADDRESS SIZE" */)
return 1
}
if textToPointer(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+56 /* &p */) != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29654 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31746 /* "bad pointer: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), uintptr(0)))
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+64 /* &size */) != 0 {
return 1
}
if *(*int32)(unsafe.Pointer(bp + 64 /* size */)) <= 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, ts+29691 /* "size must be pos..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+31783 /* "size must be pos..." */, uintptr(0)))
return 1
}
zBin = *(*uintptr)(unsafe.Pointer(bp + 56 /* p */))
@@ -59063,11 +63799,11 @@ func test_memget(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
} else {
n = *(*int32)(unsafe.Pointer(bp + 64 /* size */))
}
- crt.Xmemcpy(tls, bp+68 /* &zHex[0] */, zBin, uint64(n))
+ libc.Xmemcpy(tls, bp+68 /* &zHex[0] */, zBin, uint64(n))
zBin += uintptr(n)
*(*int32)(unsafe.Pointer(bp + 64 /* size */)) -= n
sqlite3TestBinToHex(tls, bp+68 /* &zHex[0] */, n)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+68 /* &zHex[0] */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+68 /* &zHex[0] */, uintptr(0)))
}
return 0
}
@@ -59075,7 +63811,7 @@ func test_memget(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// Usage: sqlite3_memory_used
//
// Raw test interface for sqlite3_memory_used().
-func test_memory_used(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:509:26: */
+func test_memory_used(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:476:26: */
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewWideIntObj(tls, int64(sqlite3.Xsqlite3_memory_used(tls))))
return 0
}
@@ -59083,13 +63819,13 @@ func test_memory_used(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// Usage: sqlite3_memory_highwater ?RESETFLAG?
//
// Raw test interface for sqlite3_memory_highwater().
-func test_memory_highwater(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:524:26: */
+func test_memory_highwater(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:491:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
*(*int32)(unsafe.Pointer(bp /* resetFlag */)) = 0
if (objc != 1) && (objc != 2) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29734 /* "?RESET?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31826 /* "?RESET?" */)
return 1
}
if objc == 2 {
@@ -59106,14 +63842,14 @@ func test_memory_highwater(tls *crt.TLS, clientData uintptr, interp uintptr, obj
//
// Set the depth of backtracing. If SQLITE_MEMDEBUG is not defined
// then this routine is a no-op.
-func test_memdebug_backtrace(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:549:26: */
+func test_memdebug_backtrace(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:516:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
// var depth int32 at bp, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29742 /* "DEPT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31834 /* "DEPT" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &depth */) != 0 {
@@ -59125,9 +63861,9 @@ func test_memdebug_backtrace(tls *crt.TLS, clientData uintptr, interp uintptr, o
// Usage: sqlite3_memdebug_dump FILENAME
//
// Write a summary of unfreed memory to FILENAME.
-func test_memdebug_dump(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:575:26: */
+func test_memdebug_dump(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:542:26: */
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29747 /* "FILENAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31839 /* "FILENAME" */)
return 1
}
return 0
@@ -59136,7 +63872,7 @@ func test_memdebug_dump(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// Usage: sqlite3_memdebug_malloc_count
//
// Return the total number of times malloc() has been called.
-func test_memdebug_malloc_count(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:600:26: */
+func test_memdebug_malloc_count(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:567:26: */
var nMalloc int32 = -1
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
@@ -59162,7 +63898,7 @@ func test_memdebug_malloc_count(tls *crt.TLS, clientData uintptr, interp uintptr
// happened since the previous call to this routine.
//
// To disable simulated failures, use a COUNTER of -1.
-func test_memdebug_fail(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:640:26: */
+func test_memdebug_fail(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:607:26: */
bp := tls.Alloc(36)
defer tls.Free(36)
@@ -59175,7 +63911,7 @@ func test_memdebug_fail(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var nFail int32 = 0
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29756 /* "COUNTER ?OPTIONS..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31848 /* "COUNTER ?OPTIONS..." */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+24 /* &iFail */) != 0 {
@@ -59188,26 +63924,26 @@ func test_memdebug_fail(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var zOption uintptr = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(ii)*8)), bp+28 /* &nOption */)
var zErr uintptr = uintptr(0)
- if (*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)) > 1) && (crt.Xstrncmp(tls, zOption, ts+29774 /* "-repeat" */, uint64(*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)))) == 0) {
+ if (*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)) > 1) && (libc.Xstrncmp(tls, zOption, ts+31866 /* "-repeat" */, uint64(*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)))) == 0) {
if ii == (objc - 1) {
- zErr = ts + 10494 /* "option requires ..." */
+ zErr = ts + 12149 /* "option requires ..." */
} else {
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((ii+1))*8)), bp+32 /* &nRepeat */) != 0 {
return 1
}
}
- } else if (*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)) > 1) && (crt.Xstrncmp(tls, zOption, ts+29782 /* "-benigncnt" */, uint64(*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)))) == 0) {
+ } else if (*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)) > 1) && (libc.Xstrncmp(tls, zOption, ts+31874 /* "-benigncnt" */, uint64(*(*int32)(unsafe.Pointer(bp + 28 /* nOption */)))) == 0) {
if ii == (objc - 1) {
- zErr = ts + 10494 /* "option requires ..." */
+ zErr = ts + 12149 /* "option requires ..." */
} else {
pBenignCnt = *(*uintptr)(unsafe.Pointer(objv + uintptr((ii+1))*8))
}
} else {
- zErr = ts + 10300 /* "unknown option: " */
+ zErr = ts + 11955 /* "unknown option: " */
}
if zErr != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, zErr, zOption, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, zErr, zOption, 0))
return 1
}
}
@@ -59228,7 +63964,7 @@ func test_memdebug_fail(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// Return the number of malloc() calls that will succeed before a
// simulated failure occurs. A negative return value indicates that
// no malloc() failure is scheduled.
-func test_memdebug_pending(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:706:26: */
+func test_memdebug_pending(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:673:26: */
var nPending int32
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
@@ -59242,7 +63978,7 @@ func test_memdebug_pending(tls *crt.TLS, clientData uintptr, interp uintptr, obj
// The following global variable keeps track of the number of tests
// that have run. This variable is only useful when running in the
// debugger.
-var sqlite3_memdebug_title_count int32 = 0 /* test_malloc.c:727:12 */
+var sqlite3_memdebug_title_count int32 = 0 /* test_malloc.c:694:12 */
// Usage: sqlite3_memdebug_settitle TITLE
//
@@ -59252,26 +63988,26 @@ var sqlite3_memdebug_title_count int32 = 0 /* test_malloc.c:727:12 */
// and can be used to figure out which tests are leaking memory.
//
// Each title overwrite the previous.
-func test_memdebug_settitle(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:739:26: */
+func test_memdebug_settitle(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:706:26: */
sqlite3_memdebug_title_count++
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29793 /* "TITLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31885 /* "TITLE" */)
return 1
}
return 0
}
-var aMallocLog Tcl_HashTable /* test_malloc.c:765:22: */
-var mallocLogEnabled int32 = 0 /* test_malloc.c:766:12 */
+var aMallocLog Tcl_HashTable /* test_malloc.c:732:22: */
+var mallocLogEnabled int32 = 0 /* test_malloc.c:733:12 */
type MallocLog1 = struct {
FnCall int32
FnByte int32
}
-type MallocLog = MallocLog1 /* test_malloc.c:768:26 */
+type MallocLog = MallocLog1 /* test_malloc.c:735:26 */
-func test_memdebug_log_clear(tls *crt.TLS) { /* test_malloc.c:805:13: */
+func test_memdebug_log_clear(tls *libc.TLS) { /* test_malloc.c:772:13: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -59291,7 +64027,7 @@ func test_memdebug_log_clear(tls *crt.TLS) { /* test_malloc.c:805:13: */
}()))))
}
-func test_memdebug_log(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:820:26: */
+func test_memdebug_log(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:787:26: */
bp := tls.Alloc(128)
defer tls.Free(128)
@@ -59308,7 +64044,7 @@ func test_memdebug_log(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29799 /* "SUB-COMMAND ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31891 /* "SUB-COMMAND ..." */)
}
if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), uintptr(unsafe.Pointer(&MB_strs)), int32(unsafe.Sizeof(uintptr(0))), ts+1874 /* "sub-command" */, 0, bp /* &iSub */) != 0 {
return 1
@@ -59368,8 +64104,8 @@ func test_memdebug_log(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
return 0
}
-var isInit int32 = 0 /* test_malloc.c:826:14 */
-var MB_strs = [5]uintptr{ts + 29815 /* "start" */, ts + 29821 /* "stop" */, ts + 29826 /* "dump" */, ts + 29831 /* "clear" */, ts + 29837 /* "sync" */} /* test_malloc.c:829:21 */
+var isInit int32 = 0 /* test_malloc.c:793:14 */
+var MB_strs = [5]uintptr{ts + 31907 /* "start" */, ts + 31913 /* "stop" */, ts + 31918 /* "dump" */, ts + 31923 /* "clear" */, ts + 31929 /* "sync" */} /* test_malloc.c:796:21 */
// Usage: sqlite3_config_pagecache SIZE N
//
@@ -59379,7 +64115,7 @@ var MB_strs = [5]uintptr{ts + 29815 /* "start" */, ts + 29821 /* "stop" */, ts +
// The revised value of N is returned.
//
// A negative SIZE causes the buffer pointer to be NULL.
-func test_config_pagecache(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:918:26: */
+func test_config_pagecache(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:885:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
@@ -59389,7 +64125,7 @@ func test_config_pagecache(tls *crt.TLS, clientData uintptr, interp uintptr, obj
var pRes uintptr
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29842 /* "SIZE N" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31934 /* "SIZE N" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+48 /* &sz */) != 0 {
@@ -59398,7 +64134,7 @@ func test_config_pagecache(tls *crt.TLS, clientData uintptr, interp uintptr, obj
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+52 /* &N */) != 0 {
return 1
}
- crt.Xfree(tls, buf1)
+ libc.Xfree(tls, buf1)
buf1 = uintptr(0)
// Set the return value
@@ -59408,15 +64144,15 @@ func test_config_pagecache(tls *crt.TLS, clientData uintptr, interp uintptr, obj
tcl.XTcl_SetObjResult(tls, interp, pRes)
if *(*int32)(unsafe.Pointer(bp + 48 /* sz */)) < 0 {
- sqlite3.Xsqlite3_config(tls, 7, crt.VaList(bp, uintptr(0), 0, 0))
+ sqlite3.Xsqlite3_config(tls, 7, libc.VaList(bp, uintptr(0), 0, 0))
} else {
- buf1 = crt.Xmalloc(tls, (uint64(*(*int32)(unsafe.Pointer(bp + 48 /* sz */)) * *(*int32)(unsafe.Pointer(bp + 52 /* N */)))))
- sqlite3.Xsqlite3_config(tls, 7, crt.VaList(bp+24, buf1, *(*int32)(unsafe.Pointer(bp + 48 /* sz */)), *(*int32)(unsafe.Pointer(bp + 52 /* N */))))
+ buf1 = libc.Xmalloc(tls, (uint64(*(*int32)(unsafe.Pointer(bp + 48 /* sz */)) * *(*int32)(unsafe.Pointer(bp + 52 /* N */)))))
+ sqlite3.Xsqlite3_config(tls, 7, libc.VaList(bp+24, buf1, *(*int32)(unsafe.Pointer(bp + 48 /* sz */)), *(*int32)(unsafe.Pointer(bp + 52 /* N */))))
}
return 0
}
-var buf1 uintptr = uintptr(0) /* test_malloc.c:926:15 */
+var buf1 uintptr = uintptr(0) /* test_malloc.c:893:15 */
// Usage: sqlite3_config_alt_pcache INSTALL_FLAG DISCARD_CHANCE PRNG_SEED
//
@@ -59426,7 +64162,7 @@ var buf1 uintptr = uintptr(0) /* test_malloc.c:926:15 */
// which determines the chance of discarding a page when unpinned. 100
// is certainty. 0 is never. PRNG_SEED is the pseudo-random number generator
// seed.
-func test_alt_pcache(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:961:26: */
+func test_alt_pcache(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:928:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -59437,7 +64173,7 @@ func test_alt_pcache(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
*(*int32)(unsafe.Pointer(bp + 28 /* highStress */)) = 0
if (objc < 2) || (objc > 5) {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv,
- ts+29849 /* "INSTALLFLAG DISC..." */)
+ ts+31941 /* "INSTALLFLAG DISC..." */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+16 /* &installFlag */) != 0 {
@@ -59453,7 +64189,7 @@ func test_alt_pcache(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
return 1
}
if (*(*int32)(unsafe.Pointer(bp + 20 /* discardChance */)) < 0) || (*(*int32)(unsafe.Pointer(bp + 20 /* discardChance */)) > 100) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+29896, /* "discard-chance s..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+31988, /* "discard-chance s..." */
uintptr(0)))
return 1
}
@@ -59465,7 +64201,7 @@ func test_alt_pcache(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// Usage: sqlite3_config_memstatus BOOLEAN
//
// Enable or disable memory status reporting using SQLITE_CONFIG_MEMSTATUS.
-func test_config_memstatus(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1002:26: */
+func test_config_memstatus(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:969:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -59473,20 +64209,20 @@ func test_config_memstatus(tls *crt.TLS, clientData uintptr, interp uintptr, obj
var rc int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29939 /* "BOOLEAN" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17539 /* "BOOLEAN" */)
return 1
}
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+8 /* &enable */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_config(tls, 9, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* enable */))))
+ rc = sqlite3.Xsqlite3_config(tls, 9, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* enable */))))
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
return 0
}
// Usage: sqlite3_config_lookaside SIZE COUNT
//
-func test_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1023:26: */
+func test_config_lookaside(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:990:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -59496,7 +64232,7 @@ func test_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr, obj
var pRet uintptr
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29947 /* "SIZE COUNT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32031 /* "SIZE COUNT" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+16 /* &sz */) != 0 {
@@ -59510,7 +64246,7 @@ func test_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr, obj
interp, pRet, tcl.XTcl_NewIntObj(tls, sqlite3.Xsqlite3Config.FszLookaside))
tcl.XTcl_ListObjAppendElement(tls,
interp, pRet, tcl.XTcl_NewIntObj(tls, sqlite3.Xsqlite3Config.FnLookaside))
- sqlite3.Xsqlite3_config(tls, 13, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 16 /* sz */)), *(*int32)(unsafe.Pointer(bp + 20 /* cnt */))))
+ sqlite3.Xsqlite3_config(tls, 13, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 16 /* sz */)), *(*int32)(unsafe.Pointer(bp + 20 /* cnt */))))
tcl.XTcl_SetObjResult(tls, interp, pRet)
return 0
}
@@ -59520,7 +64256,7 @@ func test_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr, obj
// There are two static buffers with BUFID 1 and 2. Each static buffer
// is 10KB in size. A BUFID of 0 indicates that the buffer should be NULL
// which will cause sqlite3_db_config() to allocate space on its own.
-func test_db_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1057:26: */
+func test_db_config_lookaside(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1024:26: */
bp := tls.Alloc(84)
defer tls.Free(84)
@@ -59534,7 +64270,7 @@ func test_db_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr,
// var bufid int32 at bp+72, 4
if objc != 5 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29958 /* "BUFID SIZE COUNT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32042 /* "BUFID SIZE COUNT" */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+64 /* &db */) != 0 {
@@ -59550,21 +64286,21 @@ func test_db_config_lookaside(tls *crt.TLS, clientData uintptr, interp uintptr,
return 1
}
if *(*int32)(unsafe.Pointer(bp + 72 /* bufid */)) == 0 {
- rc = sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), 1001, crt.VaList(bp, uintptr(0), *(*int32)(unsafe.Pointer(bp + 76 /* sz */)), *(*int32)(unsafe.Pointer(bp + 80 /* cnt */))))
+ rc = sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), 1001, libc.VaList(bp, uintptr(0), *(*int32)(unsafe.Pointer(bp + 76 /* sz */)), *(*int32)(unsafe.Pointer(bp + 80 /* cnt */))))
} else if ((*(*int32)(unsafe.Pointer(bp + 72 /* bufid */)) >= 1) && (*(*int32)(unsafe.Pointer(bp + 72 /* bufid */)) <= 2)) && ((uint64(*(*int32)(unsafe.Pointer(bp + 76 /* sz */)) * *(*int32)(unsafe.Pointer(bp + 80 /* cnt */)))) <= uint64(unsafe.Sizeof([10000]int8{}))) {
- rc = sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), 1001, crt.VaList(bp+24, (uintptr(unsafe.Pointer(&azBuf))+uintptr(*(*int32)(unsafe.Pointer(bp + 72 /* bufid */)))*10000), *(*int32)(unsafe.Pointer(bp + 76 /* sz */)), *(*int32)(unsafe.Pointer(bp + 80 /* cnt */))))
+ rc = sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 64 /* db */)), 1001, libc.VaList(bp+24, (uintptr(unsafe.Pointer(&azBuf))+uintptr(*(*int32)(unsafe.Pointer(bp + 72 /* bufid */)))*10000), *(*int32)(unsafe.Pointer(bp + 76 /* sz */)), *(*int32)(unsafe.Pointer(bp + 80 /* cnt */))))
} else {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+29975 /* "illegal argument..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+32059 /* "illegal argument..." */, uintptr(0)))
return 1
}
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, rc))
return 0
}
-var azBuf [2][10000]int8 /* test_malloc.c:1067:15: */
+var azBuf [2][10000]int8 /* test_malloc.c:1034:15: */
// Usage: sqlite3_config_heap NBYTE NMINALLOC
-func test_config_heap(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1092:26: */
+func test_config_heap(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1059:26: */
bp := tls.Alloc(56)
defer tls.Free(56)
// Use this memory
@@ -59578,7 +64314,7 @@ func test_config_heap(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var nArg int32 = (objc - 1)
if nArg != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+30013 /* "NBYTE NMINALLOC" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32097 /* "NBYTE NMINALLOC" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(aArg + uintptr(0)*8)), bp+48 /* &nByte */) != 0 {
@@ -59589,22 +64325,22 @@ func test_config_heap(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
}
if *(*int32)(unsafe.Pointer(bp + 48 /* nByte */)) == 0 {
- crt.Xfree(tls, zBuf)
+ libc.Xfree(tls, zBuf)
zBuf = uintptr(0)
- rc = sqlite3.Xsqlite3_config(tls, 8, crt.VaList(bp, uintptr(0), 0, 0))
+ rc = sqlite3.Xsqlite3_config(tls, 8, libc.VaList(bp, uintptr(0), 0, 0))
} else {
- zBuf = crt.Xrealloc(tls, zBuf, uint64(*(*int32)(unsafe.Pointer(bp + 48 /* nByte */))))
- rc = sqlite3.Xsqlite3_config(tls, 8, crt.VaList(bp+24, zBuf, *(*int32)(unsafe.Pointer(bp + 48 /* nByte */)), *(*int32)(unsafe.Pointer(bp + 52 /* nMinAlloc */))))
+ zBuf = libc.Xrealloc(tls, zBuf, uint64(*(*int32)(unsafe.Pointer(bp + 48 /* nByte */))))
+ rc = sqlite3.Xsqlite3_config(tls, 8, libc.VaList(bp+24, zBuf, *(*int32)(unsafe.Pointer(bp + 48 /* nByte */)), *(*int32)(unsafe.Pointer(bp + 52 /* nMinAlloc */))))
}
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
return 0
}
-var zBuf uintptr /* test_malloc.c:1098:15: */
+var zBuf uintptr /* test_malloc.c:1065:15: */
// Usage: sqlite3_config_heap_size NBYTE
-func test_config_heap_size(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1129:26: */
+func test_config_heap_size(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1096:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -59616,14 +64352,14 @@ func test_config_heap_size(tls *crt.TLS, clientData uintptr, interp uintptr, obj
var nArg int32 = (objc - 1)
if nArg != 1 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14082 /* "NBYTE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+15722 /* "NBYTE" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(aArg + uintptr(0)*8)), bp+8 /* &nByte */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_config(tls, 23, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* nByte */))))
+ rc = sqlite3.Xsqlite3_config(tls, 23, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* nByte */))))
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
return 0
@@ -59633,14 +64369,14 @@ func test_config_heap_size(tls *crt.TLS, clientData uintptr, interp uintptr, obj
//
// Invoke sqlite3_config() or sqlite3_db_config() with invalid
// opcodes and verify that they return errors.
-func test_config_error(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1159:26: */
+func test_config_error(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1126:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
// var db uintptr at bp+32, 8
if (objc != 2) && (objc != 1) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+30029 /* "[DB]" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32113 /* "[DB]" */)
return 1
}
if objc == 2 {
@@ -59649,14 +64385,14 @@ func test_config_error(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
if sqlite3.Xsqlite3_db_config(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* db */)), 99999, 0) != 1 {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp, ts+30034, /* "sqlite3_db_confi..." */
+ libc.VaList(bp, ts+32118, /* "sqlite3_db_confi..." */
uintptr(0)))
return 1
}
} else {
if sqlite3.Xsqlite3_config(tls, 99999, 0) != 1 {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp+16, ts+30092, /* "sqlite3_config(9..." */
+ libc.VaList(bp+16, ts+32176, /* "sqlite3_config(9..." */
uintptr(0)))
return 1
}
@@ -59668,7 +64404,7 @@ func test_config_error(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
//
// Enables or disables interpretation of URI parameters by default using
// SQLITE_CONFIG_URI.
-func test_config_uri(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1197:26: */
+func test_config_uri(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1164:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -59676,14 +64412,14 @@ func test_config_uri(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// var bOpenUri int32 at bp+8, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16556 /* "BOOL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18252 /* "BOOL" */)
return 1
}
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+8 /* &bOpenUri */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_config(tls, 17, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* bOpenUri */))))
+ rc = sqlite3.Xsqlite3_config(tls, 17, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* bOpenUri */))))
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
return 0
@@ -59693,7 +64429,7 @@ func test_config_uri(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
//
// Enables or disables the use of the covering-index scan optimization.
// SQLITE_CONFIG_COVERING_INDEX_SCAN.
-func test_config_cis(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1226:26: */
+func test_config_cis(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1193:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -59701,14 +64437,14 @@ func test_config_cis(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// var bUseCis int32 at bp+8, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16556 /* "BOOL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18252 /* "BOOL" */)
return 1
}
if tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+8 /* &bUseCis */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_config(tls, 20, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* bUseCis */))))
+ rc = sqlite3.Xsqlite3_config(tls, 20, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* bUseCis */))))
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
return 0
@@ -59717,7 +64453,7 @@ func test_config_cis(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// Usage: sqlite3_config_pmasz INTEGER
//
// Set the minimum PMA size.
-func test_config_pmasz(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1254:26: */
+func test_config_pmasz(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1221:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -59725,14 +64461,14 @@ func test_config_pmasz(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// var iPmaSz int32 at bp+8, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16556 /* "BOOL" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+18252 /* "BOOL" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+8 /* &iPmaSz */) != 0 {
return 1
}
- rc = sqlite3.Xsqlite3_config(tls, 25, crt.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* iPmaSz */))))
+ rc = sqlite3.Xsqlite3_config(tls, 25, libc.VaList(bp, *(*int32)(unsafe.Pointer(bp + 8 /* iPmaSz */))))
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
return 0
@@ -59742,9 +64478,9 @@ func test_config_pmasz(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// sqlite3_dump_memsys5 FILENAME
//
// Write a summary of unfreed memsys3 allocations to FILENAME.
-func test_dump_memsys3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1284:26: */
+func test_dump_memsys3(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1251:26: */
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29747 /* "FILENAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31839 /* "FILENAME" */)
return 1
}
@@ -59764,7 +64500,7 @@ func test_dump_memsys3(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
//
// Return a list of three elements which are the sqlite3_status() return
// code, the current value, and the high-water mark value.
-func test_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1320:26: */
+func test_status(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1287:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -59780,7 +64516,7 @@ func test_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
var zOpName uintptr
var pResult uintptr
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+30143 /* "PARAMETER RESETF..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32227 /* "PARAMETER RESETF..." */)
return 1
}
zOpName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -59789,7 +64525,7 @@ func test_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
Fop int32
_ [4]byte
}{})))); i++ {
- if crt.Xstrcmp(tls, aOp1[i].FzName, zOpName) == 0 {
+ if libc.Xstrcmp(tls, aOp1[i].FzName, zOpName) == 0 {
*(*int32)(unsafe.Pointer(bp /* op */)) = aOp1[i].Fop
break
}
@@ -59822,23 +64558,23 @@ var aOp1 = [10]struct {
Fop int32
_ [4]byte
}{
- {FzName: ts + 30163 /* "SQLITE_STATUS_ME..." */, Fop: 0},
- {FzName: ts + 30189 /* "SQLITE_STATUS_MA..." */, Fop: 5},
- {FzName: ts + 30215 /* "SQLITE_STATUS_PA..." */, Fop: 1},
- {FzName: ts + 30244 /* "SQLITE_STATUS_PA..." */, Fop: 2},
- {FzName: ts + 30277 /* "SQLITE_STATUS_PA..." */, Fop: 7},
- {FzName: ts + 30306 /* "SQLITE_STATUS_SC..." */, Fop: 3},
- {FzName: ts + 30333 /* "SQLITE_STATUS_SC..." */, Fop: 4},
- {FzName: ts + 30364 /* "SQLITE_STATUS_SC..." */, Fop: 8},
- {FzName: ts + 30391 /* "SQLITE_STATUS_PA..." */, Fop: 6},
- {FzName: ts + 30418 /* "SQLITE_STATUS_MA..." */, Fop: 9},
-} /* test_malloc.c:1332:5 */
+ {FzName: ts + 32247 /* "SQLITE_STATUS_ME..." */, Fop: 0},
+ {FzName: ts + 32273 /* "SQLITE_STATUS_MA..." */, Fop: 5},
+ {FzName: ts + 32299 /* "SQLITE_STATUS_PA..." */, Fop: 1},
+ {FzName: ts + 32328 /* "SQLITE_STATUS_PA..." */, Fop: 2},
+ {FzName: ts + 32361 /* "SQLITE_STATUS_PA..." */, Fop: 7},
+ {FzName: ts + 32390 /* "SQLITE_STATUS_SC..." */, Fop: 3},
+ {FzName: ts + 32417 /* "SQLITE_STATUS_SC..." */, Fop: 4},
+ {FzName: ts + 32448 /* "SQLITE_STATUS_SC..." */, Fop: 8},
+ {FzName: ts + 32475 /* "SQLITE_STATUS_PA..." */, Fop: 6},
+ {FzName: ts + 32502 /* "SQLITE_STATUS_MA..." */, Fop: 9},
+} /* test_malloc.c:1299:5 */
// Usage: sqlite3_db_status DATABASE OPCODE RESETFLAG
//
// Return a list of three elements which are the sqlite3_db_status() return
// code, the current value, and the high-water mark value.
-func test_db_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1377:26: */
+func test_db_status(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1344:26: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -59856,17 +64592,17 @@ func test_db_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
var pResult uintptr
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+30445 /* "DB PARAMETER RES..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32529 /* "DB PARAMETER RES..." */)
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
zOpName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
- if crt.Xmemcmp(tls, zOpName, ts+30468 /* "SQLITE_" */, uint64(7)) == 0 {
+ if libc.Xmemcmp(tls, zOpName, ts+32552 /* "SQLITE_" */, uint64(7)) == 0 {
zOpName += uintptr(7)
}
- if crt.Xmemcmp(tls, zOpName, ts+30476 /* "DBSTATUS_" */, uint64(9)) == 0 {
+ if libc.Xmemcmp(tls, zOpName, ts+32560 /* "DBSTATUS_" */, uint64(9)) == 0 {
zOpName += uintptr(9)
}
for i = 0; i < (int32(uint64(unsafe.Sizeof(aOp2)) / uint64(unsafe.Sizeof(struct {
@@ -59874,7 +64610,7 @@ func test_db_status(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
Fop int32
_ [4]byte
}{})))); i++ {
- if crt.Xstrcmp(tls, aOp2[i].FzName, zOpName) == 0 {
+ if libc.Xstrcmp(tls, aOp2[i].FzName, zOpName) == 0 {
*(*int32)(unsafe.Pointer(bp + 8 /* op */)) = aOp2[i].Fop
break
}
@@ -59907,23 +64643,23 @@ var aOp2 = [13]struct {
Fop int32
_ [4]byte
}{
- {FzName: ts + 30486 /* "LOOKASIDE_USED" */, Fop: 0},
- {FzName: ts + 30501 /* "CACHE_USED" */, Fop: 1},
- {FzName: ts + 30512 /* "SCHEMA_USED" */, Fop: 2},
- {FzName: ts + 30524 /* "STMT_USED" */, Fop: 3},
- {FzName: ts + 30534 /* "LOOKASIDE_HIT" */, Fop: 4},
- {FzName: ts + 30548 /* "LOOKASIDE_MISS_S..." */, Fop: 5},
- {FzName: ts + 30568 /* "LOOKASIDE_MISS_F..." */, Fop: 6},
- {FzName: ts + 30588 /* "CACHE_HIT" */, Fop: 7},
- {FzName: ts + 30598 /* "CACHE_MISS" */, Fop: 8},
- {FzName: ts + 30609 /* "CACHE_WRITE" */, Fop: 9},
- {FzName: ts + 30621 /* "DEFERRED_FKS" */, Fop: 10},
- {FzName: ts + 30634 /* "CACHE_USED_SHARE..." */, Fop: 11},
- {FzName: ts + 30652 /* "CACHE_SPILL" */, Fop: 12},
-} /* test_malloc.c:1391:5 */
+ {FzName: ts + 32570 /* "LOOKASIDE_USED" */, Fop: 0},
+ {FzName: ts + 32585 /* "CACHE_USED" */, Fop: 1},
+ {FzName: ts + 32596 /* "SCHEMA_USED" */, Fop: 2},
+ {FzName: ts + 32608 /* "STMT_USED" */, Fop: 3},
+ {FzName: ts + 32618 /* "LOOKASIDE_HIT" */, Fop: 4},
+ {FzName: ts + 32632 /* "LOOKASIDE_MISS_S..." */, Fop: 5},
+ {FzName: ts + 32652 /* "LOOKASIDE_MISS_F..." */, Fop: 6},
+ {FzName: ts + 32672 /* "CACHE_HIT" */, Fop: 7},
+ {FzName: ts + 32682 /* "CACHE_MISS" */, Fop: 8},
+ {FzName: ts + 32693 /* "CACHE_WRITE" */, Fop: 9},
+ {FzName: ts + 32705 /* "DEFERRED_FKS" */, Fop: 10},
+ {FzName: ts + 32718 /* "CACHE_USED_SHARE..." */, Fop: 11},
+ {FzName: ts + 32736 /* "CACHE_SPILL" */, Fop: 12},
+} /* test_malloc.c:1358:5 */
// install_malloc_faultsim BOOLEAN
-func test_install_malloc_faultsim(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1439:26: */
+func test_install_malloc_faultsim(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1406:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -59931,7 +64667,7 @@ func test_install_malloc_faultsim(tls *crt.TLS, clientData uintptr, interp uintp
// var isInstall int32 at bp, 4
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29939 /* "BOOLEAN" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17539 /* "BOOLEAN" */)
return 1
}
if 0 != tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &isInstall */) {
@@ -59943,18 +64679,18 @@ func test_install_malloc_faultsim(tls *crt.TLS, clientData uintptr, interp uintp
}
// sqlite3_install_memsys3
-func test_install_memsys3(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1463:26: */
+func test_install_memsys3(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1430:26: */
var rc int32 = 21
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(1))
return 0
}
-func test_vfs_oom_test(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1478:26: */
+func test_vfs_oom_test(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_malloc.c:1445:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
if objc > 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+30664 /* "?INTEGER?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32748 /* "?INTEGER?" */)
return 1
} else if objc == 2 {
// var iNew int32 at bp, 4
@@ -59969,59 +64705,59 @@ func test_vfs_oom_test(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
// Register commands with the TCL interpreter.
-func Sqlitetest_malloc_Init(tls *crt.TLS, interp uintptr) int32 { /* test_malloc.c:1500:5: */
+func Sqlitetest_malloc_Init(tls *libc.TLS, interp uintptr) int32 { /* test_malloc.c:1467:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd10)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd11)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData int32
_ [4]byte
}{}))); i++ {
- var c ClientData = uintptr(int64(aObjCmd10[i].FclientData))
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd10[i].FzName, aObjCmd10[i].FxProc, c, uintptr(0))
+ var c ClientData = uintptr(intptr_t(aObjCmd11[i].FclientData))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd11[i].FzName, aObjCmd11[i].FxProc, c, uintptr(0))
}
return 0
}
-var aObjCmd10 = [32]struct {
+var aObjCmd11 = [32]struct {
FzName uintptr
FxProc uintptr
FclientData int32
_ [4]byte
}{
- {FzName: ts + 24956 /* "sqlite3_malloc" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 24971 /* "sqlite3_realloc" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30674 /* "sqlite3_free" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30687 /* "memset" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30694 /* "memget" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30701 /* "sqlite3_memory_u..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30721 /* "sqlite3_memory_h..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30746 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30773 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30795 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30817 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30842 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30868 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30898 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30919 /* "sqlite3_config_p..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30944 /* "sqlite3_config_a..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30970 /* "sqlite3_status" */, FxProc: 0, FclientData: 0},
- {FzName: ts + 30985 /* "sqlite3_db_statu..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31003 /* "install_malloc_f..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31027 /* "sqlite3_config_h..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31047 /* "sqlite3_config_h..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31072 /* "sqlite3_config_m..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31097 /* "sqlite3_config_l..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31122 /* "sqlite3_config_e..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31143 /* "sqlite3_config_u..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31162 /* "sqlite3_config_c..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31181 /* "sqlite3_config_p..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31202 /* "sqlite3_db_confi..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31230 /* "sqlite3_dump_mem..." */, FxProc: 0, FclientData: 3},
- {FzName: ts + 31251 /* "sqlite3_dump_mem..." */, FxProc: 0, FclientData: 5},
- {FzName: ts + 31272 /* "sqlite3_install_..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 31296 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
-} /* test_malloc.c:1505:5 */
+ {FzName: ts + 27048 /* "sqlite3_malloc" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 27063 /* "sqlite3_realloc" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32758 /* "sqlite3_free" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32771 /* "memset" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32778 /* "memget" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32785 /* "sqlite3_memory_u..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32805 /* "sqlite3_memory_h..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32830 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32857 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32879 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32901 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32926 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32952 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 32982 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33003 /* "sqlite3_config_p..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33028 /* "sqlite3_config_a..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33054 /* "sqlite3_status" */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33069 /* "sqlite3_db_statu..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33087 /* "install_malloc_f..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33111 /* "sqlite3_config_h..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33131 /* "sqlite3_config_h..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33156 /* "sqlite3_config_m..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33181 /* "sqlite3_config_l..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33206 /* "sqlite3_config_e..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33227 /* "sqlite3_config_u..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33246 /* "sqlite3_config_c..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33265 /* "sqlite3_config_p..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33286 /* "sqlite3_db_confi..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33314 /* "sqlite3_dump_mem..." */, FxProc: 0, FclientData: 3},
+ {FzName: ts + 33335 /* "sqlite3_dump_mem..." */, FxProc: 0, FclientData: 5},
+ {FzName: ts + 33356 /* "sqlite3_install_..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 33380 /* "sqlite3_memdebug..." */, FxProc: 0, FclientData: 0},
+} /* test_malloc.c:1472:5 */
// end block for C++
@@ -60063,9 +64799,9 @@ type MD5Context1 = struct {
type MD5Context = MD5Context1 /* test_md5.c:63:27 */
// Note: this code is harmless on little-endian machines.
-func byteReverse(tls *crt.TLS, buf uintptr, longs uint32) { /* test_md5.c:68:13: */
+func byteReverse(tls *libc.TLS, buf uintptr, longs uint32) { /* test_md5.c:68:13: */
var t uint32
- for ok := true; ok; ok = crt.PreDecUint32(&longs, 1) != 0 {
+ for ok := true; ok; ok = libc.PreDecUint32(&longs, 1) != 0 {
t = ((((uint32(*(*uint8)(unsafe.Pointer(buf + uintptr(3)))) << 8) | uint32(*(*uint8)(unsafe.Pointer(buf + uintptr(2))))) << 16) | ((uint32(*(*uint8)(unsafe.Pointer(buf + uintptr(1)))) << 8) | uint32(*(*uint8)(unsafe.Pointer(buf + uintptr(0))))))
*(*uint32)(unsafe.Pointer(buf)) = t
buf += uintptr(4)
@@ -60081,7 +64817,7 @@ func byteReverse(tls *crt.TLS, buf uintptr, longs uint32) { /* test_md5.c:68:13:
// The core of the MD5 algorithm, this alters an existing MD5 hash to
// reflect the addition of 16 longwords of new data. MD5Update blocks
// the data and converts bytes into longwords for this routine.
-func MD5Transform(tls *crt.TLS, buf uintptr, in uintptr) { /* test_md5.c:94:13: */
+func MD5Transform(tls *libc.TLS, buf uintptr, in uintptr) { /* test_md5.c:94:13: */
var a uint32
var b uint32
var c uint32
@@ -60296,7 +65032,7 @@ func MD5Transform(tls *crt.TLS, buf uintptr, in uintptr) { /* test_md5.c:94:13:
// Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
// initialization constants.
-func MD5Init(tls *crt.TLS, ctx uintptr) { /* test_md5.c:180:13: */
+func MD5Init(tls *libc.TLS, ctx uintptr) { /* test_md5.c:180:13: */
(*MD5Context)(unsafe.Pointer(ctx)).FisInit = 1
*(*uint32)(unsafe.Pointer((ctx + 4 /* &.buf */) + uintptr(0)*4)) = uint32(0x67452301)
*(*uint32)(unsafe.Pointer((ctx + 4 /* &.buf */) + uintptr(1)*4)) = 0xefcdab89
@@ -60308,13 +65044,13 @@ func MD5Init(tls *crt.TLS, ctx uintptr) { /* test_md5.c:180:13: */
// Update context to reflect the concatenation of another buffer full
// of bytes.
-func MD5Update(tls *crt.TLS, ctx uintptr, buf uintptr, len uint32) { /* test_md5.c:195:6: */
+func MD5Update(tls *libc.TLS, ctx uintptr, buf uintptr, len uint32) { /* test_md5.c:195:6: */
var t uint32
// Update bitcount
t = *(*uint32)(unsafe.Pointer((ctx + 20 /* &.bits */) + uintptr(0)*4))
- if (crt.AssignPtrUint32((ctx+20 /* &.bits */)+uintptr(0)*4, (t + (len << 3)))) < t {
+ if (libc.AssignPtrUint32((ctx+20 /* &.bits */)+uintptr(0)*4, (t + (len << 3)))) < t {
*(*uint32)(unsafe.Pointer((ctx + 20 /* &.bits */) + uintptr(1)*4))++
} // Carry from low to high
*(*uint32)(unsafe.Pointer((ctx + 20 /* &.bits */) + uintptr(1)*4)) += (len >> 29)
@@ -60328,10 +65064,10 @@ func MD5Update(tls *crt.TLS, ctx uintptr, buf uintptr, len uint32) { /* test_md5
t = (uint32(64) - t)
if len < t {
- crt.Xmemcpy(tls, p, buf, uint64(len))
+ libc.Xmemcpy(tls, p, buf, uint64(len))
return
}
- crt.Xmemcpy(tls, p, buf, uint64(t))
+ libc.Xmemcpy(tls, p, buf, uint64(t))
byteReverse(tls, ctx+28 /* &.in */, uint32(16))
MD5Transform(tls, ctx+4 /* &.buf */, ctx+28 /* &.in */)
buf += uintptr(t)
@@ -60341,7 +65077,7 @@ func MD5Update(tls *crt.TLS, ctx uintptr, buf uintptr, len uint32) { /* test_md5
// Process data in 64-byte chunks
for len >= uint32(64) {
- crt.Xmemcpy(tls, ctx+28 /* &.in */, buf, uint64(64))
+ libc.Xmemcpy(tls, ctx+28 /* &.in */, buf, uint64(64))
byteReverse(tls, ctx+28 /* &.in */, uint32(16))
MD5Transform(tls, ctx+4 /* &.buf */, ctx+28 /* &.in */)
buf += uintptr(64)
@@ -60350,12 +65086,12 @@ func MD5Update(tls *crt.TLS, ctx uintptr, buf uintptr, len uint32) { /* test_md5
// Handle any remaining bytes of data.
- crt.Xmemcpy(tls, ctx+28 /* &.in */, buf, uint64(len))
+ libc.Xmemcpy(tls, ctx+28 /* &.in */, buf, uint64(len))
}
// Final wrapup - pad to 64-byte boundary with the bit pattern
// 1 0* (64-bit count of bits processed, MSB-first)
-func MD5Final(tls *crt.TLS, digest uintptr, ctx uintptr) { /* test_md5.c:243:13: */
+func MD5Final(tls *libc.TLS, digest uintptr, ctx uintptr) { /* test_md5.c:243:13: */
var count uint32
var p uintptr
@@ -60365,7 +65101,7 @@ func MD5Final(tls *crt.TLS, digest uintptr, ctx uintptr) { /* test_md5.c:243:13:
// Set the first char of padding to 0x80. This is safe since there is
// always at least one byte free
p = ((ctx + 28 /* &.in */) + uintptr(count))
- *(*uint8)(unsafe.Pointer(crt.PostIncUintptr(&p, 1))) = uint8(0x80)
+ *(*uint8)(unsafe.Pointer(libc.PostIncUintptr(&p, 1))) = uint8(0x80)
// Bytes of padding needed to make 64 bytes
count = ((uint32(64 - 1)) - count)
@@ -60373,57 +65109,57 @@ func MD5Final(tls *crt.TLS, digest uintptr, ctx uintptr) { /* test_md5.c:243:13:
// Pad out to 56 mod 64
if count < uint32(8) {
// Two lots of padding: Pad the first block to 64 bytes
- crt.Xmemset(tls, p, 0, uint64(count))
+ libc.Xmemset(tls, p, 0, uint64(count))
byteReverse(tls, ctx+28 /* &.in */, uint32(16))
MD5Transform(tls, ctx+4 /* &.buf */, ctx+28 /* &.in */)
// Now fill the next block with 56 bytes
- crt.Xmemset(tls, ctx+28 /* &.in */, 0, uint64(56))
+ libc.Xmemset(tls, ctx+28 /* &.in */, 0, uint64(56))
} else {
// Pad block to 56 bytes
- crt.Xmemset(tls, p, 0, (uint64(count - uint32(8))))
+ libc.Xmemset(tls, p, 0, (uint64(count - uint32(8))))
}
byteReverse(tls, ctx+28 /* &.in */, uint32(14))
// Append length in bits and transform
- crt.Xmemcpy(tls, ((ctx + 28 /* &.in */) + uintptr((14 * 4))), ctx+20 /* &.bits */, uint64(8))
+ libc.Xmemcpy(tls, ((ctx + 28 /* &.in */) + uintptr((14 * 4))), ctx+20 /* &.bits */, uint64(8))
MD5Transform(tls, ctx+4 /* &.buf */, ctx+28 /* &.in */)
byteReverse(tls, ctx+4 /* &.buf */, uint32(4))
- crt.Xmemcpy(tls, digest, ctx+4 /* &.buf */, uint64(16))
+ libc.Xmemcpy(tls, digest, ctx+4 /* &.buf */, uint64(16))
}
// Convert a 128-bit MD5 digest into a 32-digit base-16 number.
-func MD5DigestToBase16(tls *crt.TLS, digest uintptr, zBuf uintptr) { /* test_md5.c:284:13: */
+func MD5DigestToBase16(tls *libc.TLS, digest uintptr, zBuf uintptr) { /* test_md5.c:284:13: */
var i int32
var j int32
- for j = crt.AssignInt32(&i, 0); i < 16; i++ {
+ for j = libc.AssignInt32(&i, 0); i < 16; i++ {
var a int32 = int32(*(*uint8)(unsafe.Pointer(digest + uintptr(i))))
- *(*int8)(unsafe.Pointer(zBuf + uintptr(crt.PostIncInt32(&j, 1)))) = zEncode[((a >> 4) & 0xf)]
- *(*int8)(unsafe.Pointer(zBuf + uintptr(crt.PostIncInt32(&j, 1)))) = zEncode[(a & 0xf)]
+ *(*int8)(unsafe.Pointer(zBuf + uintptr(libc.PostIncInt32(&j, 1)))) = zEncode[((a >> 4) & 0xf)]
+ *(*int8)(unsafe.Pointer(zBuf + uintptr(libc.PostIncInt32(&j, 1)))) = zEncode[(a & 0xf)]
}
*(*int8)(unsafe.Pointer(zBuf + uintptr(j))) = int8(0)
}
-var zEncode = *(*[17]int8)(unsafe.Pointer(ts + 28008 /* "0123456789abcdef" */)) /* test_md5.c:285:21 */
+var zEncode = *(*[17]int8)(unsafe.Pointer(ts + 30100 /* "0123456789abcdef" */)) /* test_md5.c:285:21 */
// Convert a 128-bit MD5 digest into sequency of eight 5-digit integers
// each representing 16 bits of the digest and separated from each
// other by a "-" character.
-func MD5DigestToBase10x8(tls *crt.TLS, digest uintptr, zDigest uintptr) { /* test_md5.c:302:13: */
+func MD5DigestToBase10x8(tls *libc.TLS, digest uintptr, zDigest uintptr) { /* test_md5.c:302:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
var i int32
var j int32
var x uint32
- for i = crt.AssignInt32(&j, 0); i < 16; i = i + (2) {
+ for i = libc.AssignInt32(&j, 0); i < 16; i = i + (2) {
x = (uint32((int32(*(*uint8)(unsafe.Pointer(digest + uintptr(i)))) * 256) + int32(*(*uint8)(unsafe.Pointer(digest + uintptr((i + 1)))))))
if i > 0 {
- *(*int8)(unsafe.Pointer(zDigest + uintptr(crt.PostIncInt32(&j, 1)))) = int8('-')
+ *(*int8)(unsafe.Pointer(zDigest + uintptr(libc.PostIncInt32(&j, 1)))) = int8('-')
}
- sqlite3.Xsqlite3_snprintf(tls, (50 - j), (zDigest + uintptr(j)), ts+31326 /* "%05u" */, crt.VaList(bp, x))
+ sqlite3.Xsqlite3_snprintf(tls, (50 - j), (zDigest + uintptr(j)), ts+33410 /* "%05u" */, libc.VaList(bp, x))
j = j + (5)
}
*(*int8)(unsafe.Pointer(zDigest + uintptr(j))) = int8(0)
@@ -60431,7 +65167,7 @@ func MD5DigestToBase10x8(tls *crt.TLS, digest uintptr, zDigest uintptr) { /* tes
// A TCL command for md5. The argument is the text to be hashed. The
// Result is the hash in base64.
-func md5_cmd(tls *crt.TLS, cd uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test_md5.c:318:26: */
+func md5_cmd(tls *libc.TLS, cd uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test_md5.c:318:26: */
bp := tls.Alloc(206)
defer tls.Free(206)
@@ -60444,22 +65180,22 @@ func md5_cmd(tls *crt.TLS, cd uintptr, interp uintptr, argc int32, argv uintptr)
var converter uintptr
if argc != 2 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+13164 /* " TEXT\"" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+14814 /* " TEXT\"" */, uintptr(0)))
return 1
}
MD5Init(tls, bp+48 /* &ctx */)
- MD5Update(tls, bp+48 /* &ctx */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), uint32(crt.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))))
+ MD5Update(tls, bp+48 /* &ctx */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), uint32(libc.Xstrlen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))))
MD5Final(tls, bp+140 /* &digest[0] */, bp+48 /* &ctx */)
converter = cd
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(&converter)))(tls, bp+140 /* &digest[0] */, bp+156 /* &zBuf[0] */)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, bp+156 /* &zBuf[0] */, uintptr(0)))
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(&converter)))(tls, bp+140 /* &digest[0] */, bp+156 /* &zBuf[0] */)
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, bp+156 /* &zBuf[0] */, uintptr(0)))
return 0
}
// A TCL command to take the md5 hash of a file. The argument is the
// name of the file.
-func md5file_cmd(tls *crt.TLS, cd uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test_md5.c:347:26: */
+func md5file_cmd(tls *libc.TLS, cd uintptr, interp uintptr, argc int32, argv uintptr) int32 { /* test_md5.c:347:26: */
bp := tls.Alloc(10428)
defer tls.Free(10428)
@@ -60474,28 +65210,28 @@ func md5file_cmd(tls *crt.TLS, cd uintptr, interp uintptr, argc int32, argv uint
// var zBuf [10240]int8 at bp+172, 10240
if (argc != 2) && (argc != 4) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
- ts+31331 /* " FILENAME [OFFSE..." */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451 /* "wrong # args: sh..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)),
+ ts+33415 /* " FILENAME [OFFSE..." */, uintptr(0)))
return 1
}
if argc == 4 {
- ofst = crt.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)))
- amt = crt.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)))
+ ofst = libc.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)))
+ amt = libc.Xatoi(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8)))
} else {
ofst = 0
amt = 2147483647
}
- in = crt.Xfopen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+2937 /* "rb" */)
+ in = libc.Xfopen(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+4086 /* "rb" */)
if in == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+31355 /* "unable to open f..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)),
- ts+31377 /* "\" for reading" */, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+33439 /* "unable to open f..." */, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)),
+ ts+33461 /* "\" for reading" */, uintptr(0)))
return 1
}
- crt.Xfseek(tls, in, int64(ofst), 0)
+ libc.Xfseek(tls, in, int64(ofst), 0)
MD5Init(tls, bp+80 /* &ctx */)
for amt > 0 {
var n int32
- n = int32(crt.Xfread(tls, bp+172 /* &zBuf[0] */, uint64(1), func() uint64 {
+ n = int32(libc.Xfread(tls, bp+172 /* &zBuf[0] */, uint64(1), func() uint64 {
if uint64(unsafe.Sizeof([10240]int8{})) <= uint64(amt) {
return uint64(unsafe.Sizeof([10240]int8{}))
}
@@ -60507,47 +65243,47 @@ func md5file_cmd(tls *crt.TLS, cd uintptr, interp uintptr, argc int32, argv uint
MD5Update(tls, bp+80 /* &ctx */, bp+172 /* zBuf */, uint32(n))
amt = amt - (n)
}
- crt.Xfclose(tls, in)
+ libc.Xfclose(tls, in)
MD5Final(tls, bp+10412 /* &digest[0] */, bp+80 /* &ctx */)
converter = cd
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(&converter)))(tls, bp+10412 /* &digest[0] */, bp+172 /* &zBuf[0] */)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, bp+172 /* &zBuf[0] */, uintptr(0)))
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(&converter)))(tls, bp+10412 /* &digest[0] */, bp+172 /* &zBuf[0] */)
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, bp+172 /* &zBuf[0] */, uintptr(0)))
return 0
}
// Register the four new TCL commands for generating MD5 checksums
// with the TCL interpreter.
-func Md5_Init(tls *crt.TLS, interp uintptr) int32 { /* test_md5.c:400:5: */
- tcl.XTcl_CreateCommand(tls, interp, ts+31391 /* "md5" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+func Md5_Init(tls *libc.TLS, interp uintptr) int32 { /* test_md5.c:400:5: */
+ tcl.XTcl_CreateCommand(tls, interp, ts+33475 /* "md5" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{md5_cmd})),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr)
+ f func(*libc.TLS, uintptr, uintptr)
}{MD5DigestToBase16})), uintptr(0))
- tcl.XTcl_CreateCommand(tls, interp, ts+31395 /* "md5-10x8" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateCommand(tls, interp, ts+33479 /* "md5-10x8" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{md5_cmd})),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr)
+ f func(*libc.TLS, uintptr, uintptr)
}{MD5DigestToBase10x8})), uintptr(0))
- tcl.XTcl_CreateCommand(tls, interp, ts+31404 /* "md5file" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateCommand(tls, interp, ts+33488 /* "md5file" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{md5file_cmd})),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr)
+ f func(*libc.TLS, uintptr, uintptr)
}{MD5DigestToBase16})), uintptr(0))
- tcl.XTcl_CreateCommand(tls, interp, ts+31412 /* "md5file-10x8" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateCommand(tls, interp, ts+33496 /* "md5file-10x8" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{md5file_cmd})),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr)
+ f func(*libc.TLS, uintptr, uintptr)
}{MD5DigestToBase10x8})), uintptr(0))
return 0
}
// During testing, the special md5sum() aggregate function is available.
// inside SQLite. The following routines implement that function.
-func md5step(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_md5.c:416:13: */
+func md5step(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_md5.c:416:13: */
var p uintptr
var i int32
if argc < 1 {
@@ -60563,11 +65299,11 @@ func md5step(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_
for i = 0; i < argc; i++ {
var zData uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8)))
if zData != 0 {
- MD5Update(tls, p, zData, uint32(int32(crt.Xstrlen(tls, zData))))
+ MD5Update(tls, p, zData, uint32(int32(libc.Xstrlen(tls, zData))))
}
}
}
-func md5finalize(tls *crt.TLS, context uintptr) { /* test_md5.c:432:13: */
+func md5finalize(tls *libc.TLS, context uintptr) { /* test_md5.c:432:13: */
bp := tls.Alloc(49)
defer tls.Free(49)
@@ -60579,14 +65315,14 @@ func md5finalize(tls *crt.TLS, context uintptr) { /* test_md5.c:432:13: */
p = sqlite3.Xsqlite3_aggregate_context(tls, context, int32(unsafe.Sizeof(MD5Context{})))
MD5Final(tls, bp /* &digest[0] */, p)
MD5DigestToBase16(tls, bp /* &digest[0] */, bp+16 /* &zBuf[0] */)
- sqlite3.Xsqlite3_result_text(tls, context, bp+16 /* &zBuf[0] */, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, context, bp+16 /* &zBuf[0] */, -1, libc.UintptrFromInt32(-1))
}
-func Md5_Register(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pThunk uintptr) int32 { /* test_md5.c:441:5: */
- var rc int32 = sqlite3.Xsqlite3_create_function(tls, db, ts+31425 /* "md5sum" */, -1, 1, uintptr(0), uintptr(0),
+func Md5_Register(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pThunk uintptr) int32 { /* test_md5.c:441:5: */
+ var rc int32 = sqlite3.Xsqlite3_create_function(tls, db, ts+33509 /* "md5sum" */, -1, 1, uintptr(0), uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{md5step})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{md5finalize})))
- sqlite3.Xsqlite3_overload_function(tls, db, ts+31425 /* "md5sum" */, -1) // To exercise this API
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{md5step})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{md5finalize})))
+ sqlite3.Xsqlite3_overload_function(tls, db, ts+33509 /* "md5sum" */, -1) // To exercise this API
return rc
}
@@ -60714,7 +65450,7 @@ var gMultiplex struct {
// The value returned will never be negative. Nor will it ever be greater
// than the actual length of the string. For very long strings (greater
// than 1GiB) the value returned might be less than the true string length.
-func multiplexStrlen30(tls *crt.TLS, z uintptr) int32 { /* test_multiplex.c:187:12: */
+func multiplexStrlen30(tls *libc.TLS, z uintptr) int32 { /* test_multiplex.c:187:12: */
var z2 uintptr = z
if z == uintptr(0) {
return 0
@@ -60748,14 +65484,14 @@ func multiplexStrlen30(tls *crt.TLS, z uintptr) int32 { /* test_multiplex.c:187:
//
// The output buffer string is terminated by 2 0x00 bytes. This makes it safe
// to pass to sqlite3_uri_parameter() and similar.
-func multiplexFilename(tls *crt.TLS, zBase uintptr, nBase int32, flags int32, iChunk int32, zOut uintptr) { /* test_multiplex.c:219:13: */
+func multiplexFilename(tls *libc.TLS, zBase uintptr, nBase int32, flags int32, iChunk int32, zOut uintptr) { /* test_multiplex.c:219:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
var n int32 = nBase
- crt.Xmemcpy(tls, zOut, zBase, (uint64(n + 1)))
+ libc.Xmemcpy(tls, zOut, zBase, (uint64(n + 1)))
if (iChunk != 0) && (iChunk <= 299) {
- sqlite3.Xsqlite3_snprintf(tls, 4, (zOut + uintptr(n)), ts+31432 /* "%03d" */, crt.VaList(bp, iChunk))
+ sqlite3.Xsqlite3_snprintf(tls, 4, (zOut + uintptr(n)), ts+33516 /* "%03d" */, libc.VaList(bp, iChunk))
n = n + (3)
}
@@ -60763,14 +65499,14 @@ func multiplexFilename(tls *crt.TLS, zBase uintptr, nBase int32, flags int32, iC
}
// Compute the filename for the iChunk-th chunk
-func multiplexSubFilename(tls *crt.TLS, pGroup uintptr, iChunk int32) int32 { /* test_multiplex.c:256:12: */
+func multiplexSubFilename(tls *libc.TLS, pGroup uintptr, iChunk int32) int32 { /* test_multiplex.c:256:12: */
if iChunk >= (*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal {
var p uintptr
p = sqlite3.Xsqlite3_realloc64(tls, (*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal, (uint64((uint64(iChunk + 1)) * uint64(unsafe.Sizeof(multiplexReal{})))))
if p == uintptr(0) {
return 7
}
- crt.Xmemset(tls, (p + uintptr((*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal)*16), 0, (uint64(unsafe.Sizeof(multiplexReal{})) * (uint64((iChunk + 1) - (*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal))))
+ libc.Xmemset(tls, (p + uintptr((*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal)*16), 0, (uint64(unsafe.Sizeof(multiplexReal{})) * (uint64((iChunk + 1) - (*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal))))
(*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal = p
(*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal = (iChunk + 1)
}
@@ -60797,7 +65533,7 @@ func multiplexSubFilename(tls *crt.TLS, pGroup uintptr, iChunk int32) int32 { /*
// For chunk 0, the pGroup->flags determines whether or not a new file
// is created if it does not already exist. For chunks 1 and higher, the
// file is created only if createFlag is 1.
-func multiplexSubOpen(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr, pOutFlags uintptr, createFlag int32) uintptr { /* test_multiplex.c:289:21: */
+func multiplexSubOpen(tls *libc.TLS, pGroup uintptr, iChunk int32, rc uintptr, pOutFlags uintptr, createFlag int32) uintptr { /* test_multiplex.c:289:21: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -60805,7 +65541,7 @@ func multiplexSubOpen(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr, pO
var pOrigVfs uintptr = gMultiplex.FpOrigVfs // Real VFS
*(*int32)(unsafe.Pointer(rc)) = multiplexSubFilename(tls, pGroup, iChunk)
- if ((*(*int32)(unsafe.Pointer(rc))) == 0) && ((crt.AssignUintptr(&pSubOpen, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fp)) == uintptr(0)) {
+ if ((*(*int32)(unsafe.Pointer(rc))) == 0) && ((libc.AssignUintptr(&pSubOpen, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fp)) == uintptr(0)) {
var flags int32
// var bExists int32 at bp+16, 4
@@ -60816,16 +65552,16 @@ func multiplexSubOpen(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr, pO
} else if (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz == uintptr(0) {
return uintptr(0)
} else {
- *(*int32)(unsafe.Pointer(rc)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz,
+ *(*int32)(unsafe.Pointer(rc)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz,
0, bp+16 /* &bExists */)
if (*(*int32)(unsafe.Pointer(rc)) != 0) || !(*(*int32)(unsafe.Pointer(bp + 16 /* bExists */)) != 0) {
if *(*int32)(unsafe.Pointer(rc)) != 0 {
- sqlite3.Xsqlite3_log(tls, *(*int32)(unsafe.Pointer(rc)), ts+31437, /* "multiplexor.xAcc..." */
- crt.VaList(bp, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz))
+ sqlite3.Xsqlite3_log(tls, *(*int32)(unsafe.Pointer(rc)), ts+33521, /* "multiplexor.xAcc..." */
+ libc.VaList(bp, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz))
}
return uintptr(0)
}
- flags = flags & (^int32(crt.Int32FromInt32(0x00000004)))
+ flags = flags & (^int32(libc.Int32FromInt32(0x00000004)))
}
pSubOpen = sqlite3.Xsqlite3_malloc64(tls, uint64((*sqlite3_vfs)(unsafe.Pointer(pOrigVfs)).FszOsFile))
if pSubOpen == uintptr(0) {
@@ -60833,11 +65569,11 @@ func multiplexSubOpen(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr, pO
return uintptr(0)
}
(*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal + uintptr(iChunk)*16)).Fp = pSubOpen
- *(*int32)(unsafe.Pointer(rc)) = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, pSubOpen,
+ *(*int32)(unsafe.Pointer(rc)) = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, pSubOpen,
flags, pOutFlags)
if (*(*int32)(unsafe.Pointer(rc))) != 0 {
- sqlite3.Xsqlite3_log(tls, *(*int32)(unsafe.Pointer(rc)), ts+31471, /* "multiplexor.xOpe..." */
- crt.VaList(bp+8, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz))
+ sqlite3.Xsqlite3_log(tls, *(*int32)(unsafe.Pointer(rc)), ts+33555, /* "multiplexor.xOpe..." */
+ libc.VaList(bp+8, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz))
sqlite3.Xsqlite3_free(tls, pSubOpen)
(*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal + uintptr(iChunk)*16)).Fp = uintptr(0)
return uintptr(0)
@@ -60849,7 +65585,7 @@ func multiplexSubOpen(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr, pO
// Return the size, in bytes, of chunk number iChunk. If that chunk
// does not exist, then return 0. This function does not distingish between
// non-existant files and zero-length files.
-func multiplexSubSize(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr) sqlite3_int64 { /* test_multiplex.c:357:22: */
+func multiplexSubSize(tls *libc.TLS, pGroup uintptr, iChunk int32, rc uintptr) sqlite3_int64 { /* test_multiplex.c:357:22: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -60863,12 +65599,12 @@ func multiplexSubSize(tls *crt.TLS, pGroup uintptr, iChunk int32, rc uintptr) sq
if pSub == uintptr(0) {
return int64(0)
}
- *(*int32)(unsafe.Pointer(rc)) = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSub)).FpMethods + 48 /* &.xFileSize */))))(tls, pSub, bp /* &sz */)
+ *(*int32)(unsafe.Pointer(rc)) = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSub)).FpMethods + 48 /* &.xFileSize */))))(tls, pSub, bp /* &sz */)
return *(*sqlite3_int64)(unsafe.Pointer(bp /* sz */))
}
// This is the implementation of the multiplex_control() SQL function.
-func multiplexControlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintptr) { /* test_multiplex.c:375:13: */
+func multiplexControlFunc(tls *libc.TLS, context uintptr, argc int32, argv uintptr) { /* test_multiplex.c:375:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -60910,31 +65646,31 @@ func multiplexControlFunc(tls *crt.TLS, context uintptr, argc int32, argv uintpt
// This is the entry point to register the auto-extension for the
// multiplex_control() function.
-func multiplexFuncInit(tls *crt.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* test_multiplex.c:417:12: */
+func multiplexFuncInit(tls *libc.TLS, db uintptr, pzErrMsg uintptr, pApi uintptr) int32 { /* test_multiplex.c:417:12: */
var rc int32
- rc = sqlite3.Xsqlite3_create_function(tls, db, ts+31503 /* "multiplex_contro..." */, 2, 5,
+ rc = sqlite3.Xsqlite3_create_function(tls, db, ts+33587 /* "multiplex_contro..." */, 2, 5,
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{multiplexControlFunc})), uintptr(0), uintptr(0))
return rc
}
// Close a single sub-file in the connection group.
-func multiplexSubClose(tls *crt.TLS, pGroup uintptr, iChunk int32, pOrigVfs uintptr) { /* test_multiplex.c:431:13: */
+func multiplexSubClose(tls *libc.TLS, pGroup uintptr, iChunk int32, pOrigVfs uintptr) { /* test_multiplex.c:431:13: */
var pSubOpen uintptr = (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal + uintptr(iChunk)*16)).Fp
if pSubOpen != 0 {
- (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 8 /* &.xClose */))))(tls, pSubOpen)
+ (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 8 /* &.xClose */))))(tls, pSubOpen)
if (pOrigVfs != 0) && ((*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz != 0) {
- (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, 0)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, 0)
}
sqlite3.Xsqlite3_free(tls, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fp)
}
sqlite3.Xsqlite3_free_filename(tls, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz)
- crt.Xmemset(tls, ((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal + uintptr(iChunk)*16), 0, uint64(unsafe.Sizeof(multiplexReal{})))
+ libc.Xmemset(tls, ((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal + uintptr(iChunk)*16), 0, uint64(unsafe.Sizeof(multiplexReal{})))
}
// Deallocate memory held by a multiplexGroup
-func multiplexFreeComponents(tls *crt.TLS, pGroup uintptr) { /* test_multiplex.c:451:13: */
+func multiplexFreeComponents(tls *libc.TLS, pGroup uintptr) { /* test_multiplex.c:451:13: */
var i int32
for i = 0; i < (*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal; i++ {
multiplexSubClose(tls, pGroup, i, uintptr(0))
@@ -60951,7 +65687,7 @@ func multiplexFreeComponents(tls *crt.TLS, pGroup uintptr) { /* test_multiplex.c
// Most of the work is done by the underlying original VFS. This method
// simply links the new file into the appropriate multiplex group if it is a
// file that needs to be tracked.
-func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags int32, pOutFlags uintptr) int32 { /* test_multiplex.c:469:12: */
+func multiplexOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags int32, pOutFlags uintptr) int32 { /* test_multiplex.c:469:12: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -60965,7 +65701,7 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
var zToFree uintptr = uintptr(0)
_ = pVfs
- crt.Xmemset(tls, pConn, 0, uint64((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile))
+ libc.Xmemset(tls, pConn, 0, uint64((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile))
// We need to create a group structure and manage
// access to this group of files.
@@ -60994,18 +65730,18 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
zUri = uintptr(0)
}
// assign pointers to extra space allocated
- crt.Xmemset(tls, pGroup, 0, uint64(sz))
+ libc.Xmemset(tls, pGroup, 0, uint64(sz))
(*multiplexConn)(unsafe.Pointer(pMultiplexOpen)).FpGroup = pGroup
- (*multiplexGroup)(unsafe.Pointer(pGroup)).FbEnabled = crt.Uint8(crt.Uint8FromInt32(-1))
- (*multiplexGroup)(unsafe.Pointer(pGroup)).FbTruncate = uint8(sqlite3.Xsqlite3_uri_boolean(tls, zUri, ts+15905, /* "truncate" */
- (crt.Bool32((flags & 0x00000100) == 0))))
- (*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk = uint32(int32(sqlite3.Xsqlite3_uri_int64(tls, zUri, ts+31521, /* "chunksize" */
+ (*multiplexGroup)(unsafe.Pointer(pGroup)).FbEnabled = libc.Uint8(libc.Uint8FromInt32(-1))
+ (*multiplexGroup)(unsafe.Pointer(pGroup)).FbTruncate = uint8(sqlite3.Xsqlite3_uri_boolean(tls, zUri, ts+17605, /* "truncate" */
+ (libc.Bool32((flags & 0x00000100) == 0))))
+ (*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk = uint32(int32(sqlite3.Xsqlite3_uri_int64(tls, zUri, ts+33605, /* "chunksize" */
int64(2147418112))))
- (*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk = (((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk + uint32(0xffff)) & ^uint32(crt.Int32FromInt32(0xffff)))
+ (*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk = (((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk + uint32(0xffff)) & ^uint32(libc.Int32FromInt32(0xffff)))
if zName != 0 {
var p uintptr = (pGroup + uintptr(1)*40)
(*multiplexGroup)(unsafe.Pointer(pGroup)).FzName = p
- crt.Xmemcpy(tls, (*multiplexGroup)(unsafe.Pointer(pGroup)).FzName, zName, (uint64(nName + 1)))
+ libc.Xmemcpy(tls, (*multiplexGroup)(unsafe.Pointer(pGroup)).FzName, zName, (uint64(nName + 1)))
(*multiplexGroup)(unsafe.Pointer(pGroup)).FnName = nName
}
if (*multiplexGroup)(unsafe.Pointer(pGroup)).FbEnabled != 0 {
@@ -61013,7 +65749,7 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
*(*uint32)(unsafe.Pointer(pGroup + 32 /* &.szChunk */)) += (uint32(65536))
}
}
- (*multiplexGroup)(unsafe.Pointer(pGroup)).Fflags = (flags & ^int32(crt.Int32FromInt32(0x00000040)))
+ (*multiplexGroup)(unsafe.Pointer(pGroup)).Fflags = (flags & ^int32(libc.Int32FromInt32(0x00000040)))
*(*int32)(unsafe.Pointer(bp /* rc */)) = multiplexSubFilename(tls, pGroup, 1)
if *(*int32)(unsafe.Pointer(bp /* rc */)) == 0 {
pSubOpen = multiplexSubOpen(tls, pGroup, 0, bp /* &rc */, pOutFlags, 0)
@@ -61024,7 +65760,7 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
if *(*int32)(unsafe.Pointer(bp /* rc */)) == 0 {
// var sz64 sqlite3_int64 at bp+8, 8
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 48 /* &.xFileSize */))))(tls, pSubOpen, bp+8 /* &sz64 */)
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 48 /* &.xFileSize */))))(tls, pSubOpen, bp+8 /* &sz64 */)
if (*(*int32)(unsafe.Pointer(bp /* rc */)) == 0) && (zName != 0) {
// var bExists int32 at bp+16, 4
@@ -61037,12 +65773,12 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
// file-system.
var iChunk int32 = 1
for ok := true; ok; ok = ((*(*int32)(unsafe.Pointer(bp /* rc */)) == 0) && (*(*int32)(unsafe.Pointer(bp + 16 /* bExists */)) != 0)) {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs,
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs,
(*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, 0, bp+16 /* &bExists */)
if (*(*int32)(unsafe.Pointer(bp /* rc */)) == 0) && (*(*int32)(unsafe.Pointer(bp + 16 /* bExists */)) != 0) {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, 0)
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(iChunk)*16)).Fz, 0)
if *(*int32)(unsafe.Pointer(bp /* rc */)) == 0 {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = multiplexSubFilename(tls, pGroup, crt.PreIncInt32(&iChunk, 1))
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = multiplexSubFilename(tls, pGroup, libc.PreIncInt32(&iChunk, 1))
}
}
}
@@ -61056,9 +65792,9 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
// larger than the chunk size, that means the chunk size is too small.
// But we have no way of determining the intended chunk size, so
// just disable the multiplexor all togethre.
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(1)*16)).Fz,
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal+uintptr(1)*16)).Fz,
0, bp+16 /* &bExists */)
- *(*int32)(unsafe.Pointer(bp + 16 /* bExists */)) = (crt.Bool32(multiplexSubSize(tls, pGroup, 1, bp /* &rc */) > int64(0)))
+ *(*int32)(unsafe.Pointer(bp + 16 /* bExists */)) = (libc.Bool32(multiplexSubSize(tls, pGroup, 1, bp /* &rc */) > int64(0)))
if ((((*(*int32)(unsafe.Pointer(bp /* rc */)) == 0) && (*(*int32)(unsafe.Pointer(bp + 16 /* bExists */)) != 0)) && (*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* sz64 */)) == (*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* sz64 */)) & int64(0xffff0000)))) && (*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* sz64 */)) > int64(0))) &&
(*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* sz64 */)) != sqlite3_int64((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk)) {
(*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk = uint32(int32(*(*sqlite3_int64)(unsafe.Pointer(bp + 8 /* sz64 */))))
@@ -61071,9 +65807,9 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
if *(*int32)(unsafe.Pointer(bp /* rc */)) == 0 {
if (*sqlite3_io_methods1)(unsafe.Pointer((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods)).FiVersion == 1 {
- (*multiplexConn)(unsafe.Pointer(pMultiplexOpen)).Fbase.FpMethods = (uintptr(unsafe.Pointer(&gMultiplex)) + 176 /* &.sIoMethodsV1 */)
+ (*sqlite3_file)(unsafe.Pointer(pConn)).FpMethods = (uintptr(unsafe.Pointer(&gMultiplex)) + 176 /* &.sIoMethodsV1 */)
} else {
- (*multiplexConn)(unsafe.Pointer(pMultiplexOpen)).Fbase.FpMethods = (uintptr(unsafe.Pointer(&gMultiplex)) + 328 /* &.sIoMethodsV2 */)
+ (*sqlite3_file)(unsafe.Pointer(pConn)).FpMethods = (uintptr(unsafe.Pointer(&gMultiplex)) + 328 /* &.sIoMethodsV2 */)
}
} else {
multiplexFreeComponents(tls, pGroup)
@@ -61086,17 +65822,17 @@ func multiplexOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, fla
// This is the xDelete method used for the "multiplex" VFS.
// It attempts to delete the filename specified.
-func multiplexDelete(tls *crt.TLS, pVfs uintptr, zName uintptr, syncDir int32) int32 { /* test_multiplex.c:611:12: */
+func multiplexDelete(tls *libc.TLS, pVfs uintptr, zName uintptr, syncDir int32) int32 { /* test_multiplex.c:611:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
var rc int32
var pOrigVfs uintptr = gMultiplex.FpOrigVfs // Real VFS
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, zName, syncDir)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, zName, syncDir)
if rc == 0 {
// If the main chunk was deleted successfully, also delete any subsequent
// chunks - starting with the last (highest numbered).
- var nName int32 = int32(crt.Xstrlen(tls, zName))
+ var nName int32 = int32(libc.Xstrlen(tls, zName))
var z uintptr
z = sqlite3.Xsqlite3_malloc64(tls, (uint64(nName + 5)))
if z == uintptr(0) {
@@ -61106,22 +65842,22 @@ func multiplexDelete(tls *crt.TLS, pVfs uintptr, zName uintptr, syncDir int32) i
// var bExists int32 at bp, 4
for ok := true; ok; ok = ((rc == 0) && (*(*int32)(unsafe.Pointer(bp /* bExists */)) != 0)) {
- multiplexFilename(tls, zName, nName, 0x00000800, crt.PreIncInt32(&iChunk, 1), z)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, z, 0, bp /* &bExists */)
+ multiplexFilename(tls, zName, nName, 0x00000800, libc.PreIncInt32(&iChunk, 1), z)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, z, 0, bp /* &bExists */)
}
for (rc == 0) && (iChunk > 1) {
- multiplexFilename(tls, zName, nName, 0x00000800, crt.PreDecInt32(&iChunk, 1), z)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, z, syncDir)
+ multiplexFilename(tls, zName, nName, 0x00000800, libc.PreDecInt32(&iChunk, 1), z)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, z, syncDir)
}
if rc == 0 {
iChunk = 0
for ok1 := true; ok1; ok1 = ((rc == 0) && (*(*int32)(unsafe.Pointer(bp /* bExists */)) != 0)) {
- multiplexFilename(tls, zName, nName, 0x00080000, crt.PreIncInt32(&iChunk, 1), z)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, z, 0, bp /* &bExists */)
+ multiplexFilename(tls, zName, nName, 0x00080000, libc.PreIncInt32(&iChunk, 1), z)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 56 /* &.xAccess */))))(tls, pOrigVfs, z, 0, bp /* &bExists */)
}
for (rc == 0) && (iChunk > 1) {
- multiplexFilename(tls, zName, nName, 0x00080000, crt.PreDecInt32(&iChunk, 1), z)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, z, syncDir)
+ multiplexFilename(tls, zName, nName, 0x00080000, libc.PreDecInt32(&iChunk, 1), z)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, z, syncDir)
}
}
}
@@ -61130,43 +65866,43 @@ func multiplexDelete(tls *crt.TLS, pVfs uintptr, zName uintptr, syncDir int32) i
return rc
}
-func multiplexAccess(tls *crt.TLS, a uintptr, b uintptr, c int32, d uintptr) int32 { /* test_multiplex.c:656:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 56 /* &.xAccess */))))(tls, gMultiplex.FpOrigVfs, b, c, d)
+func multiplexAccess(tls *libc.TLS, a uintptr, b uintptr, c int32, d uintptr) int32 { /* test_multiplex.c:656:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 56 /* &.xAccess */))))(tls, gMultiplex.FpOrigVfs, b, c, d)
}
-func multiplexFullPathname(tls *crt.TLS, a uintptr, b uintptr, c int32, d uintptr) int32 { /* test_multiplex.c:659:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gMultiplex.FpOrigVfs, b, c, d)
+func multiplexFullPathname(tls *libc.TLS, a uintptr, b uintptr, c int32, d uintptr) int32 { /* test_multiplex.c:659:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gMultiplex.FpOrigVfs, b, c, d)
}
-func multiplexDlOpen(tls *crt.TLS, a uintptr, b uintptr) uintptr { /* test_multiplex.c:662:13: */
- return (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((gMultiplex.FpOrigVfs + 72 /* &.xDlOpen */))))(tls, gMultiplex.FpOrigVfs, b)
+func multiplexDlOpen(tls *libc.TLS, a uintptr, b uintptr) uintptr { /* test_multiplex.c:662:13: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((gMultiplex.FpOrigVfs + 72 /* &.xDlOpen */))))(tls, gMultiplex.FpOrigVfs, b)
}
-func multiplexDlError(tls *crt.TLS, a uintptr, b int32, c uintptr) { /* test_multiplex.c:665:13: */
- (*(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer((gMultiplex.FpOrigVfs + 80 /* &.xDlError */))))(tls, gMultiplex.FpOrigVfs, b, c)
+func multiplexDlError(tls *libc.TLS, a uintptr, b int32, c uintptr) { /* test_multiplex.c:665:13: */
+ (*(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer((gMultiplex.FpOrigVfs + 80 /* &.xDlError */))))(tls, gMultiplex.FpOrigVfs, b, c)
}
-func multiplexDlSym(tls *crt.TLS, a uintptr, b uintptr, c uintptr) uintptr { /* test_multiplex.c:668:13: */
- return (*(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((gMultiplex.FpOrigVfs + 88 /* &.xDlSym */))))(tls, gMultiplex.FpOrigVfs, b, c)
+func multiplexDlSym(tls *libc.TLS, a uintptr, b uintptr, c uintptr) uintptr { /* test_multiplex.c:668:13: */
+ return (*(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((gMultiplex.FpOrigVfs + 88 /* &.xDlSym */))))(tls, gMultiplex.FpOrigVfs, b, c)
}
-func multiplexDlClose(tls *crt.TLS, a uintptr, b uintptr) { /* test_multiplex.c:671:13: */
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer((gMultiplex.FpOrigVfs + 96 /* &.xDlClose */))))(tls, gMultiplex.FpOrigVfs, b)
+func multiplexDlClose(tls *libc.TLS, a uintptr, b uintptr) { /* test_multiplex.c:671:13: */
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer((gMultiplex.FpOrigVfs + 96 /* &.xDlClose */))))(tls, gMultiplex.FpOrigVfs, b)
}
-func multiplexRandomness(tls *crt.TLS, a uintptr, b int32, c uintptr) int32 { /* test_multiplex.c:674:12: */
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 104 /* &.xRandomness */))))(tls, gMultiplex.FpOrigVfs, b, c)
+func multiplexRandomness(tls *libc.TLS, a uintptr, b int32, c uintptr) int32 { /* test_multiplex.c:674:12: */
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 104 /* &.xRandomness */))))(tls, gMultiplex.FpOrigVfs, b, c)
}
-func multiplexSleep(tls *crt.TLS, a uintptr, b int32) int32 { /* test_multiplex.c:677:12: */
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 112 /* &.xSleep */))))(tls, gMultiplex.FpOrigVfs, b)
+func multiplexSleep(tls *libc.TLS, a uintptr, b int32) int32 { /* test_multiplex.c:677:12: */
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 112 /* &.xSleep */))))(tls, gMultiplex.FpOrigVfs, b)
}
-func multiplexCurrentTime(tls *crt.TLS, a uintptr, b uintptr) int32 { /* test_multiplex.c:680:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 120 /* &.xCurrentTime */))))(tls, gMultiplex.FpOrigVfs, b)
+func multiplexCurrentTime(tls *libc.TLS, a uintptr, b uintptr) int32 { /* test_multiplex.c:680:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 120 /* &.xCurrentTime */))))(tls, gMultiplex.FpOrigVfs, b)
}
-func multiplexGetLastError(tls *crt.TLS, a uintptr, b int32, c uintptr) int32 { /* test_multiplex.c:683:12: */
+func multiplexGetLastError(tls *libc.TLS, a uintptr, b int32, c uintptr) int32 { /* test_multiplex.c:683:12: */
if (*sqlite3_vfs)(unsafe.Pointer(gMultiplex.FpOrigVfs)).FxGetLastError != 0 {
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 128 /* &.xGetLastError */))))(tls, gMultiplex.FpOrigVfs, b, c)
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 128 /* &.xGetLastError */))))(tls, gMultiplex.FpOrigVfs, b, c)
} else {
return 0
}
return int32(0)
}
-func multiplexCurrentTimeInt64(tls *crt.TLS, a uintptr, b uintptr) int32 { /* test_multiplex.c:690:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, gMultiplex.FpOrigVfs, b)
+func multiplexCurrentTimeInt64(tls *libc.TLS, a uintptr, b uintptr) int32 { /* test_multiplex.c:690:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((gMultiplex.FpOrigVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, gMultiplex.FpOrigVfs, b)
}
//*********************** I/O Method Wrappers ******************************
@@ -61175,7 +65911,7 @@ func multiplexCurrentTimeInt64(tls *crt.TLS, a uintptr, b uintptr) int32 { /* te
// We loop over all open chunk handles and close them.
// The group structure for this file is unlinked from
// our list of groups and freed.
-func multiplexClose(tls *crt.TLS, pConn uintptr) int32 { /* test_multiplex.c:701:12: */
+func multiplexClose(tls *libc.TLS, pConn uintptr) int32 { /* test_multiplex.c:701:12: */
var p uintptr = pConn
var pGroup uintptr = (*multiplexConn)(unsafe.Pointer(p)).FpGroup
var rc int32 = 0
@@ -61187,7 +65923,7 @@ func multiplexClose(tls *crt.TLS, pConn uintptr) int32 { /* test_multiplex.c:701
// Pass xRead requests thru to the original VFS after
// determining the correct chunk to operate on.
// Break up reads across chunk boundaries.
-func multiplexRead(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_multiplex.c:714:12: */
+func multiplexRead(tls *libc.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_multiplex.c:714:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61199,7 +65935,7 @@ func multiplexRead(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst
if pSubOpen == uintptr(0) {
*(*int32)(unsafe.Pointer(bp /* rc */)) = (10 | (int32(1) << 8))
} else {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 16 /* &.xRead */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 16 /* &.xRead */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
}
} else {
for iAmt > 0 {
@@ -61212,7 +65948,7 @@ func multiplexRead(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst
extra = 0
}
iAmt = iAmt - (extra)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 16 /* &.xRead */))))(tls, pSubOpen, pBuf, iAmt,
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 16 /* &.xRead */))))(tls, pSubOpen, pBuf, iAmt,
(iOfst % sqlite3_int64((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk)))
if *(*int32)(unsafe.Pointer(bp /* rc */)) != 0 {
break
@@ -61233,7 +65969,7 @@ func multiplexRead(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst
// Pass xWrite requests thru to the original VFS after
// determining the correct chunk to operate on.
// Break up writes across chunk boundaries.
-func multiplexWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_multiplex.c:759:12: */
+func multiplexWrite(tls *libc.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_multiplex.c:759:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61245,7 +65981,7 @@ func multiplexWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst
if pSubOpen == uintptr(0) {
*(*int32)(unsafe.Pointer(bp /* rc */)) = (10 | (int32(3) << 8))
} else {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 24 /* &.xWrite */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 24 /* &.xWrite */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
}
} else {
for (*(*int32)(unsafe.Pointer(bp /* rc */)) == 0) && (iAmt > 0) {
@@ -61257,7 +65993,7 @@ func multiplexWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst
extra = 0
}
iAmt = iAmt - (extra)
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 24 /* &.xWrite */))))(tls, pSubOpen, pBuf, iAmt,
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 24 /* &.xWrite */))))(tls, pSubOpen, pBuf, iAmt,
(iOfst % sqlite3_int64((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk)))
pBuf = (pBuf + uintptr(iAmt))
iOfst = iOfst + (sqlite3_int64(iAmt))
@@ -61271,7 +66007,7 @@ func multiplexWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst
// Pass xTruncate requests thru to the original VFS after
// determining the correct chunk to operate on. Delete any
// chunks above the truncate mark.
-func multiplexTruncate(tls *crt.TLS, pConn uintptr, size sqlite3_int64) int32 { /* test_multiplex.c:799:12: */
+func multiplexTruncate(tls *libc.TLS, pConn uintptr, size sqlite3_int64) int32 { /* test_multiplex.c:799:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61283,7 +66019,7 @@ func multiplexTruncate(tls *crt.TLS, pConn uintptr, size sqlite3_int64) int32 {
if pSubOpen == uintptr(0) {
*(*int32)(unsafe.Pointer(bp /* rc */)) = (10 | (int32(6) << 8))
} else {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, size)
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, size)
}
} else {
var i int32
@@ -61297,14 +66033,14 @@ func multiplexTruncate(tls *crt.TLS, pConn uintptr, size sqlite3_int64) int32 {
} else {
pSubOpen = multiplexSubOpen(tls, pGroup, i, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, int64(0))
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, int64(0))
}
}
}
if *(*int32)(unsafe.Pointer(bp /* rc */)) == 0 {
pSubOpen = multiplexSubOpen(tls, pGroup, iBaseGroup, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, (size % sqlite3_int64((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk)))
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, (size % sqlite3_int64((*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk)))
}
}
if *(*int32)(unsafe.Pointer(bp /* rc */)) != 0 {
@@ -61315,7 +66051,7 @@ func multiplexTruncate(tls *crt.TLS, pConn uintptr, size sqlite3_int64) int32 {
}
// Pass xSync requests through to the original VFS without change
-func multiplexSync(tls *crt.TLS, pConn uintptr, flags int32) int32 { /* test_multiplex.c:839:12: */
+func multiplexSync(tls *libc.TLS, pConn uintptr, flags int32) int32 { /* test_multiplex.c:839:12: */
var p uintptr = pConn
var pGroup uintptr = (*multiplexConn)(unsafe.Pointer(p)).FpGroup
var rc int32 = 0
@@ -61323,7 +66059,7 @@ func multiplexSync(tls *crt.TLS, pConn uintptr, flags int32) int32 { /* test_mul
for i = 0; i < (*multiplexGroup)(unsafe.Pointer(pGroup)).FnReal; i++ {
var pSubOpen uintptr = (*multiplexReal)(unsafe.Pointer((*multiplexGroup)(unsafe.Pointer(pGroup)).FaReal + uintptr(i)*16)).Fp
if pSubOpen != 0 {
- var rc2 int32 = (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 40 /* &.xSync */))))(tls, pSubOpen, flags)
+ var rc2 int32 = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 40 /* &.xSync */))))(tls, pSubOpen, flags)
if rc2 != 0 {
rc = rc2
}
@@ -61334,7 +66070,7 @@ func multiplexSync(tls *crt.TLS, pConn uintptr, flags int32) int32 { /* test_mul
// Pass xFileSize requests through to the original VFS.
// Aggregate the size of all the chunks before returning.
-func multiplexFileSize(tls *crt.TLS, pConn uintptr, pSize uintptr) int32 { /* test_multiplex.c:857:12: */
+func multiplexFileSize(tls *libc.TLS, pConn uintptr, pSize uintptr) int32 { /* test_multiplex.c:857:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61347,7 +66083,7 @@ func multiplexFileSize(tls *crt.TLS, pConn uintptr, pSize uintptr) int32 { /* te
if pSubOpen == uintptr(0) {
*(*int32)(unsafe.Pointer(bp /* rc */)) = (10 | (int32(7) << 8))
} else {
- *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 48 /* &.xFileSize */))))(tls, pSubOpen, pSize)
+ *(*int32)(unsafe.Pointer(bp /* rc */)) = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 48 /* &.xFileSize */))))(tls, pSubOpen, pSize)
}
} else {
*(*sqlite3_int64)(unsafe.Pointer(pSize)) = int64(0)
@@ -61363,7 +66099,7 @@ func multiplexFileSize(tls *crt.TLS, pConn uintptr, pSize uintptr) int32 { /* te
}
// Pass xLock requests through to the original VFS unchanged.
-func multiplexLock(tls *crt.TLS, pConn uintptr, lock int32) int32 { /* test_multiplex.c:882:12: */
+func multiplexLock(tls *libc.TLS, pConn uintptr, lock int32) int32 { /* test_multiplex.c:882:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61372,13 +66108,13 @@ func multiplexLock(tls *crt.TLS, pConn uintptr, lock int32) int32 { /* test_mult
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 56 /* &.xLock */))))(tls, pSubOpen, lock)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 56 /* &.xLock */))))(tls, pSubOpen, lock)
}
return 5
}
// Pass xUnlock requests through to the original VFS unchanged.
-func multiplexUnlock(tls *crt.TLS, pConn uintptr, lock int32) int32 { /* test_multiplex.c:894:12: */
+func multiplexUnlock(tls *libc.TLS, pConn uintptr, lock int32) int32 { /* test_multiplex.c:894:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61387,13 +66123,13 @@ func multiplexUnlock(tls *crt.TLS, pConn uintptr, lock int32) int32 { /* test_mu
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 64 /* &.xUnlock */))))(tls, pSubOpen, lock)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 64 /* &.xUnlock */))))(tls, pSubOpen, lock)
}
return (10 | (int32(8) << 8))
}
// Pass xCheckReservedLock requests through to the original VFS unchanged.
-func multiplexCheckReservedLock(tls *crt.TLS, pConn uintptr, pResOut uintptr) int32 { /* test_multiplex.c:906:12: */
+func multiplexCheckReservedLock(tls *libc.TLS, pConn uintptr, pResOut uintptr) int32 { /* test_multiplex.c:906:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61402,14 +66138,14 @@ func multiplexCheckReservedLock(tls *crt.TLS, pConn uintptr, pResOut uintptr) in
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 72 /* &.xCheckReservedLock */))))(tls, pSubOpen, pResOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 72 /* &.xCheckReservedLock */))))(tls, pSubOpen, pResOut)
}
return (10 | (int32(14) << 8))
}
// Pass xFileControl requests through to the original VFS unchanged,
// except for any MULTIPLEX_CTRL_* requests here.
-func multiplexFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) int32 { /* test_multiplex.c:919:12: */
+func multiplexFileControl(tls *libc.TLS, pConn uintptr, op int32, pArg uintptr) int32 { /* test_multiplex.c:919:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -61437,7 +66173,7 @@ func multiplexFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) i
} else {
// Round up to nearest multiple of MAX_PAGE_SIZE.
szChunk = (szChunk + (uint32(0x10000 - 1)))
- szChunk = szChunk & (^uint32(crt.Int32FromInt32((0x10000 - 1))))
+ szChunk = szChunk & (^uint32(libc.Int32FromInt32((0x10000 - 1))))
(*multiplexGroup)(unsafe.Pointer(pGroup)).FszChunk = szChunk
*(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = 0
}
@@ -61460,13 +66196,13 @@ func multiplexFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) i
// second element of the array is the name of the pragma and the third
// element is the argument to the pragma or NULL if the pragma has no
// argument.
- if (*(*uintptr)(unsafe.Pointer(aFcntl + uintptr(1)*8)) != 0) && (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(1)*8)), ts+31531 /* "multiplex_trunca..." */) == 0) {
+ if (*(*uintptr)(unsafe.Pointer(aFcntl + uintptr(1)*8)) != 0) && (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(1)*8)), ts+33615 /* "multiplex_trunca..." */) == 0) {
if (*(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)) != 0) && (*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)) + uintptr(0))) != 0) {
- if (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+3073 /* "on" */) == 0) ||
- (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+25702 /* "1" */) == 0) {
+ if (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+4222 /* "on" */) == 0) ||
+ (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+27761 /* "1" */) == 0) {
(*multiplexGroup)(unsafe.Pointer(pGroup)).FbTruncate = uint8(1)
- } else if (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+3084 /* "off" */) == 0) ||
- (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+12045 /* "0" */) == 0) {
+ } else if (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+4233 /* "off" */) == 0) ||
+ (sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(aFcntl + uintptr(2)*8)), ts+13695 /* "0" */) == 0) {
(*multiplexGroup)(unsafe.Pointer(pGroup)).FbTruncate = uint8(0)
}
}
@@ -61477,9 +66213,9 @@ func multiplexFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) i
// or the error message if the pragma fails.
*(*uintptr)(unsafe.Pointer(aFcntl + uintptr(0)*8)) = sqlite3.Xsqlite3_mprintf(tls, func() uintptr {
if (*multiplexGroup)(unsafe.Pointer(pGroup)).FbTruncate != 0 {
- return ts + 3073 /* "on" */
+ return ts + 4222 /* "on" */
}
- return ts + 3084 /* "off" */
+ return ts + 4233 /* "off" */
}(), 0)
*(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = 0
break
@@ -61491,9 +66227,9 @@ func multiplexFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) i
default:
pSubOpen = multiplexSubOpen(tls, pGroup, 0, bp+8 /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 80 /* &.xFileControl */))))(tls, pSubOpen, op, pArg)
+ *(*int32)(unsafe.Pointer(bp + 8 /* rc */)) = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 80 /* &.xFileControl */))))(tls, pSubOpen, op, pArg)
if (op == 12) && (*(*int32)(unsafe.Pointer(bp + 8 /* rc */)) == 0) {
- *(*uintptr)(unsafe.Pointer(pArg)) = sqlite3.Xsqlite3_mprintf(tls, ts+31550 /* "multiplex/%z" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(pArg))))
+ *(*uintptr)(unsafe.Pointer(pArg)) = sqlite3.Xsqlite3_mprintf(tls, ts+33634 /* "multiplex/%z" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pArg))))
}
}
break
@@ -61502,7 +66238,7 @@ func multiplexFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) i
}
// Pass xSectorSize requests through to the original VFS unchanged.
-func multiplexSectorSize(tls *crt.TLS, pConn uintptr) int32 { /* test_multiplex.c:1004:12: */
+func multiplexSectorSize(tls *libc.TLS, pConn uintptr) int32 { /* test_multiplex.c:1004:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61511,13 +66247,13 @@ func multiplexSectorSize(tls *crt.TLS, pConn uintptr) int32 { /* test_multiplex.
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if (pSubOpen != 0) && ((*sqlite3_io_methods1)(unsafe.Pointer((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods)).FxSectorSize != 0) {
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 88 /* &.xSectorSize */))))(tls, pSubOpen)
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 88 /* &.xSectorSize */))))(tls, pSubOpen)
}
return 0x1000
}
// Pass xDeviceCharacteristics requests through to the original VFS unchanged.
-func multiplexDeviceCharacteristics(tls *crt.TLS, pConn uintptr) int32 { /* test_multiplex.c:1016:12: */
+func multiplexDeviceCharacteristics(tls *libc.TLS, pConn uintptr) int32 { /* test_multiplex.c:1016:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61526,13 +66262,13 @@ func multiplexDeviceCharacteristics(tls *crt.TLS, pConn uintptr) int32 { /* test
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, pSubOpen)
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, pSubOpen)
}
return 0
}
// Pass xShmMap requests through to the original VFS unchanged.
-func multiplexShmMap(tls *crt.TLS, pConn uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* test_multiplex.c:1028:12: */
+func multiplexShmMap(tls *libc.TLS, pConn uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* test_multiplex.c:1028:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61541,13 +66277,13 @@ func multiplexShmMap(tls *crt.TLS, pConn uintptr, iRegion int32, szRegion int32,
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 104 /* &.xShmMap */))))(tls, pSubOpen, iRegion, szRegion, bExtend, pp)
+ return (*(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 104 /* &.xShmMap */))))(tls, pSubOpen, iRegion, szRegion, bExtend, pp)
}
return 10
}
// Pass xShmLock requests through to the original VFS unchanged.
-func multiplexShmLock(tls *crt.TLS, pConn uintptr, ofst int32, n int32, flags int32) int32 { /* test_multiplex.c:1046:12: */
+func multiplexShmLock(tls *libc.TLS, pConn uintptr, ofst int32, n int32, flags int32) int32 { /* test_multiplex.c:1046:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61556,13 +66292,13 @@ func multiplexShmLock(tls *crt.TLS, pConn uintptr, ofst int32, n int32, flags in
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 112 /* &.xShmLock */))))(tls, pSubOpen, ofst, n, flags)
+ return (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 112 /* &.xShmLock */))))(tls, pSubOpen, ofst, n, flags)
}
return 5
}
// Pass xShmBarrier requests through to the original VFS unchanged.
-func multiplexShmBarrier(tls *crt.TLS, pConn uintptr) { /* test_multiplex.c:1063:13: */
+func multiplexShmBarrier(tls *libc.TLS, pConn uintptr) { /* test_multiplex.c:1063:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61571,12 +66307,12 @@ func multiplexShmBarrier(tls *crt.TLS, pConn uintptr) { /* test_multiplex.c:1063
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 120 /* &.xShmBarrier */))))(tls, pSubOpen)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 120 /* &.xShmBarrier */))))(tls, pSubOpen)
}
}
// Pass xShmUnmap requests through to the original VFS unchanged.
-func multiplexShmUnmap(tls *crt.TLS, pConn uintptr, deleteFlag int32) int32 { /* test_multiplex.c:1074:12: */
+func multiplexShmUnmap(tls *libc.TLS, pConn uintptr, deleteFlag int32) int32 { /* test_multiplex.c:1074:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61585,7 +66321,7 @@ func multiplexShmUnmap(tls *crt.TLS, pConn uintptr, deleteFlag int32) int32 { /*
var pSubOpen uintptr = multiplexSubOpen(tls, (*multiplexConn)(unsafe.Pointer(p)).FpGroup, 0, bp /* &rc */, uintptr(0), 0)
if pSubOpen != 0 {
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 128 /* &.xShmUnmap */))))(tls, pSubOpen, deleteFlag)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 128 /* &.xShmUnmap */))))(tls, pSubOpen, deleteFlag)
}
return 0
}
@@ -61601,7 +66337,7 @@ func multiplexShmUnmap(tls *crt.TLS, pConn uintptr, deleteFlag int32) int32 { /*
//
// THIS ROUTINE IS NOT THREADSAFE. Call this routine exactly once
// during start-up.
-func sqlite3_multiplex_initialize(tls *crt.TLS, zOrigVfsName uintptr, makeDefault int32) int32 { /* test_multiplex.c:1097:5: */
+func sqlite3_multiplex_initialize(tls *libc.TLS, zOrigVfsName uintptr, makeDefault int32) int32 { /* test_multiplex.c:1097:5: */
var pOrigVfs uintptr
if gMultiplex.FisInitialized != 0 {
return 21
@@ -61615,94 +66351,100 @@ func sqlite3_multiplex_initialize(tls *crt.TLS, zOrigVfsName uintptr, makeDefaul
gMultiplex.FpOrigVfs = pOrigVfs
gMultiplex.FsThisVfs = *(*sqlite3_vfs)(unsafe.Pointer(pOrigVfs))
*(*int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&gMultiplex)) + 8 /* &.sThisVfs */ + 4 /* &.szOsFile */)) += int32((uint64(unsafe.Sizeof(multiplexConn{}))))
- gMultiplex.FsThisVfs.FzName = ts + 31563 /* "multiplex" */
+ gMultiplex.FsThisVfs.FzName = ts + 33647 /* "multiplex" */
gMultiplex.FsThisVfs.FxOpen = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
}{multiplexOpen}))
gMultiplex.FsThisVfs.FxDelete = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, uintptr, int32) int32
}{multiplexDelete}))
gMultiplex.FsThisVfs.FxAccess = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{multiplexAccess}))
gMultiplex.FsThisVfs.FxFullPathname = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{multiplexFullPathname}))
gMultiplex.FsThisVfs.FxDlOpen = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) uintptr
+ f func(*libc.TLS, uintptr, uintptr) uintptr
}{multiplexDlOpen}))
gMultiplex.FsThisVfs.FxDlError = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{multiplexDlError}))
gMultiplex.FsThisVfs.FxDlSym = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr) uintptr
+ f func(*libc.TLS, uintptr, uintptr, uintptr) uintptr
}{multiplexDlSym}))
gMultiplex.FsThisVfs.FxDlClose = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr)
+ f func(*libc.TLS, uintptr, uintptr)
}{multiplexDlClose}))
gMultiplex.FsThisVfs.FxRandomness = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr) int32
}{multiplexRandomness}))
gMultiplex.FsThisVfs.FxSleep = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{multiplexSleep}))
gMultiplex.FsThisVfs.FxCurrentTime = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{multiplexCurrentTime}))
gMultiplex.FsThisVfs.FxGetLastError = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr) int32
}{multiplexGetLastError}))
gMultiplex.FsThisVfs.FxCurrentTimeInt64 = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{multiplexCurrentTimeInt64}))
gMultiplex.FsIoMethodsV1.FiVersion = 1
- gMultiplex.FsIoMethodsV1.FxClose = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{multiplexClose}))
+ gMultiplex.FsIoMethodsV1.FxClose = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{multiplexClose}))
gMultiplex.FsIoMethodsV1.FxRead = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
}{multiplexRead}))
gMultiplex.FsIoMethodsV1.FxWrite = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
}{multiplexWrite}))
gMultiplex.FsIoMethodsV1.FxTruncate = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, sqlite3_int64) int32
+ f func(*libc.TLS, uintptr, sqlite3_int64) int32
}{multiplexTruncate}))
gMultiplex.FsIoMethodsV1.FxSync = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{multiplexSync}))
gMultiplex.FsIoMethodsV1.FxFileSize = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{multiplexFileSize}))
gMultiplex.FsIoMethodsV1.FxLock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{multiplexLock}))
gMultiplex.FsIoMethodsV1.FxUnlock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{multiplexUnlock}))
gMultiplex.FsIoMethodsV1.FxCheckReservedLock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{multiplexCheckReservedLock}))
gMultiplex.FsIoMethodsV1.FxFileControl = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr) int32
}{multiplexFileControl}))
- gMultiplex.FsIoMethodsV1.FxSectorSize = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{multiplexSectorSize}))
- gMultiplex.FsIoMethodsV1.FxDeviceCharacteristics = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{multiplexDeviceCharacteristics}))
+ gMultiplex.FsIoMethodsV1.FxSectorSize = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{multiplexSectorSize}))
+ gMultiplex.FsIoMethodsV1.FxDeviceCharacteristics = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{multiplexDeviceCharacteristics}))
gMultiplex.FsIoMethodsV2 = gMultiplex.FsIoMethodsV1
gMultiplex.FsIoMethodsV2.FiVersion = 2
gMultiplex.FsIoMethodsV2.FxShmMap = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32
}{multiplexShmMap}))
gMultiplex.FsIoMethodsV2.FxShmLock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, int32, int32) int32
+ f func(*libc.TLS, uintptr, int32, int32, int32) int32
}{multiplexShmLock}))
- gMultiplex.FsIoMethodsV2.FxShmBarrier = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{multiplexShmBarrier}))
+ gMultiplex.FsIoMethodsV2.FxShmBarrier = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{multiplexShmBarrier}))
gMultiplex.FsIoMethodsV2.FxShmUnmap = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{multiplexShmUnmap}))
sqlite3.Xsqlite3_vfs_register(tls, (uintptr(unsafe.Pointer(&gMultiplex)) + 8 /* &.sThisVfs */), makeDefault)
sqlite3.Xsqlite3_auto_extension(tls, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr) int32
}{multiplexFuncInit})))
return 0
@@ -61715,19 +66457,19 @@ func sqlite3_multiplex_initialize(tls *crt.TLS, zOrigVfsName uintptr, makeDefaul
//
// THIS ROUTINE IS NOT THREADSAFE. Call this routine exactly once while
// shutting down in order to free all remaining multiplex groups.
-func sqlite3_multiplex_shutdown(tls *crt.TLS, eForce int32) int32 { /* test_multiplex.c:1158:5: */
+func sqlite3_multiplex_shutdown(tls *libc.TLS, eForce int32) int32 { /* test_multiplex.c:1158:5: */
var rc int32 = 0
if gMultiplex.FisInitialized == 0 {
return 21
}
gMultiplex.FisInitialized = 0
sqlite3.Xsqlite3_vfs_unregister(tls, (uintptr(unsafe.Pointer(&gMultiplex)) + 8 /* &.sThisVfs */))
- crt.Xmemset(tls, uintptr(unsafe.Pointer(&gMultiplex)), 0, uint64(unsafe.Sizeof(gMultiplex)))
+ libc.Xmemset(tls, uintptr(unsafe.Pointer(&gMultiplex)), 0, uint64(unsafe.Sizeof(gMultiplex)))
return rc
}
// tclcmd: sqlite3_multiplex_initialize NAME MAKEDEFAULT
-func test_multiplex_initialize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_multiplex.c:1183:26: */
+func test_multiplex_initialize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_multiplex.c:1183:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -61740,7 +66482,7 @@ func test_multiplex_initialize(tls *crt.TLS, clientData uintptr, interp uintptr,
// Process arguments
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31573 /* "NAME MAKEDEFAULT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+33657 /* "NAME MAKEDEFAULT" */)
return 1
}
zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -61759,28 +66501,28 @@ func test_multiplex_initialize(tls *crt.TLS, clientData uintptr, interp uintptr,
}
// tclcmd: sqlite3_multiplex_shutdown
-func test_multiplex_shutdown(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_multiplex.c:1214:26: */
+func test_multiplex_shutdown(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_multiplex.c:1214:26: */
var rc int32 // Value returned by multiplex_shutdown()
_ = clientData
- if (objc == 2) && (crt.Xstrcmp(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), ts+31590 /* "-force" */) != 0) {
+ if (objc == 2) && (libc.Xstrcmp(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), ts+33674 /* "-force" */) != 0) {
objc = 3
}
if (objc != 1) && (objc != 2) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31597 /* "?-force?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+33681 /* "?-force?" */)
return 1
}
// Call sqlite3_multiplex_shutdown()
- rc = sqlite3_multiplex_shutdown(tls, (crt.Bool32(objc == 2)))
+ rc = sqlite3_multiplex_shutdown(tls, (libc.Bool32(objc == 2)))
tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
return 0
}
// Tclcmd: test_multiplex_control HANDLE DBNAME SUB-COMMAND ?INT-VALUE?
-func test_multiplex_control(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_multiplex.c:1242:26: */
+func test_multiplex_control(tls *libc.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_multiplex.c:1242:26: */
bp := tls.Alloc(176)
defer tls.Free(176)
@@ -61802,20 +66544,20 @@ func test_multiplex_control(tls *crt.TLS, cd ClientData, interp uintptr, objc in
Fop int32
Fargtype int32
}{
- {FzName: ts + 31606 /* "enable" */, Fop: 214014, Fargtype: 1},
- {FzName: ts + 31613 /* "chunk_size" */, Fop: 214015, Fargtype: 1},
- {FzName: ts + 31624 /* "max_chunks" */, Fop: 214016, Fargtype: 1},
+ {FzName: ts + 33690 /* "enable" */, Fop: 214014, Fargtype: 1},
+ {FzName: ts + 33697 /* "chunk_size" */, Fop: 214015, Fargtype: 1},
+ {FzName: ts + 33708 /* "max_chunks" */, Fop: 214016, Fargtype: 1},
{FzName: uintptr(0), Fop: 0, Fargtype: 0},
}
if objc != 5 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31635 /* "HANDLE DBNAME SU..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+33719 /* "HANDLE DBNAME SU..." */)
return 1
}
if 0 == tcl.XTcl_GetCommandInfo(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+40 /* &cmdInfo */) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+31671 /* "expected databas..." */, 0))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), ts+9801 /* "\"" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+33755 /* "expected databas..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), ts+11456 /* "\"" */, 0))
return 1
} else {
db = *(*uintptr)(unsafe.Pointer((*Tcl_CmdInfo)(unsafe.Pointer(bp + 40 /* &cmdInfo */)).FobjClientData))
@@ -61843,7 +66585,7 @@ func test_multiplex_control(tls *crt.TLS, cd ClientData, interp uintptr, objc in
pArg = bp + 172 /* &iValue */
break
default:
- tcl.XTcl_WrongNumArgs(tls, interp, 4, objv, ts+31703 /* "SUB-COMMAND" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 4, objv, ts+2383 /* "SUB-COMMAND" */)
return 1
}
@@ -61862,26 +66604,26 @@ func test_multiplex_control(tls *crt.TLS, cd ClientData, interp uintptr, objc in
// This routine registers the custom TCL commands defined in this
// module. This should be the only procedure visible from outside
// of this module.
-func Sqlitemultiplex_Init(tls *crt.TLS, interp uintptr) int32 { /* test_multiplex.c:1306:5: */
+func Sqlitemultiplex_Init(tls *libc.TLS, interp uintptr) int32 { /* test_multiplex.c:1306:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd6)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd7)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aCmd6[i].FzName, aCmd6[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aCmd7[i].FzName, aCmd7[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aCmd6 = [3]struct {
+var aCmd7 = [3]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 31715 /* "sqlite3_multiple..." */, FxProc: 0},
- {FzName: ts + 31744 /* "sqlite3_multiple..." */, FxProc: 0},
- {FzName: ts + 31771 /* "sqlite3_multiple..." */, FxProc: 0},
+ {FzName: ts + 33787 /* "sqlite3_multiple..." */, FxProc: 0},
+ {FzName: ts + 33816 /* "sqlite3_multiple..." */, FxProc: 0},
+ {FzName: ts + 33843 /* "sqlite3_multiple..." */, FxProc: 0},
} /* test_multiplex.c:1310:5 */
// CAPI3REF: Standard File Control Opcodes
@@ -61950,7 +66692,7 @@ var aCmd6 = [3]struct {
// of the xSync method. In most cases, the pointer argument passed with
// this file-control is NULL. However, if the database file is being synced
// as part of a multi-database commit, the argument points to a nul-terminated
-// string containing the transactions master-journal file name. VFSes that
+// string containing the transactions super-journal file name. VFSes that
// do not need this signal should silently ignore this opcode. Applications
// should not call [sqlite3_file_control()] with this opcode as doing so may
// disrupt the operation of the specialized VFSes that do require it.
@@ -62215,13 +66957,13 @@ var aCmd6 = [3]struct {
// deals with pointers to the [sqlite3_mutex] object.
//
// Mutexes are created using [sqlite3_mutex_alloc()].
-type sqlite3_mutex = sqlite3_mutex1 /* sqlite3.h:1183:30 */
+type sqlite3_mutex = sqlite3_mutex1 /* sqlite3.h:1186:30 */
var aName = [15]uintptr{
- ts + 31797 /* "fast" */, ts + 31802 /* "recursive" */, ts + 31812 /* "static_master" */, ts + 31826, /* "static_mem" */
- ts + 31837 /* "static_open" */, ts + 31849 /* "static_prng" */, ts + 31861 /* "static_lru" */, ts + 31872, /* "static_pmem" */
- ts + 31884 /* "static_app1" */, ts + 31896 /* "static_app2" */, ts + 31908 /* "static_app3" */, ts + 31920, /* "static_vfs1" */
- ts + 31932 /* "static_vfs2" */, ts + 31944 /* "static_vfs3" */, uintptr(0),
+ ts + 33869 /* "fast" */, ts + 33874 /* "recursive" */, ts + 33884 /* "static_main" */, ts + 33896, /* "static_mem" */
+ ts + 33907 /* "static_open" */, ts + 33919 /* "static_prng" */, ts + 33931 /* "static_lru" */, ts + 33942, /* "static_pmem" */
+ ts + 33954 /* "static_app1" */, ts + 33966 /* "static_app2" */, ts + 33978 /* "static_app3" */, ts + 33990, /* "static_vfs1" */
+ ts + 34002 /* "static_vfs2" */, ts + 34014 /* "static_vfs3" */, uintptr(0),
} /* test_mutex.c:32:19 */
// State variables
@@ -62239,47 +66981,47 @@ type test_mutex_globals = struct {
var g3 = test_mutex_globals{FisInstalled: 0} /* test_mutex.c:54:3 */
// Return true if the countable mutex is currently held
-func counterMutexHeld(tls *crt.TLS, p uintptr) int32 { /* test_mutex.c:57:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 56 /* &.xMutexHeld */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
+func counterMutexHeld(tls *libc.TLS, p uintptr) int32 { /* test_mutex.c:57:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 56 /* &.xMutexHeld */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
}
// Return true if the countable mutex is not currently held
-func counterMutexNotheld(tls *crt.TLS, p uintptr) int32 { /* test_mutex.c:62:12: */
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 64 /* &.xMutexNotheld */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
+func counterMutexNotheld(tls *libc.TLS, p uintptr) int32 { /* test_mutex.c:62:12: */
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 64 /* &.xMutexNotheld */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
}
// Initialize the countable mutex interface
// Or, if g.disableInit is non-zero, then do not initialize but instead
// return the value of g.disableInit as the result code. This can be used
// to simulate an initialization failure.
-func counterMutexInit(tls *crt.TLS) int32 { /* test_mutex.c:71:12: */
+func counterMutexInit(tls *libc.TLS) int32 { /* test_mutex.c:71:12: */
var rc int32
if g3.FdisableInit != 0 {
return g3.FdisableInit
}
- rc = (*(*func(*crt.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ /* &.xMutexInit */))))(tls)
+ rc = (*(*func(*libc.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ /* &.xMutexInit */))))(tls)
g3.FisInit = 1
return rc
}
// Uninitialize the mutex subsystem
-func counterMutexEnd(tls *crt.TLS) int32 { /* test_mutex.c:82:12: */
+func counterMutexEnd(tls *libc.TLS) int32 { /* test_mutex.c:82:12: */
g3.FisInit = 0
- return (*(*func(*crt.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 8 /* &.xMutexEnd */))))(tls)
+ return (*(*func(*libc.TLS) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 8 /* &.xMutexEnd */))))(tls)
}
// Allocate a countable mutex
-func counterMutexAlloc(tls *crt.TLS, eType int32) uintptr { /* test_mutex.c:90:22: */
+func counterMutexAlloc(tls *libc.TLS, eType int32) uintptr { /* test_mutex.c:90:22: */
var pReal uintptr
var pRet uintptr = uintptr(0)
- pReal = (*(*func(*crt.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 16 /* &.xMutexAlloc */))))(tls, eType)
+ pReal = (*(*func(*libc.TLS, int32) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 16 /* &.xMutexAlloc */))))(tls, eType)
if !(pReal != 0) {
return uintptr(0)
}
if (eType == 0) || (eType == 1) {
- pRet = crt.Xmalloc(tls, uint64(unsafe.Sizeof(sqlite3_mutex{})))
+ pRet = libc.Xmalloc(tls, uint64(unsafe.Sizeof(sqlite3_mutex{})))
} else {
var eStaticType int32 = (eType - ((13 + 1) - ((13 + 1) - (1 + 1))))
@@ -62292,39 +67034,39 @@ func counterMutexAlloc(tls *crt.TLS, eType int32) uintptr { /* test_mutex.c:90:2
}
// Free a countable mutex
-func counterMutexFree(tls *crt.TLS, p uintptr) { /* test_mutex.c:118:13: */
+func counterMutexFree(tls *libc.TLS, p uintptr) { /* test_mutex.c:118:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 24 /* &.xMutexFree */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 24 /* &.xMutexFree */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
if ((*sqlite3_mutex)(unsafe.Pointer(p)).FeType == 0) || ((*sqlite3_mutex)(unsafe.Pointer(p)).FeType == 1) {
- crt.Xfree(tls, p)
+ libc.Xfree(tls, p)
}
}
// Enter a countable mutex. Block until entry is safe.
-func counterMutexEnter(tls *crt.TLS, p uintptr) { /* test_mutex.c:129:13: */
+func counterMutexEnter(tls *libc.TLS, p uintptr) { /* test_mutex.c:129:13: */
*(*int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 88 /* &.aCounter */) + uintptr((*sqlite3_mutex)(unsafe.Pointer(p)).FeType)*4))++
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 32 /* &.xMutexEnter */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 32 /* &.xMutexEnter */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
}
// Try to enter a mutex. Return true on success.
-func counterMutexTry(tls *crt.TLS, p uintptr) int32 { /* test_mutex.c:140:12: */
+func counterMutexTry(tls *libc.TLS, p uintptr) int32 { /* test_mutex.c:140:12: */
*(*int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 88 /* &.aCounter */) + uintptr((*sqlite3_mutex)(unsafe.Pointer(p)).FeType)*4))++
if g3.FdisableTry != 0 {
return 5
}
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 40 /* &.xMutexTry */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 40 /* &.xMutexTry */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
}
// Leave a mutex
-func counterMutexLeave(tls *crt.TLS, p uintptr) { /* test_mutex.c:151:13: */
+func counterMutexLeave(tls *libc.TLS, p uintptr) { /* test_mutex.c:151:13: */
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 48 /* &.xMutexLeave */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */ + 48 /* &.xMutexLeave */))))(tls, (*sqlite3_mutex)(unsafe.Pointer(p)).FpReal)
}
// sqlite3_shutdown
-func test_shutdown(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:159:26: */
+func test_shutdown(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:159:26: */
var rc int32
if objc != 1 {
@@ -62338,7 +67080,7 @@ func test_shutdown(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
}
// sqlite3_initialize
-func test_initialize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:180:26: */
+func test_initialize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:180:26: */
var rc int32
if objc != 1 {
@@ -62352,17 +67094,26 @@ func test_initialize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
// install_mutex_counters BOOLEAN
-func test_install_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:201:26: */
+func test_install_mutex_counters(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:201:26: */
bp := tls.Alloc(136)
defer tls.Free(136)
var rc int32 = 0
// var isInstall int32 at bp+56, 4
- *(*sqlite3_mutex_methods)(unsafe.Pointer(bp + 64 /* counter_methods */)) = sqlite3_mutex_methods{FxMutexInit: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) int32 }{counterMutexInit})), FxMutexEnd: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) int32 }{counterMutexEnd})), FxMutexAlloc: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, int32) uintptr }{counterMutexAlloc})), FxMutexFree: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{counterMutexFree})), FxMutexEnter: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{counterMutexEnter})), FxMutexTry: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{counterMutexTry})), FxMutexLeave: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{counterMutexLeave})), FxMutexHeld: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{counterMutexHeld})), FxMutexNotheld: *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{counterMutexNotheld}))}
+ *(*sqlite3_mutex_methods)(unsafe.Pointer(bp + 64 /* counter_methods */)) = sqlite3_mutex_methods{FxMutexInit: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{counterMutexInit})), FxMutexEnd: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{counterMutexEnd})), FxMutexAlloc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, int32) uintptr
+ }{counterMutexAlloc})), FxMutexFree: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{counterMutexFree})), FxMutexEnter: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{counterMutexEnter})), FxMutexTry: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{counterMutexTry})), FxMutexLeave: *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{counterMutexLeave})), FxMutexHeld: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{counterMutexHeld})), FxMutexNotheld: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{counterMutexNotheld})),
+ }
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29939 /* "BOOLEAN" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+17539 /* "BOOLEAN" */)
return 1
}
if 0 != tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+56 /* &isInstall */) {
@@ -62370,27 +67121,27 @@ func test_install_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintpt
}
if *(*int32)(unsafe.Pointer(bp + 56 /* isInstall */)) == g3.FisInstalled {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+31956 /* "mutex counters a..." */, 0))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, func() uintptr {
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+34026 /* "mutex counters a..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, func() uintptr {
if *(*int32)(unsafe.Pointer(bp + 56 /* isInstall */)) != 0 {
- return ts + 31976 /* "already installe..." */
+ return ts + 34046 /* "already installe..." */
}
- return ts + 31994 /* "not installed" */
+ return ts + 34064 /* "not installed" */
}(), 0))
return 1
}
if *(*int32)(unsafe.Pointer(bp + 56 /* isInstall */)) != 0 {
- rc = sqlite3.Xsqlite3_config(tls, 11, crt.VaList(bp+32, (uintptr(unsafe.Pointer(&g3))+16 /* &.m */)))
+ rc = sqlite3.Xsqlite3_config(tls, 11, libc.VaList(bp+32, (uintptr(unsafe.Pointer(&g3))+16 /* &.m */)))
if rc == 0 {
- sqlite3.Xsqlite3_config(tls, 10, crt.VaList(bp+40, bp+64 /* &counter_methods */))
+ sqlite3.Xsqlite3_config(tls, 10, libc.VaList(bp+40, bp+64 /* &counter_methods */))
}
g3.FdisableTry = 0
} else {
- rc = sqlite3.Xsqlite3_config(tls, 10, crt.VaList(bp+48, (uintptr(unsafe.Pointer(&g3))+16 /* &.m */)))
- crt.Xmemset(tls, (uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */), 0, uint64(unsafe.Sizeof(sqlite3_mutex_methods{})))
+ rc = sqlite3.Xsqlite3_config(tls, 10, libc.VaList(bp+48, (uintptr(unsafe.Pointer(&g3))+16 /* &.m */)))
+ libc.Xmemset(tls, (uintptr(unsafe.Pointer(&g3)) + 16 /* &.m */), 0, uint64(unsafe.Sizeof(sqlite3_mutex_methods{})))
}
if rc == 0 {
@@ -62402,7 +67153,7 @@ func test_install_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintpt
}
// read_mutex_counters
-func test_read_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:262:26: */
+func test_read_mutex_counters(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:262:26: */
var pRet uintptr
var ii int32
@@ -62420,7 +67171,7 @@ func test_read_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintptr,
tcl.XTcl_SetObjResult(tls, interp, pRet)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pRet
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -62429,7 +67180,7 @@ func test_read_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintptr,
}
// clear_mutex_counters
-func test_clear_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:291:26: */
+func test_clear_mutex_counters(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:291:26: */
var ii int32
if objc != 1 {
@@ -62446,7 +67197,7 @@ func test_clear_mutex_counters(tls *crt.TLS, clientData uintptr, interp uintptr,
// Create and free a mutex. Return the mutex pointer. The pointer
// will be invalid since the mutex has already been freed. The
// return pointer just checks to see if the mutex really was allocated.
-func test_alloc_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:315:26: */
+func test_alloc_mutex(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:315:26: */
bp := tls.Alloc(124)
defer tls.Free(124)
@@ -62454,8 +67205,8 @@ func test_alloc_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// var zBuf [100]int8 at bp+24, 100
sqlite3.Xsqlite3_mutex_free(tls, p)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+24 /* &zBuf[0] */, ts+11197 /* "%p" */, crt.VaList(bp, p))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+8, bp+24 /* &zBuf[0] */, uintptr(0)))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([100]int8{})), bp+24 /* &zBuf[0] */, ts+12843 /* "%p" */, libc.VaList(bp, p))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+8, bp+24 /* &zBuf[0] */, uintptr(0)))
return 0
}
@@ -62468,14 +67219,14 @@ func test_alloc_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// SQLITE_CONFIG_SERIALIZED
//
// Or OPTION can be an raw integer.
-func test_config(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:342:26: */
+func test_config(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:342:26: */
bp := tls.Alloc(68)
defer tls.Free(68)
*(*[4]ConfigOption)(unsafe.Pointer(bp /* aOpt */)) = [4]ConfigOption{
- {FzName: ts + 32008 /* "singlethread" */, FiValue: 1},
- {FzName: ts + 32021 /* "multithread" */, FiValue: 2},
- {FzName: ts + 32033 /* "serialized" */, FiValue: 3},
+ {FzName: ts + 34078 /* "singlethread" */, FiValue: 1},
+ {FzName: ts + 34091 /* "multithread" */, FiValue: 2},
+ {FzName: ts + 34103 /* "serialized" */, FiValue: 3},
{FzName: uintptr(0), FiValue: 0},
}
var s int32 = int32(unsafe.Sizeof(ConfigOption{}))
@@ -62488,7 +67239,7 @@ func test_config(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
return 1
}
- if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &aOpt[0] */, s, ts+15142 /* "flag" */, 0, bp+64 /* &i */) != 0 {
+ if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp /* &aOpt[0] */, s, ts+16852 /* "flag" */, 0, bp+64 /* &i */) != 0 {
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+64 /* &i */) != 0 {
return 1
}
@@ -62507,7 +67258,7 @@ type ConfigOption = struct {
_ [4]byte
}
-func getDbPointer1(tls *crt.TLS, pInterp uintptr, pObj uintptr) uintptr { /* test_mutex.c:379:16: */
+func getDbPointer1(tls *libc.TLS, pInterp uintptr, pObj uintptr) uintptr { /* test_mutex.c:379:16: */
bp := tls.Alloc(64)
defer tls.Free(64)
@@ -62524,23 +67275,23 @@ func getDbPointer1(tls *crt.TLS, pInterp uintptr, pObj uintptr) uintptr { /* tes
return db
}
-func getStaticMutexPointer(tls *crt.TLS, pInterp uintptr, pObj uintptr) uintptr { /* test_mutex.c:392:22: */
+func getStaticMutexPointer(tls *libc.TLS, pInterp uintptr, pObj uintptr) uintptr { /* test_mutex.c:392:22: */
bp := tls.Alloc(4)
defer tls.Free(4)
// var iMutex int32 at bp, 4
- if tcl.XTcl_GetIndexFromObjStruct(tls, pInterp, pObj, uintptr(unsafe.Pointer(&aName)), int32(unsafe.Sizeof(uintptr(0))), ts+32044 /* "mutex name" */, 0, bp /* &iMutex */) != 0 {
+ if tcl.XTcl_GetIndexFromObjStruct(tls, pInterp, pObj, uintptr(unsafe.Pointer(&aName)), int32(unsafe.Sizeof(uintptr(0))), ts+34114 /* "mutex name" */, 0, bp /* &iMutex */) != 0 {
return uintptr(0)
}
return counterMutexAlloc(tls, *(*int32)(unsafe.Pointer(bp /* iMutex */)))
}
-func test_enter_static_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:404:26: */
+func test_enter_static_mutex(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:404:26: */
var pMutex uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32055 /* "NAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10219 /* "NAME" */)
return 1
}
pMutex = getStaticMutexPointer(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -62551,10 +67302,10 @@ func test_enter_static_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, o
return 0
}
-func test_leave_static_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:423:26: */
+func test_leave_static_mutex(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:423:26: */
var pMutex uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32055 /* "NAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+10219 /* "NAME" */)
return 1
}
pMutex = getStaticMutexPointer(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -62565,7 +67316,7 @@ func test_leave_static_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, o
return 0
}
-func test_enter_db_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:442:26: */
+func test_enter_db_mutex(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:442:26: */
var db uintptr
if objc != 2 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+1910 /* "DB" */)
@@ -62579,7 +67330,7 @@ func test_enter_db_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc
return 0
}
-func test_leave_db_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:461:26: */
+func test_leave_db_mutex(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_mutex.c:461:26: */
var db uintptr
if objc != 2 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+1910 /* "DB" */)
@@ -62593,40 +67344,40 @@ func test_leave_db_mutex(tls *crt.TLS, clientData uintptr, interp uintptr, objc
return 0
}
-func Sqlitetest_mutex_Init(tls *crt.TLS, interp uintptr) int32 { /* test_mutex.c:480:5: */
+func Sqlitetest_mutex_Init(tls *libc.TLS, interp uintptr) int32 { /* test_mutex.c:480:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd7)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd8)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aCmd7[i].FzName, aCmd7[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aCmd8[i].FzName, aCmd8[i].FxProc, uintptr(0), uintptr(0))
}
- tcl.XTcl_LinkVar(tls, interp, ts+32060, /* "disable_mutex_in..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+34125, /* "disable_mutex_in..." */
(uintptr(unsafe.Pointer(&g3)) + 4 /* &.disableInit */), 1)
- tcl.XTcl_LinkVar(tls, interp, ts+32079, /* "disable_mutex_tr..." */
+ tcl.XTcl_LinkVar(tls, interp, ts+34144, /* "disable_mutex_tr..." */
(uintptr(unsafe.Pointer(&g3)) + 8 /* &.disableTry */), 1)
return 0
}
-var aCmd7 = [11]struct {
+var aCmd8 = [11]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 32097 /* "sqlite3_shutdown" */, FxProc: 0},
- {FzName: ts + 32114 /* "sqlite3_initiali..." */, FxProc: 0},
- {FzName: ts + 32133 /* "sqlite3_config" */, FxProc: 0},
+ {FzName: ts + 34162 /* "sqlite3_shutdown" */, FxProc: 0},
+ {FzName: ts + 34179 /* "sqlite3_initiali..." */, FxProc: 0},
+ {FzName: ts + 34198 /* "sqlite3_config" */, FxProc: 0},
- {FzName: ts + 32148 /* "enter_static_mut..." */, FxProc: 0},
- {FzName: ts + 32167 /* "leave_static_mut..." */, FxProc: 0},
+ {FzName: ts + 34213 /* "enter_static_mut..." */, FxProc: 0},
+ {FzName: ts + 34232 /* "leave_static_mut..." */, FxProc: 0},
- {FzName: ts + 32186 /* "enter_db_mutex" */, FxProc: 0},
- {FzName: ts + 32201 /* "leave_db_mutex" */, FxProc: 0},
+ {FzName: ts + 34251 /* "enter_db_mutex" */, FxProc: 0},
+ {FzName: ts + 34266 /* "leave_db_mutex" */, FxProc: 0},
- {FzName: ts + 32216 /* "alloc_dealloc_mu..." */, FxProc: 0},
- {FzName: ts + 32236 /* "install_mutex_co..." */, FxProc: 0},
- {FzName: ts + 32259 /* "read_mutex_count..." */, FxProc: 0},
- {FzName: ts + 32279 /* "clear_mutex_coun..." */, FxProc: 0},
+ {FzName: ts + 34281 /* "alloc_dealloc_mu..." */, FxProc: 0},
+ {FzName: ts + 34301 /* "install_mutex_co..." */, FxProc: 0},
+ {FzName: ts + 34324 /* "read_mutex_count..." */, FxProc: 0},
+ {FzName: ts + 34344 /* "clear_mutex_coun..." */, FxProc: 0},
} /* test_mutex.c:484:5 */
// Maximum pathname length supported by the fs backend.
@@ -62679,7 +67430,7 @@ var fs_vfs = fs_vfs_t{Fbase: sqlite3_vfs{FiVersion: 1, FszOsFile: // iVersion
0, FmxPathname:// szOsFile
0, FpNext:// mxPathname
uintptr(0), FzName:// pNext
-ts + 27869, /* "fs" */ FpAppData:// zName
+ts + 29961, /* "fs" */ FpAppData:// zName
uintptr(0), FxOpen:// pAppData
0, FxDelete:// xOpen
0, FxAccess:// xDelete
@@ -62738,24 +67489,24 @@ uintptr(0), // xShmUnmap
// Useful macros used in several places
// Close a tmp-file.
-func tmpClose(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:257:12: */
+func tmpClose(tls *libc.TLS, pFile uintptr) int32 { /* test_onefile.c:257:12: */
var pTmp uintptr = pFile
sqlite3.Xsqlite3_free(tls, (*tmp_file)(unsafe.Pointer(pTmp)).FzAlloc)
return 0
}
// Read data from a tmp-file.
-func tmpRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:266:12: */
+func tmpRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:266:12: */
var pTmp uintptr = pFile
if (sqlite_int64(iAmt) + iOfst) > sqlite_int64((*tmp_file)(unsafe.Pointer(pTmp)).FnSize) {
return (10 | (int32(2) << 8))
}
- crt.Xmemcpy(tls, zBuf, ((*tmp_file)(unsafe.Pointer(pTmp)).FzAlloc + uintptr(iOfst)), uint64(iAmt))
+ libc.Xmemcpy(tls, zBuf, ((*tmp_file)(unsafe.Pointer(pTmp)).FzAlloc + uintptr(iOfst)), uint64(iAmt))
return 0
}
// Write data to a tmp-file.
-func tmpWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:283:12: */
+func tmpWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:283:12: */
var pTmp uintptr = pFile
if (sqlite_int64(iAmt) + iOfst) > sqlite_int64((*tmp_file)(unsafe.Pointer(pTmp)).FnAlloc) {
var nNew int32 = (int32(int64(2) * ((sqlite_int64(iAmt) + iOfst) + sqlite_int64((*tmp_file)(unsafe.Pointer(pTmp)).FnAlloc))))
@@ -62766,7 +67517,7 @@ func tmpWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlit
(*tmp_file)(unsafe.Pointer(pTmp)).FzAlloc = zNew
(*tmp_file)(unsafe.Pointer(pTmp)).FnAlloc = nNew
}
- crt.Xmemcpy(tls, ((*tmp_file)(unsafe.Pointer(pTmp)).FzAlloc + uintptr(iOfst)), zBuf, uint64(iAmt))
+ libc.Xmemcpy(tls, ((*tmp_file)(unsafe.Pointer(pTmp)).FzAlloc + uintptr(iOfst)), zBuf, uint64(iAmt))
(*tmp_file)(unsafe.Pointer(pTmp)).FnSize = func() int32 {
if (sqlite_int64((*tmp_file)(unsafe.Pointer(pTmp)).FnSize)) > (iOfst + sqlite_int64(iAmt)) {
return (*tmp_file)(unsafe.Pointer(pTmp)).FnSize
@@ -62777,7 +67528,7 @@ func tmpWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlit
}
// Truncate a tmp-file.
-func tmpTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_onefile.c:307:12: */
+func tmpTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_onefile.c:307:12: */
var pTmp uintptr = pFile
(*tmp_file)(unsafe.Pointer(pTmp)).FnSize = func() int32 {
if (sqlite_int64((*tmp_file)(unsafe.Pointer(pTmp)).FnSize)) < (size) {
@@ -62789,50 +67540,50 @@ func tmpTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test
}
// Sync a tmp-file.
-func tmpSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_onefile.c:316:12: */
+func tmpSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_onefile.c:316:12: */
return 0
}
// Return the current file-size of a tmp-file.
-func tmpFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_onefile.c:323:12: */
+func tmpFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_onefile.c:323:12: */
var pTmp uintptr = pFile
*(*sqlite_int64)(unsafe.Pointer(pSize)) = sqlite_int64((*tmp_file)(unsafe.Pointer(pTmp)).FnSize)
return 0
}
// Lock a tmp-file.
-func tmpLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:332:12: */
+func tmpLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:332:12: */
return 0
}
// Unlock a tmp-file.
-func tmpUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:339:12: */
+func tmpUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:339:12: */
return 0
}
// Check if another file-handle holds a RESERVED lock on a tmp-file.
-func tmpCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_onefile.c:346:12: */
+func tmpCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_onefile.c:346:12: */
*(*int32)(unsafe.Pointer(pResOut)) = 0
return 0
}
// File control method. For custom operations on a tmp-file.
-func tmpFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_onefile.c:354:12: */
+func tmpFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_onefile.c:354:12: */
return 0
}
// Return the sector-size in bytes for a tmp-file.
-func tmpSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:361:12: */
+func tmpSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_onefile.c:361:12: */
return 0
}
// Return the device characteristic flags supported by a tmp-file.
-func tmpDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:368:12: */
+func tmpDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_onefile.c:368:12: */
return 0
}
// Close an fs-file.
-func fsClose1(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:375:12: */
+func fsClose1(tls *libc.TLS, pFile uintptr) int32 { /* test_onefile.c:375:12: */
var rc int32 = 0
var p uintptr = pFile
var pReal uintptr = (*fs_file)(unsafe.Pointer(p)).FpReal
@@ -62846,7 +67597,7 @@ func fsClose1(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:375:12: */
if (*fs_real_file)(unsafe.Pointer(pReal)).FpNext != 0 {
(*fs_real_file)(unsafe.Pointer((*fs_real_file)(unsafe.Pointer(pReal)).FpNext)).FppThis = (*fs_real_file)(unsafe.Pointer(pReal)).FppThis
}
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*fs_real_file)(unsafe.Pointer(pReal)).FpFile)).FpMethods + 8 /* &.xClose */))))(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FpFile)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*fs_real_file)(unsafe.Pointer(pReal)).FpFile)).FpMethods + 8 /* &.xClose */))))(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FpFile)
sqlite3.Xsqlite3_free(tls, pReal)
}
@@ -62854,7 +67605,7 @@ func fsClose1(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:375:12: */
}
// Read data from an fs-file.
-func fsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:400:12: */
+func fsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:400:12: */
var rc int32 = 0
var p uintptr = pFile
var pReal uintptr = (*fs_file)(unsafe.Pointer(p)).FpReal
@@ -62864,7 +67615,7 @@ func fsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_
(((*fs_file)(unsafe.Pointer(p)).FeType == 2) && ((sqlite_int64(iAmt) + iOfst) > sqlite_int64((*fs_real_file)(unsafe.Pointer(pReal)).FnJournal))) {
rc = (10 | (int32(2) << 8))
} else if (*fs_file)(unsafe.Pointer(p)).FeType == 1 {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 16 /* &.xRead */))))(tls, pF, zBuf, iAmt, (iOfst + int64(512)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 16 /* &.xRead */))))(tls, pF, zBuf, iAmt, (iOfst + int64(512)))
} else {
// Journal file.
var iRem int32 = iAmt
@@ -62879,7 +67630,7 @@ func fsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_
return (512 - (iRealOff % 512))
}()
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 16 /* &.xRead */))))(tls, pF, ((zBuf) + uintptr(iBuf)), iRealAmt, int64(iRealOff))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 16 /* &.xRead */))))(tls, pF, ((zBuf) + uintptr(iBuf)), iRealAmt, int64(iRealOff))
ii = ii + (iRealAmt)
iBuf = iBuf + (iRealAmt)
iRem = iRem - (iRealAmt)
@@ -62890,7 +67641,7 @@ func fsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_
}
// Write data to an fs-file.
-func fsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:439:12: */
+func fsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_onefile.c:439:12: */
var rc int32 = 0
var p uintptr = pFile
var pReal uintptr = (*fs_file)(unsafe.Pointer(p)).FpReal
@@ -62900,7 +67651,7 @@ func fsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
if ((sqlite_int64(iAmt) + iOfst) + int64(512)) > (sqlite_int64((*fs_real_file)(unsafe.Pointer(pReal)).FnBlob - (*fs_real_file)(unsafe.Pointer(pReal)).FnJournal)) {
rc = 13
} else {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 24 /* &.xWrite */))))(tls, pF, zBuf, iAmt, (iOfst + int64(512)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 24 /* &.xWrite */))))(tls, pF, zBuf, iAmt, (iOfst + int64(512)))
if rc == 0 {
(*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase = func() int32 {
if (sqlite_int64((*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase)) > (sqlite_int64(iAmt) + iOfst) {
@@ -62927,7 +67678,7 @@ func fsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
if iRealOff < ((*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase + 512) {
rc = 13
} else {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 24 /* &.xWrite */))))(tls, pF, ((zBuf) + uintptr(iBuf)), iRealAmt, int64(iRealOff))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 24 /* &.xWrite */))))(tls, pF, ((zBuf) + uintptr(iBuf)), iRealAmt, int64(iRealOff))
ii = ii + (iRealAmt)
iBuf = iBuf + (iRealAmt)
iRem = iRem - (iRealAmt)
@@ -62947,7 +67698,7 @@ func fsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite
}
// Truncate an fs-file.
-func fsTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_onefile.c:488:12: */
+func fsTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_onefile.c:488:12: */
var p uintptr = pFile
var pReal uintptr = (*fs_file)(unsafe.Pointer(p)).FpReal
if (*fs_file)(unsafe.Pointer(p)).FeType == 1 {
@@ -62969,7 +67720,7 @@ func fsTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_
}
// Sync an fs-file.
-func fsSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_onefile.c:502:12: */
+func fsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_onefile.c:502:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -62985,17 +67736,17 @@ func fsSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_onefile.c:
*(*uint8)(unsafe.Pointer(bp /* &zSize[0] */ + uintptr(1))) = (uint8(((*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase & 0x00FF0000) >> 16))
*(*uint8)(unsafe.Pointer(bp /* &zSize[0] */ + uintptr(2))) = (uint8(((*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase & 0x0000FF00) >> 8))
*(*uint8)(unsafe.Pointer(bp /* &zSize[0] */ + uintptr(3))) = (uint8((*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase & 0x000000FF))
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 24 /* &.xWrite */))))(tls, pRealFile, bp /* &zSize[0] */, 4, int64(0))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 24 /* &.xWrite */))))(tls, pRealFile, bp /* &zSize[0] */, 4, int64(0))
}
if rc == 0 {
- rc = (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 40 /* &.xSync */))))(tls, pRealFile, (flags & (^int32(crt.Int32FromInt32(0x00010)))))
+ rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 40 /* &.xSync */))))(tls, pRealFile, (flags & (^int32(libc.Int32FromInt32(0x00010)))))
}
return rc
}
// Return the current file-size of an fs-file.
-func fsFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_onefile.c:526:12: */
+func fsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_onefile.c:526:12: */
var p uintptr = pFile
var pReal uintptr = (*fs_file)(unsafe.Pointer(p)).FpReal
if (*fs_file)(unsafe.Pointer(p)).FeType == 1 {
@@ -63007,23 +67758,23 @@ func fsFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_onef
}
// Lock an fs-file.
-func fsLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:540:12: */
+func fsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:540:12: */
return 0
}
// Unlock an fs-file.
-func fsUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:547:12: */
+func fsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_onefile.c:547:12: */
return 0
}
// Check if another file-handle holds a RESERVED lock on an fs-file.
-func fsCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_onefile.c:554:12: */
+func fsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_onefile.c:554:12: */
*(*int32)(unsafe.Pointer(pResOut)) = 0
return 0
}
// File control method. For custom operations on an fs-file.
-func fsFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_onefile.c:562:12: */
+func fsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_onefile.c:562:12: */
if op == 14 {
return 12
}
@@ -63031,17 +67782,17 @@ func fsFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 {
}
// Return the sector-size in bytes for an fs-file.
-func fsSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:570:12: */
+func fsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_onefile.c:570:12: */
return 512
}
// Return the device characteristic flags supported by an fs-file.
-func fsDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_onefile.c:577:12: */
+func fsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_onefile.c:577:12: */
return 0
}
// Open an fs file handle.
-func fsOpen1(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_onefile.c:584:12: */
+func fsOpen1(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_onefile.c:584:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -63068,7 +67819,7 @@ func fsOpen1(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int
goto __1
}
p2 = pFile
- crt.Xmemset(tls, p2, 0, uint64(unsafe.Sizeof(tmp_file{})))
+ libc.Xmemset(tls, p2, 0, uint64(unsafe.Sizeof(tmp_file{})))
(*tmp_file)(unsafe.Pointer(p2)).Fbase.FpMethods = uintptr(unsafe.Pointer(&tmp_io_methods))
return 0
__1:
@@ -63083,7 +67834,7 @@ __1:
(*fs_file)(unsafe.Pointer(p)).Fbase.FpMethods = uintptr(unsafe.Pointer(&fs_io_methods))
(*fs_file)(unsafe.Pointer(p)).FeType = eType
- nName = (int32(crt.Xstrlen(tls, zName)) - (func() int32 {
+ nName = (int32(libc.Xstrlen(tls, zName)) - (func() int32 {
if eType == 2 {
return 8
}
@@ -63091,7 +67842,7 @@ __1:
}()))
pReal = (*fs_vfs_t)(unsafe.Pointer(pFsVfs)).FpFileList
__2:
- if !((pReal != 0) && (crt.Xstrncmp(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FzName, zName, uint64(nName)) != 0)) {
+ if !((pReal != 0) && (libc.Xstrncmp(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FzName, zName, uint64(nName)) != 0)) {
goto __4
}
goto __3
@@ -63105,7 +67856,7 @@ __4:
if !(!(pReal != 0)) {
goto __5
}
- real_flags = ((flags & ^int32(crt.Int32FromInt32(0x00000100))) | 0x00000200)
+ real_flags = ((flags & ^int32(libc.Int32FromInt32(0x00000100))) | 0x00000200)
pParent = (*fs_vfs_t)(unsafe.Pointer(pFsVfs)).FpParent
pReal = sqlite3.Xsqlite3_malloc(tls, (int32(uint64(unsafe.Sizeof(fs_real_file{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(pParent)).FszOsFile))))
@@ -63116,11 +67867,11 @@ __4:
goto open_out
__6:
;
- crt.Xmemset(tls, pReal, 0, (uint64(unsafe.Sizeof(fs_real_file{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(pParent)).FszOsFile)))
+ libc.Xmemset(tls, pReal, 0, (uint64(unsafe.Sizeof(fs_real_file{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(pParent)).FszOsFile)))
(*fs_real_file)(unsafe.Pointer(pReal)).FzName = zName
(*fs_real_file)(unsafe.Pointer(pReal)).FpFile = (pReal + uintptr(1)*48)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 40 /* &.xOpen */))))(tls, pParent, zName, (*fs_real_file)(unsafe.Pointer(pReal)).FpFile, real_flags, pOutFlags)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 40 /* &.xOpen */))))(tls, pParent, zName, (*fs_real_file)(unsafe.Pointer(pReal)).FpFile, real_flags, pOutFlags)
if !(rc != 0) {
goto __7
}
@@ -63129,7 +67880,7 @@ __7:
;
pRealFile = (*fs_real_file)(unsafe.Pointer(pReal)).FpFile
- rc = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 48 /* &.xFileSize */))))(tls, pRealFile, bp /* &size */)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 48 /* &.xFileSize */))))(tls, pRealFile, bp /* &size */)
if !(rc != 0) {
goto __8
}
@@ -63139,17 +67890,17 @@ __8:
if !(*(*sqlite3_int64)(unsafe.Pointer(bp /* size */)) == int64(0)) {
goto __9
}
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 24 /* &.xWrite */))))(tls, pRealFile, ts+32300 /* "\x00" */, 1, (int64(10485760 - 1)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 24 /* &.xWrite */))))(tls, pRealFile, ts+34365 /* "\x00" */, 1, (int64(10485760 - 1)))
(*fs_real_file)(unsafe.Pointer(pReal)).FnBlob = 10485760
goto __10
__9:
(*fs_real_file)(unsafe.Pointer(pReal)).FnBlob = int32(*(*sqlite3_int64)(unsafe.Pointer(bp /* size */)))
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 16 /* &.xRead */))))(tls, pRealFile, bp+8 /* &zS[0] */, 4, int64(0))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 16 /* &.xRead */))))(tls, pRealFile, bp+8 /* &zS[0] */, 4, int64(0))
(*fs_real_file)(unsafe.Pointer(pReal)).FnDatabase = ((((int32(*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(0)))) << 24) + (int32(*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(1)))) << 16)) + (int32(*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(2)))) << 8)) + int32(*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(3)))))
if !(rc == 0) {
goto __11
}
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 16 /* &.xRead */))))(tls, pRealFile, bp+8 /* &zS[0] */, 4, (int64((*fs_real_file)(unsafe.Pointer(pReal)).FnBlob - 4)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pRealFile)).FpMethods + 16 /* &.xRead */))))(tls, pRealFile, bp+8 /* &zS[0] */, 4, (int64((*fs_real_file)(unsafe.Pointer(pReal)).FnBlob - 4)))
if !((((*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(0))) != 0) || (*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(1))) != 0)) || (*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(2))) != 0)) || (*(*uint8)(unsafe.Pointer(bp + 8 /* &zS[0] */ + uintptr(3))) != 0)) {
goto __12
}
@@ -63192,7 +67943,7 @@ __16:
if !((*sqlite3_file)(unsafe.Pointer((*fs_real_file)(unsafe.Pointer(pReal)).FpFile)).FpMethods != 0) {
goto __18
}
- (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*fs_real_file)(unsafe.Pointer(pReal)).FpFile)).FpMethods + 8 /* &.xClose */))))(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FpFile)
+ (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*fs_real_file)(unsafe.Pointer(pReal)).FpFile)).FpMethods + 8 /* &.xClose */))))(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FpFile)
__18:
;
sqlite3.Xsqlite3_free(tls, pReal)
@@ -63206,19 +67957,19 @@ __15:
// Delete the file located at zPath. If the dirSync argument is true,
// ensure the file-system modifications are synced to disk before
// returning.
-func fsDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_onefile.c:686:12: */
+func fsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_onefile.c:686:12: */
var rc int32 = 0
var pFsVfs uintptr = pVfs
var pReal uintptr
var pF uintptr
- var nName int32 = (int32(crt.Xstrlen(tls, zPath)) - 8)
+ var nName int32 = (int32(libc.Xstrlen(tls, zPath)) - 8)
pReal = (*fs_vfs_t)(unsafe.Pointer(pFsVfs)).FpFileList
- for ; (pReal != 0) && (crt.Xstrncmp(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FzName, zPath, uint64(nName)) != 0); pReal = (*fs_real_file)(unsafe.Pointer(pReal)).FpNext {
+ for ; (pReal != 0) && (libc.Xstrncmp(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FzName, zPath, uint64(nName)) != 0); pReal = (*fs_real_file)(unsafe.Pointer(pReal)).FpNext {
}
if pReal != 0 {
pF = (*fs_real_file)(unsafe.Pointer(pReal)).FpFile
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 24 /* &.xWrite */))))(tls, pF, ts+32302 /* "\x00\x00\x00\x00" */, 4, (int64((*fs_real_file)(unsafe.Pointer(pReal)).FnBlob - 512)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pF)).FpMethods + 24 /* &.xWrite */))))(tls, pF, ts+34367 /* "\x00\x00\x00\x00" */, 4, (int64((*fs_real_file)(unsafe.Pointer(pReal)).FnBlob - 512)))
if rc == 0 {
(*fs_real_file)(unsafe.Pointer(pReal)).FnJournal = 0
}
@@ -63228,88 +67979,88 @@ func fsDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 {
// Test for access permissions. Return true if the requested permission
// is available, or false otherwise.
-func fsAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_onefile.c:712:12: */
+func fsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_onefile.c:712:12: */
var pFsVfs uintptr = pVfs
var pReal uintptr
var isJournal int32 = 0
- var nName int32 = int32(crt.Xstrlen(tls, zPath))
+ var nName int32 = int32(libc.Xstrlen(tls, zPath))
if flags != 0 {
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 56 /* &.xAccess */))))(tls, pParent, zPath, flags, pResOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 56 /* &.xAccess */))))(tls, pParent, zPath, flags, pResOut)
}
- if (nName > 8) && (crt.Xstrcmp(tls, ts+29625 /* "-journal" */, (zPath+uintptr((nName-8)))) == 0) {
+ if (nName > 8) && (libc.Xstrcmp(tls, ts+31717 /* "-journal" */, (zPath+uintptr((nName-8)))) == 0) {
nName = nName - (8)
isJournal = 1
}
pReal = (*fs_vfs_t)(unsafe.Pointer(pFsVfs)).FpFileList
- for ; (pReal != 0) && (crt.Xstrncmp(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FzName, zPath, uint64(nName)) != 0); pReal = (*fs_real_file)(unsafe.Pointer(pReal)).FpNext {
+ for ; (pReal != 0) && (libc.Xstrncmp(tls, (*fs_real_file)(unsafe.Pointer(pReal)).FzName, zPath, uint64(nName)) != 0); pReal = (*fs_real_file)(unsafe.Pointer(pReal)).FpNext {
}
- *(*int32)(unsafe.Pointer(pResOut)) = (crt.Bool32((pReal != 0) && (!(isJournal != 0) || ((*fs_real_file)(unsafe.Pointer(pReal)).FnJournal > 0))))
+ *(*int32)(unsafe.Pointer(pResOut)) = (libc.Bool32((pReal != 0) && (!(isJournal != 0) || ((*fs_real_file)(unsafe.Pointer(pReal)).FnJournal > 0))))
return 0
}
// Populate buffer zOut with the full canonical pathname corresponding
// to the pathname in zPath. zOut is guaranteed to point to a buffer
// of at least (FS_MAX_PATHNAME+1) bytes.
-func fsFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_onefile.c:746:12: */
+func fsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_onefile.c:746:12: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 64 /* &.xFullPathname */))))(tls, pParent, zPath, nOut, zOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 64 /* &.xFullPathname */))))(tls, pParent, zPath, nOut, zOut)
}
// Open the dynamic library located at zPath and return a handle.
-func fsDlOpen(tls *crt.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_onefile.c:759:13: */
+func fsDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_onefile.c:759:13: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pParent + 72 /* &.xDlOpen */))))(tls, pParent, zPath)
+ return (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pParent + 72 /* &.xDlOpen */))))(tls, pParent, zPath)
}
// Populate the buffer zErrMsg (size nByte bytes) with a human readable
// utf-8 string describing the most recent error encountered associated
// with dynamic libraries.
-func fsDlError(tls *crt.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_onefile.c:769:13: */
+func fsDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_onefile.c:769:13: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- (*(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer((pParent + 80 /* &.xDlError */))))(tls, pParent, nByte, zErrMsg)
+ (*(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer((pParent + 80 /* &.xDlError */))))(tls, pParent, nByte, zErrMsg)
}
// Return a pointer to the symbol zSymbol in the dynamic library pHandle.
-func fsDlSym(tls *crt.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* test_onefile.c:777:13: */
+func fsDlSym(tls *libc.TLS, pVfs uintptr, pH uintptr, zSym uintptr) uintptr { /* test_onefile.c:777:13: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((pParent + 88 /* &.xDlSym */))))(tls, pParent, pH, zSym)
+ return (*(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer((pParent + 88 /* &.xDlSym */))))(tls, pParent, pH, zSym)
}
// Close the dynamic library handle pHandle.
-func fsDlClose(tls *crt.TLS, pVfs uintptr, pHandle uintptr) { /* test_onefile.c:785:13: */
+func fsDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* test_onefile.c:785:13: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer((pParent + 96 /* &.xDlClose */))))(tls, pParent, pHandle)
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer((pParent + 96 /* &.xDlClose */))))(tls, pParent, pHandle)
}
// Populate the buffer pointed to by zBufOut with nByte bytes of
// random data.
-func fsRandomness(tls *crt.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_onefile.c:794:12: */
+func fsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_onefile.c:794:12: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 104 /* &.xRandomness */))))(tls, pParent, nByte, zBufOut)
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 104 /* &.xRandomness */))))(tls, pParent, nByte, zBufOut)
}
// Sleep for nMicro microseconds. Return the number of microseconds
// actually slept.
-func fsSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_onefile.c:803:12: */
+func fsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* test_onefile.c:803:12: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer((pParent + 112 /* &.xSleep */))))(tls, pParent, nMicro)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((pParent + 112 /* &.xSleep */))))(tls, pParent, nMicro)
}
// Return the current time as a Julian Day number in *pTimeOut.
-func fsCurrentTime(tls *crt.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_onefile.c:811:12: */
+func fsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_onefile.c:811:12: */
var pParent uintptr = (*fs_vfs_t)(unsafe.Pointer(pVfs)).FpParent
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pParent + 120 /* &.xCurrentTime */))))(tls, pParent, pTimeOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((pParent + 120 /* &.xCurrentTime */))))(tls, pParent, pTimeOut)
}
// This procedure registers the fs vfs with SQLite. If the argument is
// true, the fs vfs becomes the new default vfs. It is the only publicly
// available function in this file.
-func fs_register(tls *crt.TLS) int32 { /* test_onefile.c:821:5: */
+func fs_register(tls *libc.TLS) int32 { /* test_onefile.c:821:5: */
if fs_vfs.FpParent != 0 {
return 0
}
@@ -63324,7 +68075,7 @@ func fs_register(tls *crt.TLS) int32 { /* test_onefile.c:821:5: */
return sqlite3.Xsqlite3_vfs_register(tls, (uintptr(unsafe.Pointer(&fs_vfs)) /* &.base */), 0)
}
-func SqlitetestOnefile_Init(tls *crt.TLS) int32 { /* test_onefile.c:830:7: */
+func SqlitetestOnefile_Init(tls *libc.TLS) int32 { /* test_onefile.c:830:7: */
return fs_register(tls)
}
@@ -63491,25 +68242,25 @@ var vfslog_io_methods = sqlite3_io_methods{FiVersion: 2, FxClose: // iVersion
// Convenience macros for operations on timevals.
// NOTE: `timercmp' does not work for >= or <=.
-func vfslog_time(tls *crt.TLS) sqlite3_uint64 { /* test_osinst.c:224:23: */
+func vfslog_time(tls *libc.TLS) sqlite3_uint64 { /* test_osinst.c:224:23: */
bp := tls.Alloc(16)
defer tls.Free(16)
// var sTime timeval at bp, 16
- crt.Xgettimeofday(tls, bp /* &sTime */, uintptr(0))
+ libc.Xgettimeofday(tls, bp /* &sTime */, uintptr(0))
return (sqlite3_uint64((*timeval)(unsafe.Pointer(bp /* &sTime */)).Ftv_usec) + (sqlite3_uint64((*timeval)(unsafe.Pointer(bp /* &sTime */)).Ftv_sec) * uint64(1000000)))
}
// Close an vfslog-file.
-func vfslogClose(tls *crt.TLS, pFile uintptr) int32 { /* test_osinst.c:256:12: */
+func vfslogClose(tls *libc.TLS, pFile uintptr) int32 { /* test_osinst.c:256:12: */
var t sqlite3_uint64
var rc int32 = 0
var p uintptr = pFile
t = vfslog_time(tls)
if (*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods != 0 {
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 8 /* &.xClose */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 8 /* &.xClose */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
}
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 3, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
@@ -63517,179 +68268,179 @@ func vfslogClose(tls *crt.TLS, pFile uintptr) int32 { /* test_osinst.c:256:12: *
}
// Read data from an vfslog-file.
-func vfslogRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_osinst.c:273:12: */
+func vfslogRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_osinst.c:273:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, zBuf, iAmt, iOfst)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, zBuf, iAmt, iOfst)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 14, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, iAmt, int32(iOfst))
return rc
}
// Write data to an vfslog-file.
-func vfslogWrite(tls *crt.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_osinst.c:292:12: */
+func vfslogWrite(tls *libc.TLS, pFile uintptr, z uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_osinst.c:292:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 24 /* &.xWrite */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, z, iAmt, iOfst)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 24 /* &.xWrite */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, z, iAmt, iOfst)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 20, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, iAmt, int32(iOfst))
return rc
}
// Truncate an vfslog-file.
-func vfslogTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_osinst.c:311:12: */
+func vfslogTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_osinst.c:311:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 32 /* &.xTruncate */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, size)
+ rc = (*(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 32 /* &.xTruncate */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, size)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 18, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, int32(size))
return rc
}
// Sync an vfslog-file.
-func vfslogSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_osinst.c:325:12: */
+func vfslogSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_osinst.c:325:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 40 /* &.xSync */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, flags)
+ rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 40 /* &.xSync */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, flags)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 17, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, flags, 0)
return rc
}
// Return the current file-size of an vfslog-file.
-func vfslogFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_osinst.c:339:12: */
+func vfslogFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_osinst.c:339:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 48 /* &.xFileSize */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, pSize)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 48 /* &.xFileSize */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, pSize)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 8, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, int32(*(*sqlite_int64)(unsafe.Pointer(pSize))))
return rc
}
// Lock an vfslog-file.
-func vfslogLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_osinst.c:353:12: */
+func vfslogLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_osinst.c:353:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 56 /* &.xLock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, eLock)
+ rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 56 /* &.xLock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, eLock)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 11, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, eLock, 0)
return rc
}
// Unlock an vfslog-file.
-func vfslogUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_osinst.c:367:12: */
+func vfslogUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_osinst.c:367:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 64 /* &.xUnlock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, eLock)
+ rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 64 /* &.xUnlock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, eLock)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 19, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, eLock, 0)
return rc
}
// Check if another file-handle holds a RESERVED lock on an vfslog-file.
-func vfslogCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_osinst.c:381:12: */
+func vfslogCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_osinst.c:381:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 72 /* &.xCheckReservedLock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, pResOut)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 72 /* &.xCheckReservedLock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, pResOut)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 2, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, *(*int32)(unsafe.Pointer(pResOut)), 0)
return rc
}
// File control method. For custom operations on an vfslog-file.
-func vfslogFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_osinst.c:395:12: */
+func vfslogFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_osinst.c:395:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var p uintptr = pFile
- var rc int32 = (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 80 /* &.xFileControl */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, op, pArg)
+ var rc int32 = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 80 /* &.xFileControl */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, op, pArg)
if (op == 12) && (rc == 0) {
- *(*uintptr)(unsafe.Pointer(pArg)) = sqlite3.Xsqlite3_mprintf(tls, ts+32307 /* "vfslog/%z" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(pArg))))
+ *(*uintptr)(unsafe.Pointer(pArg)) = sqlite3.Xsqlite3_mprintf(tls, ts+34372 /* "vfslog/%z" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pArg))))
}
return rc
}
// Return the sector-size in bytes for an vfslog-file.
-func vfslogSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_osinst.c:407:12: */
+func vfslogSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_osinst.c:407:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 88 /* &.xSectorSize */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 88 /* &.xSectorSize */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 15, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
return rc
}
// Return the device characteristic flags supported by an vfslog-file.
-func vfslogDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_osinst.c:421:12: */
+func vfslogDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_osinst.c:421:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 6, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
return rc
}
-func vfslogShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test_osinst.c:432:12: */
+func vfslogShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test_osinst.c:432:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 112 /* &.xShmLock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, ofst, n, flags)
+ rc = (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 112 /* &.xShmLock */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, ofst, n, flags)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 25, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
return rc
}
-func vfslogShmMap(tls *crt.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* test_osinst.c:442:12: */
+func vfslogShmMap(tls *libc.TLS, pFile uintptr, iRegion int32, szRegion int32, isWrite int32, pp uintptr) int32 { /* test_osinst.c:442:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 104 /* &.xShmMap */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, iRegion, szRegion, isWrite, pp)
+ rc = (*(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 104 /* &.xShmMap */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, iRegion, szRegion, isWrite, pp)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 23, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
return rc
}
-func vfslogShmBarrier(tls *crt.TLS, pFile uintptr) { /* test_osinst.c:458:13: */
+func vfslogShmBarrier(tls *libc.TLS, pFile uintptr) { /* test_osinst.c:458:13: */
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 120 /* &.xShmBarrier */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 120 /* &.xShmBarrier */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 26, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), 0, 0, 0)
}
-func vfslogShmUnmap(tls *crt.TLS, pFile uintptr, deleteFlag int32) int32 { /* test_osinst.c:466:12: */
+func vfslogShmUnmap(tls *libc.TLS, pFile uintptr, deleteFlag int32) int32 { /* test_osinst.c:466:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 128 /* &.xShmUnmap */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, deleteFlag)
+ rc = (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogFile)(unsafe.Pointer(p)).FpReal)).FpMethods + 128 /* &.xShmUnmap */))))(tls, (*VfslogFile)(unsafe.Pointer(p)).FpReal, deleteFlag)
t = (vfslog_time(tls) - t)
vfslog_call(tls, (*VfslogFile)(unsafe.Pointer(p)).FpVfslog, 22, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
return rc
}
// Open an vfslog file handle.
-func vfslogOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_osinst.c:481:12: */
+func vfslogOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_osinst.c:481:12: */
var rc int32
var t sqlite3_uint64
var p uintptr = pFile
@@ -63698,10 +68449,10 @@ func vfslogOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags
(*sqlite3_file)(unsafe.Pointer(pFile)).FpMethods = uintptr(unsafe.Pointer(&vfslog_io_methods))
(*VfslogFile)(unsafe.Pointer(p)).FpReal = (p + uintptr(1)*32)
(*VfslogFile)(unsafe.Pointer(p)).FpVfslog = pVfs
- (*VfslogFile)(unsafe.Pointer(p)).FiFileId = crt.PreIncInt32(&(*VfslogVfs)(unsafe.Pointer(pLog)).FiNextFileId, 1)
+ (*VfslogFile)(unsafe.Pointer(p)).FiFileId = libc.PreIncInt32(&(*VfslogVfs)(unsafe.Pointer(pLog)).FiNextFileId, 1)
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 40 /* &.xOpen */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zName, (*VfslogFile)(unsafe.Pointer(p)).FpReal, flags, pOutFlags)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 40 /* &.xOpen */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zName, (*VfslogFile)(unsafe.Pointer(p)).FpReal, flags, pOutFlags)
t = (vfslog_time(tls) - t)
vfslog_call(tls, pVfs, 12, (*VfslogFile)(unsafe.Pointer(p)).FiFileId, int64(t), rc, 0, 0)
@@ -63712,11 +68463,11 @@ func vfslogOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags
// Delete the file located at zPath. If the dirSync argument is true,
// ensure the file-system modifications are synced to disk before
// returning.
-func vfslogDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_osinst.c:512:12: */
+func vfslogDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_osinst.c:512:12: */
var rc int32
var t sqlite3_uint64
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 48 /* &.xDelete */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath, dirSync)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 48 /* &.xDelete */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath, dirSync)
t = (vfslog_time(tls) - t)
vfslog_call(tls, pVfs, 5, 0, int64(t), rc, dirSync, 0)
vfslog_string(tls, pVfs, zPath)
@@ -63725,11 +68476,11 @@ func vfslogDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int3
// Test for access permissions. Return true if the requested permission
// is available, or false otherwise.
-func vfslogAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_osinst.c:527:12: */
+func vfslogAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_osinst.c:527:12: */
var rc int32
var t sqlite3_uint64
t = vfslog_time(tls)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 56 /* &.xAccess */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath, flags, pResOut)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 56 /* &.xAccess */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath, flags, pResOut)
t = (vfslog_time(tls) - t)
vfslog_call(tls, pVfs, 1, 0, int64(t), rc, flags, *(*int32)(unsafe.Pointer(pResOut)))
vfslog_string(tls, pVfs, zPath)
@@ -63739,57 +68490,57 @@ func vfslogAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOu
// Populate buffer zOut with the full canonical pathname corresponding
// to the pathname in zPath. zOut is guaranteed to point to a buffer
// of at least (INST_MAX_PATHNAME+1) bytes.
-func vfslogFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_osinst.c:548:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 64 /* &.xFullPathname */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath, nOut, zOut)
+func vfslogFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_osinst.c:548:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 64 /* &.xFullPathname */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath, nOut, zOut)
}
// Open the dynamic library located at zPath and return a handle.
-func vfslogDlOpen(tls *crt.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_osinst.c:560:13: */
- return (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 72 /* &.xDlOpen */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath)
+func vfslogDlOpen(tls *libc.TLS, pVfs uintptr, zPath uintptr) uintptr { /* test_osinst.c:560:13: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 72 /* &.xDlOpen */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, zPath)
}
// Populate the buffer zErrMsg (size nByte bytes) with a human readable
// utf-8 string describing the most recent error encountered associated
// with dynamic libraries.
-func vfslogDlError(tls *crt.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_osinst.c:569:13: */
- (*(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 80 /* &.xDlError */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, nByte, zErrMsg)
+func vfslogDlError(tls *libc.TLS, pVfs uintptr, nByte int32, zErrMsg uintptr) { /* test_osinst.c:569:13: */
+ (*(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 80 /* &.xDlError */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, nByte, zErrMsg)
}
// Return a pointer to the symbol zSymbol in the dynamic library pHandle.
-func vfslogDlSym(tls *crt.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* test_osinst.c:576:13: */
- return (*(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 88 /* &.xDlSym */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, p, zSym)
+func vfslogDlSym(tls *libc.TLS, pVfs uintptr, p uintptr, zSym uintptr) uintptr { /* test_osinst.c:576:13: */
+ return (*(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 88 /* &.xDlSym */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, p, zSym)
}
// Close the dynamic library handle pHandle.
-func vfslogDlClose(tls *crt.TLS, pVfs uintptr, pHandle uintptr) { /* test_osinst.c:583:13: */
- (*(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 96 /* &.xDlClose */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, pHandle)
+func vfslogDlClose(tls *libc.TLS, pVfs uintptr, pHandle uintptr) { /* test_osinst.c:583:13: */
+ (*(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 96 /* &.xDlClose */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, pHandle)
}
// Populate the buffer pointed to by zBufOut with nByte bytes of
// random data.
-func vfslogRandomness(tls *crt.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_osinst.c:591:12: */
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 104 /* &.xRandomness */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, nByte, zBufOut)
+func vfslogRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_osinst.c:591:12: */
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 104 /* &.xRandomness */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, nByte, zBufOut)
}
// Sleep for nMicro microseconds. Return the number of microseconds
// actually slept.
-func vfslogSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_osinst.c:599:12: */
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 112 /* &.xSleep */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, nMicro)
+func vfslogSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* test_osinst.c:599:12: */
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 112 /* &.xSleep */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, nMicro)
}
// Return the current time as a Julian Day number in *pTimeOut.
-func vfslogCurrentTime(tls *crt.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_osinst.c:606:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 120 /* &.xCurrentTime */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, pTimeOut)
+func vfslogCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_osinst.c:606:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 120 /* &.xCurrentTime */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, pTimeOut)
}
-func vfslogGetLastError(tls *crt.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* test_osinst.c:610:12: */
- return (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 128 /* &.xGetLastError */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, a, b)
+func vfslogGetLastError(tls *libc.TLS, pVfs uintptr, a int32, b uintptr) int32 { /* test_osinst.c:610:12: */
+ return (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 128 /* &.xGetLastError */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, a, b)
}
-func vfslogCurrentTimeInt64(tls *crt.TLS, pVfs uintptr, p uintptr) int32 { /* test_osinst.c:613:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, p)
+func vfslogCurrentTimeInt64(tls *libc.TLS, pVfs uintptr, p uintptr) int32 { /* test_osinst.c:613:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, (*VfslogVfs)(unsafe.Pointer(pVfs)).FpVfs, p)
}
-func vfslog_flush(tls *crt.TLS, p uintptr) { /* test_osinst.c:617:13: */
+func vfslog_flush(tls *libc.TLS, p uintptr) { /* test_osinst.c:617:13: */
var pending int32 = sqlite3.Xsqlite3_io_error_pending
var persist int32 = sqlite3.Xsqlite3_io_error_persist
@@ -63800,7 +68551,7 @@ func vfslog_flush(tls *crt.TLS, p uintptr) { /* test_osinst.c:617:13: */
sqlite3.Xsqlite3_diskfull_pending = 0
if (*VfslogVfs)(unsafe.Pointer(p)).FnBuf != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVfs)(unsafe.Pointer(p)).FpLog)).FpMethods + 24 /* &.xWrite */))))(tls, (*VfslogVfs)(unsafe.Pointer(p)).FpLog, p+204 /* &.aBuf */, (*VfslogVfs)(unsafe.Pointer(p)).FnBuf, (*VfslogVfs)(unsafe.Pointer(p)).FiOffset)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVfs)(unsafe.Pointer(p)).FpLog)).FpMethods + 24 /* &.xWrite */))))(tls, (*VfslogVfs)(unsafe.Pointer(p)).FpLog, p+204 /* &.aBuf */, (*VfslogVfs)(unsafe.Pointer(p)).FnBuf, (*VfslogVfs)(unsafe.Pointer(p)).FiOffset)
*(*sqlite3_int64)(unsafe.Pointer(p + 192 /* &.iOffset */)) += (sqlite3_int64((*VfslogVfs)(unsafe.Pointer(p)).FnBuf))
(*VfslogVfs)(unsafe.Pointer(p)).FnBuf = 0
}
@@ -63810,14 +68561,14 @@ func vfslog_flush(tls *crt.TLS, p uintptr) { /* test_osinst.c:617:13: */
sqlite3.Xsqlite3_diskfull_pending = diskfull
}
-func put32bits(tls *crt.TLS, p uintptr, v uint32) { /* test_osinst.c:645:13: */
+func put32bits(tls *libc.TLS, p uintptr, v uint32) { /* test_osinst.c:645:13: */
*(*uint8)(unsafe.Pointer(p + uintptr(0))) = (uint8(v >> 24))
*(*uint8)(unsafe.Pointer(p + uintptr(1))) = (uint8(v >> 16))
*(*uint8)(unsafe.Pointer(p + uintptr(2))) = (uint8(v >> 8))
*(*uint8)(unsafe.Pointer(p + uintptr(3))) = uint8(v)
}
-func vfslog_call(tls *crt.TLS, pVfs uintptr, eEvent int32, iFileid int32, nClick sqlite3_int64, return_code int32, size int32, offset int32) { /* test_osinst.c:652:13: */
+func vfslog_call(tls *libc.TLS, pVfs uintptr, eEvent int32, iFileid int32, nClick sqlite3_int64, return_code int32, size int32, offset int32) { /* test_osinst.c:652:13: */
var p uintptr = pVfs
var zRec uintptr
if (uint64(24 + (*VfslogVfs)(unsafe.Pointer(p)).FnBuf)) > uint64(unsafe.Sizeof([8192]int8{})) {
@@ -63833,12 +68584,12 @@ func vfslog_call(tls *crt.TLS, pVfs uintptr, eEvent int32, iFileid int32, nClick
*(*int32)(unsafe.Pointer(p + 200 /* &.nBuf */)) += (24)
}
-func vfslog_string(tls *crt.TLS, pVfs uintptr, zStr uintptr) { /* test_osinst.c:676:13: */
+func vfslog_string(tls *libc.TLS, pVfs uintptr, zStr uintptr) { /* test_osinst.c:676:13: */
var p uintptr = pVfs
var zRec uintptr
var nStr int32
if zStr != 0 {
- nStr = int32(crt.Xstrlen(tls, zStr))
+ nStr = int32(libc.Xstrlen(tls, zStr))
} else {
nStr = 0
}
@@ -63848,24 +68599,24 @@ func vfslog_string(tls *crt.TLS, pVfs uintptr, zStr uintptr) { /* test_osinst.c:
zRec = ((p + 204 /* &.aBuf */) + uintptr((*VfslogVfs)(unsafe.Pointer(p)).FnBuf))
put32bits(tls, (zRec + uintptr(0)), uint32(nStr))
if zStr != 0 {
- crt.Xmemcpy(tls, (zRec + uintptr(4)), zStr, uint64(nStr))
+ libc.Xmemcpy(tls, (zRec + uintptr(4)), zStr, uint64(nStr))
}
*(*int32)(unsafe.Pointer(p + 200 /* &.nBuf */)) += (4 + nStr)
}
-func vfslog_finalize(tls *crt.TLS, p uintptr) { /* test_osinst.c:691:13: */
+func vfslog_finalize(tls *libc.TLS, p uintptr) { /* test_osinst.c:691:13: */
if (*sqlite3_file)(unsafe.Pointer((*VfslogVfs)(unsafe.Pointer(p)).FpLog)).FpMethods != 0 {
vfslog_flush(tls, p)
- (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVfs)(unsafe.Pointer(p)).FpLog)).FpMethods + 8 /* &.xClose */))))(tls, (*VfslogVfs)(unsafe.Pointer(p)).FpLog)
+ (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVfs)(unsafe.Pointer(p)).FpLog)).FpMethods + 8 /* &.xClose */))))(tls, (*VfslogVfs)(unsafe.Pointer(p)).FpLog)
}
sqlite3.Xsqlite3_free(tls, p)
}
-func sqlite3_vfslog_finalize(tls *crt.TLS, zVfs uintptr) int32 { /* test_osinst.c:699:5: */
+func sqlite3_vfslog_finalize(tls *libc.TLS, zVfs uintptr) int32 { /* test_osinst.c:699:5: */
var pVfs uintptr
pVfs = sqlite3.Xsqlite3_vfs_find(tls, zVfs)
if !(pVfs != 0) || ((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FxOpen != *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
}{vfslogOpen}))) {
return 1
}
@@ -63874,7 +68625,7 @@ func sqlite3_vfslog_finalize(tls *crt.TLS, zVfs uintptr) int32 { /* test_osinst.
return 0
}
-func sqlite3_vfslog_new(tls *crt.TLS, zVfs uintptr, zParentVfs uintptr, zLog uintptr) int32 { /* test_osinst.c:710:5: */
+func sqlite3_vfslog_new(tls *libc.TLS, zVfs uintptr, zParentVfs uintptr, zLog uintptr) int32 { /* test_osinst.c:710:5: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -63892,26 +68643,26 @@ func sqlite3_vfslog_new(tls *crt.TLS, zVfs uintptr, zParentVfs uintptr, zLog uin
return 1
}
- nVfs = int32(crt.Xstrlen(tls, zVfs))
+ nVfs = int32(libc.Xstrlen(tls, zVfs))
nByte = (int32(((((uint64(unsafe.Sizeof(VfslogVfs{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(pParent)).FszOsFile)) + uint64(nVfs)) + uint64(1)) + uint64((*sqlite3_vfs)(unsafe.Pointer(pParent)).FmxPathname)) + uint64(1)))
p = sqlite3.Xsqlite3_malloc(tls, nByte)
- crt.Xmemset(tls, p, 0, uint64(nByte))
+ libc.Xmemset(tls, p, 0, uint64(nByte))
(*VfslogVfs)(unsafe.Pointer(p)).FpVfs = pParent
(*VfslogVfs)(unsafe.Pointer(p)).FpLog = (p + uintptr(1)*8400)
- crt.Xmemcpy(tls, (p /* &.base */), uintptr(unsafe.Pointer(&vfslog_vfs)), uint64(unsafe.Sizeof(sqlite3_vfs{})))
+ libc.Xmemcpy(tls, (p /* &.base */), uintptr(unsafe.Pointer(&vfslog_vfs)), uint64(unsafe.Sizeof(sqlite3_vfs{})))
(*VfslogVfs)(unsafe.Pointer(p)).Fbase.FzName = (((*VfslogVfs)(unsafe.Pointer(p)).FpLog) + uintptr((*sqlite3_vfs)(unsafe.Pointer(pParent)).FszOsFile))
*(*int32)(unsafe.Pointer(p /* &.base */ + 4 /* &.szOsFile */)) += ((*sqlite3_vfs)(unsafe.Pointer(pParent)).FszOsFile)
- crt.Xmemcpy(tls, (*VfslogVfs)(unsafe.Pointer(p)).Fbase.FzName, zVfs, uint64(nVfs))
+ libc.Xmemcpy(tls, (*VfslogVfs)(unsafe.Pointer(p)).Fbase.FzName, zVfs, uint64(nVfs))
zFile = ((*VfslogVfs)(unsafe.Pointer(p)).Fbase.FzName + uintptr((nVfs + 1)))
- (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 64 /* &.xFullPathname */))))(tls, pParent, zLog, (*sqlite3_vfs)(unsafe.Pointer(pParent)).FmxPathname, zFile)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 64 /* &.xFullPathname */))))(tls, pParent, zLog, (*sqlite3_vfs)(unsafe.Pointer(pParent)).FmxPathname, zFile)
*(*int32)(unsafe.Pointer(bp /* flags */)) = ((0x00000002 | 0x00000004) | 0x00004000)
- (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pParent + 48 /* &.xDelete */))))(tls, pParent, zFile, 0)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 40 /* &.xOpen */))))(tls, pParent, zFile, (*VfslogVfs)(unsafe.Pointer(p)).FpLog, *(*int32)(unsafe.Pointer(bp /* flags */)), bp /* &flags */)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pParent + 48 /* &.xDelete */))))(tls, pParent, zFile, 0)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pParent + 40 /* &.xOpen */))))(tls, pParent, zFile, (*VfslogVfs)(unsafe.Pointer(p)).FpLog, *(*int32)(unsafe.Pointer(bp /* flags */)), bp /* &flags */)
if rc == 0 {
- crt.Xmemcpy(tls, p+204 /* &.aBuf */, ts+32317 /* "sqlite_ostrace1...." */, uint64(20))
+ libc.Xmemcpy(tls, p+204 /* &.aBuf */, ts+34382 /* "sqlite_ostrace1...." */, uint64(20))
(*VfslogVfs)(unsafe.Pointer(p)).FiOffset = int64(0)
(*VfslogVfs)(unsafe.Pointer(p)).FnBuf = 20
rc = sqlite3.Xsqlite3_vfs_register(tls, p, 1)
@@ -63922,11 +68673,11 @@ func sqlite3_vfslog_new(tls *crt.TLS, zVfs uintptr, zParentVfs uintptr, zLog uin
return rc
}
-func sqlite3_vfslog_annotate(tls *crt.TLS, zVfs uintptr, zMsg uintptr) int32 { /* test_osinst.c:758:5: */
+func sqlite3_vfslog_annotate(tls *libc.TLS, zVfs uintptr, zMsg uintptr) int32 { /* test_osinst.c:758:5: */
var pVfs uintptr
pVfs = sqlite3.Xsqlite3_vfs_find(tls, zVfs)
if !(pVfs != 0) || ((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FxOpen != *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
}{vfslogOpen}))) {
return 1
}
@@ -63935,83 +68686,83 @@ func sqlite3_vfslog_annotate(tls *crt.TLS, zVfs uintptr, zMsg uintptr) int32 { /
return 0
}
-func vfslog_eventname(tls *crt.TLS, eEvent int32) uintptr { /* test_osinst.c:769:19: */
+func vfslog_eventname(tls *libc.TLS, eEvent int32) uintptr { /* test_osinst.c:769:19: */
var zEvent uintptr = uintptr(0)
switch eEvent {
case 3:
- zEvent = ts + 32338 /* "xClose" */
+ zEvent = ts + 34403 /* "xClose" */
break
case 14:
- zEvent = ts + 32345 /* "xRead" */
+ zEvent = ts + 34410 /* "xRead" */
break
case 20:
- zEvent = ts + 32351 /* "xWrite" */
+ zEvent = ts + 34416 /* "xWrite" */
break
case 18:
- zEvent = ts + 32358 /* "xTruncate" */
+ zEvent = ts + 34423 /* "xTruncate" */
break
case 17:
- zEvent = ts + 24735 /* "xSync" */
+ zEvent = ts + 26827 /* "xSync" */
break
case 8:
- zEvent = ts + 32368 /* "xFilesize" */
+ zEvent = ts + 34433 /* "xFilesize" */
break
case 11:
- zEvent = ts + 32378 /* "xLock" */
+ zEvent = ts + 34443 /* "xLock" */
break
case 19:
- zEvent = ts + 32384 /* "xUnlock" */
+ zEvent = ts + 34449 /* "xUnlock" */
break
case 2:
- zEvent = ts + 32392 /* "xCheckResLock" */
+ zEvent = ts + 34457 /* "xCheckResLock" */
break
case 7:
- zEvent = ts + 32406 /* "xFileControl" */
+ zEvent = ts + 34471 /* "xFileControl" */
break
case 15:
- zEvent = ts + 32419 /* "xSectorSize" */
+ zEvent = ts + 34484 /* "xSectorSize" */
break
case 6:
- zEvent = ts + 32431 /* "xDeviceChar" */
+ zEvent = ts + 34496 /* "xDeviceChar" */
break
case 12:
- zEvent = ts + 24300 /* "xOpen" */
+ zEvent = ts + 26399 /* "xOpen" */
break
case 5:
- zEvent = ts + 32443 /* "xDelete" */
+ zEvent = ts + 34508 /* "xDelete" */
break
case 1:
- zEvent = ts + 32451 /* "xAccess" */
+ zEvent = ts + 34516 /* "xAccess" */
break
case 9:
- zEvent = ts + 32459 /* "xFullPathname" */
+ zEvent = ts + 34524 /* "xFullPathname" */
break
case 13:
- zEvent = ts + 32473 /* "xRandomness" */
+ zEvent = ts + 34538 /* "xRandomness" */
break
case 16:
- zEvent = ts + 32485 /* "xSleep" */
+ zEvent = ts + 34550 /* "xSleep" */
break
case 4:
- zEvent = ts + 32492 /* "xCurrentTime" */
+ zEvent = ts + 34557 /* "xCurrentTime" */
break
case 22:
- zEvent = ts + 32505 /* "xShmUnmap" */
+ zEvent = ts + 34570 /* "xShmUnmap" */
break
case 25:
- zEvent = ts + 32515 /* "xShmLock" */
+ zEvent = ts + 34580 /* "xShmLock" */
break
case 26:
- zEvent = ts + 32524 /* "xShmBarrier" */
+ zEvent = ts + 34589 /* "xShmBarrier" */
break
case 23:
- zEvent = ts + 32536 /* "xShmMap" */
+ zEvent = ts + 34601 /* "xShmMap" */
break
case 28:
- zEvent = ts + 32544 /* "annotation" */
+ zEvent = ts + 34609 /* "annotation" */
break
}
@@ -64038,14 +68789,14 @@ type VfslogCsr1 = struct {
type VfslogCsr = VfslogCsr1 /* test_osinst.c:805:26 */
-func get32bits(tls *crt.TLS, p uintptr) uint32 { /* test_osinst.c:830:21: */
+func get32bits(tls *libc.TLS, p uintptr) uint32 { /* test_osinst.c:830:21: */
return (uint32((((int32(*(*uint8)(unsafe.Pointer(p + uintptr(0)))) << 24) + (int32(*(*uint8)(unsafe.Pointer(p + uintptr(1)))) << 16)) + (int32(*(*uint8)(unsafe.Pointer(p + uintptr(2)))) << 8)) + int32(*(*uint8)(unsafe.Pointer(p + uintptr(3))))))
}
// The argument must point to a buffer containing a nul-terminated string.
// If the string begins with an SQL quote character it is overwritten by
// the dequoted version. Otherwise the buffer is left unmodified.
-func dequote(tls *crt.TLS, z uintptr) { /* test_osinst.c:839:13: */
+func dequote(tls *libc.TLS, z uintptr) { /* test_osinst.c:839:13: */
var quote int8 // Quote character (if any )
quote = *(*int8)(unsafe.Pointer(z + uintptr(0)))
if (((int32(quote) == '[') || (int32(quote) == '\'')) || (int32(quote) == '"')) || (int32(quote) == '`') {
@@ -64059,10 +68810,10 @@ func dequote(tls *crt.TLS, z uintptr) { /* test_osinst.c:839:13: */
if int32(*(*int8)(unsafe.Pointer(z + uintptr((iIn + 1))))) != int32(quote) {
break
}
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iOut, 1)))) = quote
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = quote
iIn = iIn + (2)
} else {
- *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(crt.PostIncInt32(&iIn, 1))))
+ *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iOut, 1)))) = *(*int8)(unsafe.Pointer(z + uintptr(libc.PostIncInt32(&iIn, 1))))
}
}
*(*int8)(unsafe.Pointer(z + uintptr(iOut))) = int8(0)
@@ -64070,7 +68821,7 @@ func dequote(tls *crt.TLS, z uintptr) { /* test_osinst.c:839:13: */
}
// Connect to or create a vfslog virtual table.
-func vlogConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_osinst.c:863:12: */
+func vlogConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_osinst.c:863:12: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -64089,27 +68840,27 @@ func vlogConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
if p == uintptr(0) {
return 7
}
- crt.Xmemset(tls, p, 0, uint64(nByte))
+ libc.Xmemset(tls, p, 0, uint64(nByte))
(*VfslogVtab)(unsafe.Pointer(p)).FpFd = (p + uintptr(1)*48)
(*VfslogVtab)(unsafe.Pointer(p)).FzFile = (((*VfslogVtab)(unsafe.Pointer(p)).FpFd) + uintptr((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FszOsFile))
- zFile = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
+ zFile = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(argv + uintptr(3)*8))))
if !(zFile != 0) {
sqlite3.Xsqlite3_free(tls, p)
return 7
}
dequote(tls, zFile)
- (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 64 /* &.xFullPathname */))))(tls, pVfs, zFile, (*sqlite3_vfs)(unsafe.Pointer(pVfs)).FmxPathname, (*VfslogVtab)(unsafe.Pointer(p)).FzFile)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 64 /* &.xFullPathname */))))(tls, pVfs, zFile, (*sqlite3_vfs)(unsafe.Pointer(pVfs)).FmxPathname, (*VfslogVtab)(unsafe.Pointer(p)).FzFile)
sqlite3.Xsqlite3_free(tls, zFile)
*(*int32)(unsafe.Pointer(bp + 8 /* flags */)) = (0x00000002 | 0x00004000)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 40 /* &.xOpen */))))(tls, pVfs, (*VfslogVtab)(unsafe.Pointer(p)).FzFile, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, *(*int32)(unsafe.Pointer(bp + 8 /* flags */)), bp+8 /* &flags */)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pVfs + 40 /* &.xOpen */))))(tls, pVfs, (*VfslogVtab)(unsafe.Pointer(p)).FzFile, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, *(*int32)(unsafe.Pointer(bp + 8 /* flags */)), bp+8 /* &flags */)
if rc == 0 {
- (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 48 /* &.xFileSize */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, (p + 32 /* &.nByte */))
+ (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 48 /* &.xFileSize */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, (p + 32 /* &.nByte */))
sqlite3.Xsqlite3_declare_vtab(tls, db,
- ts+32555 /* "CREATE TABLE xxx..." */)
+ ts+34620 /* "CREATE TABLE xxx..." */)
*(*uintptr)(unsafe.Pointer(ppVtab)) = (p /* &.base */)
} else {
sqlite3.Xsqlite3_free(tls, p)
@@ -64120,16 +68871,16 @@ func vlogConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintpt
// There is no "best-index". This virtual table always does a linear
// scan of the binary VFS log file.
-func vlogBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_osinst.c:916:12: */
+func vlogBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_osinst.c:916:12: */
(*sqlite3_index_info)(unsafe.Pointer(pIdxInfo)).FestimatedCost = 10.0
return 0
}
// Disconnect from or destroy a vfslog virtual table.
-func vlogDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_osinst.c:924:12: */
+func vlogDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* test_osinst.c:924:12: */
var p uintptr = pVtab
if (*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods != 0 {
- (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 8 /* &.xClose */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd)
+ (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 8 /* &.xClose */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd)
(*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods = uintptr(0)
}
sqlite3.Xsqlite3_free(tls, p)
@@ -64137,20 +68888,20 @@ func vlogDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_osinst.c:924:12
}
// Open a new vfslog cursor.
-func vlogOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_osinst.c:937:12: */
+func vlogOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_osinst.c:937:12: */
var pCsr uintptr // Newly allocated cursor object
pCsr = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(VfslogCsr{})))
if !(pCsr != 0) {
return 7
}
- crt.Xmemset(tls, pCsr, 0, uint64(unsafe.Sizeof(VfslogCsr{})))
+ libc.Xmemset(tls, pCsr, 0, uint64(unsafe.Sizeof(VfslogCsr{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCsr /* &.base */)
return 0
}
// Close a vfslog cursor.
-func vlogClose(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:950:12: */
+func vlogClose(tls *libc.TLS, pCursor uintptr) int32 { /* test_osinst.c:950:12: */
var p uintptr = pCursor
var i int32
for i = 0; i < (*VfslogCsr)(unsafe.Pointer(p)).FnFile; i++ {
@@ -64163,7 +68914,7 @@ func vlogClose(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:950:12: *
}
// Move a vfslog cursor to the next entry in the file.
-func vlogNext(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:965:12: */
+func vlogNext(tls *libc.TLS, pCursor uintptr) int32 { /* test_osinst.c:965:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -64178,19 +68929,19 @@ func vlogNext(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:965:12: */
nRead = 24
if ((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset + sqlite3_int64(nRead)) <= (*VfslogVtab)(unsafe.Pointer(p)).FnByte {
var eEvent int32
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, pCsr+48 /* &.aBuf */, nRead, (*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, pCsr+48 /* &.aBuf */, nRead, (*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset)
eEvent = int32(get32bits(tls, pCsr+48 /* &.aBuf */))
if (rc == 0) &&
(((eEvent == 12) || (eEvent == 5)) || (eEvent == 1)) {
// var buf [4]int8 at bp, 4
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, bp /* &buf[0] */, 4, ((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset + sqlite3_int64(nRead)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, bp /* &buf[0] */, 4, ((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset + sqlite3_int64(nRead)))
nRead = nRead + (4)
if rc == 0 {
var nStr int32 = int32(get32bits(tls, bp /* buf */))
var zStr uintptr = sqlite3.Xsqlite3_malloc(tls, (nStr + 1))
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, zStr, nStr, ((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset + sqlite3_int64(nRead)))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer((*VfslogVtab)(unsafe.Pointer(p)).FpFd)).FpMethods + 16 /* &.xRead */))))(tls, (*VfslogVtab)(unsafe.Pointer(p)).FpFd, zStr, nStr, ((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset + sqlite3_int64(nRead)))
*(*int8)(unsafe.Pointer(zStr + uintptr(nStr))) = int8(0)
nRead = nRead + (nStr)
@@ -64200,7 +68951,7 @@ func vlogNext(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:965:12: */
var nNew int32 = (int32(uint64(unsafe.Sizeof(uintptr(0))) * (uint64(iFileid + 1))))
(*VfslogCsr)(unsafe.Pointer(pCsr)).FazFile = sqlite3.Xsqlite3_realloc(tls, (*VfslogCsr)(unsafe.Pointer(pCsr)).FazFile, nNew)
nNew = int32(uint64(nNew) - (uint64(unsafe.Sizeof(uintptr(0))) * uint64((*VfslogCsr)(unsafe.Pointer(pCsr)).FnFile)))
- crt.Xmemset(tls, ((*VfslogCsr)(unsafe.Pointer(pCsr)).FazFile + uintptr((*VfslogCsr)(unsafe.Pointer(pCsr)).FnFile)*8), 0, uint64(nNew))
+ libc.Xmemset(tls, ((*VfslogCsr)(unsafe.Pointer(pCsr)).FazFile + uintptr((*VfslogCsr)(unsafe.Pointer(pCsr)).FnFile)*8), 0, uint64(nNew))
(*VfslogCsr)(unsafe.Pointer(pCsr)).FnFile = (iFileid + 1)
}
sqlite3.Xsqlite3_free(tls, *(*uintptr)(unsafe.Pointer((*VfslogCsr)(unsafe.Pointer(pCsr)).FazFile + uintptr(iFileid)*8)))
@@ -64217,20 +68968,20 @@ func vlogNext(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:965:12: */
return rc
}
-func vlogEof(tls *crt.TLS, pCursor uintptr) int32 { /* test_osinst.c:1016:12: */
+func vlogEof(tls *libc.TLS, pCursor uintptr) int32 { /* test_osinst.c:1016:12: */
var pCsr uintptr = pCursor
var p uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(pCursor)).FpVtab
- return (crt.Bool32((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset >= (*VfslogVtab)(unsafe.Pointer(p)).FnByte))
+ return (libc.Bool32((*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset >= (*VfslogVtab)(unsafe.Pointer(p)).FnByte))
}
-func vlogFilter(tls *crt.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_osinst.c:1022:12: */
+func vlogFilter(tls *libc.TLS, pCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_osinst.c:1022:12: */
var pCsr uintptr = pCursor
(*VfslogCsr)(unsafe.Pointer(pCsr)).FiRowid = int64(0)
(*VfslogCsr)(unsafe.Pointer(pCsr)).FiOffset = int64(20)
return vlogNext(tls, pCursor)
}
-func vlogColumn(tls *crt.TLS, pCursor uintptr, ctx uintptr, i int32) int32 { /* test_osinst.c:1033:12: */
+func vlogColumn(tls *libc.TLS, pCursor uintptr, ctx uintptr, i int32) int32 { /* test_osinst.c:1033:12: */
var val uint32
var pCsr uintptr = pCursor
@@ -64248,7 +68999,7 @@ func vlogColumn(tls *crt.TLS, pCursor uintptr, ctx uintptr, i int32) int32 { /*
if (val != uint32(0)) && (val < uint32((*VfslogCsr)(unsafe.Pointer(pCsr)).FnFile)) {
zStr = *(*uintptr)(unsafe.Pointer((*VfslogCsr)(unsafe.Pointer(pCsr)).FazFile + uintptr(val)*8))
}
- sqlite3.Xsqlite3_result_text(tls, ctx, zStr, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, zStr, -1, libc.UintptrFromInt32(-1))
break
}
default:
@@ -64259,15 +69010,15 @@ func vlogColumn(tls *crt.TLS, pCursor uintptr, ctx uintptr, i int32) int32 { /*
return 0
}
-func vlogRowid(tls *crt.TLS, pCursor uintptr, pRowid uintptr) int32 { /* test_osinst.c:1065:12: */
+func vlogRowid(tls *libc.TLS, pCursor uintptr, pRowid uintptr) int32 { /* test_osinst.c:1065:12: */
var pCsr uintptr = pCursor
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = (*VfslogCsr)(unsafe.Pointer(pCsr)).FiRowid
return 0
}
-func sqlite3_vfslog_register(tls *crt.TLS, db uintptr) int32 { /* test_osinst.c:1071:5: */
+func sqlite3_vfslog_register(tls *libc.TLS, db uintptr) int32 { /* test_osinst.c:1071:5: */
- sqlite3.Xsqlite3_create_module(tls, db, ts+32610 /* "vfslog" */, uintptr(unsafe.Pointer(&vfslog_module)), uintptr(0))
+ sqlite3.Xsqlite3_create_module(tls, db, ts+34675 /* "vfslog" */, uintptr(unsafe.Pointer(&vfslog_module)), uintptr(0))
return 0
}
@@ -64301,7 +69052,7 @@ uintptr(0), // xRename
// fill-column: 78
// End:
-func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_osinst.c:1116:26: */
+func test_vfslog(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_osinst.c:1116:26: */
bp := tls.Alloc(144)
defer tls.Free(144)
@@ -64312,7 +69063,7 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
// var iSub int32 at bp+72, 4
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29799 /* "SUB-COMMAND ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31891 /* "SUB-COMMAND ..." */)
return 1
}
if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), uintptr(unsafe.Pointer(&strs)), int32(unsafe.Sizeof(uintptr(0))), ts+1874 /* "sub-command" */, 0, bp+72 /* &iSub */) != 0 {
@@ -64325,14 +69076,14 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
var zVfs uintptr
var zMsg uintptr
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 3, objv, ts+32617 /* "VFS" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 3, objv, ts+34682 /* "VFS" */)
return 1
}
zVfs = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
zMsg = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
rc = sqlite3_vfslog_annotate(tls, zVfs, zMsg)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+32621 /* "failed" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+34686 /* "failed" */, 0))
return 1
}
break
@@ -64341,13 +69092,13 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
{
var zVfs uintptr
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+32617 /* "VFS" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+34682 /* "VFS" */)
return 1
}
zVfs = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
rc = sqlite3_vfslog_finalize(tls, zVfs)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+16, ts+32621 /* "failed" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+16, ts+34686 /* "failed" */, 0))
return 1
}
break
@@ -64359,7 +69110,7 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
var zParent uintptr
var zLog uintptr
if objc != 5 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+32628 /* "VFS PARENT LOGFI..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+34693 /* "VFS PARENT LOGFI..." */)
return 1
}
zVfs = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
@@ -64370,7 +69121,7 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
}
rc = sqlite3_vfslog_new(tls, zVfs, zParent, zLog)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+32, ts+32621 /* "failed" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+32, ts+34686 /* "failed" */, 0))
return 1
}
break
@@ -64389,7 +69140,7 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
rc = sqlite3_vfslog_register(tls, db)
}
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+32647 /* "bad sqlite3 hand..." */, zDb, uintptr(0)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+34712 /* "bad sqlite3 hand..." */, zDb, uintptr(0)))
return 1
}
break
@@ -64399,11 +69150,11 @@ func test_vfslog(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, o
return 0
}
-var strs = [5]uintptr{ts + 32668 /* "annotate" */, ts + 32677 /* "finalize" */, ts + 32686 /* "new" */, ts + 32690 /* "register" */, uintptr(0)} /* test_osinst.c:1127:21 */
+var strs = [5]uintptr{ts + 34733 /* "annotate" */, ts + 34742 /* "finalize" */, ts + 13511 /* "new" */, ts + 34751 /* "register" */, uintptr(0)} /* test_osinst.c:1127:21 */
-func SqlitetestOsinst_Init(tls *crt.TLS, interp uintptr) int32 { /* test_osinst.c:1219:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+32610 /* "vfslog" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+func SqlitetestOsinst_Init(tls *libc.TLS, interp uintptr) int32 { /* test_osinst.c:1219:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+34675 /* "vfslog" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_vfslog})), uintptr(0), uintptr(0))
return 0
}
@@ -64527,7 +69278,7 @@ var testpcacheGlobal testpcacheGlobalType /* test_pcache.c:41:29: */
// from a failed initialization attempt. It also verifies that the
// the destructor always gets call - otherwise there would be a
// memory leak.
-func testpcacheInit(tls *crt.TLS, pArg uintptr) int32 { /* test_pcache.c:53:12: */
+func testpcacheInit(tls *libc.TLS, pArg uintptr) int32 { /* test_pcache.c:53:12: */
testpcacheGlobal.FpDummy = sqlite3.Xsqlite3_malloc(tls, 10)
if testpcacheGlobal.FpDummy == uintptr(0) {
@@ -64540,7 +69291,7 @@ func testpcacheInit(tls *crt.TLS, pArg uintptr) int32 { /* test_pcache.c:53:12:
//
// Verify that this is only called after initialization.
// Free the memory allocated by the initializer.
-func testpcacheShutdown(tls *crt.TLS, pArg uintptr) { /* test_pcache.c:67:13: */
+func testpcacheShutdown(tls *libc.TLS, pArg uintptr) { /* test_pcache.c:67:13: */
sqlite3.Xsqlite3_free(tls, testpcacheGlobal.FpDummy)
testpcacheGlobal.FpDummy = uintptr(0)
@@ -64591,7 +69342,7 @@ type testpcachePage = struct {
}
// Get a random number using the PRNG in the given page cache.
-func testpcacheRandom(tls *crt.TLS, p uintptr) uint32 { /* test_pcache.c:119:17: */
+func testpcacheRandom(tls *libc.TLS, p uintptr) uint32 { /* test_pcache.c:119:17: */
var x uint32 = uint32(0)
var i int32
for i = 0; i < 4; i++ {
@@ -64602,13 +69353,13 @@ func testpcacheRandom(tls *crt.TLS, p uintptr) uint32 { /* test_pcache.c:119:17:
}
// Allocate a new page cache instance.
-func testpcacheCreate(tls *crt.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* test_pcache.c:133:23: */
+func testpcacheCreate(tls *libc.TLS, szPage int32, szExtra int32, bPurgeable int32) uintptr { /* test_pcache.c:133:23: */
var nMem int32
var x uintptr
var p uintptr
var i int32
- szPage = ((szPage + 7) & ^int32(crt.Int32FromInt32(7)))
+ szPage = ((szPage + 7) & ^int32(libc.Int32FromInt32(7)))
nMem = (int32(uint64(unsafe.Sizeof(testpcache{})) + (uint64(217 * (szPage + szExtra)))))
p = sqlite3.Xsqlite3_malloc(tls, nMem)
if p == uintptr(0) {
@@ -64646,7 +69397,7 @@ __3:
}
// Set the cache size
-func testpcacheCachesize(tls *crt.TLS, pCache uintptr, newSize int32) { /* test_pcache.c:168:13: */
+func testpcacheCachesize(tls *libc.TLS, pCache uintptr, newSize int32) { /* test_pcache.c:168:13: */
var p uintptr = pCache
_ = p
@@ -64654,14 +69405,14 @@ func testpcacheCachesize(tls *crt.TLS, pCache uintptr, newSize int32) { /* test_
// Return the number of pages in the cache that are being used.
// This includes both pinned and unpinned pages.
-func testpcachePagecount(tls *crt.TLS, pCache uintptr) int32 { /* test_pcache.c:179:12: */
+func testpcachePagecount(tls *libc.TLS, pCache uintptr) int32 { /* test_pcache.c:179:12: */
var p uintptr = pCache
return (217 - (*testpcache)(unsafe.Pointer(p)).FnFree)
}
// Fetch a page.
-func testpcacheFetch(tls *crt.TLS, pCache uintptr, key uint32, createFlag int32) uintptr { /* test_pcache.c:190:28: */
+func testpcacheFetch(tls *libc.TLS, pCache uintptr, key uint32, createFlag int32) uintptr { /* test_pcache.c:190:28: */
var p uintptr = pCache
var i int32
var j int32
@@ -64714,8 +69465,8 @@ func testpcacheFetch(tls *crt.TLS, pCache uintptr, key uint32, createFlag int32)
if (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fkey == uint32(0) {
(*testpcachePage)(unsafe.Pointer((p + 32 /* &.a */) + uintptr(j)*24)).Fkey = key
(*testpcachePage)(unsafe.Pointer((p + 32 /* &.a */) + uintptr(j)*24)).FisPinned = 1
- crt.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpBuf, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszPage))
- crt.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpExtra, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszExtra))
+ libc.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpBuf, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszPage))
+ libc.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpExtra, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszExtra))
(*testpcache)(unsafe.Pointer(p)).FnPinned++
(*testpcache)(unsafe.Pointer(p)).FnFree--
@@ -64750,8 +69501,8 @@ __4:
if ((*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fkey > uint32(0)) && ((*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).FisPinned == 0) {
(*testpcachePage)(unsafe.Pointer((p + 32 /* &.a */) + uintptr(j)*24)).Fkey = key
(*testpcachePage)(unsafe.Pointer((p + 32 /* &.a */) + uintptr(j)*24)).FisPinned = 1
- crt.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpBuf, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszPage))
- crt.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpExtra, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszExtra))
+ libc.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpBuf, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszPage))
+ libc.Xmemset(tls, (*testpcachePage)(unsafe.Pointer((p+32 /* &.a */)+uintptr(j)*24)).Fpage.FpExtra, 0, uint64((*testpcache)(unsafe.Pointer(p)).FszExtra))
(*testpcache)(unsafe.Pointer(p)).FnPinned++
return ((p + 32 /* &.a */) + uintptr(j)*24 /* &.page */)
@@ -64772,7 +69523,7 @@ __6:
}
// Unpin a page.
-func testpcacheUnpin(tls *crt.TLS, pCache uintptr, pOldPage uintptr, discard int32) { /* test_pcache.c:289:13: */
+func testpcacheUnpin(tls *libc.TLS, pCache uintptr, pOldPage uintptr, discard int32) { /* test_pcache.c:289:13: */
var p uintptr = pCache
var i int32
@@ -64804,7 +69555,7 @@ func testpcacheUnpin(tls *crt.TLS, pCache uintptr, pOldPage uintptr, discard int
}
// Rekey a single page.
-func testpcacheRekey(tls *crt.TLS, pCache uintptr, pOldPage uintptr, oldKey uint32, newKey uint32) { /* test_pcache.c:334:13: */
+func testpcacheRekey(tls *libc.TLS, pCache uintptr, pOldPage uintptr, oldKey uint32, newKey uint32) { /* test_pcache.c:334:13: */
var p uintptr = pCache
var i int32
@@ -64839,7 +69590,7 @@ func testpcacheRekey(tls *crt.TLS, pCache uintptr, pOldPage uintptr, oldKey uint
// Truncate the page cache. Every page with a key of iLimit or larger
// is discarded.
-func testpcacheTruncate(tls *crt.TLS, pCache uintptr, iLimit uint32) { /* test_pcache.c:382:13: */
+func testpcacheTruncate(tls *libc.TLS, pCache uintptr, iLimit uint32) { /* test_pcache.c:382:13: */
var p uintptr = pCache
var i uint32
@@ -64855,7 +69606,7 @@ func testpcacheTruncate(tls *crt.TLS, pCache uintptr, iLimit uint32) { /* test_p
}
// Destroy a page cache.
-func testpcacheDestroy(tls *crt.TLS, pCache uintptr) { /* test_pcache.c:404:13: */
+func testpcacheDestroy(tls *libc.TLS, pCache uintptr) { /* test_pcache.c:404:13: */
var p uintptr = pCache
(*testpcache)(unsafe.Pointer(p)).FiMagic = 0xd42670d4
@@ -64873,7 +69624,7 @@ func testpcacheDestroy(tls *crt.TLS, pCache uintptr) { /* test_pcache.c:404:13:
// indicates the probability of discarding a page when unpinning the
// page. 0 means never discard (unless the discard flag is set).
// 100 means always discard.
-func installTestPCache(tls *crt.TLS, installFlag int32, discardChance uint32, prngSeed uint32, highStress uint32) { /* test_pcache.c:427:6: */
+func installTestPCache(tls *libc.TLS, installFlag int32, discardChance uint32, prngSeed uint32, highStress uint32) { /* test_pcache.c:427:6: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -64882,12 +69633,12 @@ func installTestPCache(tls *crt.TLS, installFlag int32, discardChance uint32, pr
testpcacheGlobal.FhighStress = highStress
if installFlag != isInstalled {
if installFlag != 0 {
- sqlite3.Xsqlite3_config(tls, 19, crt.VaList(bp, uintptr(unsafe.Pointer(&defaultPcache))))
+ sqlite3.Xsqlite3_config(tls, 19, libc.VaList(bp, uintptr(unsafe.Pointer(&defaultPcache))))
- sqlite3.Xsqlite3_config(tls, 18, crt.VaList(bp+8, uintptr(unsafe.Pointer(&testPcache))))
+ sqlite3.Xsqlite3_config(tls, 18, libc.VaList(bp+8, uintptr(unsafe.Pointer(&testPcache))))
} else {
- sqlite3.Xsqlite3_config(tls, 18, crt.VaList(bp+16, uintptr(unsafe.Pointer(&defaultPcache))))
+ sqlite3.Xsqlite3_config(tls, 18, libc.VaList(bp+16, uintptr(unsafe.Pointer(&defaultPcache))))
}
isInstalled = installFlag
}
@@ -64974,15 +69725,15 @@ var gQuota struct {
//************************ Utility Routines ********************************
// Acquire and release the mutex used to serialize access to the
// list of quotaGroups.
-func quotaEnter(tls *crt.TLS) { /* test_quota.c:190:13: */
+func quotaEnter(tls *libc.TLS) { /* test_quota.c:190:13: */
sqlite3.Xsqlite3_mutex_enter(tls, gQuota.FpMutex)
}
-func quotaLeave(tls *crt.TLS) { /* test_quota.c:191:13: */
+func quotaLeave(tls *libc.TLS) { /* test_quota.c:191:13: */
sqlite3.Xsqlite3_mutex_leave(tls, gQuota.FpMutex)
}
// Count the number of open files in a quotaGroup
-func quotaGroupOpenFileCount(tls *crt.TLS, pGroup uintptr) int32 { /* test_quota.c:195:12: */
+func quotaGroupOpenFileCount(tls *libc.TLS, pGroup uintptr) int32 { /* test_quota.c:195:12: */
var N int32 = 0
var pFile uintptr = (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles
for pFile != 0 {
@@ -64995,7 +69746,7 @@ func quotaGroupOpenFileCount(tls *crt.TLS, pGroup uintptr) int32 { /* test_quota
}
// Remove a file from a quota group.
-func quotaRemoveFile(tls *crt.TLS, pFile uintptr) { /* test_quota.c:207:13: */
+func quotaRemoveFile(tls *libc.TLS, pFile uintptr) { /* test_quota.c:207:13: */
var pGroup uintptr = (*quotaFile)(unsafe.Pointer(pFile)).FpGroup
*(*sqlite3_int64)(unsafe.Pointer(pGroup + 16 /* &.iSize */)) -= ((*quotaFile)(unsafe.Pointer(pFile)).FiSize)
*(*uintptr)(unsafe.Pointer((*quotaFile)(unsafe.Pointer(pFile)).FppPrev)) = (*quotaFile)(unsafe.Pointer(pFile)).FpNext
@@ -65007,7 +69758,7 @@ func quotaRemoveFile(tls *crt.TLS, pFile uintptr) { /* test_quota.c:207:13: */
// Remove all files from a quota group. It is always the case that
// all files will be closed when this routine is called.
-func quotaRemoveAllFiles(tls *crt.TLS, pGroup uintptr) { /* test_quota.c:218:13: */
+func quotaRemoveAllFiles(tls *libc.TLS, pGroup uintptr) { /* test_quota.c:218:13: */
for (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles != 0 {
quotaRemoveFile(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles)
@@ -65016,7 +69767,7 @@ func quotaRemoveAllFiles(tls *crt.TLS, pGroup uintptr) { /* test_quota.c:218:13:
// If the reference count and threshold for a quotaGroup are both
// zero, then destroy the quotaGroup.
-func quotaGroupDeref(tls *crt.TLS, pGroup uintptr) { /* test_quota.c:229:13: */
+func quotaGroupDeref(tls *libc.TLS, pGroup uintptr) { /* test_quota.c:229:13: */
if ((*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit == int64(0)) && (quotaGroupOpenFileCount(tls, pGroup) == 0) {
quotaRemoveAllFiles(tls, pGroup)
*(*uintptr)(unsafe.Pointer((*quotaGroup)(unsafe.Pointer(pGroup)).FppPrev)) = (*quotaGroup)(unsafe.Pointer(pGroup)).FpNext
@@ -65024,7 +69775,7 @@ func quotaGroupDeref(tls *crt.TLS, pGroup uintptr) { /* test_quota.c:229:13: */
(*quotaGroup)(unsafe.Pointer((*quotaGroup)(unsafe.Pointer(pGroup)).FpNext)).FppPrev = (*quotaGroup)(unsafe.Pointer(pGroup)).FppPrev
}
if (*quotaGroup)(unsafe.Pointer(pGroup)).FxDestroy != 0 {
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((pGroup + 40 /* &.xDestroy */))))(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FpArg)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((pGroup + 40 /* &.xDestroy */))))(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FpArg)
}
sqlite3.Xsqlite3_free(tls, pGroup)
}
@@ -65045,17 +69796,17 @@ func quotaGroupDeref(tls *crt.TLS, pGroup uintptr) { /* test_quota.c:229:13: */
//
// / Matches "/" or "\\"
//
-func quotaStrglob(tls *crt.TLS, zGlob uintptr, z uintptr) int32 { /* test_quota.c:256:12: */
+func quotaStrglob(tls *libc.TLS, zGlob uintptr, z uintptr) int32 { /* test_quota.c:256:12: */
var c int32
var c2 int32
var cx int32
var invert int32
var seen int32
- for (crt.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1)))))) != 0 {
+ for (libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))))) != 0 {
if c == '*' {
- for ((crt.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1)))))) == '*') || (c == '?') {
- if (c == '?') && ((int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1))))) == 0) {
+ for ((libc.AssignInt32(&c, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1)))))) == '*') || (c == '?') {
+ if (c == '?') && ((int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))) == 0) {
return 0
}
}
@@ -65065,16 +69816,16 @@ func quotaStrglob(tls *crt.TLS, zGlob uintptr, z uintptr) int32 { /* test_quota.
for (*(*int8)(unsafe.Pointer(z)) != 0) && (quotaStrglob(tls, (zGlob-uintptr(1)), z) == 0) {
z++
}
- return (crt.Bool32((int32(*(*int8)(unsafe.Pointer(z)))) != 0))
+ return (libc.Bool32((int32(*(*int8)(unsafe.Pointer(z)))) != 0))
}
if c == '/' {
cx = '\\'
} else {
cx = c
}
- for (crt.AssignInt32(&c2, int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1)))))) != 0 {
+ for (libc.AssignInt32(&c2, int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1)))))) != 0 {
for (c2 != c) && (c2 != cx) {
- c2 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1))))
+ c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))
if c2 == 0 {
return 0
}
@@ -65085,31 +69836,31 @@ func quotaStrglob(tls *crt.TLS, zGlob uintptr, z uintptr) int32 { /* test_quota.
}
return 0
} else if c == '?' {
- if (int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1))))) == 0 {
+ if (int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))) == 0 {
return 0
}
} else if c == '[' {
var prior_c int32 = 0
seen = 0
invert = 0
- c = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1))))
+ c = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))
if c == 0 {
return 0
}
- c2 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1))))
+ c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1))))
if c2 == '^' {
invert = 1
- c2 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1))))
+ c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1))))
}
if c2 == ']' {
if c == ']' {
seen = 1
}
- c2 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1))))
+ c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1))))
}
for (c2 != 0) && (c2 != ']') {
if (((c2 == '-') && (int32(*(*int8)(unsafe.Pointer(zGlob + uintptr(0)))) != ']')) && (int32(*(*int8)(unsafe.Pointer(zGlob + uintptr(0)))) != 0)) && (prior_c > 0) {
- c2 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1))))
+ c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1))))
if (c >= prior_c) && (c <= c2) {
seen = 1
}
@@ -65120,7 +69871,7 @@ func quotaStrglob(tls *crt.TLS, zGlob uintptr, z uintptr) int32 { /* test_quota.
}
prior_c = c2
}
- c2 = int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&zGlob, 1))))
+ c2 = int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&zGlob, 1))))
}
if (c2 == 0) || ((seen ^ invert) == 0) {
return 0
@@ -65131,18 +69882,18 @@ func quotaStrglob(tls *crt.TLS, zGlob uintptr, z uintptr) int32 { /* test_quota.
}
z++
} else {
- if c != (int32(*(*int8)(unsafe.Pointer(crt.PostIncUintptr(&z, 1))))) {
+ if c != (int32(*(*int8)(unsafe.Pointer(libc.PostIncUintptr(&z, 1))))) {
return 0
}
}
}
- return (crt.Bool32(int32(*(*int8)(unsafe.Pointer(z))) == 0))
+ return (libc.Bool32(int32(*(*int8)(unsafe.Pointer(z))) == 0))
}
// Find a quotaGroup given the filename.
//
// Return a pointer to the quotaGroup object. Return NULL if not found.
-func quotaGroupFind(tls *crt.TLS, zFilename uintptr) uintptr { /* test_quota.c:329:19: */
+func quotaGroupFind(tls *libc.TLS, zFilename uintptr) uintptr { /* test_quota.c:329:19: */
var p uintptr
for p = gQuota.FpGroup; (p != 0) && (quotaStrglob(tls, (*quotaGroup)(unsafe.Pointer(p)).FzPattern, zFilename) == 0); p = (*quotaGroup)(unsafe.Pointer(p)).FpNext {
}
@@ -65151,25 +69902,25 @@ func quotaGroupFind(tls *crt.TLS, zFilename uintptr) uintptr { /* test_quota.c:3
// Translate an sqlite3_file* that is really a quotaConn* into
// the sqlite3_file* for the underlying original VFS.
-func quotaSubOpen(tls *crt.TLS, pConn uintptr) uintptr { /* test_quota.c:339:21: */
+func quotaSubOpen(tls *libc.TLS, pConn uintptr) uintptr { /* test_quota.c:339:21: */
var p uintptr = pConn
return (p + uintptr(1)*16)
}
// Find a file in a quota group and return a pointer to that file.
// Return NULL if the file is not in the group.
-func quotaFindFile(tls *crt.TLS, pGroup uintptr, zName uintptr, createFlag int32) uintptr { /* test_quota.c:347:18: */
+func quotaFindFile(tls *libc.TLS, pGroup uintptr, zName uintptr, createFlag int32) uintptr { /* test_quota.c:347:18: */
var pFile uintptr = (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles
- for (pFile != 0) && (crt.Xstrcmp(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, zName) != 0) {
+ for (pFile != 0) && (libc.Xstrcmp(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, zName) != 0) {
pFile = (*quotaFile)(unsafe.Pointer(pFile)).FpNext
}
if (pFile == uintptr(0)) && (createFlag != 0) {
- var nName int32 = (int32(crt.Xstrlen(tls, zName) & uint64(0x3fffffff)))
+ var nName int32 = (int32(libc.Xstrlen(tls, zName) & uint64(0x3fffffff)))
pFile = sqlite3.Xsqlite3_malloc(tls, (int32((uint64(unsafe.Sizeof(quotaFile{})) + uint64(nName)) + uint64(1))))
if pFile != 0 {
- crt.Xmemset(tls, pFile, 0, uint64(unsafe.Sizeof(quotaFile{})))
+ libc.Xmemset(tls, pFile, 0, uint64(unsafe.Sizeof(quotaFile{})))
(*quotaFile)(unsafe.Pointer(pFile)).FzFilename = (pFile + uintptr(1)*48)
- crt.Xmemcpy(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, zName, (uint64(nName + 1)))
+ libc.Xmemcpy(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, zName, (uint64(nName + 1)))
(*quotaFile)(unsafe.Pointer(pFile)).FpNext = (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles
if (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles != 0 {
(*quotaFile)(unsafe.Pointer((*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles)).FppPrev = (pFile + 32 /* &.pNext */)
@@ -65185,12 +69936,12 @@ func quotaFindFile(tls *crt.TLS, pGroup uintptr, zName uintptr, createFlag int32
// Translate UTF8 to MBCS for use in fopen() calls. Return a pointer to the
// translated text.. Call quota_mbcs_free() to deallocate any memory
// used to store the returned pointer when done.
-func quota_utf8_to_mbcs(tls *crt.TLS, zUtf8 uintptr) uintptr { /* test_quota.c:377:13: */
+func quota_utf8_to_mbcs(tls *libc.TLS, zUtf8 uintptr) uintptr { /* test_quota.c:377:13: */
return zUtf8 // No-op on unix
}
// Deallocate any memory allocated by quota_utf8_to_mbcs().
-func quota_mbcs_free(tls *crt.TLS, zOld uintptr) { /* test_quota.c:408:13: */
+func quota_mbcs_free(tls *libc.TLS, zOld uintptr) { /* test_quota.c:408:13: */
// No-op on unix
}
@@ -65200,7 +69951,7 @@ func quota_mbcs_free(tls *crt.TLS, zOld uintptr) { /* test_quota.c:408:13: */
// Most of the work is done by the underlying original VFS. This method
// simply links the new file into the appropriate quota group if it is a
// file that needs to be tracked.
-func quotaOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags int32, pOutFlags uintptr) int32 { /* test_quota.c:424:12: */
+func quotaOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags int32, pOutFlags uintptr) int32 { /* test_quota.c:424:12: */
var rc int32 // Result code
var pQuotaOpen uintptr // The new quota file descriptor
var pFile uintptr // Corresponding quotaFile obj
@@ -65211,7 +69962,7 @@ func quotaOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags i
// If the file is not a main database file or a WAL, then use the
// normal xOpen method.
if (flags & (0x00000100 | 0x00080000)) == 0 {
- return (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, zName, pConn, flags, pOutFlags)
+ return (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, zName, pConn, flags, pOutFlags)
}
// If the name of the file does not match any quota group, then
@@ -65219,20 +69970,20 @@ func quotaOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags i
quotaEnter(tls)
pGroup = quotaGroupFind(tls, zName)
if pGroup == uintptr(0) {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, zName, pConn, flags, pOutFlags)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, zName, pConn, flags, pOutFlags)
} else {
// If we get to this point, it means the file needs to be quota tracked.
pQuotaOpen = pConn
pSubOpen = quotaSubOpen(tls, pConn)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, zName, pSubOpen, flags, pOutFlags)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((pOrigVfs + 40 /* &.xOpen */))))(tls, pOrigVfs, zName, pSubOpen, flags, pOutFlags)
if rc == 0 {
pFile = quotaFindFile(tls, pGroup, zName, 1)
if pFile == uintptr(0) {
quotaLeave(tls)
- (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 8 /* &.xClose */))))(tls, pSubOpen)
+ (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 8 /* &.xClose */))))(tls, pSubOpen)
return 7
}
- (*quotaFile)(unsafe.Pointer(pFile)).FdeleteOnClose = (crt.Bool32((flags & 0x00000008) != 0))
+ (*quotaFile)(unsafe.Pointer(pFile)).FdeleteOnClose = (libc.Bool32((flags & 0x00000008) != 0))
(*quotaFile)(unsafe.Pointer(pFile)).FnRef++
(*quotaConn)(unsafe.Pointer(pQuotaOpen)).FpFile = pFile
if (*sqlite3_io_methods1)(unsafe.Pointer((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods)).FiVersion == 1 {
@@ -65251,14 +70002,14 @@ func quotaOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pConn uintptr, flags i
// If the file being deleted is part of the quota group, then reduce
// the size of the quota group accordingly. And remove the file from
// the set of files in the quota group.
-func quotaDelete(tls *crt.TLS, pVfs uintptr, zName uintptr, syncDir int32) int32 { /* test_quota.c:486:12: */
+func quotaDelete(tls *libc.TLS, pVfs uintptr, zName uintptr, syncDir int32) int32 { /* test_quota.c:486:12: */
var rc int32 // Result code
var pFile uintptr // Files in the quota
var pGroup uintptr // The group file belongs to
var pOrigVfs uintptr = gQuota.FpOrigVfs // Real VFS
// Do the actual file delete
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, zName, syncDir)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((pOrigVfs + 48 /* &.xDelete */))))(tls, pOrigVfs, zName, syncDir)
// If the file just deleted is a member of a quota group, then remove
// it from that quota group.
@@ -65286,18 +70037,18 @@ func quotaDelete(tls *crt.TLS, pVfs uintptr, zName uintptr, syncDir int32) int32
// xClose requests get passed through to the original VFS. But we
// also have to unlink the quotaConn from the quotaFile and quotaGroup.
// The quotaFile and/or quotaGroup are freed if they are no longer in use.
-func quotaClose(tls *crt.TLS, pConn uintptr) int32 { /* test_quota.c:528:12: */
+func quotaClose(tls *libc.TLS, pConn uintptr) int32 { /* test_quota.c:528:12: */
var p uintptr = pConn
var pFile uintptr = (*quotaConn)(unsafe.Pointer(p)).FpFile
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
var rc int32
- rc = (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 8 /* &.xClose */))))(tls, pSubOpen)
+ rc = (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 8 /* &.xClose */))))(tls, pSubOpen)
quotaEnter(tls)
(*quotaFile)(unsafe.Pointer(pFile)).FnRef--
if (*quotaFile)(unsafe.Pointer(pFile)).FnRef == 0 {
var pGroup uintptr = (*quotaFile)(unsafe.Pointer(pFile)).FpGroup
if (*quotaFile)(unsafe.Pointer(pFile)).FdeleteOnClose != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 48 /* &.xDelete */))))(tls, gQuota.FpOrigVfs, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, 0)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 48 /* &.xDelete */))))(tls, gQuota.FpOrigVfs, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, 0)
quotaRemoveFile(tls, pFile)
}
quotaGroupDeref(tls, pGroup)
@@ -65308,15 +70059,15 @@ func quotaClose(tls *crt.TLS, pConn uintptr) int32 { /* test_quota.c:528:12: */
// Pass xRead requests directory thru to the original VFS without
// further processing.
-func quotaRead(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_quota.c:551:12: */
+func quotaRead(tls *libc.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_quota.c:551:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 16 /* &.xRead */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 16 /* &.xRead */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
}
// Check xWrite requests to see if they expand the file. If they do,
// the perform a quota check before passing them through to the
// original VFS.
-func quotaWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_quota.c:565:12: */
+func quotaWrite(tls *libc.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sqlite3_int64) int32 { /* test_quota.c:565:12: */
var p uintptr = pConn
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
var iEnd sqlite3_int64 = (iOfst + sqlite3_int64(iAmt))
@@ -65330,7 +70081,7 @@ func quotaWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sql
szNew = (((*quotaGroup)(unsafe.Pointer(pGroup)).FiSize - (*quotaFile)(unsafe.Pointer(pFile)).FiSize) + iEnd)
if (szNew > (*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit) && ((*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit > int64(0)) {
if (*quotaGroup)(unsafe.Pointer(pGroup)).FxCallback != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_int64, uintptr))(unsafe.Pointer((pGroup + 24 /* &.xCallback */))))(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, (pGroup + 8 /* &.iLimit */), szNew,
+ (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_int64, uintptr))(unsafe.Pointer((pGroup + 24 /* &.xCallback */))))(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, (pGroup + 8 /* &.iLimit */), szNew,
(*quotaGroup)(unsafe.Pointer(pGroup)).FpArg)
}
if (szNew > (*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit) && ((*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit > int64(0)) {
@@ -65342,15 +70093,15 @@ func quotaWrite(tls *crt.TLS, pConn uintptr, pBuf uintptr, iAmt int32, iOfst sql
(*quotaFile)(unsafe.Pointer(pFile)).FiSize = iEnd
quotaLeave(tls)
}
- return (*(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 24 /* &.xWrite */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
+ return (*(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 24 /* &.xWrite */))))(tls, pSubOpen, pBuf, iAmt, iOfst)
}
// Pass xTruncate requests thru to the original VFS. If the
// success, update the file size.
-func quotaTruncate(tls *crt.TLS, pConn uintptr, size sqlite3_int64) int32 { /* test_quota.c:602:12: */
+func quotaTruncate(tls *libc.TLS, pConn uintptr, size sqlite3_int64) int32 { /* test_quota.c:602:12: */
var p uintptr = pConn
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- var rc int32 = (*(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, size)
+ var rc int32 = (*(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 32 /* &.xTruncate */))))(tls, pSubOpen, size)
var pFile uintptr = (*quotaConn)(unsafe.Pointer(p)).FpFile
var pGroup uintptr
if rc == 0 {
@@ -65365,14 +70116,14 @@ func quotaTruncate(tls *crt.TLS, pConn uintptr, size sqlite3_int64) int32 { /* t
}
// Pass xSync requests through to the original VFS without change
-func quotaSync(tls *crt.TLS, pConn uintptr, flags int32) int32 { /* test_quota.c:621:12: */
+func quotaSync(tls *libc.TLS, pConn uintptr, flags int32) int32 { /* test_quota.c:621:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 40 /* &.xSync */))))(tls, pSubOpen, flags)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 40 /* &.xSync */))))(tls, pSubOpen, flags)
}
// Pass xFileSize requests through to the original VFS but then
// update the quotaGroup with the new size before returning.
-func quotaFileSize(tls *crt.TLS, pConn uintptr, pSize uintptr) int32 { /* test_quota.c:629:12: */
+func quotaFileSize(tls *libc.TLS, pConn uintptr, pSize uintptr) int32 { /* test_quota.c:629:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -65384,7 +70135,7 @@ func quotaFileSize(tls *crt.TLS, pConn uintptr, pSize uintptr) int32 { /* test_q
var rc int32
- rc = (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 48 /* &.xFileSize */))))(tls, pSubOpen, bp /* &sz */)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 48 /* &.xFileSize */))))(tls, pSubOpen, bp /* &sz */)
if rc == 0 {
quotaEnter(tls)
pGroup = (*quotaFile)(unsafe.Pointer(pFile)).FpGroup
@@ -65398,70 +70149,70 @@ func quotaFileSize(tls *crt.TLS, pConn uintptr, pSize uintptr) int32 { /* test_q
}
// Pass xLock requests through to the original VFS unchanged.
-func quotaLock(tls *crt.TLS, pConn uintptr, lock int32) int32 { /* test_quota.c:652:12: */
+func quotaLock(tls *libc.TLS, pConn uintptr, lock int32) int32 { /* test_quota.c:652:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 56 /* &.xLock */))))(tls, pSubOpen, lock)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 56 /* &.xLock */))))(tls, pSubOpen, lock)
}
// Pass xUnlock requests through to the original VFS unchanged.
-func quotaUnlock(tls *crt.TLS, pConn uintptr, lock int32) int32 { /* test_quota.c:659:12: */
+func quotaUnlock(tls *libc.TLS, pConn uintptr, lock int32) int32 { /* test_quota.c:659:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 64 /* &.xUnlock */))))(tls, pSubOpen, lock)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 64 /* &.xUnlock */))))(tls, pSubOpen, lock)
}
// Pass xCheckReservedLock requests through to the original VFS unchanged.
-func quotaCheckReservedLock(tls *crt.TLS, pConn uintptr, pResOut uintptr) int32 { /* test_quota.c:666:12: */
+func quotaCheckReservedLock(tls *libc.TLS, pConn uintptr, pResOut uintptr) int32 { /* test_quota.c:666:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 72 /* &.xCheckReservedLock */))))(tls, pSubOpen, pResOut)
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 72 /* &.xCheckReservedLock */))))(tls, pSubOpen, pResOut)
}
// Pass xFileControl requests through to the original VFS unchanged.
-func quotaFileControl(tls *crt.TLS, pConn uintptr, op int32, pArg uintptr) int32 { /* test_quota.c:673:12: */
+func quotaFileControl(tls *libc.TLS, pConn uintptr, op int32, pArg uintptr) int32 { /* test_quota.c:673:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- var rc int32 = (*(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 80 /* &.xFileControl */))))(tls, pSubOpen, op, pArg)
+ var rc int32 = (*(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 80 /* &.xFileControl */))))(tls, pSubOpen, op, pArg)
if (op == 12) && (rc == 0) {
- *(*uintptr)(unsafe.Pointer(pArg)) = sqlite3.Xsqlite3_mprintf(tls, ts+32699 /* "quota/%z" */, crt.VaList(bp, *(*uintptr)(unsafe.Pointer(pArg))))
+ *(*uintptr)(unsafe.Pointer(pArg)) = sqlite3.Xsqlite3_mprintf(tls, ts+34760 /* "quota/%z" */, libc.VaList(bp, *(*uintptr)(unsafe.Pointer(pArg))))
}
return rc
}
// Pass xSectorSize requests through to the original VFS unchanged.
-func quotaSectorSize(tls *crt.TLS, pConn uintptr) int32 { /* test_quota.c:686:12: */
+func quotaSectorSize(tls *libc.TLS, pConn uintptr) int32 { /* test_quota.c:686:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 88 /* &.xSectorSize */))))(tls, pSubOpen)
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 88 /* &.xSectorSize */))))(tls, pSubOpen)
}
// Pass xDeviceCharacteristics requests through to the original VFS unchanged.
-func quotaDeviceCharacteristics(tls *crt.TLS, pConn uintptr) int32 { /* test_quota.c:693:12: */
+func quotaDeviceCharacteristics(tls *libc.TLS, pConn uintptr) int32 { /* test_quota.c:693:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, pSubOpen)
+ return (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 96 /* &.xDeviceCharacteristics */))))(tls, pSubOpen)
}
// Pass xShmMap requests through to the original VFS unchanged.
-func quotaShmMap(tls *crt.TLS, pConn uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* test_quota.c:700:12: */
+func quotaShmMap(tls *libc.TLS, pConn uintptr, iRegion int32, szRegion int32, bExtend int32, pp uintptr) int32 { /* test_quota.c:700:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 104 /* &.xShmMap */))))(tls, pSubOpen, iRegion, szRegion, bExtend, pp)
+ return (*(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 104 /* &.xShmMap */))))(tls, pSubOpen, iRegion, szRegion, bExtend, pp)
}
// Pass xShmLock requests through to the original VFS unchanged.
-func quotaShmLock(tls *crt.TLS, pConn uintptr, ofst int32, n int32, flags int32) int32 { /* test_quota.c:713:12: */
+func quotaShmLock(tls *libc.TLS, pConn uintptr, ofst int32, n int32, flags int32) int32 { /* test_quota.c:713:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 112 /* &.xShmLock */))))(tls, pSubOpen, ofst, n, flags)
+ return (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 112 /* &.xShmLock */))))(tls, pSubOpen, ofst, n, flags)
}
// Pass xShmBarrier requests through to the original VFS unchanged.
-func quotaShmBarrier(tls *crt.TLS, pConn uintptr) { /* test_quota.c:725:13: */
+func quotaShmBarrier(tls *libc.TLS, pConn uintptr) { /* test_quota.c:725:13: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 120 /* &.xShmBarrier */))))(tls, pSubOpen)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 120 /* &.xShmBarrier */))))(tls, pSubOpen)
}
// Pass xShmUnmap requests through to the original VFS unchanged.
-func quotaShmUnmap(tls *crt.TLS, pConn uintptr, deleteFlag int32) int32 { /* test_quota.c:732:12: */
+func quotaShmUnmap(tls *libc.TLS, pConn uintptr, deleteFlag int32) int32 { /* test_quota.c:732:12: */
var pSubOpen uintptr = quotaSubOpen(tls, pConn)
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 128 /* &.xShmUnmap */))))(tls, pSubOpen, deleteFlag)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(pSubOpen)).FpMethods + 128 /* &.xShmUnmap */))))(tls, pSubOpen, deleteFlag)
}
//************************* Public Interfaces ****************************
@@ -65474,7 +70225,7 @@ func quotaShmUnmap(tls *crt.TLS, pConn uintptr, deleteFlag int32) int32 { /* tes
//
// THIS ROUTINE IS NOT THREADSAFE. Call this routine exactly once
// during start-up.
-func sqlite3_quota_initialize(tls *crt.TLS, zOrigVfsName uintptr, makeDefault int32) int32 { /* test_quota.c:749:5: */
+func sqlite3_quota_initialize(tls *libc.TLS, zOrigVfsName uintptr, makeDefault int32) int32 { /* test_quota.c:749:5: */
var pOrigVfs uintptr
if gQuota.FisInitialized != 0 {
return 21
@@ -65492,55 +70243,61 @@ func sqlite3_quota_initialize(tls *crt.TLS, zOrigVfsName uintptr, makeDefault in
gQuota.FpOrigVfs = pOrigVfs
gQuota.FsThisVfs = *(*sqlite3_vfs)(unsafe.Pointer(pOrigVfs))
gQuota.FsThisVfs.FxOpen = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32
}{quotaOpen}))
gQuota.FsThisVfs.FxDelete = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, uintptr, int32) int32
}{quotaDelete}))
*(*int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&gQuota)) + 8 /* &.sThisVfs */ + 4 /* &.szOsFile */)) += int32((uint64(unsafe.Sizeof(quotaConn{}))))
- gQuota.FsThisVfs.FzName = ts + 32708 /* "quota" */
+ gQuota.FsThisVfs.FzName = ts + 34769 /* "quota" */
gQuota.FsIoMethodsV1.FiVersion = 1
- gQuota.FsIoMethodsV1.FxClose = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{quotaClose}))
+ gQuota.FsIoMethodsV1.FxClose = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{quotaClose}))
gQuota.FsIoMethodsV1.FxRead = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
}{quotaRead}))
gQuota.FsIoMethodsV1.FxWrite = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32
}{quotaWrite}))
gQuota.FsIoMethodsV1.FxTruncate = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, sqlite3_int64) int32
+ f func(*libc.TLS, uintptr, sqlite3_int64) int32
}{quotaTruncate}))
gQuota.FsIoMethodsV1.FxSync = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{quotaSync}))
gQuota.FsIoMethodsV1.FxFileSize = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{quotaFileSize}))
gQuota.FsIoMethodsV1.FxLock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{quotaLock}))
gQuota.FsIoMethodsV1.FxUnlock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{quotaUnlock}))
gQuota.FsIoMethodsV1.FxCheckReservedLock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{quotaCheckReservedLock}))
gQuota.FsIoMethodsV1.FxFileControl = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, uintptr) int32
}{quotaFileControl}))
- gQuota.FsIoMethodsV1.FxSectorSize = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{quotaSectorSize}))
- gQuota.FsIoMethodsV1.FxDeviceCharacteristics = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) int32 }{quotaDeviceCharacteristics}))
+ gQuota.FsIoMethodsV1.FxSectorSize = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{quotaSectorSize}))
+ gQuota.FsIoMethodsV1.FxDeviceCharacteristics = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{quotaDeviceCharacteristics}))
gQuota.FsIoMethodsV2 = gQuota.FsIoMethodsV1
gQuota.FsIoMethodsV2.FiVersion = 2
gQuota.FsIoMethodsV2.FxShmMap = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32
}{quotaShmMap}))
gQuota.FsIoMethodsV2.FxShmLock = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, int32, int32) int32
+ f func(*libc.TLS, uintptr, int32, int32, int32) int32
}{quotaShmLock}))
- gQuota.FsIoMethodsV2.FxShmBarrier = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{quotaShmBarrier}))
+ gQuota.FsIoMethodsV2.FxShmBarrier = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{quotaShmBarrier}))
gQuota.FsIoMethodsV2.FxShmUnmap = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{quotaShmUnmap}))
sqlite3.Xsqlite3_vfs_register(tls, (uintptr(unsafe.Pointer(&gQuota)) + 8 /* &.sThisVfs */), makeDefault)
return 0
@@ -65553,7 +70310,7 @@ func sqlite3_quota_initialize(tls *crt.TLS, zOrigVfsName uintptr, makeDefault in
//
// THIS ROUTINE IS NOT THREADSAFE. Call this routine exactly once while
// shutting down in order to free all remaining quota groups.
-func sqlite3_quota_shutdown(tls *crt.TLS) int32 { /* test_quota.c:798:5: */
+func sqlite3_quota_shutdown(tls *libc.TLS) int32 { /* test_quota.c:798:5: */
var pGroup uintptr
if gQuota.FisInitialized == 0 {
return 21
@@ -65573,7 +70330,7 @@ func sqlite3_quota_shutdown(tls *crt.TLS) int32 { /* test_quota.c:798:5: */
gQuota.FisInitialized = 0
sqlite3.Xsqlite3_mutex_free(tls, gQuota.FpMutex)
sqlite3.Xsqlite3_vfs_unregister(tls, (uintptr(unsafe.Pointer(&gQuota)) + 8 /* &.sThisVfs */))
- crt.Xmemset(tls, uintptr(unsafe.Pointer(&gQuota)), 0, uint64(unsafe.Sizeof(gQuota)))
+ libc.Xmemset(tls, uintptr(unsafe.Pointer(&gQuota)), 0, uint64(unsafe.Sizeof(gQuota)))
return 0
}
@@ -65595,15 +70352,15 @@ func sqlite3_quota_shutdown(tls *crt.TLS) int32 { /* test_quota.c:798:5: */
// database connections if those connections are to participate in the
// quota group. Creating a quota group does not affect database connections
// that are already open.
-func sqlite3_quota_set(tls *crt.TLS, zPattern uintptr, iLimit sqlite3_int64, xCallback uintptr, pArg uintptr, xDestroy uintptr) int32 { /* test_quota.c:838:5: */
+func sqlite3_quota_set(tls *libc.TLS, zPattern uintptr, iLimit sqlite3_int64, xCallback uintptr, pArg uintptr, xDestroy uintptr) int32 { /* test_quota.c:838:5: */
var pGroup uintptr
quotaEnter(tls)
pGroup = gQuota.FpGroup
- for (pGroup != 0) && (crt.Xstrcmp(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FzPattern, zPattern) != 0) {
+ for (pGroup != 0) && (libc.Xstrcmp(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FzPattern, zPattern) != 0) {
pGroup = (*quotaGroup)(unsafe.Pointer(pGroup)).FpNext
}
if pGroup == uintptr(0) {
- var nPattern int32 = (int32(crt.Xstrlen(tls, zPattern) & uint64(0x3fffffff)))
+ var nPattern int32 = (int32(libc.Xstrlen(tls, zPattern) & uint64(0x3fffffff)))
if iLimit <= int64(0) {
quotaLeave(tls)
return 0
@@ -65613,9 +70370,9 @@ func sqlite3_quota_set(tls *crt.TLS, zPattern uintptr, iLimit sqlite3_int64, xCa
quotaLeave(tls)
return 7
}
- crt.Xmemset(tls, pGroup, 0, uint64(unsafe.Sizeof(quotaGroup{})))
+ libc.Xmemset(tls, pGroup, 0, uint64(unsafe.Sizeof(quotaGroup{})))
(*quotaGroup)(unsafe.Pointer(pGroup)).FzPattern = (pGroup + uintptr(1)*72)
- crt.Xmemcpy(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FzPattern, zPattern, (uint64(nPattern + 1)))
+ libc.Xmemcpy(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FzPattern, zPattern, (uint64(nPattern + 1)))
if gQuota.FpGroup != 0 {
(*quotaGroup)(unsafe.Pointer(gQuota.FpGroup)).FppPrev = (pGroup + 48 /* &.pNext */)
}
@@ -65626,7 +70383,7 @@ func sqlite3_quota_set(tls *crt.TLS, zPattern uintptr, iLimit sqlite3_int64, xCa
(*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit = iLimit
(*quotaGroup)(unsafe.Pointer(pGroup)).FxCallback = xCallback
if ((*quotaGroup)(unsafe.Pointer(pGroup)).FxDestroy != 0) && ((*quotaGroup)(unsafe.Pointer(pGroup)).FpArg != pArg) {
- (*(*func(*crt.TLS, uintptr))(unsafe.Pointer((pGroup + 40 /* &.xDestroy */))))(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FpArg)
+ (*(*func(*libc.TLS, uintptr))(unsafe.Pointer((pGroup + 40 /* &.xDestroy */))))(tls, (*quotaGroup)(unsafe.Pointer(pGroup)).FpArg)
}
(*quotaGroup)(unsafe.Pointer(pGroup)).FpArg = pArg
(*quotaGroup)(unsafe.Pointer(pGroup)).FxDestroy = xDestroy
@@ -65637,7 +70394,7 @@ func sqlite3_quota_set(tls *crt.TLS, zPattern uintptr, iLimit sqlite3_int64, xCa
// Bring the named file under quota management. Or if it is already under
// management, update its size.
-func sqlite3_quota_file(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota.c:891:5: */
+func sqlite3_quota_file(tls *libc.TLS, zFilename uintptr) int32 { /* test_quota.c:891:5: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -65655,17 +70412,17 @@ func sqlite3_quota_file(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota.c
rc = 7
} else {
zFull = ((fd) + uintptr(gQuota.FsThisVfs.FszOsFile))
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gQuota.FpOrigVfs, zFilename,
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gQuota.FpOrigVfs, zFilename,
(gQuota.FsThisVfs.FmxPathname + 1), zFull)
}
if rc == 0 {
- *(*int8)(unsafe.Pointer(zFull + uintptr((crt.Xstrlen(tls, zFull) + uint64(1))))) = int8(0)
+ *(*int8)(unsafe.Pointer(zFull + uintptr((libc.Xstrlen(tls, zFull) + uint64(1))))) = int8(0)
rc = quotaOpen(tls, (uintptr(unsafe.Pointer(&gQuota)) + 8 /* &.sThisVfs */), zFull, fd,
(0x00000001 | 0x00000100), bp /* &outFlags */)
if rc == 0 {
- (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(fd)).FpMethods + 48 /* &.xFileSize */))))(tls, fd, bp+8 /* &iSize */)
- (*(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(fd)).FpMethods + 8 /* &.xClose */))))(tls, fd)
+ (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(fd)).FpMethods + 48 /* &.xFileSize */))))(tls, fd, bp+8 /* &iSize */)
+ (*(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(fd)).FpMethods + 8 /* &.xClose */))))(tls, fd)
} else if rc == 14 {
var pGroup uintptr
var pFile uintptr
@@ -65686,7 +70443,7 @@ func sqlite3_quota_file(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota.c
}
// Open a potentially quotaed file for I/O.
-func sqlite3_quota_fopen(tls *crt.TLS, zFilename uintptr, zMode uintptr) uintptr { /* test_quota.c:936:12: */
+func sqlite3_quota_fopen(tls *libc.TLS, zFilename uintptr, zMode uintptr) uintptr { /* test_quota.c:936:12: */
var p uintptr
var zFull uintptr
var zFullTranslated uintptr
@@ -65704,7 +70461,7 @@ func sqlite3_quota_fopen(tls *crt.TLS, zFilename uintptr, zMode uintptr) uintptr
return uintptr(0)
__1:
;
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gQuota.FpOrigVfs, zFilename,
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gQuota.FpOrigVfs, zFilename,
(gQuota.FsThisVfs.FmxPathname + 1), zFull)
if !(rc != 0) {
goto __2
@@ -65719,7 +70476,7 @@ __2:
goto quota_fopen_error
__3:
;
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(quota_FILE{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(quota_FILE{})))
zFullTranslated = quota_utf8_to_mbcs(tls, zFull)
if !(zFullTranslated == uintptr(0)) {
goto __4
@@ -65727,7 +70484,7 @@ __3:
goto quota_fopen_error
__4:
;
- (*quota_FILE)(unsafe.Pointer(p)).Ff = crt.Xfopen(tls, zFullTranslated, zMode)
+ (*quota_FILE)(unsafe.Pointer(p)).Ff = libc.Xfopen(tls, zFullTranslated, zMode)
if !((*quota_FILE)(unsafe.Pointer(p)).Ff == uintptr(0)) {
goto __5
}
@@ -65761,7 +70518,7 @@ quota_fopen_error:
if !((p != 0) && ((*quota_FILE)(unsafe.Pointer(p)).Ff != 0)) {
goto __8
}
- crt.Xfclose(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+ libc.Xfclose(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
__8:
;
sqlite3.Xsqlite3_free(tls, p)
@@ -65769,20 +70526,20 @@ __8:
}
// Read content from a quota_FILE
-func sqlite3_quota_fread(tls *crt.TLS, pBuf uintptr, size size_t, nmemb size_t, p uintptr) size_t { /* test_quota.c:985:8: */
- return crt.Xfread(tls, pBuf, size, nmemb, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+func sqlite3_quota_fread(tls *libc.TLS, pBuf uintptr, size size_t, nmemb size_t, p uintptr) size_t { /* test_quota.c:985:8: */
+ return libc.Xfread(tls, pBuf, size, nmemb, (*quota_FILE)(unsafe.Pointer(p)).Ff)
}
// Write content into a quota_FILE. Invoke the quota callback and block
// the write if we exceed quota.
-func sqlite3_quota_fwrite(tls *crt.TLS, pBuf uintptr, size size_t, nmemb size_t, p uintptr) size_t { /* test_quota.c:998:8: */
+func sqlite3_quota_fwrite(tls *libc.TLS, pBuf uintptr, size size_t, nmemb size_t, p uintptr) size_t { /* test_quota.c:998:8: */
var iOfst sqlite3_int64
var iEnd sqlite3_int64
var szNew sqlite3_int64
var pFile uintptr
var rc size_t
- iOfst = sqlite3_int64(crt.Xftell(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff))
+ iOfst = sqlite3_int64(libc.Xftell(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff))
iEnd = (sqlite3_int64(uint64(iOfst) + (uint64(size * nmemb))))
pFile = (*quota_FILE)(unsafe.Pointer(p)).FpFile
if (pFile != 0) && ((*quotaFile)(unsafe.Pointer(pFile)).FiSize < iEnd) {
@@ -65791,7 +70548,7 @@ func sqlite3_quota_fwrite(tls *crt.TLS, pBuf uintptr, size size_t, nmemb size_t,
szNew = (((*quotaGroup)(unsafe.Pointer(pGroup)).FiSize - (*quotaFile)(unsafe.Pointer(pFile)).FiSize) + iEnd)
if (szNew > (*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit) && ((*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit > int64(0)) {
if (*quotaGroup)(unsafe.Pointer(pGroup)).FxCallback != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_int64, uintptr))(unsafe.Pointer((pGroup + 24 /* &.xCallback */))))(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, (pGroup + 8 /* &.iLimit */), szNew,
+ (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_int64, uintptr))(unsafe.Pointer((pGroup + 24 /* &.xCallback */))))(tls, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, (pGroup + 8 /* &.iLimit */), szNew,
(*quotaGroup)(unsafe.Pointer(pGroup)).FpArg)
}
if (szNew > (*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit) && ((*quotaGroup)(unsafe.Pointer(pGroup)).FiLimit > int64(0)) {
@@ -65807,7 +70564,7 @@ func sqlite3_quota_fwrite(tls *crt.TLS, pBuf uintptr, size size_t, nmemb size_t,
} else {
pFile = uintptr(0)
}
- rc = crt.Xfwrite(tls, pBuf, size, nmemb, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+ rc = libc.Xfwrite(tls, pBuf, size, nmemb, (*quota_FILE)(unsafe.Pointer(p)).Ff)
// If the write was incomplete, adjust the file size and group size
// downward
@@ -65826,10 +70583,10 @@ func sqlite3_quota_fwrite(tls *crt.TLS, pBuf uintptr, size size_t, nmemb size_t,
}
// Close an open quota_FILE stream.
-func sqlite3_quota_fclose(tls *crt.TLS, p uintptr) int32 { /* test_quota.c:1054:5: */
+func sqlite3_quota_fclose(tls *libc.TLS, p uintptr) int32 { /* test_quota.c:1054:5: */
var rc int32
var pFile uintptr
- rc = crt.Xfclose(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+ rc = libc.Xfclose(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
pFile = (*quota_FILE)(unsafe.Pointer(p)).FpFile
if pFile != 0 {
quotaEnter(tls)
@@ -65837,7 +70594,7 @@ func sqlite3_quota_fclose(tls *crt.TLS, p uintptr) int32 { /* test_quota.c:1054:
if (*quotaFile)(unsafe.Pointer(pFile)).FnRef == 0 {
var pGroup uintptr = (*quotaFile)(unsafe.Pointer(pFile)).FpGroup
if (*quotaFile)(unsafe.Pointer(pFile)).FdeleteOnClose != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 48 /* &.xDelete */))))(tls, gQuota.FpOrigVfs, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, 0)
+ (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 48 /* &.xDelete */))))(tls, gQuota.FpOrigVfs, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, 0)
quotaRemoveFile(tls, pFile)
}
quotaGroupDeref(tls, pGroup)
@@ -65849,40 +70606,40 @@ func sqlite3_quota_fclose(tls *crt.TLS, p uintptr) int32 { /* test_quota.c:1054:
}
// Flush memory buffers for a quota_FILE to disk.
-func sqlite3_quota_fflush(tls *crt.TLS, p uintptr, doFsync int32) int32 { /* test_quota.c:1082:5: */
+func sqlite3_quota_fflush(tls *libc.TLS, p uintptr, doFsync int32) int32 { /* test_quota.c:1082:5: */
var rc int32
- rc = crt.Xfflush(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+ rc = libc.Xfflush(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
if (rc == 0) && (doFsync != 0) {
- rc = crt.Xfsync(tls, crt.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff))
+ rc = libc.Xfsync(tls, libc.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff))
}
- return (crt.Bool32(rc != 0))
+ return (libc.Bool32(rc != 0))
}
// Seek on a quota_FILE stream.
-func sqlite3_quota_fseek(tls *crt.TLS, p uintptr, offset int64, whence int32) int32 { /* test_quota.c:1099:5: */
- return crt.Xfseek(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff, offset, whence)
+func sqlite3_quota_fseek(tls *libc.TLS, p uintptr, offset int64, whence int32) int32 { /* test_quota.c:1099:5: */
+ return libc.Xfseek(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff, offset, whence)
}
// rewind a quota_FILE stream.
-func sqlite3_quota_rewind(tls *crt.TLS, p uintptr) { /* test_quota.c:1106:6: */
- crt.Xrewind(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+func sqlite3_quota_rewind(tls *libc.TLS, p uintptr) { /* test_quota.c:1106:6: */
+ libc.Xrewind(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
}
// Tell the current location of a quota_FILE stream.
-func sqlite3_quota_ftell(tls *crt.TLS, p uintptr) int64 { /* test_quota.c:1113:6: */
- return crt.Xftell(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+func sqlite3_quota_ftell(tls *libc.TLS, p uintptr) int64 { /* test_quota.c:1113:6: */
+ return libc.Xftell(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
}
// Test the error indicator for the given file.
-func sqlite3_quota_ferror(tls *crt.TLS, p uintptr) int32 { /* test_quota.c:1120:5: */
- return crt2.Xferror(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
+func sqlite3_quota_ferror(tls *libc.TLS, p uintptr) int32 { /* test_quota.c:1120:5: */
+ return libc.Xferror(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff)
}
// Truncate a file to szNew bytes.
-func sqlite3_quota_ftruncate(tls *crt.TLS, p uintptr, szNew sqlite3_int64) int32 { /* test_quota.c:1127:5: */
+func sqlite3_quota_ftruncate(tls *libc.TLS, p uintptr, szNew sqlite3_int64) int32 { /* test_quota.c:1127:5: */
var pFile uintptr = (*quota_FILE)(unsafe.Pointer(p)).FpFile
var rc int32
- if ((crt.AssignUintptr(&pFile, (*quota_FILE)(unsafe.Pointer(p)).FpFile)) != uintptr(0)) && ((*quotaFile)(unsafe.Pointer(pFile)).FiSize < szNew) {
+ if ((libc.AssignUintptr(&pFile, (*quota_FILE)(unsafe.Pointer(p)).FpFile)) != uintptr(0)) && ((*quotaFile)(unsafe.Pointer(pFile)).FiSize < szNew) {
var pGroup uintptr
if (*quotaFile)(unsafe.Pointer(pFile)).FiSize < szNew {
// This routine cannot be used to extend a file that is under
@@ -65894,7 +70651,7 @@ func sqlite3_quota_ftruncate(tls *crt.TLS, p uintptr, szNew sqlite3_int64) int32
*(*sqlite3_int64)(unsafe.Pointer(pGroup + 16 /* &.iSize */)) += (szNew - (*quotaFile)(unsafe.Pointer(pFile)).FiSize)
quotaLeave(tls)
}
- rc = crt.Xftruncate(tls, crt.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff), int64(szNew))
+ rc = libc.Xftruncate(tls, libc.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff), int64(szNew))
if (pFile != 0) && (rc == 0) {
var pGroup uintptr = (*quotaFile)(unsafe.Pointer(pFile)).FpGroup
quotaEnter(tls)
@@ -65908,70 +70665,38 @@ func sqlite3_quota_ftruncate(tls *crt.TLS, p uintptr, szNew sqlite3_int64) int32
// Determine the time that the given file was last modified, in
// seconds size 1970. Write the result into *pTime. Return 0 on
// success and non-zero on any kind of error.
-func sqlite3_quota_file_mtime(tls *crt.TLS, p uintptr, pTime uintptr) int32 { /* test_quota.c:1169:5: */
+func sqlite3_quota_file_mtime(tls *libc.TLS, p uintptr, pTime uintptr) int32 { /* test_quota.c:1169:5: */
bp := tls.Alloc(144)
defer tls.Free(144)
var rc int32
- // var buf struct {Fst_dev uint64;Fst_ino uint64;Fst_nlink uint64;Fst_mode uint32;Fst_uid uint32;Fst_gid uint32;F__pad0 int32;Fst_rdev uint64;Fst_size int64;Fst_blksize int64;Fst_blocks int64;Fst_atim timespec;Fst_mtim timespec;Fst_ctim timespec;F__glibc_reserved [3]int64;} at bp, 144
+ // var buf stat at bp, 144
- rc = crt2.Xfstat(tls, crt.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff), bp /* &buf */)
+ rc = libc.Xfstat(tls, libc.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff), bp /* &buf */)
if rc == 0 {
- *(*time_t)(unsafe.Pointer(pTime)) = (*struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
- })(unsafe.Pointer(bp /* &buf */)).Fst_mtim.Ftv_sec
+ *(*time_t)(unsafe.Pointer(pTime)) = (*stat)(unsafe.Pointer(bp /* &buf */)).Fst_mtim.Ftv_sec
}
return rc
}
// Return the true size of the file, as reported by the operating
// system.
-func sqlite3_quota_file_truesize(tls *crt.TLS, p uintptr) sqlite3_int64 { /* test_quota.c:1187:15: */
+func sqlite3_quota_file_truesize(tls *libc.TLS, p uintptr) sqlite3_int64 { /* test_quota.c:1187:15: */
bp := tls.Alloc(144)
defer tls.Free(144)
var rc int32
- // var buf struct {Fst_dev uint64;Fst_ino uint64;Fst_nlink uint64;Fst_mode uint32;Fst_uid uint32;Fst_gid uint32;F__pad0 int32;Fst_rdev uint64;Fst_size int64;Fst_blksize int64;Fst_blocks int64;Fst_atim timespec;Fst_mtim timespec;Fst_ctim timespec;F__glibc_reserved [3]int64;} at bp, 144
+ // var buf stat at bp, 144
- rc = crt2.Xfstat(tls, crt.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff), bp /* &buf */)
+ rc = libc.Xfstat(tls, libc.Xfileno(tls, (*quota_FILE)(unsafe.Pointer(p)).Ff), bp /* &buf */)
if rc == 0 {
- return int64((*struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
- })(unsafe.Pointer(bp /* &buf */)).Fst_size)
+ return int64((*stat)(unsafe.Pointer(bp /* &buf */)).Fst_size)
}
return int64(-1)
}
// Return the size of the file, as it is known to the quota subsystem.
-func sqlite3_quota_file_size(tls *crt.TLS, p uintptr) sqlite3_int64 { /* test_quota.c:1203:15: */
+func sqlite3_quota_file_size(tls *libc.TLS, p uintptr) sqlite3_int64 { /* test_quota.c:1203:15: */
if (*quota_FILE)(unsafe.Pointer(p)).FpFile != 0 {
return (*quotaFile)(unsafe.Pointer((*quota_FILE)(unsafe.Pointer(p)).FpFile)).FiSize
}
@@ -65980,24 +70705,24 @@ func sqlite3_quota_file_size(tls *crt.TLS, p uintptr) sqlite3_int64 { /* test_qu
// Determine the amount of data in bytes available for reading
// in the given file.
-func sqlite3_quota_file_available(tls *crt.TLS, p uintptr) int64 { /* test_quota.c:1211:6: */
+func sqlite3_quota_file_available(tls *libc.TLS, p uintptr) int64 { /* test_quota.c:1211:6: */
var f uintptr = (*quota_FILE)(unsafe.Pointer(p)).Ff
var pos1 int64
var pos2 int64
var rc int32
- pos1 = crt.Xftell(tls, f)
+ pos1 = libc.Xftell(tls, f)
if pos1 < int64(0) {
return int64(-1)
}
- rc = crt.Xfseek(tls, f, int64(0), 2)
+ rc = libc.Xfseek(tls, f, int64(0), 2)
if rc != 0 {
return int64(-1)
}
- pos2 = crt.Xftell(tls, f)
+ pos2 = libc.Xftell(tls, f)
if pos2 < int64(0) {
return int64(-1)
}
- rc = crt.Xfseek(tls, f, pos1, 0)
+ rc = libc.Xfseek(tls, f, pos1, 0)
if rc != 0 {
return int64(-1)
}
@@ -66005,7 +70730,7 @@ func sqlite3_quota_file_available(tls *crt.TLS, p uintptr) int64 { /* test_quota
}
// Remove a managed file. Update quotas accordingly.
-func sqlite3_quota_remove(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota.c:1229:5: */
+func sqlite3_quota_remove(tls *libc.TLS, zFilename uintptr) int32 { /* test_quota.c:1229:5: */
var zFull uintptr // Full pathname for zFilename
var nFull size_t // Number of bytes in zFilename
var rc int32 // Result code
@@ -66019,7 +70744,7 @@ func sqlite3_quota_remove(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota
if zFull == uintptr(0) {
return 7
}
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gQuota.FpOrigVfs, zFilename,
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 64 /* &.xFullPathname */))))(tls, gQuota.FpOrigVfs, zFilename,
(gQuota.FsThisVfs.FmxPathname + 1), zFull)
if rc != 0 {
sqlite3.Xsqlite3_free(tls, zFull)
@@ -66028,7 +70753,7 @@ func sqlite3_quota_remove(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota
// Figure out the length of the full pathname. If the name ends with
// / (or \ on windows) then remove the trailing /.
- nFull = crt.Xstrlen(tls, zFull)
+ nFull = libc.Xstrlen(tls, zFull)
if (nFull > uint64(0)) && ((int32(*(*int8)(unsafe.Pointer(zFull + uintptr((nFull - uint64(1)))))) == '/') || (int32(*(*int8)(unsafe.Pointer(zFull + uintptr((nFull - uint64(1)))))) == '\\')) {
nFull--
*(*int8)(unsafe.Pointer(zFull + uintptr(nFull))) = int8(0)
@@ -66039,12 +70764,12 @@ func sqlite3_quota_remove(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota
if pGroup != 0 {
for pFile = (*quotaGroup)(unsafe.Pointer(pGroup)).FpFiles; (pFile != 0) && (rc == 0); pFile = pNextFile {
pNextFile = (*quotaFile)(unsafe.Pointer(pFile)).FpNext
- diff = crt.Xstrncmp(tls, zFull, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, nFull)
- if (diff == 0) && ((((int32(crt.AssignInt8(&c, *(*int8)(unsafe.Pointer((*quotaFile)(unsafe.Pointer(pFile)).FzFilename + uintptr(nFull)))))) == 0) || (int32(c) == '/')) || (int32(c) == '\\')) {
+ diff = libc.Xstrncmp(tls, zFull, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, nFull)
+ if (diff == 0) && ((((int32(libc.AssignInt8(&c, *(*int8)(unsafe.Pointer((*quotaFile)(unsafe.Pointer(pFile)).FzFilename + uintptr(nFull)))))) == 0) || (int32(c) == '/')) || (int32(c) == '\\')) {
if (*quotaFile)(unsafe.Pointer(pFile)).FnRef != 0 {
(*quotaFile)(unsafe.Pointer(pFile)).FdeleteOnClose = 1
} else {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 48 /* &.xDelete */))))(tls, gQuota.FpOrigVfs, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, 0)
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer((gQuota.FpOrigVfs + 48 /* &.xDelete */))))(tls, gQuota.FpOrigVfs, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename, 0)
quotaRemoveFile(tls, pFile)
quotaGroupDeref(tls, pGroup)
}
@@ -66056,24 +70781,6 @@ func sqlite3_quota_remove(tls *crt.TLS, zFilename uintptr) int32 { /* test_quota
return rc
}
-type Tcl_StatBuf2 = struct {
- Fst_dev uint64
- Fst_ino uint64
- Fst_nlink uint64
- Fst_mode uint32
- Fst_uid uint32
- Fst_gid uint32
- F__pad0 int32
- Fst_rdev uint64
- Fst_size int64
- Fst_blksize int64
- Fst_blocks int64
- Fst_atim timespec
- Fst_mtim timespec
- Fst_ctim timespec
- F__glibc_reserved [3]int64
-} /* tcl.h:470:25 */
-
// end block for C++
// Local Variables:
@@ -66100,7 +70807,7 @@ type TclQuotaCallback1 = struct {
type TclQuotaCallback = TclQuotaCallback1 /* test_quota.c:1293:33 */
// This is the callback from a quota-over-limit.
-func tclQuotaCallback(tls *crt.TLS, zFilename uintptr, piLimit uintptr, iSize sqlite3_int64, pArg uintptr) { /* test_quota.c:1305:13: */
+func tclQuotaCallback(tls *libc.TLS, zFilename uintptr, piLimit uintptr, iSize sqlite3_int64, pArg uintptr) { /* test_quota.c:1305:13: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -66116,7 +70823,7 @@ func tclQuotaCallback(tls *crt.TLS, zFilename uintptr, piLimit uintptr, iSize sq
return
}
- pVarname = tcl.XTcl_NewStringObj(tls, ts+32714 /* "::piLimit_" */, -1)
+ pVarname = tcl.XTcl_NewStringObj(tls, ts+34775 /* "::piLimit_" */, -1)
(*Tcl_Obj)(unsafe.Pointer(pVarname)).FrefCount++
sqlite3.Xsqlite3_randomness(tls, int32(unsafe.Sizeof(uint32(0))), bp /* &rnd */)
tcl.XTcl_AppendObjToObj(tls, pVarname, tcl.XTcl_NewIntObj(tls, (int32(*(*uint32)(unsafe.Pointer(bp /* rnd */))&uint32(0x7FFFFFFF)))))
@@ -66140,13 +70847,13 @@ func tclQuotaCallback(tls *crt.TLS, zFilename uintptr, piLimit uintptr, iSize sq
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pEval
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pVarname
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -66156,12 +70863,12 @@ func tclQuotaCallback(tls *crt.TLS, zFilename uintptr, piLimit uintptr, iSize sq
}
// Destructor for a TCL quota-over-limit callback.
-func tclCallbackDestructor(tls *crt.TLS, pObj uintptr) { /* test_quota.c:1349:13: */
+func tclCallbackDestructor(tls *libc.TLS, pObj uintptr) { /* test_quota.c:1349:13: */
var p uintptr = pObj
if p != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*TclQuotaCallback)(unsafe.Pointer(p)).FpScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -66170,7 +70877,7 @@ func tclCallbackDestructor(tls *crt.TLS, pObj uintptr) { /* test_quota.c:1349:13
}
// tclcmd: sqlite3_quota_initialize NAME MAKEDEFAULT
-func test_quota_initialize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1360:26: */
+func test_quota_initialize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1360:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -66181,7 +70888,7 @@ func test_quota_initialize(tls *crt.TLS, clientData uintptr, interp uintptr, obj
// Process arguments
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31573 /* "NAME MAKEDEFAULT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+33657 /* "NAME MAKEDEFAULT" */)
return 1
}
zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -66200,7 +70907,7 @@ func test_quota_initialize(tls *crt.TLS, clientData uintptr, interp uintptr, obj
}
// tclcmd: sqlite3_quota_shutdown
-func test_quota_shutdown(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1389:26: */
+func test_quota_shutdown(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1389:26: */
var rc int32 // Value returned by quota_shutdown()
if objc != 1 {
@@ -66216,7 +70923,7 @@ func test_quota_shutdown(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
// tclcmd: sqlite3_quota_set PATTERN LIMIT SCRIPT
-func test_quota_set(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1412:26: */
+func test_quota_set(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1412:26: */
bp := tls.Alloc(12)
defer tls.Free(12)
@@ -66233,7 +70940,7 @@ func test_quota_set(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// Process arguments
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32725 /* "PATTERN LIMIT SC..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34786 /* "PATTERN LIMIT SC..." */)
return 1
}
zPattern = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -66247,16 +70954,16 @@ func test_quota_set(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
// Allocate a TclQuotaCallback object
p = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(TclQuotaCallback{})))
if !(p != 0) {
- tcl.XTcl_SetResult(tls, interp, ts+29563 /* "SQLITE_NOMEM" */, uintptr(0))
+ tcl.XTcl_SetResult(tls, interp, ts+31655 /* "SQLITE_NOMEM" */, uintptr(0))
return 0
}
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(TclQuotaCallback{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(TclQuotaCallback{})))
(*TclQuotaCallback)(unsafe.Pointer(p)).Finterp = interp
(*Tcl_Obj)(unsafe.Pointer(pScript)).FrefCount++
(*TclQuotaCallback)(unsafe.Pointer(p)).FpScript = pScript
- xDestroy = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{tclCallbackDestructor}))
+ xDestroy = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{tclCallbackDestructor}))
xCallback = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, sqlite3_int64, uintptr)
+ f func(*libc.TLS, uintptr, uintptr, sqlite3_int64, uintptr)
}{tclQuotaCallback}))
} else {
p = uintptr(0)
@@ -66272,13 +70979,13 @@ func test_quota_set(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32
}
// tclcmd: sqlite3_quota_file FILENAME
-func test_quota_file(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1466:26: */
+func test_quota_file(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1466:26: */
var zFilename uintptr // File pattern to configure
var rc int32 // Value returned by quota_file()
// Process arguments
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29747 /* "FILENAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31839 /* "FILENAME" */)
return 1
}
zFilename = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -66291,7 +70998,7 @@ func test_quota_file(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
// tclcmd: sqlite3_quota_dump
-func test_quota_dump(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1492:26: */
+func test_quota_dump(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1492:26: */
bp := tls.Alloc(1008)
defer tls.Free(1008)
@@ -66316,7 +71023,7 @@ func test_quota_dump(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
// var zTemp [1000]int8 at bp+8, 1000
pFileTerm = tcl.XTcl_NewObj(tls)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([1000]int8{})), bp+8 /* &zTemp[0] */, ts /* "%s" */, crt.VaList(bp, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([1000]int8{})), bp+8 /* &zTemp[0] */, ts /* "%s" */, libc.VaList(bp, (*quotaFile)(unsafe.Pointer(pFile)).FzFilename))
for i = 0; *(*int8)(unsafe.Pointer(bp + 8 /* &zTemp[0] */ + uintptr(i))) != 0; i++ {
if int32(*(*int8)(unsafe.Pointer(bp + 8 /* &zTemp[0] */ + uintptr(i)))) == '\\' {
*(*int8)(unsafe.Pointer(bp + 8 /* &zTemp[0] */ + uintptr(i))) = int8('/')
@@ -66340,7 +71047,7 @@ func test_quota_dump(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
}
// tclcmd: sqlite3_quota_fopen FILENAME MODE
-func test_quota_fopen(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1540:26: */
+func test_quota_fopen(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1540:26: */
bp := tls.Alloc(58)
defer tls.Free(58)
@@ -66352,19 +71059,19 @@ func test_quota_fopen(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
// Process arguments
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32746 /* "FILENAME MODE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34807 /* "FILENAME MODE" */)
return 1
}
zFilename = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
zMode = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
p = sqlite3_quota_fopen(tls, zFilename, zMode)
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+8 /* &zReturn[0] */, ts+11197 /* "%p" */, crt.VaList(bp, p))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+8 /* &zReturn[0] */, ts+12843 /* "%p" */, libc.VaList(bp, p))
tcl.XTcl_SetResult(tls, interp, bp+8 /* &zReturn[0] */, uintptr(1))
return 0
}
// tclcmd: sqlite3_quota_fread HANDLE SIZE NELEM
-func test_quota_fread(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1570:26: */
+func test_quota_fread(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1570:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -66377,7 +71084,7 @@ func test_quota_fread(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var got size_t
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32760 /* "HANDLE SIZE NELE..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34821 /* "HANDLE SIZE NELE..." */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66400,7 +71107,7 @@ func test_quota_fread(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
}
// tclcmd: sqlite3_quota_fwrite HANDLE SIZE NELEM CONTENT
-func test_quota_fwrite(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1604:26: */
+func test_quota_fwrite(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1604:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -66413,7 +71120,7 @@ func test_quota_fwrite(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
var got size_t
if objc != 5 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32778 /* "HANDLE SIZE NELE..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34839 /* "HANDLE SIZE NELE..." */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66430,12 +71137,12 @@ func test_quota_fwrite(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
// tclcmd: sqlite3_quota_fclose HANDLE
-func test_quota_fclose(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1632:26: */
+func test_quota_fclose(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1632:26: */
var p uintptr
var rc int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66445,7 +71152,7 @@ func test_quota_fclose(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
// tclcmd: sqlite3_quota_fflush HANDLE ?HARDSYNC?
-func test_quota_fflush(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1654:26: */
+func test_quota_fflush(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1654:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -66454,7 +71161,7 @@ func test_quota_fflush(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
*(*int32)(unsafe.Pointer(bp /* doSync */)) = 0
if (objc != 2) && (objc != 3) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32804 /* "HANDLE ?HARDSYNC..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34865 /* "HANDLE ?HARDSYNC..." */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66469,7 +71176,7 @@ func test_quota_fflush(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
// tclcmd: sqlite3_quota_fseek HANDLE OFFSET WHENCE
-func test_quota_fseek(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1680:26: */
+func test_quota_fseek(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1680:26: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -66481,7 +71188,7 @@ func test_quota_fseek(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
var rc int32
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32822 /* "HANDLE OFFSET WH..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34883 /* "HANDLE OFFSET WH..." */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66489,15 +71196,15 @@ func test_quota_fseek(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
return 1
}
zWhence = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
- if crt.Xstrcmp(tls, zWhence, ts+32843 /* "SEEK_SET" */) == 0 {
+ if libc.Xstrcmp(tls, zWhence, ts+34904 /* "SEEK_SET" */) == 0 {
whence = 0
- } else if crt.Xstrcmp(tls, zWhence, ts+32852 /* "SEEK_CUR" */) == 0 {
+ } else if libc.Xstrcmp(tls, zWhence, ts+34913 /* "SEEK_CUR" */) == 0 {
whence = 1
- } else if crt.Xstrcmp(tls, zWhence, ts+32861 /* "SEEK_END" */) == 0 {
+ } else if libc.Xstrcmp(tls, zWhence, ts+34922 /* "SEEK_END" */) == 0 {
whence = 2
} else {
tcl.XTcl_AppendResult(tls, interp,
- crt.VaList(bp, ts+32870 /* "WHENCE should be..." */, uintptr(0)))
+ libc.VaList(bp, ts+34931 /* "WHENCE should be..." */, uintptr(0)))
return 1
}
rc = sqlite3_quota_fseek(tls, p, int64(*(*int32)(unsafe.Pointer(bp + 16 /* ofst */))), whence)
@@ -66506,10 +71213,10 @@ func test_quota_fseek(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
}
// tclcmd: sqlite3_quota_rewind HANDLE
-func test_quota_rewind(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1718:26: */
+func test_quota_rewind(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1718:26: */
var p uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66518,11 +71225,11 @@ func test_quota_rewind(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
}
// tclcmd: sqlite3_quota_ftell HANDLE
-func test_quota_ftell(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1737:26: */
+func test_quota_ftell(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1737:26: */
var p uintptr
var x sqlite3_int64
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66532,7 +71239,7 @@ func test_quota_ftell(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
}
// tclcmd: sqlite3_quota_ftruncate HANDLE SIZE
-func test_quota_ftruncate(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1758:26: */
+func test_quota_ftruncate(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1758:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -66542,7 +71249,7 @@ func test_quota_ftruncate(tls *crt.TLS, clientData uintptr, interp uintptr, objc
var rc int32
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32919 /* "HANDLE SIZE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34980 /* "HANDLE SIZE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66556,11 +71263,11 @@ func test_quota_ftruncate(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
// tclcmd: sqlite3_quota_file_size HANDLE
-func test_quota_file_size(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1783:26: */
+func test_quota_file_size(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1783:26: */
var p uintptr
var x sqlite3_int64
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66570,11 +71277,11 @@ func test_quota_file_size(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
// tclcmd: sqlite3_quota_file_truesize HANDLE
-func test_quota_file_truesize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1804:26: */
+func test_quota_file_truesize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1804:26: */
var p uintptr
var x sqlite3_int64
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66584,7 +71291,7 @@ func test_quota_file_truesize(tls *crt.TLS, clientData uintptr, interp uintptr,
}
// tclcmd: sqlite3_quota_file_mtime HANDLE
-func test_quota_file_mtime(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1825:26: */
+func test_quota_file_mtime(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1825:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -66592,7 +71299,7 @@ func test_quota_file_mtime(tls *crt.TLS, clientData uintptr, interp uintptr, obj
// var t time_t at bp, 8
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66603,11 +71310,11 @@ func test_quota_file_mtime(tls *crt.TLS, clientData uintptr, interp uintptr, obj
}
// tclcmd: sqlite3_quota_remove FILENAME
-func test_quota_remove(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1848:26: */
+func test_quota_remove(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1848:26: */
var zFilename uintptr // File pattern to configure
var rc int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29747 /* "FILENAME" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31839 /* "FILENAME" */)
return 1
}
zFilename = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -66620,12 +71327,12 @@ func test_quota_remove(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
//
// Test the glob pattern matching. Return 1 if TEXT matches PATTERN
// and return 0 if it does not.
-func test_quota_glob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1872:26: */
+func test_quota_glob(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1872:26: */
var zPattern uintptr // The glob pattern
var zText uintptr // Text to compare agains the pattern
var rc int32
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+32931 /* "PATTERN TEXT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34992 /* "PATTERN TEXT" */)
return 1
}
zPattern = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
@@ -66639,11 +71346,11 @@ func test_quota_glob(tls *crt.TLS, clientData uintptr, interp uintptr, objc int3
//
// Return the number of bytes from the current file point to the end of
// the file.
-func test_quota_file_available(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1898:26: */
+func test_quota_file_available(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1898:26: */
var p uintptr
var x sqlite3_int64
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66655,11 +71362,11 @@ func test_quota_file_available(tls *crt.TLS, clientData uintptr, interp uintptr,
// tclcmd: sqlite3_quota_ferror HANDLE
//
// Return true if the file handle is in the error state.
-func test_quota_ferror(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1921:26: */
+func test_quota_ferror(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_quota.c:1921:26: */
var p uintptr
var x int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+25430 /* "HANDLE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+27522 /* "HANDLE" */)
return 1
}
p = sqlite3TestTextToPtr(tls, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))))
@@ -66671,68 +71378,688 @@ func test_quota_ferror(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
// This routine registers the custom TCL commands defined in this
// module. This should be the only procedure visible from outside
// of this module.
-func Sqlitequota_Init(tls *crt.TLS, interp uintptr) int32 { /* test_quota.c:1944:5: */
+func Sqlitequota_Init(tls *libc.TLS, interp uintptr) int32 { /* test_quota.c:1944:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd8)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aCmd9)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aCmd8[i].FzName, aCmd8[i].FxProc, uintptr(0), uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aCmd9[i].FzName, aCmd9[i].FxProc, uintptr(0), uintptr(0))
}
return 0
}
-var aCmd8 = [21]struct {
+var aCmd9 = [21]struct {
FzName uintptr
FxProc uintptr
}{
- {FzName: ts + 32944 /* "sqlite3_quota_in..." */, FxProc: 0},
- {FzName: ts + 32969 /* "sqlite3_quota_sh..." */, FxProc: 0},
- {FzName: ts + 32992 /* "sqlite3_quota_se..." */, FxProc: 0},
- {FzName: ts + 33010 /* "sqlite3_quota_fi..." */, FxProc: 0},
- {FzName: ts + 33029 /* "sqlite3_quota_du..." */, FxProc: 0},
- {FzName: ts + 33048 /* "sqlite3_quota_fo..." */, FxProc: 0},
- {FzName: ts + 33068 /* "sqlite3_quota_fr..." */, FxProc: 0},
- {FzName: ts + 33088 /* "sqlite3_quota_fw..." */, FxProc: 0},
- {FzName: ts + 33109 /* "sqlite3_quota_fc..." */, FxProc: 0},
- {FzName: ts + 33130 /* "sqlite3_quota_ff..." */, FxProc: 0},
- {FzName: ts + 33151 /* "sqlite3_quota_fs..." */, FxProc: 0},
- {FzName: ts + 33171 /* "sqlite3_quota_re..." */, FxProc: 0},
- {FzName: ts + 33192 /* "sqlite3_quota_ft..." */, FxProc: 0},
- {FzName: ts + 33212 /* "sqlite3_quota_ft..." */, FxProc: 0},
- {FzName: ts + 33236 /* "sqlite3_quota_fi..." */, FxProc: 0},
- {FzName: ts + 33260 /* "sqlite3_quota_fi..." */, FxProc: 0},
- {FzName: ts + 33288 /* "sqlite3_quota_fi..." */, FxProc: 0},
- {FzName: ts + 33313 /* "sqlite3_quota_re..." */, FxProc: 0},
- {FzName: ts + 33334 /* "sqlite3_quota_gl..." */, FxProc: 0},
- {FzName: ts + 33353 /* "sqlite3_quota_fi..." */, FxProc: 0},
- {FzName: ts + 33382 /* "sqlite3_quota_fe..." */, FxProc: 0},
+ {FzName: ts + 35005 /* "sqlite3_quota_in..." */, FxProc: 0},
+ {FzName: ts + 35030 /* "sqlite3_quota_sh..." */, FxProc: 0},
+ {FzName: ts + 35053 /* "sqlite3_quota_se..." */, FxProc: 0},
+ {FzName: ts + 35071 /* "sqlite3_quota_fi..." */, FxProc: 0},
+ {FzName: ts + 35090 /* "sqlite3_quota_du..." */, FxProc: 0},
+ {FzName: ts + 35109 /* "sqlite3_quota_fo..." */, FxProc: 0},
+ {FzName: ts + 35129 /* "sqlite3_quota_fr..." */, FxProc: 0},
+ {FzName: ts + 35149 /* "sqlite3_quota_fw..." */, FxProc: 0},
+ {FzName: ts + 35170 /* "sqlite3_quota_fc..." */, FxProc: 0},
+ {FzName: ts + 35191 /* "sqlite3_quota_ff..." */, FxProc: 0},
+ {FzName: ts + 35212 /* "sqlite3_quota_fs..." */, FxProc: 0},
+ {FzName: ts + 35232 /* "sqlite3_quota_re..." */, FxProc: 0},
+ {FzName: ts + 35253 /* "sqlite3_quota_ft..." */, FxProc: 0},
+ {FzName: ts + 35273 /* "sqlite3_quota_ft..." */, FxProc: 0},
+ {FzName: ts + 35297 /* "sqlite3_quota_fi..." */, FxProc: 0},
+ {FzName: ts + 35321 /* "sqlite3_quota_fi..." */, FxProc: 0},
+ {FzName: ts + 35349 /* "sqlite3_quota_fi..." */, FxProc: 0},
+ {FzName: ts + 35374 /* "sqlite3_quota_re..." */, FxProc: 0},
+ {FzName: ts + 35395 /* "sqlite3_quota_gl..." */, FxProc: 0},
+ {FzName: ts + 35414 /* "sqlite3_quota_fi..." */, FxProc: 0},
+ {FzName: ts + 35443 /* "sqlite3_quota_fe..." */, FxProc: 0},
} /* test_quota.c:1948:5 */
-func register_cube_geom(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_rtree.c:443:26: */
- _ = clientData
- _ = interp
- _ = objc
- _ = objv
+// Type used to cache parameter information for the "circle" r-tree geometry
+// callback.
+type Circle1 = struct {
+ FaBox [2]struct {
+ Fxmin float64
+ Fxmax float64
+ Fymin float64
+ Fymax float64
+ }
+ Fcenterx float64
+ Fcentery float64
+ Fradius float64
+ FmxArea float64
+ FeScoreType int32
+ _ [4]byte
+}
+
+// Type used to cache parameter information for the "circle" r-tree geometry
+// callback.
+type Circle = Circle1 /* test_rtree.c:31:23 */
+type Box = struct {
+ Fxmin float64
+ Fxmax float64
+ Fymin float64
+ Fymax float64
+}
+
+// Destructor function for Circle objects allocated by circle_geom().
+func circle_del(tls *libc.TLS, p uintptr) { /* test_rtree.c:49:13: */
+ sqlite3.Xsqlite3_free(tls, p)
+}
+
+// Implementation of "circle" r-tree geometry callback.
+func circle_geom(tls *libc.TLS, p uintptr, nCoord int32, aCoord uintptr, pRes uintptr) int32 { /* test_rtree.c:56:12: */
+ var i int32 // Iterator variable
+ var pCircle uintptr // Structure defining circular region
+ var xmin float64
+ var xmax float64 // X dimensions of box being tested
+ var ymin float64
+ var ymax float64 // X dimensions of box being tested
+
+ xmin = *(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(0)*8))
+ xmax = *(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(1)*8))
+ ymin = *(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(2)*8))
+ ymax = *(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(3)*8))
+ pCircle = (*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FpUser
+ if pCircle == uintptr(0) {
+ // If pUser is still 0, then the parameter values have not been tested
+ // for correctness or stored into a Circle structure yet. Do this now.
+
+ // This geometry callback is for use with a 2-dimensional r-tree table.
+ // Return an error if the table does not have exactly 2 dimensions.
+ if nCoord != 4 {
+ return 1
+ }
+
+ // Test that the correct number of parameters (3) have been supplied,
+ // and that the parameters are in range (that the radius of the circle
+ // radius is greater than zero).
+ if ((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FnParam != 3) || (*(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(2)*8)) < 0.0) {
+ return 1
+ }
+
+ // Allocate a structure to cache parameter data in. Return SQLITE_NOMEM
+ // if the allocation fails.
+ pCircle = libc.AssignPtrUintptr(p+24 /* &.pUser */, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Circle{}))))
+ if !(pCircle != 0) {
+ return 7
+ }
+ (*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FxDelUser = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{circle_del}))
+
+ // Record the center and radius of the circular region. One way that
+ // tested bounding boxes that intersect the circular region are detected
+ // is by testing if each corner of the bounding box lies within radius
+ // units of the center of the circle.
+ (*Circle)(unsafe.Pointer(pCircle)).Fcenterx = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(0)*8))
+ (*Circle)(unsafe.Pointer(pCircle)).Fcentery = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(1)*8))
+ (*Circle)(unsafe.Pointer(pCircle)).Fradius = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(2)*8))
+
+ // Define two bounding box regions. The first, aBox[0], extends to
+ // infinity in the X dimension. It covers the same range of the Y dimension
+ // as the circular region. The second, aBox[1], extends to infinity in
+ // the Y dimension and is constrained to the range of the circle in the
+ // X dimension.
+ //
+ // Then imagine each box is split in half along its short axis by a line
+ // that intersects the center of the circular region. A bounding box
+ // being tested can be said to intersect the circular region if it contains
+ // points from each half of either of the two infinite bounding boxes.
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fxmin = (*Circle)(unsafe.Pointer(pCircle)).Fcenterx
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fxmax = (*Circle)(unsafe.Pointer(pCircle)).Fcenterx
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fymin = ((*Circle)(unsafe.Pointer(pCircle)).Fcentery + (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fymax = ((*Circle)(unsafe.Pointer(pCircle)).Fcentery - (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fxmin = ((*Circle)(unsafe.Pointer(pCircle)).Fcenterx + (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fxmax = ((*Circle)(unsafe.Pointer(pCircle)).Fcenterx - (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fymin = (*Circle)(unsafe.Pointer(pCircle)).Fcentery
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fymax = (*Circle)(unsafe.Pointer(pCircle)).Fcentery
+ (*Circle)(unsafe.Pointer(pCircle)).FmxArea = (((xmax - xmin) * (ymax - ymin)) + 1.0)
+ }
+
+ // Check if any of the 4 corners of the bounding-box being tested lie
+ // inside the circular region. If they do, then the bounding-box does
+ // intersect the region of interest. Set the output variable to true and
+ // return SQLITE_OK in this case.
+ for i = 0; i < 4; i++ {
+ var x float64
+ if (i & 0x01) != 0 {
+ x = xmax
+ } else {
+ x = xmin
+ }
+ var y float64
+ if (i & 0x02) != 0 {
+ y = ymax
+ } else {
+ y = ymin
+ }
+ var d2 float64
+
+ d2 = ((x - (*Circle)(unsafe.Pointer(pCircle)).Fcenterx) * (x - (*Circle)(unsafe.Pointer(pCircle)).Fcenterx))
+ d2 = d2 + ((y - (*Circle)(unsafe.Pointer(pCircle)).Fcentery) * (y - (*Circle)(unsafe.Pointer(pCircle)).Fcentery))
+ if d2 < ((*Circle)(unsafe.Pointer(pCircle)).Fradius * (*Circle)(unsafe.Pointer(pCircle)).Fradius) {
+ *(*int32)(unsafe.Pointer(pRes)) = 1
+ return 0
+ }
+ }
+
+ // Check if the bounding box covers any other part of the circular region.
+ // See comments above for a description of how this test works. If it does
+ // cover part of the circular region, set the output variable to true
+ // and return SQLITE_OK.
+ for i = 0; i < 2; i++ {
+ if (((xmin <= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fxmin) &&
+ (xmax >= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fxmax)) &&
+ (ymin <= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fymin)) &&
+ (ymax >= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fymax) {
+ *(*int32)(unsafe.Pointer(pRes)) = 1
+ return 0
+ }
+ }
+
+ // The specified bounding box does not intersect the circular region. Set
+ // the output variable to zero and return SQLITE_OK.
+ *(*int32)(unsafe.Pointer(pRes)) = 0
return 0
}
-func register_circle_geom(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_rtree.c:471:26: */
- _ = clientData
- _ = interp
- _ = objc
- _ = objv
+// Implementation of "circle" r-tree geometry callback using the
+// 2nd-generation interface that allows scoring.
+//
+// Two calling forms:
+//
+// Qcircle(X,Y,Radius,eType) -- All values are doubles
+// Qcircle('x:X y:Y r:R e:ETYPE') -- Single string parameter
+func circle_query_func(tls *libc.TLS, p uintptr) int32 { /* test_rtree.c:168:12: */
+ var i int32 // Iterator variable
+ var pCircle uintptr // Structure defining circular region
+ var xmin float64
+ var xmax float64 // X dimensions of box being tested
+ var ymin float64
+ var ymax float64 // X dimensions of box being tested
+ var nWithin int32 = 0 // Number of corners inside the circle
+
+ xmin = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(0)*8))
+ xmax = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(1)*8))
+ ymin = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(2)*8))
+ ymax = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(3)*8))
+ pCircle = (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FpUser
+ if pCircle == uintptr(0) {
+ // If pUser is still 0, then the parameter values have not been tested
+ // for correctness or stored into a Circle structure yet. Do this now.
+
+ // This geometry callback is for use with a 2-dimensional r-tree table.
+ // Return an error if the table does not have exactly 2 dimensions.
+ if (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FnCoord != 4 {
+ return 1
+ }
+
+ // Test that the correct number of parameters (1 or 4) have been supplied.
+ if ((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FnParam != 4) && ((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FnParam != 1) {
+ return 1
+ }
+
+ // Allocate a structure to cache parameter data in. Return SQLITE_NOMEM
+ // if the allocation fails.
+ pCircle = libc.AssignPtrUintptr(p+24 /* &.pUser */, sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Circle{}))))
+ if !(pCircle != 0) {
+ return 7
+ }
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FxDelUser = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{circle_del}))
+
+ // Record the center and radius of the circular region. One way that
+ // tested bounding boxes that intersect the circular region are detected
+ // is by testing if each corner of the bounding box lies within radius
+ // units of the center of the circle.
+ if (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FnParam == 4 {
+ (*Circle)(unsafe.Pointer(pCircle)).Fcenterx = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(0)*8))
+ (*Circle)(unsafe.Pointer(pCircle)).Fcentery = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(1)*8))
+ (*Circle)(unsafe.Pointer(pCircle)).Fradius = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(2)*8))
+ (*Circle)(unsafe.Pointer(pCircle)).FeScoreType = int32(*(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(3)*8)))
+ } else {
+ var z uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FapSqlParam + uintptr(0)*8)))
+ (*Circle)(unsafe.Pointer(pCircle)).Fcenterx = 0.0
+ (*Circle)(unsafe.Pointer(pCircle)).Fcentery = 0.0
+ (*Circle)(unsafe.Pointer(pCircle)).Fradius = 0.0
+ (*Circle)(unsafe.Pointer(pCircle)).FeScoreType = 0
+ for (z != 0) && (*(*int8)(unsafe.Pointer(z + uintptr(0))) != 0) {
+ if (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == 'r') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == ':') {
+ (*Circle)(unsafe.Pointer(pCircle)).Fradius = libc.Xatof(tls, (z + uintptr(2)))
+ } else if (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == 'x') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == ':') {
+ (*Circle)(unsafe.Pointer(pCircle)).Fcenterx = libc.Xatof(tls, (z + uintptr(2)))
+ } else if (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == 'y') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == ':') {
+ (*Circle)(unsafe.Pointer(pCircle)).Fcentery = libc.Xatof(tls, (z + uintptr(2)))
+ } else if (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == 'e') && (int32(*(*int8)(unsafe.Pointer(z + uintptr(1)))) == ':') {
+ (*Circle)(unsafe.Pointer(pCircle)).FeScoreType = int32(libc.Xatof(tls, (z + uintptr(2))))
+ } else if int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == ' ' {
+ z++
+ continue
+ }
+ for (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) != 0) && (int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) != ' ') {
+ z++
+ }
+ for int32(*(*int8)(unsafe.Pointer(z + uintptr(0)))) == ' ' {
+ z++
+ }
+ }
+ }
+ if (*Circle)(unsafe.Pointer(pCircle)).Fradius < 0.0 {
+ sqlite3.Xsqlite3_free(tls, pCircle)
+ return 7
+ }
+
+ // Define two bounding box regions. The first, aBox[0], extends to
+ // infinity in the X dimension. It covers the same range of the Y dimension
+ // as the circular region. The second, aBox[1], extends to infinity in
+ // the Y dimension and is constrained to the range of the circle in the
+ // X dimension.
+ //
+ // Then imagine each box is split in half along its short axis by a line
+ // that intersects the center of the circular region. A bounding box
+ // being tested can be said to intersect the circular region if it contains
+ // points from each half of either of the two infinite bounding boxes.
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fxmin = (*Circle)(unsafe.Pointer(pCircle)).Fcenterx
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fxmax = (*Circle)(unsafe.Pointer(pCircle)).Fcenterx
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fymin = ((*Circle)(unsafe.Pointer(pCircle)).Fcentery + (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(0)*32)).Fymax = ((*Circle)(unsafe.Pointer(pCircle)).Fcentery - (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fxmin = ((*Circle)(unsafe.Pointer(pCircle)).Fcenterx + (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fxmax = ((*Circle)(unsafe.Pointer(pCircle)).Fcenterx - (*Circle)(unsafe.Pointer(pCircle)).Fradius)
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fymin = (*Circle)(unsafe.Pointer(pCircle)).Fcentery
+ (*Box)(unsafe.Pointer((pCircle /* &.aBox */) + uintptr(1)*32)).Fymax = (*Circle)(unsafe.Pointer(pCircle)).Fcentery
+ (*Circle)(unsafe.Pointer(pCircle)).FmxArea = (float64(200.0) * 200.0)
+ }
+
+ // Check if any of the 4 corners of the bounding-box being tested lie
+ // inside the circular region. If they do, then the bounding-box does
+ // intersect the region of interest. Set the output variable to true and
+ // return SQLITE_OK in this case.
+ for i = 0; i < 4; i++ {
+ var x float64
+ if (i & 0x01) != 0 {
+ x = xmax
+ } else {
+ x = xmin
+ }
+ var y float64
+ if (i & 0x02) != 0 {
+ y = ymax
+ } else {
+ y = ymin
+ }
+ var d2 float64
+
+ d2 = ((x - (*Circle)(unsafe.Pointer(pCircle)).Fcenterx) * (x - (*Circle)(unsafe.Pointer(pCircle)).Fcenterx))
+ d2 = d2 + ((y - (*Circle)(unsafe.Pointer(pCircle)).Fcentery) * (y - (*Circle)(unsafe.Pointer(pCircle)).Fcentery))
+ if d2 < ((*Circle)(unsafe.Pointer(pCircle)).Fradius * (*Circle)(unsafe.Pointer(pCircle)).Fradius) {
+ nWithin++
+ }
+ }
+
+ // Check if the bounding box covers any other part of the circular region.
+ // See comments above for a description of how this test works. If it does
+ // cover part of the circular region, set the output variable to true
+ // and return SQLITE_OK.
+ if nWithin == 0 {
+ for i = 0; i < 2; i++ {
+ if (((xmin <= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fxmin) &&
+ (xmax >= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fxmax)) &&
+ (ymin <= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fymin)) &&
+ (ymax >= (*Box)(unsafe.Pointer((pCircle /* &.aBox */)+uintptr(i)*32)).Fymax) {
+ nWithin = 1
+ break
+ }
+ }
+ }
+
+ if (*Circle)(unsafe.Pointer(pCircle)).FeScoreType == 1 {
+ // Depth first search
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = sqlite3_rtree_dbl((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiLevel)
+ } else if (*Circle)(unsafe.Pointer(pCircle)).FeScoreType == 2 {
+ // Breadth first search
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = (sqlite3_rtree_dbl(100 - (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiLevel))
+ } else if (*Circle)(unsafe.Pointer(pCircle)).FeScoreType == 3 {
+ // Depth-first search, except sort the leaf nodes by area with
+ // the largest area first
+ if (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiLevel == 1 {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = (1.0 - (((xmax - xmin) * (ymax - ymin)) / (*Circle)(unsafe.Pointer(pCircle)).FmxArea))
+ if (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore < 0.01 {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = 0.01
+ }
+ } else {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = 0.0
+ }
+ } else if (*Circle)(unsafe.Pointer(pCircle)).FeScoreType == 4 {
+ // Depth-first search, except exclude odd rowids
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = sqlite3_rtree_dbl((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiLevel)
+ if ((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiRowid & int64(1)) != 0 {
+ nWithin = 0
+ }
+ } else {
+ // Breadth-first search, except exclude odd rowids
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = (sqlite3_rtree_dbl(100 - (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiLevel))
+ if ((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiRowid & int64(1)) != 0 {
+ nWithin = 0
+ }
+ }
+ if nWithin == 0 {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 0
+ } else if nWithin >= 4 {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 2
+ } else {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 1
+ }
+ return 0
+}
+
+// Implementation of "breadthfirstsearch" r-tree geometry callback using the
+// 2nd-generation interface that allows scoring.
+//
+// ... WHERE id MATCH breadthfirstsearch($x0,$x1,$y0,$y1) ...
+//
+// It returns all entries whose bounding boxes overlap with $x0,$x1,$y0,$y1.
+func bfs_query_func(tls *libc.TLS, p uintptr) int32 { /* test_rtree.c:329:12: */
+ var x0 float64
+ var x1 float64
+ var y0 float64
+ var y1 float64 // Dimensions of box being tested
+ var bx0 float64
+ var bx1 float64
+ var by0 float64
+ var by1 float64 // Boundary of the query function
+
+ if (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FnParam != 4 {
+ return 1
+ }
+ x0 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(0)*8))
+ x1 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(1)*8))
+ y0 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(2)*8))
+ y1 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaCoord + uintptr(3)*8))
+ bx0 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(0)*8))
+ bx1 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(1)*8))
+ by0 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(2)*8))
+ by1 = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FaParam + uintptr(3)*8))
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FrScore = (sqlite3_rtree_dbl(100 - (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FiLevel))
+ if (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeParentWithin == 2 {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 2
+ } else if (((x0 >= bx0) && (x1 <= bx1)) && (y0 >= by0)) && (y1 <= by1) {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 2
+ } else if (((x1 >= bx0) && (x0 <= bx1)) && (y1 >= by0)) && (y0 <= by1) {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 1
+ } else {
+ (*sqlite3_rtree_query_info)(unsafe.Pointer(p)).FeWithin = 0
+ }
+ return 0
+}
+
+// END of implementation of "circle" geometry callback.
+//
+//
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.2 Diagnostics <assert.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// void assert (int expression);
+//
+// If NDEBUG is defined, do nothing.
+// If not, and EXPRESSION is zero, print an error message and abort.
+
+// void assert_perror (int errnum);
+//
+// If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an
+// error message with the error text for ERRNUM and abort.
+// (This is a GNU extension.)
+
+// tcl.h --
+//
+// This header file describes the externally-visible facilities of the
+// Tcl interpreter.
+//
+// Copyright (c) 1987-1994 The Regents of the University of California.
+// Copyright (c) 1993-1996 Lucent Technologies.
+// Copyright (c) 1994-1998 Sun Microsystems, Inc.
+// Copyright (c) 1998-2000 by Scriptics Corporation.
+// Copyright (c) 2002 by Kevin B. Kenny. All rights reserved.
+//
+// See the file "license.terms" for information on usage and redistribution of
+// this file, and for a DISCLAIMER OF ALL WARRANTIES.
+
+// Local Variables:
+// mode: c
+// c-basic-offset: 4
+// fill-column: 78
+// End:
+
+type Cube1 = struct {
+ Fx float64
+ Fy float64
+ Fz float64
+ Fwidth float64
+ Fheight float64
+ Fdepth float64
+}
+
+// END of implementation of "circle" geometry callback.
+//
+//
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// ISO C99 Standard: 7.2 Diagnostics <assert.h>
+
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
+// This file is part of the GNU C Library.
+//
+// The GNU C Library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// The GNU C Library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with the GNU C Library; if not, see
+// <http://www.gnu.org/licenses/>.
+
+// void assert (int expression);
+//
+// If NDEBUG is defined, do nothing.
+// If not, and EXPRESSION is zero, print an error message and abort.
+
+// void assert_perror (int errnum);
+//
+// If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an
+// error message with the error text for ERRNUM and abort.
+// (This is a GNU extension.)
+
+// tcl.h --
+//
+// This header file describes the externally-visible facilities of the
+// Tcl interpreter.
+//
+// Copyright (c) 1987-1994 The Regents of the University of California.
+// Copyright (c) 1993-1996 Lucent Technologies.
+// Copyright (c) 1994-1998 Sun Microsystems, Inc.
+// Copyright (c) 1998-2000 by Scriptics Corporation.
+// Copyright (c) 2002 by Kevin B. Kenny. All rights reserved.
+//
+// See the file "license.terms" for information on usage and redistribution of
+// this file, and for a DISCLAIMER OF ALL WARRANTIES.
+
+// Local Variables:
+// mode: c
+// c-basic-offset: 4
+// fill-column: 78
+// End:
+
+type Cube = Cube1 /* test_rtree.c:366:21 */
+
+func cube_context_free(tls *libc.TLS, p uintptr) { /* test_rtree.c:376:13: */
+ sqlite3.Xsqlite3_free(tls, p)
+}
+
+// The context pointer registered along with the 'cube' callback is
+// always ((void *)&gHere). This is just to facilitate testing, it is not
+// actually used for anything.
+var gHere int32 = 42 /* test_rtree.c:385:12 */
+
+// Implementation of a simple r-tree geom callback to test for intersection
+// of r-tree rows with a "cube" shape. Cubes are defined by six scalar
+// coordinates as follows:
+//
+// cube(x, y, z, width, height, depth)
+//
+// The width, height and depth parameters must all be greater than zero.
+func cube_geom(tls *libc.TLS, p uintptr, nCoord int32, aCoord uintptr, piRes uintptr) int32 { /* test_rtree.c:396:12: */
+ var pCube uintptr = (*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FpUser
+
+ if pCube == uintptr(0) {
+ if (((((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FnParam != 6) || (nCoord != 6)) ||
+ (*(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(3)*8)) <= 0.0)) || (*(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(4)*8)) <= 0.0)) || (*(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(5)*8)) <= 0.0) {
+ return 1
+ }
+ pCube = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(Cube{})))
+ if !(pCube != 0) {
+ return 7
+ }
+ (*Cube)(unsafe.Pointer(pCube)).Fx = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(0)*8))
+ (*Cube)(unsafe.Pointer(pCube)).Fy = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(1)*8))
+ (*Cube)(unsafe.Pointer(pCube)).Fz = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(2)*8))
+ (*Cube)(unsafe.Pointer(pCube)).Fwidth = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(3)*8))
+ (*Cube)(unsafe.Pointer(pCube)).Fheight = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(4)*8))
+ (*Cube)(unsafe.Pointer(pCube)).Fdepth = *(*sqlite3_rtree_dbl)(unsafe.Pointer((*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FaParam + uintptr(5)*8))
+
+ (*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FpUser = pCube
+ (*sqlite3_rtree_geometry)(unsafe.Pointer(p)).FxDelUser = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{cube_context_free}))
+ }
+
+ *(*int32)(unsafe.Pointer(piRes)) = 0
+ if (((((*(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(0)*8)) <= ((*Cube)(unsafe.Pointer(pCube)).Fx + (*Cube)(unsafe.Pointer(pCube)).Fwidth)) &&
+ (*(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(1)*8)) >= (*Cube)(unsafe.Pointer(pCube)).Fx)) &&
+ (*(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(2)*8)) <= ((*Cube)(unsafe.Pointer(pCube)).Fy + (*Cube)(unsafe.Pointer(pCube)).Fheight))) &&
+ (*(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(3)*8)) >= (*Cube)(unsafe.Pointer(pCube)).Fy)) &&
+ (*(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(4)*8)) <= ((*Cube)(unsafe.Pointer(pCube)).Fz + (*Cube)(unsafe.Pointer(pCube)).Fdepth))) &&
+ (*(*sqlite3_rtree_dbl)(unsafe.Pointer(aCoord + uintptr(5)*8)) >= (*Cube)(unsafe.Pointer(pCube)).Fz) {
+ *(*int32)(unsafe.Pointer(piRes)) = 1
+ }
+
return 0
}
-func Sqlitetestrtree_Init(tls *crt.TLS, interp uintptr) int32 { /* test_rtree.c:507:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+33403 /* "register_cube_ge..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+func register_cube_geom(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_rtree.c:443:26: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ // var db uintptr at bp, 8
+
+ var rc int32
+
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+1910 /* "DB" */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ rc = sqlite3.Xsqlite3_rtree_geometry_callback(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+35464 /* "cube" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
+ }{cube_geom})), uintptr(unsafe.Pointer(&gHere)))
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
+ return 0
+}
+
+func register_circle_geom(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_rtree.c:471:26: */
+ bp := tls.Alloc(8)
+ defer tls.Free(8)
+
+ // var db uintptr at bp, 8
+
+ var rc int32
+
+ if objc != 2 {
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+1910 /* "DB" */)
+ return 1
+ }
+ if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
+ return 1
+ }
+ rc = sqlite3.Xsqlite3_rtree_geometry_callback(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+35469 /* "circle" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32
+ }{circle_geom})), uintptr(0))
+ if rc == 0 {
+ rc = sqlite3.Xsqlite3_rtree_query_callback(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+35476, /* "Qcircle" */
+ *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{circle_query_func})), uintptr(0), uintptr(0))
+ }
+ if rc == 0 {
+ rc = sqlite3.Xsqlite3_rtree_query_callback(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+35484, /* "breadthfirstsear..." */
+ *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) int32
+ }{bfs_query_func})), uintptr(0), uintptr(0))
+ }
+ tcl.XTcl_SetResult(tls, interp, sqlite3.Xsqlite3ErrName(tls, rc), uintptr(0))
+ return 0
+}
+
+func Sqlitetestrtree_Init(tls *libc.TLS, interp uintptr) int32 { /* test_rtree.c:507:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+35503 /* "register_cube_ge..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{register_cube_geom})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+33422 /* "register_circle_..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+35522 /* "register_circle_..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{register_circle_geom})), uintptr(0), uintptr(0))
return 0
}
@@ -66943,31 +72270,31 @@ type schema_cursor = schema_cursor1 /* test_schema.c:54:30 */
// None of this works unless we have virtual tables.
// Table destructor for the schema module.
-func schemaDestroy(tls *crt.TLS, pVtab uintptr) int32 { /* test_schema.c:79:12: */
+func schemaDestroy(tls *libc.TLS, pVtab uintptr) int32 { /* test_schema.c:79:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
// Table constructor for the schema module.
-func schemaCreate(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_schema.c:87:12: */
+func schemaCreate(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_schema.c:87:12: */
var rc int32 = 7
var pVtab uintptr = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(schema_vtab{})))
if pVtab != 0 {
- crt.Xmemset(tls, pVtab, 0, uint64(unsafe.Sizeof(schema_vtab{})))
+ libc.Xmemset(tls, pVtab, 0, uint64(unsafe.Sizeof(schema_vtab{})))
(*schema_vtab)(unsafe.Pointer(pVtab)).Fdb = db
- rc = sqlite3.Xsqlite3_declare_vtab(tls, db /* Name of database (i.e. main, temp etc.) */ /* Name of table */ /* Column number (from left-to-right, 0 upward) */ /* Column name */ /* Specified type (i.e. VARCHAR(32)) */ /* Boolean. True if NOT NULL was specified */ /* Default value for this column */ /* True if this column is part of the primary key */, ts+33443 /* "CREATE TABLE x(d..." */)
+ rc = sqlite3.Xsqlite3_declare_vtab(tls, db /* Name of database (i.e. main, temp etc.) */ /* Name of table */ /* Column number (from left-to-right, 0 upward) */ /* Column name */ /* Specified type (i.e. VARCHAR(32)) */ /* Boolean. True if NOT NULL was specified */ /* Default value for this column */ /* True if this column is part of the primary key */, ts+35543 /* "CREATE TABLE x(d..." */)
}
*(*uintptr)(unsafe.Pointer(ppVtab)) = pVtab
return rc
}
// Open a new cursor on the schema table.
-func schemaOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_schema.c:110:12: */
+func schemaOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_schema.c:110:12: */
var rc int32 = 7
var pCur uintptr
pCur = sqlite3.Xsqlite3_malloc(tls, int32(unsafe.Sizeof(schema_cursor{})))
if pCur != 0 {
- crt.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(schema_cursor{})))
+ libc.Xmemset(tls, pCur, 0, uint64(unsafe.Sizeof(schema_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = pCur
rc = 0
}
@@ -66975,7 +72302,7 @@ func schemaOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_s
}
// Close a schema table cursor.
-func schemaClose(tls *crt.TLS, cur uintptr) int32 { /* test_schema.c:125:12: */
+func schemaClose(tls *libc.TLS, cur uintptr) int32 { /* test_schema.c:125:12: */
var pCur uintptr = cur
sqlite3.Xsqlite3_finalize(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpDbList)
sqlite3.Xsqlite3_finalize(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpTableList)
@@ -66985,7 +72312,7 @@ func schemaClose(tls *crt.TLS, cur uintptr) int32 { /* test_schema.c:125:12: */
}
// Retrieve a column of data.
-func schemaColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_schema.c:137:12: */
+func schemaColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_schema.c:137:12: */
var pCur uintptr = cur
switch i {
case 0:
@@ -67002,19 +72329,19 @@ func schemaColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
}
// Retrieve the current rowid.
-func schemaRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_schema.c:156:12: */
+func schemaRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test_schema.c:156:12: */
var pCur uintptr = cur
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = sqlite_int64((*schema_cursor)(unsafe.Pointer(pCur)).Frowid)
return 0
}
-func finalize(tls *crt.TLS, ppStmt uintptr) int32 { /* test_schema.c:162:12: */
+func finalize(tls *libc.TLS, ppStmt uintptr) int32 { /* test_schema.c:162:12: */
var rc int32 = sqlite3.Xsqlite3_finalize(tls, *(*uintptr)(unsafe.Pointer(ppStmt)))
*(*uintptr)(unsafe.Pointer(ppStmt)) = uintptr(0)
return rc
}
-func schemaEof(tls *crt.TLS, cur uintptr) int32 { /* test_schema.c:168:12: */
+func schemaEof(tls *libc.TLS, cur uintptr) int32 { /* test_schema.c:168:12: */
var pCur uintptr = cur
return func() int32 {
if (*schema_cursor)(unsafe.Pointer(pCur)).FpDbList != 0 {
@@ -67025,7 +72352,7 @@ func schemaEof(tls *crt.TLS, cur uintptr) int32 { /* test_schema.c:168:12: */
}
// Advance the cursor to the next row.
-func schemaNext(tls *crt.TLS, cur uintptr) int32 { /* test_schema.c:176:12: */
+func schemaNext(tls *libc.TLS, cur uintptr) int32 { /* test_schema.c:176:12: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -67043,7 +72370,7 @@ __1:
if !(!(int32((*schema_cursor)(unsafe.Pointer(pCur)).FpColumnList) != 0) || (100 != sqlite3.Xsqlite3_step(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpColumnList))) {
goto __2
}
- if !(0 != (crt.AssignInt32(&rc, finalize(tls, (pCur+24 /* &.pColumnList */))))) {
+ if !(0 != (libc.AssignInt32(&rc, finalize(tls, (pCur+24 /* &.pColumnList */))))) {
goto __3
}
goto next_exit
@@ -67054,7 +72381,7 @@ __4:
if !(!(int32((*schema_cursor)(unsafe.Pointer(pCur)).FpTableList) != 0) || (100 != sqlite3.Xsqlite3_step(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpTableList))) {
goto __5
}
- if !(0 != (crt.AssignInt32(&rc, finalize(tls, (pCur+16 /* &.pTableList */))))) {
+ if !(0 != (libc.AssignInt32(&rc, finalize(tls, (pCur+16 /* &.pTableList */))))) {
goto __6
}
goto next_exit
@@ -67072,20 +72399,20 @@ __8:
;
// Set zSql to the SQL to pull the list of tables from the
- // sqlite_master (or sqlite_temp_master) table of the database
+ // sqlite_schema (or sqlite_temp_schema) table of the database
// identified by the row pointed to by the SQL statement pCur->pDbList
// (iterating through a "PRAGMA database_list;" statement).
if !(sqlite3.Xsqlite3_column_int(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpDbList, 0) == 1) {
goto __9
}
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+33515 /* "SELECT name FROM..." */, 0)
+ ts+35615 /* "SELECT name FROM..." */, 0)
goto __10
__9:
pDbList = (*schema_cursor)(unsafe.Pointer(pCur)).FpDbList
zSql = sqlite3.Xsqlite3_mprintf(tls,
- ts+33570, /* "SELECT name FROM..." */
- crt.VaList(bp, sqlite3.Xsqlite3_column_text(tls, pDbList, 1)))
+ ts+35670, /* "SELECT name FROM..." */
+ libc.VaList(bp, sqlite3.Xsqlite3_column_text(tls, pDbList, 1)))
__10:
;
if !(!(zSql != 0)) {
@@ -67111,8 +72438,8 @@ __5:
// Set zSql to the SQL to the table_info pragma for the table currently
// identified by the rows pointed to by statements pCur->pDbList and
// pCur->pTableList.
- zSql = sqlite3.Xsqlite3_mprintf(tls, ts+33623, /* "PRAGMA %Q.table_..." */
- crt.VaList(bp+8, sqlite3.Xsqlite3_column_text(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpDbList, 1),
+ zSql = sqlite3.Xsqlite3_mprintf(tls, ts+35723, /* "PRAGMA %Q.table_..." */
+ libc.VaList(bp+8, sqlite3.Xsqlite3_column_text(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpDbList, 1),
sqlite3.Xsqlite3_column_text(tls, (*schema_cursor)(unsafe.Pointer(pCur)).FpTableList, 0)))
if !(!(zSql != 0)) {
@@ -67141,7 +72468,7 @@ next_exit:
}
// Reset a schema table cursor.
-func schemaFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_schema.c:247:12: */
+func schemaFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_schema.c:247:12: */
var rc int32
var pVtab uintptr = (*sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab
var pCur uintptr = pVtabCursor
@@ -67149,7 +72476,7 @@ func schemaFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
finalize(tls, (pCur + 16 /* &.pTableList */))
finalize(tls, (pCur + 24 /* &.pColumnList */))
finalize(tls, (pCur + 8 /* &.pDbList */))
- rc = sqlite3.Xsqlite3_prepare(tls, (*schema_vtab)(unsafe.Pointer(pVtab)).Fdb, ts+33648 /* "PRAGMA database_..." */, -1, (pCur + 8 /* &.pDbList */), uintptr(0))
+ rc = sqlite3.Xsqlite3_prepare(tls, (*schema_vtab)(unsafe.Pointer(pVtab)).Fdb, ts+35748 /* "PRAGMA database_..." */, -1, (pCur + 8 /* &.pDbList */), uintptr(0))
return func() int32 {
if rc == 0 {
return schemaNext(tls, pVtabCursor)
@@ -67159,7 +72486,7 @@ func schemaFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
}
// Analyse the WHERE condition.
-func schemaBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_schema.c:266:12: */
+func schemaBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_schema.c:266:12: */
return 0
}
@@ -67183,7 +72510,7 @@ uintptr(0), // xRename
} /* test_schema.c:274:23 */
// Register the schema virtual table module.
-func register_schema_module(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_schema.c:309:26: */
+func register_schema_module(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_schema.c:309:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -67196,30 +72523,30 @@ func register_schema_module(tls *crt.TLS, clientData ClientData, interp uintptr,
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+3350 /* "schema" */, uintptr(unsafe.Pointer(&schemaModule)), uintptr(0))
+ sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+4499 /* "schema" */, uintptr(unsafe.Pointer(&schemaModule)), uintptr(0))
return 0
}
// Register commands with the TCL interpreter.
-func Sqlitetestschema_Init(tls *crt.TLS, interp uintptr) int32 { /* test_schema.c:330:5: */
+func Sqlitetestschema_Init(tls *libc.TLS, interp uintptr) int32 { /* test_schema.c:330:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd11)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd12)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd11[i].FzName,
- aObjCmd11[i].FxProc, aObjCmd11[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd12[i].FzName,
+ aObjCmd12[i].FxProc, aObjCmd12[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd11 = [1]struct {
+var aObjCmd12 = [1]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 33669 /* "register_schema_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 35769 /* "register_schema_..." */, FxProc: 0, FclientData: uintptr(0)},
} /* test_schema.c:335:5 */
// 2001-09-15
@@ -67400,13 +72727,13 @@ var g4 = ServerState{FqueueMutex: pthread_mutex_t{F__data: __pthread_mutex_s{F__
// The mutex and condition variable in the message are uninitialized
// when this routine is called. This routine takes care of
// initializing them and destroying them when it has finished.
-func sendToServer(tls *crt.TLS, pMsg uintptr) { /* test_server.c:272:13: */
+func sendToServer(tls *libc.TLS, pMsg uintptr) { /* test_server.c:272:13: */
// Initialize the mutex and condition variable on the message
- crt2.Xpthread_mutex_init(tls, (pMsg + 72 /* &.clientMutex */), uintptr(0))
- crt2.Xpthread_cond_init(tls, (pMsg + 112 /* &.clientWakeup */), uintptr(0))
+ libc2.Xpthread_mutex_init(tls, (pMsg + 72 /* &.clientMutex */), uintptr(0))
+ libc2.Xpthread_cond_init(tls, (pMsg + 112 /* &.clientWakeup */), uintptr(0))
// Add the message to the head of the server's message queue.
- crt2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
+ libc2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
(*SqlMessage)(unsafe.Pointer(pMsg)).FpNext = g4.FpQueueHead
if g4.FpQueueHead == uintptr(0) {
g4.FpQueueTail = pMsg
@@ -67415,20 +72742,20 @@ func sendToServer(tls *crt.TLS, pMsg uintptr) { /* test_server.c:272:13: */
}
(*SqlMessage)(unsafe.Pointer(pMsg)).FpPrev = uintptr(0)
g4.FpQueueHead = pMsg
- crt2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
+ libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
// Signal the server that the new message has be queued, then
// block waiting for the server to process the message.
- crt2.Xpthread_mutex_lock(tls, (pMsg + 72 /* &.clientMutex */))
- crt2.Xpthread_cond_signal(tls, (uintptr(unsafe.Pointer(&g4)) + 80 /* &.serverWakeup */))
+ libc2.Xpthread_mutex_lock(tls, (pMsg + 72 /* &.clientMutex */))
+ libc2.Xpthread_cond_signal(tls, (uintptr(unsafe.Pointer(&g4)) + 80 /* &.serverWakeup */))
for (*SqlMessage)(unsafe.Pointer(pMsg)).Fop != 7 {
- crt2.Xpthread_cond_wait(tls, (pMsg + 112 /* &.clientWakeup */), (pMsg + 72 /* &.clientMutex */))
+ libc2.Xpthread_cond_wait(tls, (pMsg + 112 /* &.clientWakeup */), (pMsg + 72 /* &.clientMutex */))
}
- crt2.Xpthread_mutex_unlock(tls, (pMsg + 72 /* &.clientMutex */))
+ libc2.Xpthread_mutex_unlock(tls, (pMsg + 72 /* &.clientMutex */))
// Destroy the mutex and condition variable of the message.
- crt2.Xpthread_mutex_destroy(tls, (pMsg + 72 /* &.clientMutex */))
- crt2.Xpthread_cond_destroy(tls, (pMsg + 112 /* &.clientWakeup */))
+ libc2.Xpthread_mutex_destroy(tls, (pMsg + 72 /* &.clientMutex */))
+ libc2.Xpthread_cond_destroy(tls, (pMsg + 112 /* &.clientWakeup */))
}
// The following 6 routines are client-side implementations of the
@@ -67454,7 +72781,7 @@ func sendToServer(tls *crt.TLS, pMsg uintptr) { /* test_server.c:272:13: */
// Each of these routines creates a message for the desired operation,
// sends that message to the server, waits for the server to process
// then message and return a response.
-func sqlite3_client_open(tls *crt.TLS, zDatabaseName uintptr, ppDb uintptr) int32 { /* test_server.c:332:5: */
+func sqlite3_client_open(tls *libc.TLS, zDatabaseName uintptr, ppDb uintptr) int32 { /* test_server.c:332:5: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -67466,7 +72793,7 @@ func sqlite3_client_open(tls *crt.TLS, zDatabaseName uintptr, ppDb uintptr) int3
*(*uintptr)(unsafe.Pointer(ppDb)) = (*SqlMessage)(unsafe.Pointer(bp /* &msg */)).FpDb
return (*SqlMessage)(unsafe.Pointer(bp /* &msg */)).FerrCode
}
-func sqlite3_client_prepare(tls *crt.TLS, pDb uintptr, zSql uintptr, nByte int32, ppStmt uintptr, pzTail uintptr) int32 { /* test_server.c:340:5: */
+func sqlite3_client_prepare(tls *libc.TLS, pDb uintptr, zSql uintptr, nByte int32, ppStmt uintptr, pzTail uintptr) int32 { /* test_server.c:340:5: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -67483,7 +72810,7 @@ func sqlite3_client_prepare(tls *crt.TLS, pDb uintptr, zSql uintptr, nByte int32
}
return (*SqlMessage)(unsafe.Pointer(bp /* &msg */)).FerrCode
}
-func sqlite3_client_step(tls *crt.TLS, pStmt uintptr) int32 { /* test_server.c:357:5: */
+func sqlite3_client_step(tls *libc.TLS, pStmt uintptr) int32 { /* test_server.c:357:5: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -67494,7 +72821,7 @@ func sqlite3_client_step(tls *crt.TLS, pStmt uintptr) int32 { /* test_server.c:3
sendToServer(tls, bp /* &msg */)
return (*SqlMessage)(unsafe.Pointer(bp /* &msg */)).FerrCode
}
-func sqlite3_client_reset(tls *crt.TLS, pStmt uintptr) int32 { /* test_server.c:364:5: */
+func sqlite3_client_reset(tls *libc.TLS, pStmt uintptr) int32 { /* test_server.c:364:5: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -67505,7 +72832,7 @@ func sqlite3_client_reset(tls *crt.TLS, pStmt uintptr) int32 { /* test_server.c:
sendToServer(tls, bp /* &msg */)
return (*SqlMessage)(unsafe.Pointer(bp /* &msg */)).FerrCode
}
-func sqlite3_client_finalize(tls *crt.TLS, pStmt uintptr) int32 { /* test_server.c:371:5: */
+func sqlite3_client_finalize(tls *libc.TLS, pStmt uintptr) int32 { /* test_server.c:371:5: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -67516,7 +72843,7 @@ func sqlite3_client_finalize(tls *crt.TLS, pStmt uintptr) int32 { /* test_server
sendToServer(tls, bp /* &msg */)
return (*SqlMessage)(unsafe.Pointer(bp /* &msg */)).FerrCode
}
-func sqlite3_client_close(tls *crt.TLS, pDb uintptr) int32 { /* test_server.c:378:5: */
+func sqlite3_client_close(tls *libc.TLS, pDb uintptr) int32 { /* test_server.c:378:5: */
bp := tls.Alloc(160)
defer tls.Free(160)
@@ -67533,8 +72860,8 @@ func sqlite3_client_close(tls *crt.TLS, pDb uintptr) int32 { /* test_server.c:37
// on this procedure. See the sqlite3_server_start() routine below
// for an example. This procedure loops until g.serverHalt becomes
// true.
-func sqlite3_server(tls *crt.TLS, NotUsed uintptr) uintptr { /* test_server.c:393:6: */
- if crt2.Xpthread_mutex_trylock(tls, (uintptr(unsafe.Pointer(&g4))+40 /* &.serverMutex */)) != 0 {
+func sqlite3_server(tls *libc.TLS, NotUsed uintptr) uintptr { /* test_server.c:393:6: */
+ if libc2.Xpthread_mutex_trylock(tls, (uintptr(unsafe.Pointer(&g4))+40 /* &.serverMutex */)) != 0 {
return uintptr(0)
}
sqlite3.Xsqlite3_enable_shared_cache(tls, 1)
@@ -67542,9 +72869,9 @@ func sqlite3_server(tls *crt.TLS, NotUsed uintptr) uintptr { /* test_server.c:39
var pMsg uintptr
// Remove the last message from the message queue.
- crt2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
+ libc2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
for (g4.FpQueueTail == uintptr(0)) && (g4.FserverHalt == 0) {
- crt2.Xpthread_cond_wait(tls, (uintptr(unsafe.Pointer(&g4)) + 80 /* &.serverWakeup */), (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
+ libc2.Xpthread_cond_wait(tls, (uintptr(unsafe.Pointer(&g4)) + 80 /* &.serverWakeup */), (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
}
pMsg = g4.FpQueueTail
if pMsg != 0 {
@@ -67555,13 +72882,13 @@ func sqlite3_server(tls *crt.TLS, NotUsed uintptr) uintptr { /* test_server.c:39
}
g4.FpQueueTail = (*SqlMessage)(unsafe.Pointer(pMsg)).FpPrev
}
- crt2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
+ libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) /* &.queueMutex */))
if pMsg == uintptr(0) {
break
}
// Process the message just removed
- crt2.Xpthread_mutex_lock(tls, (pMsg + 72 /* &.clientMutex */))
+ libc2.Xpthread_mutex_lock(tls, (pMsg + 72 /* &.clientMutex */))
switch (*SqlMessage)(unsafe.Pointer(pMsg)).Fop {
case 1:
{
@@ -67598,17 +72925,17 @@ func sqlite3_server(tls *crt.TLS, NotUsed uintptr) uintptr { /* test_server.c:39
// Signal the client that the message has been processed.
(*SqlMessage)(unsafe.Pointer(pMsg)).Fop = 7
- crt2.Xpthread_mutex_unlock(tls, (pMsg + 72 /* &.clientMutex */))
- crt2.Xpthread_cond_signal(tls, (pMsg + 112 /* &.clientWakeup */))
+ libc2.Xpthread_mutex_unlock(tls, (pMsg + 72 /* &.clientMutex */))
+ libc2.Xpthread_cond_signal(tls, (pMsg + 112 /* &.clientWakeup */))
}
- crt2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 40 /* &.serverMutex */))
+ libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 40 /* &.serverMutex */))
return uintptr(0)
}
// Start a server thread if one is not already running. If there
// is aleady a server thread running, the new thread will quickly
// die and this routine is effectively a no-op.
-func sqlite3_server_start(tls *crt.TLS) { /* test_server.c:465:6: */
+func sqlite3_server_start(tls *libc.TLS) { /* test_server.c:465:6: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -67616,18 +72943,18 @@ func sqlite3_server_start(tls *crt.TLS) { /* test_server.c:465:6: */
var rc int32
g4.FserverHalt = 0
- rc = crt2.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr) uintptr
+ rc = libc2.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
}{sqlite3_server})), uintptr(0))
if rc == 0 {
- crt2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */)))
+ libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */)))
}
}
// A wrapper around sqlite3_server() that decrements the int variable
// pointed to by the first argument after the sqlite3_server() call
// returns.
-func serverWrapper(tls *crt.TLS, pnDecr uintptr) uintptr { /* test_server.c:480:13: */
+func serverWrapper(tls *libc.TLS, pnDecr uintptr) uintptr { /* test_server.c:480:13: */
var p uintptr = sqlite3_server(tls, uintptr(0))
(*(*int32)(unsafe.Pointer(pnDecr)))--
return p
@@ -67636,7 +72963,7 @@ func serverWrapper(tls *crt.TLS, pnDecr uintptr) uintptr { /* test_server.c:480:
// This function is the similar to sqlite3_server_start(), except that
// the integer pointed to by the first argument is decremented when
// the server thread exits.
-func sqlite3_server_start2(tls *crt.TLS, pnDecr uintptr) { /* test_server.c:491:6: */
+func sqlite3_server_start2(tls *libc.TLS, pnDecr uintptr) { /* test_server.c:491:6: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -67644,11 +72971,11 @@ func sqlite3_server_start2(tls *crt.TLS, pnDecr uintptr) { /* test_server.c:491:
var rc int32
g4.FserverHalt = 0
- rc = crt2.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr) uintptr
+ rc = libc2.Xpthread_create(tls, bp /* &x */, uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr) uintptr
}{serverWrapper})), pnDecr)
if rc == 0 {
- crt2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */)))
+ libc2.Xpthread_detach(tls, *(*pthread_t)(unsafe.Pointer(bp /* x */)))
}
}
@@ -67657,11 +72984,11 @@ func sqlite3_server_start2(tls *crt.TLS, pnDecr uintptr) { /* test_server.c:491:
//
// This routine waits until the server has actually stopped before
// returning.
-func sqlite3_server_stop(tls *crt.TLS) { /* test_server.c:508:6: */
+func sqlite3_server_stop(tls *libc.TLS) { /* test_server.c:508:6: */
g4.FserverHalt = 1
- crt2.Xpthread_cond_broadcast(tls, (uintptr(unsafe.Pointer(&g4)) + 80 /* &.serverWakeup */))
- crt2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) + 40 /* &.serverMutex */))
- crt2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 40 /* &.serverMutex */))
+ libc2.Xpthread_cond_broadcast(tls, (uintptr(unsafe.Pointer(&g4)) + 80 /* &.serverWakeup */))
+ libc2.Xpthread_mutex_lock(tls, (uintptr(unsafe.Pointer(&g4)) + 40 /* &.serverMutex */))
+ libc2.Xpthread_mutex_unlock(tls, (uintptr(unsafe.Pointer(&g4)) + 40 /* &.serverMutex */))
}
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
@@ -67736,12 +73063,12 @@ type Superlock = Superlock1 /* test_superlock.c:45:26 */
// The pCtx pointer passed to this function is actually a pointer to a
// SuperlockBusy structure. Invoke the busy-handler function encapsulated
// by the structure and return the result.
-func superlockBusyHandler(tls *crt.TLS, pCtx uintptr, UNUSED int32) int32 { /* test_superlock.c:52:12: */
+func superlockBusyHandler(tls *libc.TLS, pCtx uintptr, UNUSED int32) int32 { /* test_superlock.c:52:12: */
var pBusy uintptr = pCtx
if (*SuperlockBusy)(unsafe.Pointer(pBusy)).FxBusy == uintptr(0) {
return 0
}
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer((pBusy /* &.xBusy */))))(tls, (*SuperlockBusy)(unsafe.Pointer(pBusy)).FpBusyArg, crt.PostIncInt32(&(*SuperlockBusy)(unsafe.Pointer(pBusy)).FnBusy, 1))
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((pBusy /* &.xBusy */))))(tls, (*SuperlockBusy)(unsafe.Pointer(pBusy)).FpBusyArg, libc.PostIncInt32(&(*SuperlockBusy)(unsafe.Pointer(pBusy)).FnBusy, 1))
}
// This function is used to determine if the main database file for
@@ -67751,7 +73078,7 @@ func superlockBusyHandler(tls *crt.TLS, pCtx uintptr, UNUSED int32) int32 { /* t
//
// If an error occurs, return an SQLite error code. The value of *pbWal
// is undefined in this case.
-func superlockIsWal(tls *crt.TLS, pLock uintptr) int32 { /* test_superlock.c:67:12: */
+func superlockIsWal(tls *libc.TLS, pLock uintptr) int32 { /* test_superlock.c:67:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -67759,7 +73086,7 @@ func superlockIsWal(tls *crt.TLS, pLock uintptr) int32 { /* test_superlock.c:67:
// var pStmt uintptr at bp, 8
// Compiled PRAGMA journal_mode statement
- rc = sqlite3.Xsqlite3_prepare(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, ts+33692 /* "PRAGMA main.jour..." */, -1, bp /* &pStmt */, uintptr(0))
+ rc = sqlite3.Xsqlite3_prepare(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, ts+35792 /* "PRAGMA main.jour..." */, -1, bp /* &pStmt */, uintptr(0))
if rc != 0 {
return rc
}
@@ -67767,7 +73094,7 @@ func superlockIsWal(tls *crt.TLS, pLock uintptr) int32 { /* test_superlock.c:67:
(*Superlock)(unsafe.Pointer(pLock)).FbWal = 0
if 100 == sqlite3.Xsqlite3_step(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */))) {
var zMode uintptr = sqlite3.Xsqlite3_column_text(tls, *(*uintptr)(unsafe.Pointer(bp /* pStmt */)), 0)
- if ((zMode != 0) && (crt.Xstrlen(tls, zMode) == uint64(3))) && (sqlite3.Xsqlite3_strnicmp(tls, ts+26690 /* "wal" */, zMode, 3) == 0) {
+ if ((zMode != 0) && (libc.Xstrlen(tls, zMode) == uint64(3))) && (sqlite3.Xsqlite3_strnicmp(tls, ts+28782 /* "wal" */, zMode, 3) == 0) {
(*Superlock)(unsafe.Pointer(pLock)).FbWal = 1
}
}
@@ -67779,18 +73106,18 @@ func superlockIsWal(tls *crt.TLS, pLock uintptr) int32 { /* test_superlock.c:67:
// of the file fd. If the lock cannot be obtained immediately, invoke
// the busy-handler until either it is obtained or the busy-handler
// callback returns 0.
-func superlockShmLock(tls *crt.TLS, fd uintptr, idx int32, nByte int32, pBusy uintptr) int32 { /* test_superlock.c:91:12: */
+func superlockShmLock(tls *libc.TLS, fd uintptr, idx int32, nByte int32, pBusy uintptr) int32 { /* test_superlock.c:91:12: */
var rc int32
var xShmLock uintptr = (*sqlite3_io_methods1)(unsafe.Pointer((*sqlite3_file)(unsafe.Pointer(fd)).FpMethods)).FxShmLock
for ok := true; ok; ok = ((rc == 5) && (superlockBusyHandler(tls, pBusy, 0) != 0)) {
- rc = (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(&xShmLock)))(tls, fd, idx, nByte, (2 | 8))
+ rc = (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(&xShmLock)))(tls, fd, idx, nByte, (2 | 8))
}
return rc
}
// Obtain the extra locks on the database file required for WAL databases.
// Invoke the supplied busy-handler as required.
-func superlockWalLock(tls *crt.TLS, db uintptr, pBusy uintptr) int32 { /* test_superlock.c:109:12: */
+func superlockWalLock(tls *libc.TLS, db uintptr, pBusy uintptr) int32 { /* test_superlock.c:109:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -67817,11 +73144,11 @@ func superlockWalLock(tls *crt.TLS, db uintptr, pBusy uintptr) int32 { /* test_s
// lock that this process is holding to do that, no new read or write
// transactions may now be opened. Nor can a checkpoint be run, for the
// same reason.
- rc = (*(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* fd */)))).FpMethods + 104 /* &.xShmMap */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* fd */)), 0, (32 * 1024), 1, bp+8 /* &p */)
+ rc = (*(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* fd */)))).FpMethods + 104 /* &.xShmMap */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* fd */)), 0, (32 * 1024), 1, bp+8 /* &p */)
if rc != 0 {
return rc
}
- crt.Xmemset(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p */)), 0, uint64(32))
+ libc.Xmemset(tls, *(*uintptr)(unsafe.Pointer(bp + 8 /* p */)), 0, uint64(32))
// Obtain exclusive locks on all the "read-lock" slots. Once these locks
// are held, it is guaranteed that there are no active reader, writer or
@@ -67833,7 +73160,7 @@ func superlockWalLock(tls *crt.TLS, db uintptr, pBusy uintptr) int32 { /* test_s
// Release a superlock held on a database file. The argument passed to
// this function must have been obtained from a successful call to
// sqlite3demo_superlock().
-func sqlite3demo_superunlock(tls *crt.TLS, pLock uintptr) { /* test_superlock.c:151:6: */
+func sqlite3demo_superunlock(tls *libc.TLS, pLock uintptr) { /* test_superlock.c:151:6: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -67844,8 +73171,8 @@ func sqlite3demo_superunlock(tls *crt.TLS, pLock uintptr) { /* test_superlock.c:
*(*uintptr)(unsafe.Pointer(bp /* fd */)) = uintptr(0)
rc = sqlite3.Xsqlite3_file_control(tls, (*Superlock)(unsafe.Pointer(p)).Fdb, ts+84 /* "main" */, 7, bp /* &fd */)
if rc == 0 {
- (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* fd */)))).FpMethods + 112 /* &.xShmLock */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* fd */)), 2, 1, flags)
- (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* fd */)))).FpMethods + 112 /* &.xShmLock */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* fd */)), 3, (8 - 3), flags)
+ (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* fd */)))).FpMethods + 112 /* &.xShmLock */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* fd */)), 2, 1, flags)
+ (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* fd */)))).FpMethods + 112 /* &.xShmLock */))))(tls, *(*uintptr)(unsafe.Pointer(bp /* fd */)), 3, (8 - 3), flags)
}
}
sqlite3.Xsqlite3_close(tls, (*Superlock)(unsafe.Pointer(p)).Fdb)
@@ -67865,7 +73192,7 @@ func sqlite3demo_superunlock(tls *crt.TLS, pLock uintptr) { /* test_superlock.c:
// as a busy-handler registered with SQLite (using sqlite3_busy_handler())
// until either the lock can be obtained or the busy-handler function returns
// 0 (indicating "give up").
-func sqlite3demo_superlock(tls *crt.TLS, zPath uintptr, zVfs uintptr, xBusy uintptr, pBusyArg uintptr, ppLock uintptr) int32 { /* test_superlock.c:182:5: */
+func sqlite3demo_superlock(tls *libc.TLS, zPath uintptr, zVfs uintptr, xBusy uintptr, pBusyArg uintptr, ppLock uintptr) int32 { /* test_superlock.c:182:5: */
bp := tls.Alloc(24)
defer tls.Free(24)
@@ -67877,7 +73204,7 @@ func sqlite3demo_superlock(tls *crt.TLS, zPath uintptr, zVfs uintptr, xBusy uint
if !(pLock != 0) {
return 7
}
- crt.Xmemset(tls, pLock, 0, uint64(unsafe.Sizeof(Superlock{})))
+ libc.Xmemset(tls, pLock, 0, uint64(unsafe.Sizeof(Superlock{})))
// Open a database handle on the file to superlock.
rc = sqlite3.Xsqlite3_open_v2(tls,
@@ -67899,9 +73226,9 @@ func sqlite3demo_superlock(tls *crt.TLS, zPath uintptr, zVfs uintptr, xBusy uint
(*SuperlockBusy)(unsafe.Pointer(bp /* &busy */)).FxBusy = xBusy
(*SuperlockBusy)(unsafe.Pointer(bp /* &busy */)).FpBusyArg = pBusyArg
sqlite3.Xsqlite3_busy_handler(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{superlockBusyHandler})), bp /* &busy */)
- rc = sqlite3.Xsqlite3_exec(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, ts+11078 /* "BEGIN EXCLUSIVE" */, uintptr(0), uintptr(0), uintptr(0))
+ rc = sqlite3.Xsqlite3_exec(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, ts+12728 /* "BEGIN EXCLUSIVE" */, uintptr(0), uintptr(0), uintptr(0))
}
// If the BEGIN EXCLUSIVE was executed successfully and this is a WAL
@@ -67913,8 +73240,8 @@ func sqlite3demo_superlock(tls *crt.TLS, zPath uintptr, zVfs uintptr, xBusy uint
// to drop the WAL read and write locks currently held. Otherwise, the
// new WAL locks may conflict with the old.
if rc == 0 {
- if (0 == (crt.AssignInt32(&rc, superlockIsWal(tls, pLock)))) && ((*Superlock)(unsafe.Pointer(pLock)).FbWal != 0) {
- rc = sqlite3.Xsqlite3_exec(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, ts+9473 /* "COMMIT" */, uintptr(0), uintptr(0), uintptr(0))
+ if (0 == (libc.AssignInt32(&rc, superlockIsWal(tls, pLock)))) && ((*Superlock)(unsafe.Pointer(pLock)).FbWal != 0) {
+ rc = sqlite3.Xsqlite3_exec(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, ts+11132 /* "COMMIT" */, uintptr(0), uintptr(0), uintptr(0))
if rc == 0 {
rc = superlockWalLock(tls, (*Superlock)(unsafe.Pointer(pLock)).Fdb, bp /* &busy */)
}
@@ -67946,11 +73273,11 @@ type InterpAndScript1 = struct {
type InterpAndScript = InterpAndScript1 /* test_superlock.c:272:32 */
-func superunlock_del(tls *crt.TLS, cd ClientData) { /* test_superlock.c:274:27: */
+func superunlock_del(tls *libc.TLS, cd ClientData) { /* test_superlock.c:274:27: */
sqlite3demo_superunlock(tls, cd)
}
-func superunlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_superlock.c:278:26: */
+func superunlock_cmd(tls *libc.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_superlock.c:278:26: */
if objc != 1 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+488 /* "" */)
return 1
@@ -67959,7 +73286,7 @@ func superunlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
return 0
}
-func superlock_busy(tls *crt.TLS, pCtx uintptr, nBusy int32) int32 { /* test_superlock.c:292:12: */
+func superlock_busy(tls *libc.TLS, pCtx uintptr, nBusy int32) int32 { /* test_superlock.c:292:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -67974,7 +73301,7 @@ func superlock_busy(tls *crt.TLS, pCtx uintptr, nBusy int32) int32 { /* test_sup
tcl.XTcl_GetIntFromObj(tls, (*InterpAndScript)(unsafe.Pointer(p)).Finterp, tcl.XTcl_GetObjResult(tls, (*InterpAndScript)(unsafe.Pointer(p)).Finterp), bp /* &iVal */)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pEval
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -67983,7 +73310,7 @@ func superlock_busy(tls *crt.TLS, pCtx uintptr, nBusy int32) int32 { /* test_sup
}
// Tclcmd: sqlite3demo_superlock CMDNAME PATH VFS BUSY-HANDLER-SCRIPT
-func superlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_superlock.c:310:26: */
+func superlock_cmd(tls *libc.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_superlock.c:310:26: */
bp := tls.Alloc(40)
defer tls.Free(40)
@@ -67997,7 +73324,7 @@ func superlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv
if (objc < 3) || (objc > 5) {
tcl.XTcl_WrongNumArgs(tls,
- interp, 1, objv, ts+33717 /* "CMDNAME PATH ?VF..." */)
+ interp, 1, objv, ts+35817 /* "CMDNAME PATH ?VF..." */)
return 1
}
@@ -68005,7 +73332,7 @@ func superlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv
if objc > 3 {
zVfs = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
- if crt.Xstrlen(tls, zVfs) == uint64(0) {
+ if libc.Xstrlen(tls, zVfs) == uint64(0) {
zVfs = uintptr(0)
}
}
@@ -68013,7 +73340,7 @@ func superlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv
(*InterpAndScript)(unsafe.Pointer(bp + 16 /* &busy */)).Finterp = interp
(*InterpAndScript)(unsafe.Pointer(bp + 16 /* &busy */)).FpScript = *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8))
xBusy = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{superlock_busy}))
}
@@ -68021,21 +73348,21 @@ func superlock_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv
if rc != 0 {
tcl.XTcl_ResetResult(tls, interp)
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, sqlite3.Xsqlite3ErrStr(tls, rc), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, sqlite3.Xsqlite3ErrStr(tls, rc), 0))
return 1
}
tcl.XTcl_CreateObjCommand(tls,
interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
- }{superunlock_cmd})), *(*uintptr)(unsafe.Pointer(bp + 32 /* pLock */)), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, ClientData) }{superunlock_del})))
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{superunlock_cmd})), *(*uintptr)(unsafe.Pointer(bp + 32 /* pLock */)), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, ClientData) }{superunlock_del})))
tcl.XTcl_SetObjResult(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
return 0
}
-func SqliteSuperlock_Init(tls *crt.TLS, interp uintptr) int32 { /* test_superlock.c:359:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+33758 /* "sqlite3demo_supe..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+func SqliteSuperlock_Init(tls *libc.TLS, interp uintptr) int32 { /* test_superlock.c:359:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+35858 /* "sqlite3demo_supe..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{superlock_cmd})), uintptr(0), uintptr(0))
return 0
}
@@ -68059,31 +73386,31 @@ type TestSyscallArray = struct {
}
var aSyscall = [19]TestSyscallArray{
- /* 0 */ {FzName: ts + 33780 /* "open" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 13, Fcustom_errno: 0},
- /* 1 */ {FzName: ts + 11270 /* "close" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 2 */ {FzName: ts + 33785 /* "access" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 3 */ {FzName: ts + 33792 /* "getcwd" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 4 */ {FzName: ts + 33799 /* "stat" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 5 */ {FzName: ts + 33804 /* "fstat" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 6 */ {FzName: ts + 33810 /* "ftruncate" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 5, Fcustom_errno: 0},
- /* 7 */ {FzName: ts + 33820 /* "fcntl" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 13, Fcustom_errno: 0},
- /* 8 */ {FzName: ts + 22005 /* "read" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 9 */ {FzName: ts + 33826 /* "pread" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 10 */ {FzName: ts + 33832 /* "pread64" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 11 */ {FzName: ts + 22010 /* "write" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 12 */ {FzName: ts + 33840 /* "pwrite" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 13 */ {FzName: ts + 33847 /* "pwrite64" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 14 */ {FzName: ts + 33856 /* "fchmod" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 15 */ {FzName: ts + 33863 /* "fallocate" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 16 */ {FzName: ts + 25793 /* "mmap" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
- /* 17 */ {FzName: ts + 33873 /* "mremap" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 0 */ {FzName: ts + 35880 /* "open" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 13, Fcustom_errno: 0},
+ /* 1 */ {FzName: ts + 9947 /* "close" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 2 */ {FzName: ts + 35885 /* "access" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 3 */ {FzName: ts + 35892 /* "getcwd" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 4 */ {FzName: ts + 35899 /* "stat" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 5 */ {FzName: ts + 35904 /* "fstat" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 6 */ {FzName: ts + 35910 /* "ftruncate" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 5, Fcustom_errno: 0},
+ /* 7 */ {FzName: ts + 35920 /* "fcntl" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 13, Fcustom_errno: 0},
+ /* 8 */ {FzName: ts + 24104 /* "read" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 9 */ {FzName: ts + 35926 /* "pread" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 10 */ {FzName: ts + 35932 /* "pread64" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 11 */ {FzName: ts + 24109 /* "write" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 12 */ {FzName: ts + 35940 /* "pwrite" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 13 */ {FzName: ts + 35947 /* "pwrite64" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 14 */ {FzName: ts + 35956 /* "fchmod" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 15 */ {FzName: ts + 35963 /* "fallocate" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 16 */ {FzName: ts + 27885 /* "mmap" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
+ /* 17 */ {FzName: ts + 35973 /* "mremap" */, FxTest: 0, FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
{FzName: uintptr(0), FxTest: uintptr(0), FxOrig: uintptr(0), Fdefault_errno: 0, Fcustom_errno: 0},
} /* test_syscall.c:133:3 */
// This function is called exactly once from within each invocation of a
// system call wrapper in this file. It returns 1 if the function should
// fail, or 0 if it should succeed.
-func tsIsFail(tls *crt.TLS) int32 { /* test_syscall.c:181:12: */
+func tsIsFail(tls *libc.TLS) int32 { /* test_syscall.c:181:12: */
gSyscall.FnCount--
if (gSyscall.FnCount == 0) || ((gSyscall.FnFail != 0) && (gSyscall.FbPersist != 0)) {
gSyscall.FnFail++
@@ -68098,14 +73425,14 @@ func tsIsFail(tls *crt.TLS) int32 { /* test_syscall.c:181:12: */
// Usually, the current error-number is the value that errno should be set
// to if the named system call fails. The exception is "fallocate". See
// comments above the implementation of ts_fallocate() for details.
-func tsErrno(tls *crt.TLS, zFunc uintptr) int32 { /* test_syscall.c:198:12: */
+func tsErrno(tls *libc.TLS, zFunc uintptr) int32 { /* test_syscall.c:198:12: */
var i int32
- var nFunc int32 = int32(crt.Xstrlen(tls, zFunc))
+ var nFunc int32 = int32(libc.Xstrlen(tls, zFunc))
for i = 0; aSyscall[i].FzName != 0; i++ {
- if crt.Xstrlen(tls, aSyscall[i].FzName) != size_t(nFunc) {
+ if libc.Xstrlen(tls, aSyscall[i].FzName) != size_t(nFunc) {
continue
}
- if crt.Xmemcmp(tls, aSyscall[i].FzName, zFunc, uint64(nFunc)) != 0 {
+ if libc.Xmemcmp(tls, aSyscall[i].FzName, zFunc, uint64(nFunc)) != 0 {
continue
}
return aSyscall[i].Fcustom_errno
@@ -68118,149 +73445,149 @@ func tsErrno(tls *crt.TLS, zFunc uintptr) int32 { /* test_syscall.c:198:12: */
** A wrapper around tsIsFail(). If tsIsFail() returns non-zero, set the
** value of errno before returning.
*/
-func tsIsFailErrno(tls *crt.TLS, zFunc uintptr) int32 { /* test_syscall.c:215:12: */
+func tsIsFailErrno(tls *libc.TLS, zFunc uintptr) int32 { /* test_syscall.c:215:12: */
if tsIsFail(tls) != 0 {
- (*(*int32)(unsafe.Pointer(crt.X__errno_location(tls)))) = tsErrno(tls, zFunc)
+ (*(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))) = tsErrno(tls, zFunc)
return 1
}
return 0
}
// A wrapper around open().
-func ts_open(tls *crt.TLS, zFile uintptr, flags int32, mode int32) int32 { /* test_syscall.c:226:12: */
- if tsIsFailErrno(tls, ts+33780 /* "open" */) != 0 {
+func ts_open(tls *libc.TLS, zFile uintptr, flags int32, mode int32) int32 { /* test_syscall.c:226:12: */
+ if tsIsFailErrno(tls, ts+35880 /* "open" */) != 0 {
return -1
}
- return (*(*func(*crt.TLS, uintptr, int32, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(0)*32 + 16 /* &.xOrig */))))(tls, zFile, flags, mode)
+ return (*(*func(*libc.TLS, uintptr, int32, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(0)*32 + 16 /* &.xOrig */))))(tls, zFile, flags, mode)
}
// A wrapper around close().
-func ts_close(tls *crt.TLS, fd int32) int32 { /* test_syscall.c:236:12: */
+func ts_close(tls *libc.TLS, fd int32) int32 { /* test_syscall.c:236:12: */
if tsIsFail(tls) != 0 {
// Even if simulating an error, close the original file-descriptor.
// This is to stop the test process from running out of file-descriptors
// when running a long test. If a call to close() appears to fail, SQLite
// never attempts to use the file-descriptor afterwards (or even to close
// it a second time).
- (*(*func(*crt.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(1)*32 + 16 /* &.xOrig */))))(tls, fd)
+ (*(*func(*libc.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(1)*32 + 16 /* &.xOrig */))))(tls, fd)
return -1
}
- return (*(*func(*crt.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(1)*32 + 16 /* &.xOrig */))))(tls, fd)
+ return (*(*func(*libc.TLS, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(1)*32 + 16 /* &.xOrig */))))(tls, fd)
}
// A wrapper around access().
-func ts_access(tls *crt.TLS, zPath uintptr, mode int32) int32 { /* test_syscall.c:252:12: */
+func ts_access(tls *libc.TLS, zPath uintptr, mode int32) int32 { /* test_syscall.c:252:12: */
if tsIsFail(tls) != 0 {
return -1
}
- return (*(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(2)*32 + 16 /* &.xOrig */))))(tls, zPath, mode)
+ return (*(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(2)*32 + 16 /* &.xOrig */))))(tls, zPath, mode)
}
// A wrapper around getcwd().
-func ts_getcwd(tls *crt.TLS, zPath uintptr, nPath size_t) uintptr { /* test_syscall.c:262:13: */
+func ts_getcwd(tls *libc.TLS, zPath uintptr, nPath size_t) uintptr { /* test_syscall.c:262:13: */
if tsIsFail(tls) != 0 {
return uintptr(0)
}
- return (*(*func(*crt.TLS, uintptr, size_t) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(3)*32 + 16 /* &.xOrig */))))(tls, zPath, nPath)
+ return (*(*func(*libc.TLS, uintptr, size_t) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(3)*32 + 16 /* &.xOrig */))))(tls, zPath, nPath)
}
// A wrapper around stat().
-func ts_stat(tls *crt.TLS, zPath uintptr, p uintptr) int32 { /* test_syscall.c:272:12: */
+func ts_stat(tls *libc.TLS, zPath uintptr, p uintptr) int32 { /* test_syscall.c:272:12: */
if tsIsFail(tls) != 0 {
return -1
}
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(4)*32 + 16 /* &.xOrig */))))(tls, zPath, p)
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(4)*32 + 16 /* &.xOrig */))))(tls, zPath, p)
}
// A wrapper around fstat().
-func ts_fstat(tls *crt.TLS, fd int32, p uintptr) int32 { /* test_syscall.c:282:12: */
- if tsIsFailErrno(tls, ts+33804 /* "fstat" */) != 0 {
+func ts_fstat(tls *libc.TLS, fd int32, p uintptr) int32 { /* test_syscall.c:282:12: */
+ if tsIsFailErrno(tls, ts+35904 /* "fstat" */) != 0 {
return -1
}
- return (*(*func(*crt.TLS, int32, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(5)*32 + 16 /* &.xOrig */))))(tls, fd, p)
+ return (*(*func(*libc.TLS, int32, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(5)*32 + 16 /* &.xOrig */))))(tls, fd, p)
}
// A wrapper around ftruncate().
-func ts_ftruncate(tls *crt.TLS, fd int32, n off_t) int32 { /* test_syscall.c:292:12: */
- if tsIsFailErrno(tls, ts+33810 /* "ftruncate" */) != 0 {
+func ts_ftruncate(tls *libc.TLS, fd int32, n off_t) int32 { /* test_syscall.c:292:12: */
+ if tsIsFailErrno(tls, ts+35910 /* "ftruncate" */) != 0 {
return -1
}
- return (*(*func(*crt.TLS, int32, off_t) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(6)*32 + 16 /* &.xOrig */))))(tls, fd, n)
+ return (*(*func(*libc.TLS, int32, off_t) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(6)*32 + 16 /* &.xOrig */))))(tls, fd, n)
}
// A wrapper around fcntl().
-func ts_fcntl(tls *crt.TLS, fd int32, cmd int32, va uintptr) int32 { /* test_syscall.c:302:12: */
+func ts_fcntl(tls *libc.TLS, fd int32, cmd int32, va uintptr) int32 { /* test_syscall.c:302:12: */
bp := tls.Alloc(8)
defer tls.Free(8)
var ap va_list
_ = ap
var pArg uintptr
- if tsIsFailErrno(tls, ts+33820 /* "fcntl" */) != 0 {
+ if tsIsFailErrno(tls, ts+35920 /* "fcntl" */) != 0 {
return -1
}
ap = va
- pArg = crt.VaUintptr(&ap)
- return (*(*func(*crt.TLS, int32, int32, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(7)*32 + 16 /* &.xOrig */))))(tls, fd, cmd, crt.VaList(bp, pArg))
+ pArg = libc.VaUintptr(&ap)
+ return (*(*func(*libc.TLS, int32, int32, uintptr) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(7)*32 + 16 /* &.xOrig */))))(tls, fd, cmd, libc.VaList(bp, pArg))
}
// A wrapper around read().
-func ts_read(tls *crt.TLS, fd int32, aBuf uintptr, nBuf size_t) int32 { /* test_syscall.c:316:12: */
- if tsIsFailErrno(tls, ts+22005 /* "read" */) != 0 {
+func ts_read(tls *libc.TLS, fd int32, aBuf uintptr, nBuf size_t) int32 { /* test_syscall.c:316:12: */
+ if tsIsFailErrno(tls, ts+24104 /* "read" */) != 0 {
return -1
}
- return int32((*(*func(*crt.TLS, int32, uintptr, size_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(8)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf))
+ return int32((*(*func(*libc.TLS, int32, uintptr, size_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(8)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf))
}
// A wrapper around pread().
-func ts_pread(tls *crt.TLS, fd int32, aBuf uintptr, nBuf size_t, off off_t) int32 { /* test_syscall.c:326:12: */
- if tsIsFailErrno(tls, ts+33826 /* "pread" */) != 0 {
+func ts_pread(tls *libc.TLS, fd int32, aBuf uintptr, nBuf size_t, off off_t) int32 { /* test_syscall.c:326:12: */
+ if tsIsFailErrno(tls, ts+35926 /* "pread" */) != 0 {
return -1
}
- return int32((*(*func(*crt.TLS, int32, uintptr, size_t, off_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(9)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
+ return int32((*(*func(*libc.TLS, int32, uintptr, size_t, off_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(9)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
}
// A wrapper around pread64().
-func ts_pread64(tls *crt.TLS, fd int32, aBuf uintptr, nBuf size_t, off sqlite3_uint64) int32 { /* test_syscall.c:336:12: */
- if tsIsFailErrno(tls, ts+33832 /* "pread64" */) != 0 {
+func ts_pread64(tls *libc.TLS, fd int32, aBuf uintptr, nBuf size_t, off sqlite3_uint64) int32 { /* test_syscall.c:336:12: */
+ if tsIsFailErrno(tls, ts+35932 /* "pread64" */) != 0 {
return -1
}
- return int32((*(*func(*crt.TLS, int32, uintptr, size_t, sqlite3_uint64) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(10)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
+ return int32((*(*func(*libc.TLS, int32, uintptr, size_t, sqlite3_uint64) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(10)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
}
// A wrapper around write().
-func ts_write(tls *crt.TLS, fd int32, aBuf uintptr, nBuf size_t) int32 { /* test_syscall.c:346:12: */
- if tsIsFailErrno(tls, ts+22010 /* "write" */) != 0 {
- if tsErrno(tls, ts+22010 /* "write" */) == 4 {
- (*(*func(*crt.TLS, int32, uintptr, size_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(11)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, (nBuf / uint64(2)))
+func ts_write(tls *libc.TLS, fd int32, aBuf uintptr, nBuf size_t) int32 { /* test_syscall.c:346:12: */
+ if tsIsFailErrno(tls, ts+24109 /* "write" */) != 0 {
+ if tsErrno(tls, ts+24109 /* "write" */) == 4 {
+ (*(*func(*libc.TLS, int32, uintptr, size_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(11)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, (nBuf / uint64(2)))
}
return -1
}
- return int32((*(*func(*crt.TLS, int32, uintptr, size_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(11)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf))
+ return int32((*(*func(*libc.TLS, int32, uintptr, size_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(11)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf))
}
// A wrapper around pwrite().
-func ts_pwrite(tls *crt.TLS, fd int32, aBuf uintptr, nBuf size_t, off off_t) int32 { /* test_syscall.c:357:12: */
- if tsIsFailErrno(tls, ts+33840 /* "pwrite" */) != 0 {
+func ts_pwrite(tls *libc.TLS, fd int32, aBuf uintptr, nBuf size_t, off off_t) int32 { /* test_syscall.c:357:12: */
+ if tsIsFailErrno(tls, ts+35940 /* "pwrite" */) != 0 {
return -1
}
- return int32((*(*func(*crt.TLS, int32, uintptr, size_t, off_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(12)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
+ return int32((*(*func(*libc.TLS, int32, uintptr, size_t, off_t) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(12)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
}
// A wrapper around pwrite64().
-func ts_pwrite64(tls *crt.TLS, fd int32, aBuf uintptr, nBuf size_t, off sqlite3_uint64) int32 { /* test_syscall.c:367:12: */
- if tsIsFailErrno(tls, ts+33847 /* "pwrite64" */) != 0 {
+func ts_pwrite64(tls *libc.TLS, fd int32, aBuf uintptr, nBuf size_t, off sqlite3_uint64) int32 { /* test_syscall.c:367:12: */
+ if tsIsFailErrno(tls, ts+35947 /* "pwrite64" */) != 0 {
return -1
}
- return int32((*(*func(*crt.TLS, int32, uintptr, size_t, sqlite3_uint64) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(13)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
+ return int32((*(*func(*libc.TLS, int32, uintptr, size_t, sqlite3_uint64) ssize_t)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(13)*32 + 16 /* &.xOrig */))))(tls, fd, aBuf, nBuf, off))
}
// A wrapper around fchmod().
-func ts_fchmod(tls *crt.TLS, fd int32, mode mode_t) int32 { /* test_syscall.c:377:12: */
+func ts_fchmod(tls *libc.TLS, fd int32, mode mode_t) int32 { /* test_syscall.c:377:12: */
if tsIsFail(tls) != 0 {
return -1
}
- return (*(*func(*crt.TLS, int32, mode_t) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(14)*32 + 16 /* &.xOrig */))))(tls, fd, mode)
+ return (*(*func(*libc.TLS, int32, mode_t) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(14)*32 + 16 /* &.xOrig */))))(tls, fd, mode)
}
// A wrapper around fallocate().
@@ -68270,36 +73597,36 @@ func ts_fchmod(tls *crt.TLS, fd int32, mode mode_t) int32 { /* test_syscall.c:37
//
// posix_fallocate() returns zero on success, or an error number on
// failure. Note that errno is not set.
-func ts_fallocate(tls *crt.TLS, fd int32, off off_t, len off_t) int32 { /* test_syscall.c:393:12: */
+func ts_fallocate(tls *libc.TLS, fd int32, off off_t, len off_t) int32 { /* test_syscall.c:393:12: */
if tsIsFail(tls) != 0 {
- return tsErrno(tls, ts+33863 /* "fallocate" */)
+ return tsErrno(tls, ts+35963 /* "fallocate" */)
}
- return (*(*func(*crt.TLS, int32, off_t, off_t) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(15)*32 + 16 /* &.xOrig */))))(tls, fd, off, len)
+ return (*(*func(*libc.TLS, int32, off_t, off_t) int32)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(15)*32 + 16 /* &.xOrig */))))(tls, fd, off, len)
}
-func ts_mmap(tls *crt.TLS, pAddr uintptr, nByte size_t, prot int32, flags int32, fd int32, iOff off_t) uintptr { /* test_syscall.c:400:13: */
- if tsIsFailErrno(tls, ts+25793 /* "mmap" */) != 0 {
- return crt.UintptrFromInt32(-1)
+func ts_mmap(tls *libc.TLS, pAddr uintptr, nByte size_t, prot int32, flags int32, fd int32, iOff off_t) uintptr { /* test_syscall.c:400:13: */
+ if tsIsFailErrno(tls, ts+27885 /* "mmap" */) != 0 {
+ return libc.UintptrFromInt32(-1)
}
- return (*(*func(*crt.TLS, uintptr, size_t, int32, int32, int32, off_t) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(16)*32 + 16 /* &.xOrig */))))(tls, pAddr, nByte, prot, flags, fd, iOff)
+ return (*(*func(*libc.TLS, uintptr, size_t, int32, int32, int32, off_t) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(16)*32 + 16 /* &.xOrig */))))(tls, pAddr, nByte, prot, flags, fd, iOff)
}
-func ts_mremap(tls *crt.TLS, a uintptr, b size_t, c size_t, d int32, va uintptr) uintptr { /* test_syscall.c:414:13: */
+func ts_mremap(tls *libc.TLS, a uintptr, b size_t, c size_t, d int32, va uintptr) uintptr { /* test_syscall.c:414:13: */
bp := tls.Alloc(8)
defer tls.Free(8)
var ap va_list
_ = ap
var pArg uintptr
- if tsIsFailErrno(tls, ts+33873 /* "mremap" */) != 0 {
- return crt.UintptrFromInt32(-1)
+ if tsIsFailErrno(tls, ts+35973 /* "mremap" */) != 0 {
+ return libc.UintptrFromInt32(-1)
}
ap = va
- pArg = crt.VaUintptr(&ap)
- return (*(*func(*crt.TLS, uintptr, size_t, size_t, int32, uintptr) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(17)*32 + 16 /* &.xOrig */))))(tls, a, b, c, d, crt.VaList(bp, pArg))
+ pArg = libc.VaUintptr(&ap)
+ return (*(*func(*libc.TLS, uintptr, size_t, size_t, int32, uintptr) uintptr)(unsafe.Pointer((uintptr(unsafe.Pointer(&aSyscall)) + uintptr(17)*32 + 16 /* &.xOrig */))))(tls, a, b, c, d, libc.VaList(bp, pArg))
}
-func test_syscall_install(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:425:26: */
+func test_syscall_install(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:425:26: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -68310,7 +73637,7 @@ func test_syscall_install(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// var apElem uintptr at bp+8, 8
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+33880 /* "SYSCALL-LIST" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+35980 /* "SYSCALL-LIST" */)
return 1
}
if tcl.XTcl_ListObjGetElements(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp /* &nElem */, bp+8 /* &apElem */) != 0 {
@@ -68322,13 +73649,13 @@ func test_syscall_install(tls *crt.TLS, clientData uintptr, interp uintptr, objc
// var iCall int32 at bp+16, 4
var rc int32 = tcl.XTcl_GetIndexFromObjStruct(tls, interp,
- *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8 /* apElem */)) + uintptr(i)*8)), uintptr(unsafe.Pointer(&aSyscall)), int32(unsafe.Sizeof(TestSyscallArray{})), ts+33893 /* "system-call" */, 0, bp+16 /* &iCall */)
+ *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 8 /* apElem */)) + uintptr(i)*8)), uintptr(unsafe.Pointer(&aSyscall)), int32(unsafe.Sizeof(TestSyscallArray{})), ts+35993 /* "system-call" */, 0, bp+16 /* &iCall */)
if rc != 0 {
return rc
}
if aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FxOrig == uintptr(0) {
- aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FxOrig = (*(*func(*crt.TLS, uintptr, uintptr) sqlite3_syscall_ptr)(unsafe.Pointer((pVfs + 152 /* &.xGetSystemCall */))))(tls, pVfs, aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FzName)
- (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FzName, aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FxTest)
+ aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FxOrig = (*(*func(*libc.TLS, uintptr, uintptr) sqlite3_syscall_ptr)(unsafe.Pointer((pVfs + 152 /* &.xGetSystemCall */))))(tls, pVfs, aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FzName)
+ (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FzName, aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].FxTest)
}
aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].Fcustom_errno = aSyscall[*(*int32)(unsafe.Pointer(bp + 16 /* iCall */))].Fdefault_errno
}
@@ -68336,7 +73663,7 @@ func test_syscall_install(tls *crt.TLS, clientData uintptr, interp uintptr, objc
return 0
}
-func test_syscall_uninstall(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:461:26: */
+func test_syscall_uninstall(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:461:26: */
var pVfs uintptr
var i int32
@@ -68348,14 +73675,14 @@ func test_syscall_uninstall(tls *crt.TLS, clientData uintptr, interp uintptr, ob
pVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
for i = 0; aSyscall[i].FzName != 0; i++ {
if aSyscall[i].FxOrig != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, aSyscall[i].FzName, uintptr(0))
+ (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, aSyscall[i].FzName, uintptr(0))
aSyscall[i].FxOrig = uintptr(0)
}
}
return 0
}
-func test_syscall_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:485:26: */
+func test_syscall_reset(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:485:26: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -68370,7 +73697,7 @@ func test_syscall_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
pVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
if objc == 2 {
- rc = (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, uintptr(0), uintptr(0))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, uintptr(0), uintptr(0))
for i = 0; aSyscall[i].FzName != 0; i++ {
aSyscall[i].FxOrig = uintptr(0)
}
@@ -68378,12 +73705,12 @@ func test_syscall_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// var nFunc int32 at bp, 4
var zFunc uintptr = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp /* &nFunc */)
- rc = (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), uintptr(0))
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), uintptr(0))
for i = 0; (rc == 0) && (aSyscall[i].FzName != 0); i++ {
- if crt.Xstrlen(tls, aSyscall[i].FzName) != size_t(*(*int32)(unsafe.Pointer(bp /* nFunc */))) {
+ if libc.Xstrlen(tls, aSyscall[i].FzName) != size_t(*(*int32)(unsafe.Pointer(bp /* nFunc */))) {
continue
}
- if crt.Xmemcmp(tls, aSyscall[i].FzName, zFunc, uint64(*(*int32)(unsafe.Pointer(bp /* nFunc */)))) != 0 {
+ if libc.Xmemcmp(tls, aSyscall[i].FzName, zFunc, uint64(*(*int32)(unsafe.Pointer(bp /* nFunc */)))) != 0 {
continue
}
aSyscall[i].FxOrig = uintptr(0)
@@ -68398,7 +73725,7 @@ func test_syscall_reset(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
return 0
}
-func test_syscall_exists(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:523:26: */
+func test_syscall_exists(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:523:26: */
var pVfs uintptr
var x sqlite3_syscall_ptr
@@ -68408,13 +73735,13 @@ func test_syscall_exists(tls *crt.TLS, clientData uintptr, interp uintptr, objc
}
pVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
- x = (*(*func(*crt.TLS, uintptr, uintptr) sqlite3_syscall_ptr)(unsafe.Pointer((pVfs + 152 /* &.xGetSystemCall */))))(tls, pVfs, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))))
+ x = (*(*func(*libc.TLS, uintptr, uintptr) sqlite3_syscall_ptr)(unsafe.Pointer((pVfs + 152 /* &.xGetSystemCall */))))(tls, pVfs, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))))
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (crt.Bool32((crt.Bool32(x != uintptr(0))) != 0))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, (libc.Bool32((libc.Bool32(x != uintptr(0))) != 0))))
return 0
}
-func test_syscall_fault(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:544:26: */
+func test_syscall_fault(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:544:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -68422,7 +73749,7 @@ func test_syscall_fault(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
*(*int32)(unsafe.Pointer(bp + 4 /* bPersist */)) = 0
if (objc != 2) && (objc != 4) {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+33905 /* "?COUNT PERSIST?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+36005 /* "?COUNT PERSIST?" */)
return 1
}
@@ -68440,7 +73767,7 @@ func test_syscall_fault(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
return 0
}
-func test_syscall_errno(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:573:26: */
+func test_syscall_errno(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:573:26: */
bp := tls.Alloc(204)
defer tls.Free(204)
@@ -68451,32 +73778,32 @@ func test_syscall_errno(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var rc int32
*(*[12]Errno)(unsafe.Pointer(bp + 8 /* aErrno */)) = [12]Errno{
- {Fz: ts + 33921 /* "EACCES" */, Fi: 13},
- {Fz: ts + 33928 /* "EINTR" */, Fi: 4},
- {Fz: ts + 33934 /* "EIO" */, Fi: 5},
- {Fz: ts + 33938 /* "EOVERFLOW" */, Fi: 75},
- {Fz: ts + 33948 /* "ENOMEM" */, Fi: 12},
- {Fz: ts + 33955 /* "EAGAIN" */, Fi: 11},
- {Fz: ts + 33962 /* "ETIMEDOUT" */, Fi: 110},
- {Fz: ts + 33972 /* "EBUSY" */, Fi: 16},
- {Fz: ts + 33978 /* "EPERM" */, Fi: 1},
- {Fz: ts + 33984 /* "EDEADLK" */, Fi: 35},
- {Fz: ts + 33992 /* "ENOLCK" */, Fi: 37},
+ {Fz: ts + 36021 /* "EACCES" */, Fi: 13},
+ {Fz: ts + 36028 /* "EINTR" */, Fi: 4},
+ {Fz: ts + 36034 /* "EIO" */, Fi: 5},
+ {Fz: ts + 36038 /* "EOVERFLOW" */, Fi: 75},
+ {Fz: ts + 36048 /* "ENOMEM" */, Fi: 12},
+ {Fz: ts + 36055 /* "EAGAIN" */, Fi: 11},
+ {Fz: ts + 36062 /* "ETIMEDOUT" */, Fi: 110},
+ {Fz: ts + 36072 /* "EBUSY" */, Fi: 16},
+ {Fz: ts + 36078 /* "EPERM" */, Fi: 1},
+ {Fz: ts + 36084 /* "EDEADLK" */, Fi: 35},
+ {Fz: ts + 36092 /* "ENOLCK" */, Fi: 37},
{Fz: uintptr(0), Fi: 0},
}
if objc != 4 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+33999 /* "SYSCALL ERRNO" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+36099 /* "SYSCALL ERRNO" */)
return 1
}
rc = tcl.XTcl_GetIndexFromObjStruct(tls, interp,
- *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(unsafe.Pointer(&aSyscall)), int32(unsafe.Sizeof(TestSyscallArray{})), ts+33893 /* "system-call" */, 0, bp /* &iCall */)
+ *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), uintptr(unsafe.Pointer(&aSyscall)), int32(unsafe.Sizeof(TestSyscallArray{})), ts+35993 /* "system-call" */, 0, bp /* &iCall */)
if rc != 0 {
return rc
}
rc = tcl.XTcl_GetIndexFromObjStruct(tls, interp,
- *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+8 /* &aErrno[0] */, int32(unsafe.Sizeof(Errno{})), ts+34013 /* "errno" */, 0, bp+200 /* &iErrno */)
+ *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+8 /* &aErrno[0] */, int32(unsafe.Sizeof(Errno{})), ts+36113 /* "errno" */, 0, bp+200 /* &iErrno */)
if rc != 0 {
return rc
}
@@ -68491,7 +73818,7 @@ type Errno = struct {
_ [4]byte
}
-func test_syscall_list(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:619:26: */
+func test_syscall_list(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:619:26: */
var zSys uintptr
var pVfs uintptr
var pList uintptr
@@ -68504,21 +73831,21 @@ func test_syscall_list(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
pVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
pList = tcl.XTcl_NewObj(tls)
(*Tcl_Obj)(unsafe.Pointer(pList)).FrefCount++
- for zSys = (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 160 /* &.xNextSystemCall */))))(tls, pVfs, uintptr(0)); zSys != uintptr(0); zSys = (*(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 160 /* &.xNextSystemCall */))))(tls, pVfs, zSys) {
+ for zSys = (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 160 /* &.xNextSystemCall */))))(tls, pVfs, uintptr(0)); zSys != uintptr(0); zSys = (*(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer((pVfs + 160 /* &.xNextSystemCall */))))(tls, pVfs, zSys) {
tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewStringObj(tls, zSys, -1))
}
tcl.XTcl_SetObjResult(tls, interp, pList)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pList
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
return 0
}
-func test_syscall_defaultvfs(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:649:26: */
+func test_syscall_defaultvfs(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:649:26: */
var pVfs uintptr
if objc != 2 {
@@ -68531,11 +73858,11 @@ func test_syscall_defaultvfs(tls *crt.TLS, clientData uintptr, interp uintptr, o
return 0
}
-func ts_getpagesize(tls *crt.TLS) int32 { /* test_syscall.c:667:12: */
+func ts_getpagesize(tls *libc.TLS) int32 { /* test_syscall.c:667:12: */
return gSyscall.Fpgsz
}
-func test_syscall_pagesize(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:671:26: */
+func test_syscall_pagesize(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:671:26: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -68543,7 +73870,7 @@ func test_syscall_pagesize(tls *crt.TLS, clientData uintptr, interp uintptr, obj
// var pgsz int32 at bp+16, 4
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+34019 /* "PGSZ" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+36119 /* "PGSZ" */)
return 1
}
if tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+16 /* &pgsz */) != 0 {
@@ -68552,53 +73879,53 @@ func test_syscall_pagesize(tls *crt.TLS, clientData uintptr, interp uintptr, obj
if *(*int32)(unsafe.Pointer(bp + 16 /* pgsz */)) < 0 {
if gSyscall.Forig_getpagesize != 0 {
- (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, ts+34024 /* "getpagesize" */, gSyscall.Forig_getpagesize)
+ (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls, pVfs, ts+36124 /* "getpagesize" */, gSyscall.Forig_getpagesize)
}
} else {
if (*(*int32)(unsafe.Pointer(bp + 16 /* pgsz */)) < 512) || ((*(*int32)(unsafe.Pointer(bp + 16 /* pgsz */)) & (*(*int32)(unsafe.Pointer(bp + 16 /* pgsz */)) - 1)) != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+34036 /* "pgsz out of rang..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+36136 /* "pgsz out of rang..." */, 0))
return 1
}
- gSyscall.Forig_getpagesize = (*(*func(*crt.TLS, uintptr, uintptr) sqlite3_syscall_ptr)(unsafe.Pointer((pVfs + 152 /* &.xGetSystemCall */))))(tls, pVfs, ts+34024 /* "getpagesize" */)
+ gSyscall.Forig_getpagesize = (*(*func(*libc.TLS, uintptr, uintptr) sqlite3_syscall_ptr)(unsafe.Pointer((pVfs + 152 /* &.xGetSystemCall */))))(tls, pVfs, ts+36124 /* "getpagesize" */)
gSyscall.Fpgsz = *(*int32)(unsafe.Pointer(bp + 16 /* pgsz */))
- (*(*func(*crt.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls,
- pVfs, ts+34024 /* "getpagesize" */, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS) int32 }{ts_getpagesize})))
+ (*(*func(*libc.TLS, uintptr, uintptr, sqlite3_syscall_ptr) int32)(unsafe.Pointer((pVfs + 144 /* &.xSetSystemCall */))))(tls,
+ pVfs, ts+36124 /* "getpagesize" */, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS) int32 }{ts_getpagesize})))
}
return 0
}
-func test_syscall(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:706:26: */
+func test_syscall(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_syscall.c:706:26: */
bp := tls.Alloc(180)
defer tls.Free(180)
*(*[10]SyscallCmd)(unsafe.Pointer(bp + 16 /* aCmd */)) = [10]SyscallCmd{
- {FzName: ts + 34054 /* "fault" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36154 /* "fault" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_fault}))},
- {FzName: ts + 34060 /* "install" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36160 /* "install" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_install}))},
- {FzName: ts + 34068 /* "uninstall" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36168 /* "uninstall" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_uninstall}))},
- {FzName: ts + 5916 /* "reset" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 7201 /* "reset" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_reset}))},
- {FzName: ts + 34013 /* "errno" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36113 /* "errno" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_errno}))},
- {FzName: ts + 11378 /* "exists" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 13018 /* "exists" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_exists}))},
- {FzName: ts + 34078 /* "list" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36178 /* "list" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_list}))},
- {FzName: ts + 34083 /* "defaultvfs" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36183 /* "defaultvfs" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_defaultvfs}))},
- {FzName: ts + 34094 /* "pagesize" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36194 /* "pagesize" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall_pagesize}))},
{FzName: uintptr(0), FxCmd: uintptr(0)},
}
@@ -68608,11 +73935,11 @@ func test_syscall(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
var pVfs uintptr = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+29799 /* "SUB-COMMAND ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31891 /* "SUB-COMMAND ..." */)
return 1
}
if ((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FiVersion < 3) || ((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FxSetSystemCall == uintptr(0)) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+34103 /* "VFS does not sup..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+36203 /* "VFS does not sup..." */, 0))
rc = 1
} else {
rc = tcl.XTcl_GetIndexFromObjStruct(tls, interp,
@@ -68621,7 +73948,7 @@ func test_syscall(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32,
if rc != 0 {
return rc
}
- return (*(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer((bp + 16 /* &aCmd */ + uintptr(*(*int32)(unsafe.Pointer(bp + 176 /* iCmd */)))*16 + 8 /* &.xCmd */))))(tls, clientData, interp, objc, objv)
+ return (*(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer((bp + 16 /* &aCmd */ + uintptr(*(*int32)(unsafe.Pointer(bp + 176 /* iCmd */)))*16 + 8 /* &.xCmd */))))(tls, clientData, interp, objc, objv)
}
type SyscallCmd = struct {
@@ -68629,13 +73956,13 @@ type SyscallCmd = struct {
FxCmd uintptr
}
-func SqlitetestSyscall_Init(tls *crt.TLS, interp uintptr) int32 { /* test_syscall.c:747:5: */
+func SqlitetestSyscall_Init(tls *libc.TLS, interp uintptr) int32 { /* test_syscall.c:747:5: */
bp := tls.Alloc(16)
defer tls.Free(16)
*(*[1]SyscallCmd)(unsafe.Pointer(bp /* aCmd */)) = [1]SyscallCmd{
- {FzName: ts + 34139 /* "test_syscall" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ {FzName: ts + 36239 /* "test_syscall" */, FxCmd: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_syscall}))},
}
var i int32
@@ -68657,7 +73984,7 @@ func SqlitetestSyscall_Init(tls *crt.TLS, interp uintptr) int32 { /* test_syscal
//
// * If SQLITE_TEST is set, the various test interfaces used by the Tcl
// test suite.
-func sqlite3TestInit(tls *crt.TLS, interp uintptr) uintptr { /* test_tclsh.c:58:12: */
+func sqlite3TestInit(tls *libc.TLS, interp uintptr) uintptr { /* test_tclsh.c:58:12: */
bp := tls.Alloc(80)
defer tls.Free(80)
@@ -68668,12 +73995,12 @@ func sqlite3TestInit(tls *crt.TLS, interp uintptr) uintptr { /* test_tclsh.c:58:
{
// var x rlimit at bp, 16
- crt.Xgetrlimit(tls, RLIMIT_CORE, bp /* &x */)
+ libc.Xgetrlimit(tls, RLIMIT_CORE, bp /* &x */)
(*rlimit)(unsafe.Pointer(bp /* &x */)).Frlim_cur = (*rlimit)(unsafe.Pointer(bp /* &x */)).Frlim_max
- crt.Xsetrlimit(tls, RLIMIT_CORE, bp /* &x */)
+ libc.Xsetrlimit(tls, RLIMIT_CORE, bp /* &x */)
}
- if tcl.XTcl_GetCommandInfo(tls, interp, ts+12119 /* "sqlite3" */, bp+16 /* &cmdInfo */) == 0 {
+ if tcl.XTcl_GetCommandInfo(tls, interp, ts+13769 /* "sqlite3" */, bp+16 /* &cmdInfo */) == 0 {
Sqlite3_Init(tls, interp)
}
Md5_Init(tls, interp)
@@ -68719,17 +74046,17 @@ func sqlite3TestInit(tls *crt.TLS, interp uintptr) uintptr { /* test_tclsh.c:58:
Sqlitetestvdbecov_Init(tls, interp)
tcl.XTcl_CreateObjCommand(tls,
- interp, ts+34152 /* "load_testfixture..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ interp, ts+36252 /* "load_testfixture..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{load_testfixture_extensions})), uintptr(0), uintptr(0))
return uintptr(0)
}
// tclcmd: load_testfixture_extensions
-func load_testfixture_extensions(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_tclsh.c:185:26: */
+func load_testfixture_extensions(tls *libc.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_tclsh.c:185:26: */
var slave uintptr
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+34180 /* "SLAVE" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+36280 /* "SLAVE" */)
return 1
}
@@ -68853,7 +74180,7 @@ type tclvar_cursor1 = struct {
type tclvar_cursor = tclvar_cursor1 /* test_tclvar.c:59:30 */
// Methods for the tclvar module
-func tclvarConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_tclvar.c:80:12: */
+func tclvarConnect(tls *libc.TLS, db uintptr, pAux uintptr, argc int32, argv uintptr, ppVtab uintptr, pzErr uintptr) int32 { /* test_tclvar.c:80:12: */
var pVtab uintptr
pVtab = sqlite3.Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(tclvar_vtab{})))
if pVtab == uintptr(0) {
@@ -68865,11 +74192,11 @@ func tclvarConnect(tls *crt.TLS, db uintptr, pAux uintptr, argc int32, argv uint
return 0
}
-var zSchema = *(*[100]int8)(unsafe.Pointer(ts + 34186 /* "CREATE TABLE x( ..." */)) /* test_tclvar.c:88:21 */
+var zSchema = *(*[100]int8)(unsafe.Pointer(ts + 36286 /* "CREATE TABLE x( ..." */)) /* test_tclvar.c:88:21 */
// Note that for this virtual table, the xCreate and xConnect
// methods are identical.
-func tclvarDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_tclvar.c:105:12: */
+func tclvarDisconnect(tls *libc.TLS, pVtab uintptr) int32 { /* test_tclvar.c:105:12: */
sqlite3.Xsqlite3_free(tls, pVtab)
return 0
}
@@ -68877,7 +74204,7 @@ func tclvarDisconnect(tls *crt.TLS, pVtab uintptr) int32 { /* test_tclvar.c:105:
// The xDisconnect and xDestroy methods are also the same
// Open a new tclvar cursor.
-func tclvarOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_tclvar.c:114:12: */
+func tclvarOpen(tls *libc.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_tclvar.c:114:12: */
var pCur uintptr
pCur = sqlite3.Xsqlite3MallocZero(tls, uint64(unsafe.Sizeof(tclvar_cursor{})))
*(*uintptr)(unsafe.Pointer(ppCursor)) = (pCur /* &.base */)
@@ -68885,12 +74212,12 @@ func tclvarOpen(tls *crt.TLS, pVTab uintptr, ppCursor uintptr) int32 { /* test_t
}
// Close a tclvar cursor.
-func tclvarClose(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:124:12: */
+func tclvarClose(tls *libc.TLS, cur uintptr) int32 { /* test_tclvar.c:124:12: */
var pCur uintptr = cur
if (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList1 != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList1
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -68898,7 +74225,7 @@ func tclvarClose(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:124:12: */
if (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2 != 0 {
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -68908,7 +74235,7 @@ func tclvarClose(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:124:12: */
}
// Returns 1 if data is ready, or 0 if not.
-func next2(tls *crt.TLS, interp uintptr, pCur uintptr, pObj uintptr) int32 { /* test_tclvar.c:139:12: */
+func next2(tls *libc.TLS, interp uintptr, pCur uintptr, pObj uintptr) int32 { /* test_tclvar.c:139:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -68916,13 +74243,13 @@ func next2(tls *crt.TLS, interp uintptr, pCur uintptr, pObj uintptr) int32 { /*
if pObj != 0 {
if !(int32((*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2) != 0) {
- p = tcl.XTcl_NewStringObj(tls, ts+34286 /* "array names" */, -1)
+ p = tcl.XTcl_NewStringObj(tls, ts+36386 /* "array names" */, -1)
(*Tcl_Obj)(unsafe.Pointer(p)).FrefCount++
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), p, pObj)
tcl.XTcl_EvalObjEx(tls, interp, p, 0x020000)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = p
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -68935,7 +74262,7 @@ func next2(tls *crt.TLS, interp uintptr, pCur uintptr, pObj uintptr) int32 { /*
if (*tclvar_cursor)(unsafe.Pointer(pCur)).Fi2 >= *(*int32)(unsafe.Pointer(bp /* n */)) {
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -68949,7 +74276,7 @@ func next2(tls *crt.TLS, interp uintptr, pCur uintptr, pObj uintptr) int32 { /*
return 1
}
-func tclvarNext(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:168:12: */
+func tclvarNext(tls *libc.TLS, cur uintptr) int32 { /* test_tclvar.c:168:12: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -68973,10 +74300,10 @@ func tclvarNext(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:168:12: */
return 0
}
-func tclvarFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_tclvar.c:188:12: */
+func tclvarFilter(tls *libc.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintptr, argc int32, argv uintptr) int32 { /* test_tclvar.c:188:12: */
var pCur uintptr = pVtabCursor
var interp uintptr = (*tclvar_vtab)(unsafe.Pointer((*sqlite3_vtab_cursor)(unsafe.Pointer(pVtabCursor)).FpVtab)).Finterp
- var p uintptr = tcl.XTcl_NewStringObj(tls, ts+34298 /* "tclvar_filter_cm..." */, -1)
+ var p uintptr = tcl.XTcl_NewStringObj(tls, ts+36398 /* "tclvar_filter_cm..." */, -1)
var zEq uintptr = ts + 488 /* "" */
var zMatch uintptr = ts + 488 /* "" */
@@ -69017,7 +74344,7 @@ func tclvarFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
if (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList1 != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList1
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -69025,7 +74352,7 @@ func tclvarFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
if (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2 != 0 {
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -69038,14 +74365,14 @@ func tclvarFilter(tls *crt.TLS, pVtabCursor uintptr, idxNum int32, idxStr uintpt
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = p
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
return tclvarNext(tls, pVtabCursor)
}
-func tclvarColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_tclvar.c:250:12: */
+func tclvarColumn(tls *libc.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* test_tclvar.c:250:12: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -69067,12 +74394,12 @@ func tclvarColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
switch i {
case 0:
{
- sqlite3.Xsqlite3_result_text(tls, ctx, z1, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, z1, -1, libc.UintptrFromInt32(-1))
break
}
case 1:
{
- sqlite3.Xsqlite3_result_text(tls, ctx, z2, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, z2, -1, libc.UintptrFromInt32(-1))
break
}
case 2:
@@ -69083,17 +74410,17 @@ func tclvarColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
}
return uintptr(0)
}(), 1)
- sqlite3.Xsqlite3_result_text(tls, ctx, tcl.XTcl_GetString(tls, pVal), -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, tcl.XTcl_GetString(tls, pVal), -1, libc.UintptrFromInt32(-1))
break
}
case 3:
{
var z3 uintptr
if *(*uintptr)(unsafe.Pointer(bp + 24 /* p2 */)) != 0 {
- z3 = sqlite3.Xsqlite3_mprintf(tls, ts+34316 /* "%s(%s)" */, crt.VaList(bp, z1, z2))
- sqlite3.Xsqlite3_result_text(tls, ctx, z3, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
+ z3 = sqlite3.Xsqlite3_mprintf(tls, ts+36416 /* "%s(%s)" */, libc.VaList(bp, z1, z2))
+ sqlite3.Xsqlite3_result_text(tls, ctx, z3, -1, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sqlite3.Xsqlite3_free})))
} else {
- sqlite3.Xsqlite3_result_text(tls, ctx, z1, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, z1, -1, libc.UintptrFromInt32(-1))
}
break
}
@@ -69101,12 +74428,12 @@ func tclvarColumn(tls *crt.TLS, cur uintptr, ctx uintptr, i int32) int32 { /* te
return 0
}
-func tclvarRowid(tls *crt.TLS, cur uintptr, pRowid uintptr) int32 { /* test_tclvar.c:292:12: */
+func tclvarRowid(tls *libc.TLS, cur uintptr, pRowid uintptr) int32 { /* test_tclvar.c:292:12: */
*(*sqlite_int64)(unsafe.Pointer(pRowid)) = int64(0)
return 0
}
-func tclvarEof(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:297:12: */
+func tclvarEof(tls *libc.TLS, cur uintptr) int32 { /* test_tclvar.c:297:12: */
var pCur uintptr = cur
return func() int32 {
if (*tclvar_cursor)(unsafe.Pointer(pCur)).FpList2 != 0 {
@@ -69122,7 +74449,7 @@ func tclvarEof(tls *crt.TLS, cur uintptr) int32 { /* test_tclvar.c:297:12: */
//
// There is guaranteed to be enough room in the buffer pointed to by zStr
// for the new character and nul-terminator.
-func tclvarAddToIdxstr(tls *crt.TLS, zStr uintptr, x int8) int32 { /* test_tclvar.c:310:12: */
+func tclvarAddToIdxstr(tls *libc.TLS, zStr uintptr, x int8) int32 { /* test_tclvar.c:310:12: */
var i int32
for i = 0; *(*int8)(unsafe.Pointer(zStr + uintptr(i))) != 0; i++ {
if int32(*(*int8)(unsafe.Pointer(zStr + uintptr(i)))) == int32(x) {
@@ -69136,7 +74463,7 @@ func tclvarAddToIdxstr(tls *crt.TLS, zStr uintptr, x int8) int32 { /* test_tclva
// Return true if variable $::tclvar_set_omit exists and is set to true.
// False otherwise.
-func tclvarSetOmit(tls *crt.TLS, interp uintptr) int32 { /* test_tclvar.c:324:12: */
+func tclvarSetOmit(tls *libc.TLS, interp uintptr) int32 { /* test_tclvar.c:324:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -69144,12 +74471,12 @@ func tclvarSetOmit(tls *crt.TLS, interp uintptr) int32 { /* test_tclvar.c:324:12
*(*int32)(unsafe.Pointer(bp /* res */)) = 0
var pRes uintptr
rc = tcl.XTcl_Eval(tls, interp,
- ts+34323 /* "expr {[info exis..." */)
+ ts+36423 /* "expr {[info exis..." */)
if rc == 0 {
pRes = tcl.XTcl_GetObjResult(tls, interp)
rc = tcl.XTcl_GetBooleanFromObj(tls, uintptr(0), pRes, bp /* &res */)
}
- return (crt.Bool32((rc == 0) && (*(*int32)(unsafe.Pointer(bp /* res */)) != 0)))
+ return (libc.Bool32((rc == 0) && (*(*int32)(unsafe.Pointer(bp /* res */)) != 0)))
}
// The xBestIndex() method. This virtual table supports the following
@@ -69163,7 +74490,7 @@ func tclvarSetOmit(tls *crt.TLS, interp uintptr) int32 { /* test_tclvar.c:324:12
//
// For each constraint present, the corresponding TCLVAR_XXX character is
// appended to the idxStr value.
-func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_tclvar.c:351:12: */
+func tclvarBestIndex(tls *libc.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* test_tclvar.c:351:12: */
var pTab uintptr = tab
var ii int32
var zStr uintptr = sqlite3.Xsqlite3_malloc(tls, 32)
@@ -69183,7 +74510,7 @@ func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// name = ?
if (int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fop) == 2) && ((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).FiColumn == 0) {
if 0 == tclvarAddToIdxstr(tls, zStr, int8('e')) {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = crt.PreIncInt32(&iStr, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = libc.PreIncInt32(&iStr, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).Fomit = uint8(0)
}
}
@@ -69191,7 +74518,7 @@ func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// name MATCH ?
if (int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fop) == 64) && ((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).FiColumn == 0) {
if 0 == tclvarAddToIdxstr(tls, zStr, int8('m')) {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = crt.PreIncInt32(&iStr, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = libc.PreIncInt32(&iStr, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).Fomit = uint8(1)
}
}
@@ -69199,7 +74526,7 @@ func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// value GLOB ?
if (int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fop) == 66) && ((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).FiColumn == 2) {
if 0 == tclvarAddToIdxstr(tls, zStr, int8('g')) {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = crt.PreIncInt32(&iStr, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = libc.PreIncInt32(&iStr, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).Fomit = uint8(tclvarSetOmit(tls, (*tclvar_vtab)(unsafe.Pointer(pTab)).Finterp))
}
}
@@ -69207,7 +74534,7 @@ func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// value REGEXP ?
if (int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fop) == 67) && ((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).FiColumn == 2) {
if 0 == tclvarAddToIdxstr(tls, zStr, int8('r')) {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = crt.PreIncInt32(&iStr, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = libc.PreIncInt32(&iStr, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).Fomit = uint8(tclvarSetOmit(tls, (*tclvar_vtab)(unsafe.Pointer(pTab)).Finterp))
}
}
@@ -69215,7 +74542,7 @@ func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
// value LIKE ?
if (int32((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).Fop) == 65) && ((*sqlite3_index_constraint)(unsafe.Pointer(pCons)).FiColumn == 2) {
if 0 == tclvarAddToIdxstr(tls, zStr, int8('l')) {
- (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = crt.PreIncInt32(&iStr, 1)
+ (*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).FargvIndex = libc.PreIncInt32(&iStr, 1)
(*sqlite3_index_constraint_usage)(unsafe.Pointer(pUsage)).Fomit = uint8(tclvarSetOmit(tls, (*tclvar_vtab)(unsafe.Pointer(pTab)).Finterp))
}
}
@@ -69228,7 +74555,7 @@ func tclvarBestIndex(tls *crt.TLS, tab uintptr, pIdxInfo uintptr) int32 { /* tes
}
// Invoked for any UPDATE, INSERT, or DELETE against a tclvar table
-func tclvarUpdate(tls *crt.TLS, tab uintptr, argc int32, argv uintptr, pRowid uintptr) int32 { /* test_tclvar.c:416:12: */
+func tclvarUpdate(tls *libc.TLS, tab uintptr, argc int32, argv uintptr, pRowid uintptr) int32 { /* test_tclvar.c:416:12: */
var pTab uintptr = tab
if argc == 1 {
// A DELETE operation. The variable to be deleted is stored in argv[0]
@@ -69241,7 +74568,7 @@ func tclvarUpdate(tls *crt.TLS, tab uintptr, argc int32, argv uintptr, pRowid ui
var zValue uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)))
var zName uintptr
if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(5)*8))) != 3 {
- (*sqlite3_vtab)(unsafe.Pointer(tab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+34384 /* "the 'fullname' c..." */, 0)
+ (*sqlite3_vtab)(unsafe.Pointer(tab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+36484 /* "the 'fullname' c..." */, 0)
return 1
}
zName = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(5)*8)))
@@ -69259,7 +74586,7 @@ func tclvarUpdate(tls *crt.TLS, tab uintptr, argc int32, argv uintptr, pRowid ui
var zNewName uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)))
var zValue uintptr = sqlite3.Xsqlite3_value_text(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(4)*8)))
- if (crt.Xstrcmp(tls, zOldName, zNewName) != 0) || (zValue == uintptr(0)) {
+ if (libc.Xstrcmp(tls, zOldName, zNewName) != 0) || (zValue == uintptr(0)) {
tcl.XTcl_UnsetVar2(tls, (*tclvar_vtab)(unsafe.Pointer(pTab)).Finterp, zOldName, uintptr(0), 1)
}
if zValue != uintptr(0) {
@@ -69267,7 +74594,7 @@ func tclvarUpdate(tls *crt.TLS, tab uintptr, argc int32, argv uintptr, pRowid ui
}
return 0
}
- (*sqlite3_vtab)(unsafe.Pointer(tab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+34419 /* "prohibited TCL v..." */, 0)
+ (*sqlite3_vtab)(unsafe.Pointer(tab)).FzErrMsg = sqlite3.Xsqlite3_mprintf(tls, ts+36519 /* "prohibited TCL v..." */, 0)
return 1
}
@@ -69291,7 +74618,7 @@ uintptr(0), // xRename
} /* test_tclvar.c:469:23 */
// Register the echo virtual table module.
-func register_tclvar_module(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_tclvar.c:500:26: */
+func register_tclvar_module(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_tclvar.c:500:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -69305,42 +74632,35 @@ func register_tclvar_module(tls *crt.TLS, clientData ClientData, interp uintptr,
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0 {
return 1
}
- sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+26603 /* "tclvar" */, uintptr(unsafe.Pointer(&tclvarModule)), interp)
+ sqlite3.Xsqlite3_create_module(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+28695 /* "tclvar" */, uintptr(unsafe.Pointer(&tclvarModule)), interp)
rc = tcl.XTcl_Eval(tls, interp,
- ts+34450 /* "proc like {patte..." */)
+ ts+36550 /* "proc like {patte..." */)
return rc
}
// Register commands with the TCL interpreter.
-func Sqlitetesttclvar_Init(tls *crt.TLS, interp uintptr) int32 { /* test_tclvar.c:546:5: */
+func Sqlitetesttclvar_Init(tls *libc.TLS, interp uintptr) int32 { /* test_tclvar.c:546:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd12)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd13)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{}))); i++ {
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd12[i].FzName,
- aObjCmd12[i].FxProc, aObjCmd12[i].FclientData, uintptr(0))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd13[i].FzName,
+ aObjCmd13[i].FxProc, aObjCmd13[i].FclientData, uintptr(0))
}
return 0
}
-var aObjCmd12 = [1]struct {
+var aObjCmd13 = [1]struct {
FzName uintptr
FxProc uintptr
FclientData uintptr
}{
- {FzName: ts + 34986 /* "register_tclvar_..." */, FxProc: 0, FclientData: uintptr(0)},
+ {FzName: ts + 37086 /* "register_tclvar_..." */, FxProc: 0, FclientData: uintptr(0)},
} /* test_tclvar.c:552:5 */
-// Prior to Issue 6, the Single Unix Specification required these
-// prototypes to appear in this header. They are also found in
-// <stdio.h>.
-
-// Unix98 requires this function to be declared here. In other
-// standards it is in <pthread.h>.
-
// Define some macros helping to catch buffer overflows.
// One of these is allocated for each thread created by [sqlthread spawn].
@@ -69351,13 +74671,6 @@ type SqlThread1 = struct {
FzVarname uintptr
}
-// Prior to Issue 6, the Single Unix Specification required these
-// prototypes to appear in this header. They are also found in
-// <stdio.h>.
-
-// Unix98 requires this function to be declared here. In other
-// standards it is in <pthread.h>.
-
// Define some macros helping to catch buffer overflows.
// One of these is allocated for each thread created by [sqlthread spawn].
@@ -69382,7 +74695,7 @@ type EvalEvent1 = struct {
type EvalEvent = EvalEvent1 /* test_thread.c:51:26 */
// Handler for events of type EvalEvent.
-func tclScriptEvent(tls *crt.TLS, evPtr uintptr, flags int32) int32 { /* test_thread.c:79:26: */
+func tclScriptEvent(tls *libc.TLS, evPtr uintptr, flags int32) int32 { /* test_thread.c:79:26: */
var rc int32
var p uintptr = evPtr
rc = tcl.XTcl_Eval(tls, (*EvalEvent)(unsafe.Pointer(p)).Finterp, (*EvalEvent)(unsafe.Pointer(p)).FzScript)
@@ -69395,7 +74708,7 @@ func tclScriptEvent(tls *crt.TLS, evPtr uintptr, flags int32) int32 { /* test_th
// Register an EvalEvent to evaluate the script pScript in the
// parent interpreter/thread of SqlThread p.
-func postToParent(tls *crt.TLS, p uintptr, pScript uintptr) { /* test_thread.c:94:13: */
+func postToParent(tls *libc.TLS, p uintptr, pScript uintptr) { /* test_thread.c:94:13: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -69407,10 +74720,10 @@ func postToParent(tls *crt.TLS, p uintptr, pScript uintptr) { /* test_thread.c:9
pEvent = tcl.XTcl_Alloc(tls, (uint32((uint64(unsafe.Sizeof(EvalEvent{})) + uint64(*(*int32)(unsafe.Pointer(bp /* nMsg */)))) + uint64(1))))
(*EvalEvent)(unsafe.Pointer(pEvent)).Fbase.FnextPtr = uintptr(0)
(*EvalEvent)(unsafe.Pointer(pEvent)).Fbase.Fproc = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{tclScriptEvent}))
(*EvalEvent)(unsafe.Pointer(pEvent)).FzScript = (pEvent + uintptr(1)*32)
- crt.Xmemcpy(tls, (*EvalEvent)(unsafe.Pointer(pEvent)).FzScript, zMsg, (uint64(*(*int32)(unsafe.Pointer(bp /* nMsg */)) + 1)))
+ libc.Xmemcpy(tls, (*EvalEvent)(unsafe.Pointer(pEvent)).FzScript, zMsg, (uint64(*(*int32)(unsafe.Pointer(bp /* nMsg */)) + 1)))
(*EvalEvent)(unsafe.Pointer(pEvent)).Finterp = (*SqlThread)(unsafe.Pointer(p)).Finterp
tcl.XTcl_ThreadQueueEvent(tls, (*SqlThread)(unsafe.Pointer(p)).Fparent, pEvent, TCL_QUEUE_TAIL)
@@ -69418,7 +74731,7 @@ func postToParent(tls *crt.TLS, p uintptr, pScript uintptr) { /* test_thread.c:9
}
// The main function for threads created with [sqlthread spawn].
-func tclScriptThread(tls *crt.TLS, pSqlThread ClientData) { /* test_thread.c:114:29: */
+func tclScriptThread(tls *libc.TLS, pSqlThread ClientData) { /* test_thread.c:114:29: */
var interp uintptr
var pRes uintptr
var pList uintptr
@@ -69426,22 +74739,22 @@ func tclScriptThread(tls *crt.TLS, pSqlThread ClientData) { /* test_thread.c:114
var p uintptr = pSqlThread
interp = tcl.XTcl_CreateInterp(tls)
- tcl.XTcl_CreateObjCommand(tls, interp, ts+35009 /* "clock_seconds" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+37109 /* "clock_seconds" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{clock_seconds_proc})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+35023 /* "sqlthread" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+37123 /* "sqlthread" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{sqlthread_proc})), pSqlThread, uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+35033 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+37133 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{blocking_step_proc})), uintptr(0), uintptr(0))
tcl.XTcl_CreateObjCommand(tls, interp,
- ts+35055 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ ts+37155 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{blocking_prepare_v2_proc})), uintptr(1), uintptr(0))
tcl.XTcl_CreateObjCommand(tls, interp,
- ts+35083 /* "sqlite3_nonblock..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ ts+37183 /* "sqlite3_nonblock..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{blocking_prepare_v2_proc})), uintptr(0), uintptr(0))
Sqlitetest1_Init(tls, interp)
Sqlitetest_mutex_Init(tls, interp)
@@ -69454,19 +74767,19 @@ func tclScriptThread(tls *crt.TLS, pSqlThread ClientData) { /* test_thread.c:114
(*Tcl_Obj)(unsafe.Pointer(pRes)).FrefCount++
if rc != 0 {
- tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewStringObj(tls, ts+35114 /* "error" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewStringObj(tls, ts+10131 /* "error" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pList, pRes)
postToParent(tls, p, pList)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pList
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
pList = tcl.XTcl_NewObj(tls)
}
- tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewStringObj(tls, ts+35120 /* "set" */, -1))
+ tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewStringObj(tls, ts+37214 /* "set" */, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pList, tcl.XTcl_NewStringObj(tls, (*SqlThread)(unsafe.Pointer(p)).FzVarname, -1))
tcl.XTcl_ListObjAppendElement(tls, interp, pList, pRes)
postToParent(tls, p, pList)
@@ -69474,18 +74787,18 @@ func tclScriptThread(tls *crt.TLS, pSqlThread ClientData) { /* test_thread.c:114
tcl.XTcl_Free(tls, p)
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pList
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
for ok2 := true; ok2; ok2 = 0 != 0 {
var _objPtr uintptr = pRes
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
tcl.XTcl_DeleteInterp(tls, interp)
- for tcl.XTcl_DoOneEvent(tls, ((^int32(crt.Int32FromInt32((int32(1) << 1))))|(int32(1)<<1))) != 0 {
+ for tcl.XTcl_DoOneEvent(tls, ((^int32(libc.Int32FromInt32((int32(1) << 1))))|(int32(1)<<1))) != 0 {
}
tcl.XTcl_ExitThread(tls, 0)
@@ -69499,7 +74812,7 @@ func tclScriptThread(tls *crt.TLS, pSqlThread ClientData) { /* test_thread.c:114
// VARNAME.
//
// The caller can wait for the script to terminate using [vwait VARNAME].
-func sqlthread_spawn(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:174:26: */
+func sqlthread_spawn(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:174:26: */
bp := tls.Alloc(32)
defer tls.Free(32)
@@ -69527,14 +74840,14 @@ func sqlthread_spawn(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
pNew = tcl.XTcl_Alloc(tls, (uint32(((uint64(unsafe.Sizeof(SqlThread{})) + uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nVarname */)))) + uint64(*(*int32)(unsafe.Pointer(bp + 20 /* nScript */)))) + uint64(2))))
(*SqlThread)(unsafe.Pointer(pNew)).FzVarname = (pNew + uintptr(1)*32)
(*SqlThread)(unsafe.Pointer(pNew)).FzScript = ((*SqlThread)(unsafe.Pointer(pNew)).FzVarname + uintptr((*(*int32)(unsafe.Pointer(bp + 16 /* nVarname */)) + 1)))
- crt.Xmemcpy(tls, (*SqlThread)(unsafe.Pointer(pNew)).FzVarname, zVarname, (uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nVarname */)) + 1)))
- crt.Xmemcpy(tls, (*SqlThread)(unsafe.Pointer(pNew)).FzScript, zScript, (uint64(*(*int32)(unsafe.Pointer(bp + 20 /* nScript */)) + 1)))
+ libc.Xmemcpy(tls, (*SqlThread)(unsafe.Pointer(pNew)).FzVarname, zVarname, (uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nVarname */)) + 1)))
+ libc.Xmemcpy(tls, (*SqlThread)(unsafe.Pointer(pNew)).FzScript, zScript, (uint64(*(*int32)(unsafe.Pointer(bp + 20 /* nScript */)) + 1)))
(*SqlThread)(unsafe.Pointer(pNew)).Fparent = tcl.XTcl_GetCurrentThread(tls)
(*SqlThread)(unsafe.Pointer(pNew)).Finterp = interp
- rc = tcl.XTcl_CreateThread(tls, bp+24 /* &x */, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, ClientData) }{tclScriptThread})), pNew, nStack, flags)
+ rc = tcl.XTcl_CreateThread(tls, bp+24 /* &x */, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, ClientData) }{tclScriptThread})), pNew, nStack, flags)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+35124 /* "Error in Tcl_Cre..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+37218 /* "Error in Tcl_Cre..." */, 0))
tcl.XTcl_Free(tls, pNew)
return 1
}
@@ -69551,7 +74864,7 @@ func sqlthread_spawn(tls *crt.TLS, clientData ClientData, interp uintptr, objc i
// block indefinitely.
//
// NOTE: At the moment, this doesn't work. FIXME.
-func sqlthread_parent(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:227:26: */
+func sqlthread_parent(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:227:26: */
bp := tls.Alloc(20)
defer tls.Free(20)
@@ -69564,7 +74877,7 @@ func sqlthread_parent(tls *crt.TLS, clientData ClientData, interp uintptr, objc
_ = objc
if p == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+35152 /* "no parent thread" */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+37246 /* "no parent thread" */, 0))
return 1
}
@@ -69572,10 +74885,10 @@ func sqlthread_parent(tls *crt.TLS, clientData ClientData, interp uintptr, objc
pEvent = tcl.XTcl_Alloc(tls, (uint32((uint64(unsafe.Sizeof(EvalEvent{})) + uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nMsg */)))) + uint64(1))))
(*EvalEvent)(unsafe.Pointer(pEvent)).Fbase.FnextPtr = uintptr(0)
(*EvalEvent)(unsafe.Pointer(pEvent)).Fbase.Fproc = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{tclScriptEvent}))
(*EvalEvent)(unsafe.Pointer(pEvent)).FzScript = (pEvent + uintptr(1)*32)
- crt.Xmemcpy(tls, (*EvalEvent)(unsafe.Pointer(pEvent)).FzScript, zMsg, (uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nMsg */)) + 1)))
+ libc.Xmemcpy(tls, (*EvalEvent)(unsafe.Pointer(pEvent)).FzScript, zMsg, (uint64(*(*int32)(unsafe.Pointer(bp + 16 /* nMsg */)) + 1)))
(*EvalEvent)(unsafe.Pointer(pEvent)).Finterp = (*SqlThread)(unsafe.Pointer(p)).Finterp
tcl.XTcl_ThreadQueueEvent(tls, (*SqlThread)(unsafe.Pointer(p)).Fparent, pEvent, TCL_QUEUE_TAIL)
tcl.XTcl_ThreadAlert(tls, (*SqlThread)(unsafe.Pointer(p)).Fparent)
@@ -69583,7 +74896,7 @@ func sqlthread_parent(tls *crt.TLS, clientData ClientData, interp uintptr, objc
return 0
}
-func xBusy(tls *crt.TLS, pArg uintptr, nBusy int32) int32 { /* test_thread.c:259:12: */
+func xBusy(tls *libc.TLS, pArg uintptr, nBusy int32) int32 { /* test_thread.c:259:12: */
_ = pArg
_ = nBusy
sqlite3.Xsqlite3_sleep(tls, 50)
@@ -69594,7 +74907,7 @@ func xBusy(tls *crt.TLS, pArg uintptr, nBusy int32) int32 { /* test_thread.c:259
//
// Open a database handle and return the string representation of
// the pointer value.
-func sqlthread_open(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:272:26: */
+func sqlthread_open(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:272:26: */
bp := tls.Alloc(124)
defer tls.Free(124)
@@ -69610,13 +74923,13 @@ func sqlthread_open(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
sqlite3.Xsqlite3_open(tls, zFilename, bp+16 /* &db */)
Md5_Register(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), uintptr(0), uintptr(0))
sqlite3.Xsqlite3_busy_handler(tls, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */)), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{xBusy})), uintptr(0))
if sqlite3TestMakePointerStr(tls, interp, bp+24 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 16 /* db */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, bp+24 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, bp+24 /* &zBuf[0] */, 0))
return 0
}
@@ -69625,7 +74938,7 @@ func sqlthread_open(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
//
// Return the current thread-id (Tcl_GetCurrentThread()) cast to
// an integer.
-func sqlthread_id(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:306:26: */
+func sqlthread_id(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:306:26: */
var id Tcl_ThreadId = tcl.XTcl_GetCurrentThread(tls)
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, int32(id)))
_ = clientData
@@ -69635,7 +74948,7 @@ func sqlthread_id(tls *crt.TLS, clientData ClientData, interp uintptr, objc int3
}
// Dispatch routine for the sub-commands of [sqlthread].
-func sqlthread_proc(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:324:26: */
+func sqlthread_proc(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:324:26: */
bp := tls.Alloc(164)
defer tls.Free(164)
@@ -69650,17 +74963,17 @@ func sqlthread_proc(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
FnArg int32
FzUsage uintptr
}{
- {FzName: ts + 35169 /* "parent" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
- }{sqlthread_parent})), FnArg: 1, FzUsage: ts + 9746 /* "SCRIPT" */},
- {FzName: ts + 35176 /* "spawn" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
- }{sqlthread_spawn})), FnArg: 2, FzUsage: ts + 35182 /* "VARNAME SCRIPT" */},
- {FzName: ts + 33780 /* "open" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
- }{sqlthread_open})), FnArg: 1, FzUsage: ts + 35197 /* "DBNAME" */},
- {FzName: ts + 35204 /* "id" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ {FzName: ts + 37263 /* "parent" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{sqlthread_parent})), FnArg: 1, FzUsage: ts + 11405 /* "SCRIPT" */},
+ {FzName: ts + 37270 /* "spawn" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{sqlthread_spawn})), FnArg: 2, FzUsage: ts + 37276 /* "VARNAME SCRIPT" */},
+ {FzName: ts + 35880 /* "open" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{sqlthread_open})), FnArg: 1, FzUsage: ts + 37291 /* "DBNAME" */},
+ {FzName: ts + 37298 /* "id" */, FxProc: *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{sqlthread_id})), FnArg: 0, FzUsage: ts + 488 /* "" */},
{FzName: uintptr(0), FxProc: uintptr(0), FnArg: 0},
}
@@ -69669,7 +74982,7 @@ func sqlthread_proc(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
// var iIndex int32 at bp+160, 4
if objc < 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+31703 /* "SUB-COMMAND" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+2383 /* "SUB-COMMAND" */)
return 1
}
@@ -69700,7 +75013,7 @@ func sqlthread_proc(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
return 1
}
- return (*(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer((pSub + 8 /* &.xProc */))))(tls, clientData, interp, objc, objv)
+ return (*(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer((pSub + 8 /* &.xProc */))))(tls, clientData, interp, objc, objv)
}
/*
@@ -69710,7 +75023,7 @@ func sqlthread_proc(tls *crt.TLS, clientData ClientData, interp uintptr, objc in
** implemented as a script in Tcl 8.5, it is not usually available to
** testfixture.
*/
-func clock_seconds_proc(tls *crt.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:372:26: */
+func clock_seconds_proc(tls *libc.TLS, clientData ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:372:26: */
bp := tls.Alloc(16)
defer tls.Free(16)
@@ -69737,14 +75050,14 @@ type UnlockNotification1 = struct {
type UnlockNotification = UnlockNotification1 /* test_thread.c:410:35 */
// This function is an unlock-notify callback registered with SQLite.
-func unlock_notify_cb(tls *crt.TLS, apArg uintptr, nArg int32) { /* test_thread.c:420:13: */
+func unlock_notify_cb(tls *libc.TLS, apArg uintptr, nArg int32) { /* test_thread.c:420:13: */
var i int32
for i = 0; i < nArg; i++ {
var p uintptr = *(*uintptr)(unsafe.Pointer(apArg + uintptr(i)*8))
- crt2.Xpthread_mutex_lock(tls, (p + 56 /* &.mutex */))
+ libc2.Xpthread_mutex_lock(tls, (p + 56 /* &.mutex */))
(*UnlockNotification)(unsafe.Pointer(p)).Ffired = 1
- crt2.Xpthread_cond_signal(tls, (p + 8 /* &.cond */))
- crt2.Xpthread_mutex_unlock(tls, (p + 56 /* &.mutex */))
+ libc2.Xpthread_cond_signal(tls, (p + 8 /* &.cond */))
+ libc2.Xpthread_mutex_unlock(tls, (p + 56 /* &.mutex */))
}
}
@@ -69760,7 +75073,7 @@ func unlock_notify_cb(tls *crt.TLS, apArg uintptr, nArg int32) { /* test_thread.
// the system, then this function returns SQLITE_LOCKED immediately. In
// this case the caller should not retry the operation and should roll
// back the current transaction (if any).
-func wait_for_unlock_notify(tls *crt.TLS, db uintptr) int32 { /* test_thread.c:445:12: */
+func wait_for_unlock_notify(tls *libc.TLS, db uintptr) int32 { /* test_thread.c:445:12: */
bp := tls.Alloc(96)
defer tls.Free(96)
@@ -69769,12 +75082,12 @@ func wait_for_unlock_notify(tls *crt.TLS, db uintptr) int32 { /* test_thread.c:4
// Initialize the UnlockNotification structure.
(*UnlockNotification)(unsafe.Pointer(bp /* &un */)).Ffired = 0
- crt2.Xpthread_mutex_init(tls, (bp /* &un */ + 56 /* &.mutex */), uintptr(0))
- crt2.Xpthread_cond_init(tls, (bp /* &un */ + 8 /* &.cond */), uintptr(0))
+ libc2.Xpthread_mutex_init(tls, (bp /* &un */ + 56 /* &.mutex */), uintptr(0))
+ libc2.Xpthread_cond_init(tls, (bp /* &un */ + 8 /* &.cond */), uintptr(0))
// Register for an unlock-notify callback.
rc = sqlite3.Xsqlite3_unlock_notify(tls, db, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32)
+ f func(*libc.TLS, uintptr, int32)
}{unlock_notify_cb})), bp /* &un */)
// The call to sqlite3_unlock_notify() always returns either SQLITE_LOCKED
@@ -69785,16 +75098,16 @@ func wait_for_unlock_notify(tls *crt.TLS, db uintptr) int32 { /* test_thread.c:4
// that the current transaction can be rolled back. Otherwise, block
// until the unlock-notify callback is invoked, then return SQLITE_OK.
if rc == 0 {
- crt2.Xpthread_mutex_lock(tls, (bp /* &un */ + 56 /* &.mutex */))
+ libc2.Xpthread_mutex_lock(tls, (bp /* &un */ + 56 /* &.mutex */))
if !((*UnlockNotification)(unsafe.Pointer(bp /* &un */)).Ffired != 0) {
- crt2.Xpthread_cond_wait(tls, (bp /* &un */ + 8 /* &.cond */), (bp /* &un */ + 56 /* &.mutex */))
+ libc2.Xpthread_cond_wait(tls, (bp /* &un */ + 8 /* &.cond */), (bp /* &un */ + 56 /* &.mutex */))
}
- crt2.Xpthread_mutex_unlock(tls, (bp /* &un */ + 56 /* &.mutex */))
+ libc2.Xpthread_mutex_unlock(tls, (bp /* &un */ + 56 /* &.mutex */))
}
// Destroy the mutex and condition variables.
- crt2.Xpthread_cond_destroy(tls, (bp /* &un */ + 8 /* &.cond */))
- crt2.Xpthread_mutex_destroy(tls, (bp /* &un */ + 56 /* &.mutex */))
+ libc2.Xpthread_cond_destroy(tls, (bp /* &un */ + 8 /* &.cond */))
+ libc2.Xpthread_mutex_destroy(tls, (bp /* &un */ + 56 /* &.mutex */))
return rc
}
@@ -69808,9 +75121,9 @@ func wait_for_unlock_notify(tls *crt.TLS, db uintptr) int32 { /* test_thread.c:4
// If this function returns SQLITE_LOCKED, the caller should rollback
// the current transaction (if any) and try again later. Otherwise, the
// system may become deadlocked.
-func sqlite3_blocking_step(tls *crt.TLS, pStmt uintptr) int32 { /* test_thread.c:492:5: */
+func sqlite3_blocking_step(tls *libc.TLS, pStmt uintptr) int32 { /* test_thread.c:492:5: */
var rc int32
- for 6 == (crt.AssignInt32(&rc, sqlite3.Xsqlite3_step(tls, pStmt))) {
+ for 6 == (libc.AssignInt32(&rc, sqlite3.Xsqlite3_step(tls, pStmt))) {
rc = wait_for_unlock_notify(tls, sqlite3.Xsqlite3_db_handle(tls, pStmt))
if rc != 0 {
break
@@ -69829,9 +75142,9 @@ func sqlite3_blocking_step(tls *crt.TLS, pStmt uintptr) int32 { /* test_thread.c
// If this function returns SQLITE_LOCKED, the caller should rollback
// the current transaction (if any) and try again later. Otherwise, the
// system may become deadlocked.
-func sqlite3_blocking_prepare_v2(tls *crt.TLS, db uintptr, zSql uintptr, nSql int32, ppStmt uintptr, pz uintptr) int32 { /* test_thread.c:513:5: */
+func sqlite3_blocking_prepare_v2(tls *libc.TLS, db uintptr, zSql uintptr, nSql int32, ppStmt uintptr, pz uintptr) int32 { /* test_thread.c:513:5: */
var rc int32
- for 6 == (crt.AssignInt32(&rc, sqlite3.Xsqlite3_prepare_v2(tls, db, zSql, nSql, ppStmt, pz))) {
+ for 6 == (libc.AssignInt32(&rc, sqlite3.Xsqlite3_prepare_v2(tls, db, zSql, nSql, ppStmt, pz))) {
rc = wait_for_unlock_notify(tls, db)
if rc != 0 {
break
@@ -69845,12 +75158,12 @@ func sqlite3_blocking_prepare_v2(tls *crt.TLS, db uintptr, zSql uintptr, nSql in
// Usage: sqlite3_blocking_step STMT
//
// Advance the statement to the next row.
-func blocking_step_proc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:534:26: */
+func blocking_step_proc(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:534:26: */
var pStmt uintptr
var rc int32
if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+14574 /* "STMT" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+16285 /* "STMT" */)
return 1
}
@@ -69863,7 +75176,7 @@ func blocking_step_proc(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
// Usage: sqlite3_blocking_prepare_v2 DB sql bytes ?tailvar?
// Usage: sqlite3_nonblocking_prepare_v2 DB sql bytes ?tailvar?
-func blocking_prepare_v2_proc(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:560:26: */
+func blocking_prepare_v2_proc(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_thread.c:560:26: */
bp := tls.Alloc(162)
defer tls.Free(162)
@@ -69877,11 +75190,11 @@ func blocking_prepare_v2_proc(tls *crt.TLS, clientData uintptr, interp uintptr,
// var zBuf [50]int8 at bp+112, 50
var rc int32
- var isBlocking int32 = crt.BoolInt32(!(clientData == uintptr(0)))
+ var isBlocking int32 = libc.BoolInt32(!(clientData == uintptr(0)))
if (objc != 5) && (objc != 4) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+12801, /* "wrong # args: sh..." */
- tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+14620 /* " DB sql bytes ta..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+14451, /* "wrong # args: sh..." */
+ tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(0)*8))), ts+16331 /* " DB sql bytes ta..." */, 0))
return 1
}
if getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp+80 /* &db */) != 0 {
@@ -69906,8 +75219,8 @@ func blocking_prepare_v2_proc(tls *crt.TLS, clientData uintptr, interp uintptr,
}
if rc != 0 {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+35207 /* "%s " */, crt.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc)))
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([50]int8{})), bp+112 /* &zBuf[0] */, ts+37301 /* "%s " */, libc.VaList(bp+32, sqlite3.Xsqlite3ErrName(tls, rc)))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+40, bp+112 /* &zBuf[0] */, sqlite3.Xsqlite3_errmsg(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* db */))), 0))
return 1
}
@@ -69915,7 +75228,7 @@ func blocking_prepare_v2_proc(tls *crt.TLS, clientData uintptr, interp uintptr,
if sqlite3TestMakePointerStr(tls, interp, bp+112 /* &zBuf[0] */, *(*uintptr)(unsafe.Pointer(bp + 96 /* pStmt */))) != 0 {
return 1
}
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+64, bp+112 /* &zBuf[0] */, 0))
}
return 0
}
@@ -69925,23 +75238,23 @@ func blocking_prepare_v2_proc(tls *crt.TLS, clientData uintptr, interp uintptr,
//
// Register commands with the TCL interpreter.
-func SqlitetestThread_Init(tls *crt.TLS, interp uintptr) int32 { /* test_thread.c:619:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+35023 /* "sqlthread" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+func SqlitetestThread_Init(tls *libc.TLS, interp uintptr) int32 { /* test_thread.c:619:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+37123 /* "sqlthread" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{sqlthread_proc})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+35009 /* "clock_seconds" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+37109 /* "clock_seconds" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{clock_seconds_proc})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+35033 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+37133 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{blocking_step_proc})), uintptr(0), uintptr(0))
tcl.XTcl_CreateObjCommand(tls, interp,
- ts+35055 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ ts+37155 /* "sqlite3_blocking..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{blocking_prepare_v2_proc})), uintptr(1), uintptr(0))
tcl.XTcl_CreateObjCommand(tls, interp,
- ts+35083 /* "sqlite3_nonblock..." */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ ts+37183 /* "sqlite3_nonblock..." */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{blocking_prepare_v2_proc})), uintptr(0), uintptr(0))
return 0
}
@@ -69954,7 +75267,7 @@ func SqlitetestThread_Init(tls *crt.TLS, interp uintptr) int32 { /* test_thread.
// fill-column: 78
// End:
-func Sqlitetestvdbecov_Init(tls *crt.TLS, interp uintptr) int32 { /* test_vdbecov.c:113:5: */
+func Sqlitetestvdbecov_Init(tls *libc.TLS, interp uintptr) int32 { /* test_vdbecov.c:113:5: */
return 0
}
@@ -70013,8 +75326,8 @@ type TestvfsFd1 = struct {
FpReal uintptr
FpShmId uintptr
FpShm uintptr
- Fexcllock u321
- Fsharedlock u321
+ Fexcllock u322
+ Fsharedlock u322
FpNext uintptr
}
@@ -70048,27 +75361,27 @@ var tvfs_io_methods = sqlite3_io_methods{FiVersion: 3, FxClose: // iVersion
0, FxUnfetch: 0,
} /* test_vfs.c:204:27 */
-func tvfsResultCode(tls *crt.TLS, p uintptr, pRc uintptr) int32 { /* test_vfs.c:226:12: */
+func tvfsResultCode(tls *libc.TLS, p uintptr, pRc uintptr) int32 { /* test_vfs.c:226:12: */
bp := tls.Alloc(144)
defer tls.Free(144)
*(*[9]errcode)(unsafe.Pointer(bp /* aCode */)) = [9]errcode{
- {FeCode: 0, FzCode: ts + 9424 /* "SQLITE_OK" */},
- {FeCode: 1, FzCode: ts + 35211 /* "SQLITE_ERROR" */},
- {FeCode: 10, FzCode: ts + 35224 /* "SQLITE_IOERR" */},
- {FeCode: 6, FzCode: ts + 35237 /* "SQLITE_LOCKED" */},
- {FeCode: 5, FzCode: ts + 35251 /* "SQLITE_BUSY" */},
- {FeCode: 8, FzCode: ts + 35263 /* "SQLITE_READONLY" */},
- {FeCode: (8 | (int32(5) << 8)), FzCode: ts + 35279 /* "SQLITE_READONLY_..." */},
- {FeCode: 12, FzCode: ts + 35304 /* "SQLITE_NOTFOUND" */},
- {FeCode: -1, FzCode: ts + 35320 /* "SQLITE_OMIT" */},
+ {FeCode: 0, FzCode: ts + 1987 /* "SQLITE_OK" */},
+ {FeCode: 1, FzCode: ts + 1974 /* "SQLITE_ERROR" */},
+ {FeCode: 10, FzCode: ts + 37305 /* "SQLITE_IOERR" */},
+ {FeCode: 6, FzCode: ts + 37318 /* "SQLITE_LOCKED" */},
+ {FeCode: 5, FzCode: ts + 37332 /* "SQLITE_BUSY" */},
+ {FeCode: 8, FzCode: ts + 37344 /* "SQLITE_READONLY" */},
+ {FeCode: (8 | (int32(5) << 8)), FzCode: ts + 37360 /* "SQLITE_READONLY_..." */},
+ {FeCode: 12, FzCode: ts + 37385 /* "SQLITE_NOTFOUND" */},
+ {FeCode: -1, FzCode: ts + 37401 /* "SQLITE_OMIT" */},
}
var z uintptr
var i int32
z = tcl.XTcl_GetStringResult(tls, (*Testvfs)(unsafe.Pointer(p)).Finterp)
for i = 0; i < (int32(uint64(unsafe.Sizeof([9]errcode{})) / uint64(unsafe.Sizeof(errcode{})))); i++ {
- if 0 == crt.Xstrcmp(tls, z, (*errcode)(unsafe.Pointer(bp /* &aCode */ +uintptr(i)*16)).FzCode) {
+ if 0 == libc.Xstrcmp(tls, z, (*errcode)(unsafe.Pointer(bp /* &aCode */ +uintptr(i)*16)).FzCode) {
*(*int32)(unsafe.Pointer(pRc)) = (*errcode)(unsafe.Pointer(bp /* &aCode */ + uintptr(i)*16)).FeCode
return 1
}
@@ -70082,7 +75395,7 @@ type errcode = struct {
FzCode uintptr
}
-func tvfsInjectFault(tls *crt.TLS, p uintptr) int32 { /* test_vfs.c:256:12: */
+func tvfsInjectFault(tls *libc.TLS, p uintptr) int32 { /* test_vfs.c:256:12: */
var ret int32 = 0
if (*TestFaultInject)(unsafe.Pointer(p)).FeFault != 0 {
(*TestFaultInject)(unsafe.Pointer(p)).FiCnt--
@@ -70094,18 +75407,18 @@ func tvfsInjectFault(tls *crt.TLS, p uintptr) int32 { /* test_vfs.c:256:12: */
return ret
}
-func tvfsInjectIoerr(tls *crt.TLS, p uintptr) int32 { /* test_vfs.c:269:12: */
+func tvfsInjectIoerr(tls *libc.TLS, p uintptr) int32 { /* test_vfs.c:269:12: */
return tvfsInjectFault(tls, (p + 60 /* &.ioerr_err */))
}
-func tvfsInjectFullerr(tls *crt.TLS, p uintptr) int32 { /* test_vfs.c:273:12: */
+func tvfsInjectFullerr(tls *libc.TLS, p uintptr) int32 { /* test_vfs.c:273:12: */
return tvfsInjectFault(tls, (p + 72 /* &.full_err */))
}
-func tvfsInjectCantopenerr(tls *crt.TLS, p uintptr) int32 { /* test_vfs.c:276:12: */
+func tvfsInjectCantopenerr(tls *libc.TLS, p uintptr) int32 { /* test_vfs.c:276:12: */
return tvfsInjectFault(tls, (p + 84 /* &.cantopen_err */))
}
-func tvfsExecTcl(tls *crt.TLS, p uintptr, zMethod uintptr, arg1 uintptr, arg2 uintptr, arg3 uintptr, arg4 uintptr) { /* test_vfs.c:281:13: */
+func tvfsExecTcl(tls *libc.TLS, p uintptr, zMethod uintptr, arg1 uintptr, arg2 uintptr, arg3 uintptr, arg4 uintptr) { /* test_vfs.c:281:13: */
var rc int32 // Return code from Tcl_EvalObj()
var pEval uintptr
@@ -70133,20 +75446,20 @@ func tvfsExecTcl(tls *crt.TLS, p uintptr, zMethod uintptr, arg1 uintptr, arg2 ui
}
// Close an tvfs-file.
-func tvfsClose(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:317:12: */
+func tvfsClose(tls *libc.TLS, pFile uintptr) int32 { /* test_vfs.c:317:12: */
var pTestfile uintptr = pFile
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pTestfile)).FpFd
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00000800) != 0) {
- tvfsExecTcl(tls, p, ts+32338, /* "xClose" */
+ tvfsExecTcl(tls, p, ts+34403, /* "xClose" */
tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, uintptr(0), uintptr(0))
}
if (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -70162,7 +75475,7 @@ func tvfsClose(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:317:12: */
}
// Read data from an tvfs-file.
-func tvfsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_vfs.c:344:12: */
+func tvfsRead(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_vfs.c:344:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70170,7 +75483,7 @@ func tvfsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlit
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00010000) != 0) {
- tvfsExecTcl(tls, p, ts+32345, /* "xRead" */
+ tvfsExecTcl(tls, p, ts+34410, /* "xRead" */
tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, uintptr(0), uintptr(0))
tvfsResultCode(tls, p, bp /* &rc */)
}
@@ -70184,7 +75497,7 @@ func tvfsRead(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlit
}
// Write data to an tvfs-file.
-func tvfsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_vfs.c:371:12: */
+func tvfsWrite(tls *libc.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqlite_int64) int32 { /* test_vfs.c:371:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70193,7 +75506,7 @@ func tvfsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqli
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00001000) != 0) {
- tvfsExecTcl(tls, p, ts+32351, /* "xWrite" */
+ tvfsExecTcl(tls, p, ts+34416, /* "xWrite" */
tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId,
tcl.XTcl_NewWideIntObj(tls, int64(iOfst)), tcl.XTcl_NewIntObj(tls, iAmt))
tvfsResultCode(tls, p, bp /* &rc */)
@@ -70216,7 +75529,7 @@ func tvfsWrite(tls *crt.TLS, pFile uintptr, zBuf uintptr, iAmt int32, iOfst sqli
}
// Truncate an tvfs-file.
-func tvfsTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_vfs.c:406:12: */
+func tvfsTruncate(tls *libc.TLS, pFile uintptr, size sqlite_int64) int32 { /* test_vfs.c:406:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70225,7 +75538,7 @@ func tvfsTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* tes
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00002000) != 0) {
- tvfsExecTcl(tls, p, ts+32358, /* "xTruncate" */
+ tvfsExecTcl(tls, p, ts+34423, /* "xTruncate" */
tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, uintptr(0), uintptr(0))
tvfsResultCode(tls, p, bp /* &rc */)
}
@@ -70237,7 +75550,7 @@ func tvfsTruncate(tls *crt.TLS, pFile uintptr, size sqlite_int64) int32 { /* tes
}
// Sync an tvfs-file.
-func tvfsSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_vfs.c:427:12: */
+func tvfsSync(tls *libc.TLS, pFile uintptr, flags int32) int32 { /* test_vfs.c:427:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70250,25 +75563,25 @@ func tvfsSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_vfs.c:42
switch flags {
case 0x00002:
- zFlags = ts + 14189 /* "normal" */
+ zFlags = ts + 15900 /* "normal" */
break
fallthrough
case 0x00003:
- zFlags = ts + 15892 /* "full" */
+ zFlags = ts + 17592 /* "full" */
break
fallthrough
case (0x00002 | 0x00010):
- zFlags = ts + 35332 /* "normal|dataonly" */
+ zFlags = ts + 37413 /* "normal|dataonly" */
break
fallthrough
case (0x00003 | 0x00010):
- zFlags = ts + 35348 /* "full|dataonly" */
+ zFlags = ts + 37429 /* "full|dataonly" */
break
fallthrough
default:
}
- tvfsExecTcl(tls, p, ts+24735, /* "xSync" */
+ tvfsExecTcl(tls, p, ts+26827, /* "xSync" */
tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId,
tcl.XTcl_NewStringObj(tls, zFlags, -1), uintptr(0))
tvfsResultCode(tls, p, bp /* &rc */)
@@ -70286,13 +75599,13 @@ func tvfsSync(tls *crt.TLS, pFile uintptr, flags int32) int32 { /* test_vfs.c:42
}
// Return the current file-size of an tvfs-file.
-func tvfsFileSize(tls *crt.TLS, pFile uintptr, pSize uintptr) int32 { /* test_vfs.c:471:12: */
+func tvfsFileSize(tls *libc.TLS, pFile uintptr, pSize uintptr) int32 { /* test_vfs.c:471:12: */
var p uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
return sqlite3.Xsqlite3OsFileSize(tls, (*TestvfsFd)(unsafe.Pointer(p)).FpReal, pSize)
}
// Lock an tvfs-file.
-func tvfsLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:479:12: */
+func tvfsLock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:479:12: */
bp := tls.Alloc(38)
defer tls.Free(38)
@@ -70301,15 +75614,15 @@ func tvfsLock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:47
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00040000) != 0) {
// var zLock [30]int8 at bp+8, 30
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zLock[0] */, ts+1237 /* "%d" */, crt.VaList(bp, eLock))
- tvfsExecTcl(tls, p, ts+32378 /* "xLock" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zLock[0] */, ts+1237 /* "%d" */, libc.VaList(bp, eLock))
+ tvfsExecTcl(tls, p, ts+34443 /* "xLock" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
tcl.XTcl_NewStringObj(tls, bp+8 /* &zLock[0] */, -1), uintptr(0), uintptr(0))
}
return sqlite3.Xsqlite3OsLock(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FpReal, eLock)
}
// Unlock an tvfs-file.
-func tvfsUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:494:12: */
+func tvfsUnlock(tls *libc.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:494:12: */
bp := tls.Alloc(38)
defer tls.Free(38)
@@ -70318,8 +75631,8 @@ func tvfsUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00020000) != 0) {
// var zLock [30]int8 at bp+8, 30
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zLock[0] */, ts+1237 /* "%d" */, crt.VaList(bp, eLock))
- tvfsExecTcl(tls, p, ts+32384 /* "xUnlock" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zLock[0] */, ts+1237 /* "%d" */, libc.VaList(bp, eLock))
+ tvfsExecTcl(tls, p, ts+34449 /* "xUnlock" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
tcl.XTcl_NewStringObj(tls, bp+8 /* &zLock[0] */, -1), uintptr(0), uintptr(0))
}
if (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00001000) != 0) && (tvfsInjectIoerr(tls, p) != 0) {
@@ -70329,18 +75642,18 @@ func tvfsUnlock(tls *crt.TLS, pFile uintptr, eLock int32) int32 { /* test_vfs.c:
}
// Check if another file-handle holds a RESERVED lock on an tvfs-file.
-func tvfsCheckReservedLock(tls *crt.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_vfs.c:512:12: */
+func tvfsCheckReservedLock(tls *libc.TLS, pFile uintptr, pResOut uintptr) int32 { /* test_vfs.c:512:12: */
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00080000) != 0) {
- tvfsExecTcl(tls, p, ts+35362 /* "xCheckReservedLo..." */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
+ tvfsExecTcl(tls, p, ts+37443 /* "xCheckReservedLo..." */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
uintptr(0), uintptr(0), uintptr(0))
}
return sqlite3.Xsqlite3OsCheckReservedLock(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FpReal, pResOut)
}
// File control method. For custom operations on an tvfs-file.
-func tvfsFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_vfs.c:525:12: */
+func tvfsFileControl(tls *libc.TLS, pFile uintptr, op int32, pArg uintptr) int32 { /* test_vfs.c:525:12: */
bp := tls.Alloc(68)
defer tls.Free(68)
@@ -70348,11 +75661,11 @@ func tvfsFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if op == 14 {
var argv uintptr = pArg
- if sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+35114 /* "error" */) == 0 {
+ if sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+10131 /* "error" */) == 0 {
var rc int32 = 1
if *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8)) != 0 {
var z uintptr = *(*uintptr)(unsafe.Pointer(argv + uintptr(2)*8))
- var x int32 = crt.Xatoi(tls, z)
+ var x int32 = libc.Xatoi(tls, z)
if x != 0 {
rc = x
for (int32(sqlite3.Xsqlite3CtypeMap[uint8(*(*int8)(unsafe.Pointer(z + uintptr(0))))]) & 0x04) != 0 {
@@ -70363,21 +75676,21 @@ func tvfsFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32
}
}
if *(*int8)(unsafe.Pointer(z + uintptr(0))) != 0 {
- *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp, z))
+ *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp, z))
}
}
return rc
}
- if sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+3336 /* "filename" */) == 0 {
- *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, crt.VaList(bp+8, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename))
+ if sqlite3.Xsqlite3_stricmp(tls, *(*uintptr)(unsafe.Pointer(argv + uintptr(1)*8)), ts+4485 /* "filename" */) == 0 {
+ *(*uintptr)(unsafe.Pointer(argv + uintptr(0)*8)) = sqlite3.Xsqlite3_mprintf(tls, ts /* "%s" */, libc.VaList(bp+8, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename))
return 0
}
}
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00100000) != 0) {
*(*[3]Fcntl)(unsafe.Pointer(bp + 16 /* aF */)) = [3]Fcntl{
- {FiFnctl: 31, FzFnctl: ts + 35381 /* "BEGIN_ATOMIC_WRI..." */},
- {FiFnctl: 32, FzFnctl: ts + 35400 /* "COMMIT_ATOMIC_WR..." */},
- {FiFnctl: 25, FzFnctl: ts + 35420 /* "ZIPVFS" */},
+ {FiFnctl: 31, FzFnctl: ts + 37462 /* "BEGIN_ATOMIC_WRI..." */},
+ {FiFnctl: 32, FzFnctl: ts + 37481 /* "COMMIT_ATOMIC_WR..." */},
+ {FiFnctl: 25, FzFnctl: ts + 37501 /* "ZIPVFS" */},
}
var i int32
for i = 0; uint64(i) < (uint64(unsafe.Sizeof([3]Fcntl{})) / uint64(unsafe.Sizeof(Fcntl{}))); i++ {
@@ -70387,7 +75700,7 @@ func tvfsFileControl(tls *crt.TLS, pFile uintptr, op int32, pArg uintptr) int32
}
if uint64(i) < (uint64(unsafe.Sizeof([3]Fcntl{})) / uint64(unsafe.Sizeof(Fcntl{}))) {
*(*int32)(unsafe.Pointer(bp + 64 /* rc */)) = 0
- tvfsExecTcl(tls, p, ts+32406, /* "xFileControl" */
+ tvfsExecTcl(tls, p, ts+34471, /* "xFileControl" */
tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1),
tcl.XTcl_NewStringObj(tls, (*Fcntl)(unsafe.Pointer(bp+16 /* &aF */ +uintptr(i)*16)).FzFnctl, -1),
uintptr(0), uintptr(0))
@@ -70411,7 +75724,7 @@ type Fcntl = struct {
}
// Return the sector-size in bytes for an tvfs-file.
-func tvfsSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:579:12: */
+func tvfsSectorSize(tls *libc.TLS, pFile uintptr) int32 { /* test_vfs.c:579:12: */
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if (*Testvfs)(unsafe.Pointer(p)).FiSectorsize >= 0 {
@@ -70421,7 +75734,7 @@ func tvfsSectorSize(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:579:12: *
}
// Return the device characteristic flags supported by an tvfs-file.
-func tvfsDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:591:12: */
+func tvfsDeviceCharacteristics(tls *libc.TLS, pFile uintptr) int32 { /* test_vfs.c:591:12: */
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
if (*Testvfs)(unsafe.Pointer(p)).FiDevchar >= 0 {
@@ -70431,7 +75744,7 @@ func tvfsDeviceCharacteristics(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.
}
// Open an tvfs file handle.
-func tvfsOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_vfs.c:603:12: */
+func tvfsOpen(tls *libc.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags int32, pOutFlags uintptr) int32 { /* test_vfs.c:603:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70443,13 +75756,13 @@ func tvfsOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags in
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData
pFd = tcl.XTcl_Alloc(tls, (uint32(uint64(unsafe.Sizeof(TestvfsFd{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent))).FszOsFile))))
- crt.Xmemset(tls, pFd, 0, (uint64(unsafe.Sizeof(TestvfsFd{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent))).FszOsFile)))
+ libc.Xmemset(tls, pFd, 0, (uint64(unsafe.Sizeof(TestvfsFd{})) + uint64((*sqlite3_vfs)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent))).FszOsFile)))
(*TestvfsFd)(unsafe.Pointer(pFd)).FpShm = uintptr(0)
(*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId = uintptr(0)
(*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename = zName
(*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs = pVfs
(*TestvfsFd)(unsafe.Pointer(pFd)).FpReal = (pFd + uintptr(1)*56)
- crt.Xmemset(tls, pTestfile, 0, uint64(unsafe.Sizeof(TestvfsFile{})))
+ libc.Xmemset(tls, pTestfile, 0, uint64(unsafe.Sizeof(TestvfsFile{})))
(*TestvfsFile)(unsafe.Pointer(pTestfile)).FpFd = pFd
// Evaluate the Tcl script:
@@ -70465,18 +75778,18 @@ func tvfsOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags in
var pArg uintptr = tcl.XTcl_NewObj(tls)
(*Tcl_Obj)(unsafe.Pointer(pArg)).FrefCount++
if (flags & 0x00000100) != 0 {
- var z uintptr = (zName + uintptr((crt.Xstrlen(tls, zName) + uint64(1))))
+ var z uintptr = (zName + uintptr((libc.Xstrlen(tls, zName) + uint64(1))))
for *(*int8)(unsafe.Pointer(z)) != 0 {
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pArg, tcl.XTcl_NewStringObj(tls, z, -1))
- z += (uintptr(crt.Xstrlen(tls, z) + uint64(1)))
+ z += (uintptr(libc.Xstrlen(tls, z) + uint64(1)))
tcl.XTcl_ListObjAppendElement(tls, uintptr(0), pArg, tcl.XTcl_NewStringObj(tls, z, -1))
- z += (uintptr(crt.Xstrlen(tls, z) + uint64(1)))
+ z += (uintptr(libc.Xstrlen(tls, z) + uint64(1)))
}
}
- tvfsExecTcl(tls, p, ts+24300 /* "xOpen" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), pArg, uintptr(0), uintptr(0))
+ tvfsExecTcl(tls, p, ts+26399 /* "xOpen" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), pArg, uintptr(0), uintptr(0))
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pArg
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -70500,7 +75813,7 @@ func tvfsOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags in
}
if !(pId != 0) {
- pId = tcl.XTcl_NewStringObj(tls, ts+35427 /* "anon" */, -1)
+ pId = tcl.XTcl_NewStringObj(tls, ts+37508 /* "anon" */, -1)
}
(*Tcl_Obj)(unsafe.Pointer(pId)).FrefCount++
(*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId = pId
@@ -70518,7 +75831,7 @@ func tvfsOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags in
}
pMethods = tcl.XTcl_Alloc(tls, uint32(nByte))
- crt.Xmemcpy(tls, pMethods, uintptr(unsafe.Pointer(&tvfs_io_methods)), uint64(nByte))
+ libc.Xmemcpy(tls, pMethods, uintptr(unsafe.Pointer(&tvfs_io_methods)), uint64(nByte))
(*sqlite3_io_methods)(unsafe.Pointer(pMethods)).FiVersion = (*sqlite3_io_methods1)(unsafe.Pointer((*sqlite3_file)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpReal)).FpMethods)).FiVersion
if (*sqlite3_io_methods)(unsafe.Pointer(pMethods)).FiVersion > (*sqlite3_vfs)(unsafe.Pointer(pVfs)).FiVersion {
(*sqlite3_io_methods)(unsafe.Pointer(pMethods)).FiVersion = (*sqlite3_vfs)(unsafe.Pointer(pVfs)).FiVersion
@@ -70538,7 +75851,7 @@ func tvfsOpen(tls *crt.TLS, pVfs uintptr, zName uintptr, pFile uintptr, flags in
// Delete the file located at zPath. If the dirSync argument is true,
// ensure the file-system modifications are synced to disk before
// returning.
-func tvfsDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_vfs.c:702:12: */
+func tvfsDelete(tls *libc.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32 { /* test_vfs.c:702:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70546,7 +75859,7 @@ func tvfsDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00000400) != 0) {
- tvfsExecTcl(tls, p, ts+32443, /* "xDelete" */
+ tvfsExecTcl(tls, p, ts+34508, /* "xDelete" */
tcl.XTcl_NewStringObj(tls, zPath, -1), tcl.XTcl_NewIntObj(tls, dirSync), uintptr(0), uintptr(0))
tvfsResultCode(tls, p, bp /* &rc */)
}
@@ -70558,7 +75871,7 @@ func tvfsDelete(tls *crt.TLS, pVfs uintptr, zPath uintptr, dirSync int32) int32
// Test for access permissions. Return true if the requested permission
// is available, or false otherwise.
-func tvfsAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_vfs.c:722:12: */
+func tvfsAccess(tls *libc.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut uintptr) int32 { /* test_vfs.c:722:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70568,15 +75881,15 @@ func tvfsAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut
var zArg uintptr = uintptr(0)
if flags == 0 {
- zArg = ts + 35432 /* "SQLITE_ACCESS_EX..." */
+ zArg = ts + 37513 /* "SQLITE_ACCESS_EX..." */
}
if flags == 1 {
- zArg = ts + 35453 /* "SQLITE_ACCESS_RE..." */
+ zArg = ts + 37534 /* "SQLITE_ACCESS_RE..." */
}
if flags == 2 {
- zArg = ts + 35477 /* "SQLITE_ACCESS_RE..." */
+ zArg = ts + 37558 /* "SQLITE_ACCESS_RE..." */
}
- tvfsExecTcl(tls, p, ts+32451, /* "xAccess" */
+ tvfsExecTcl(tls, p, ts+34516, /* "xAccess" */
tcl.XTcl_NewStringObj(tls, zPath, -1), tcl.XTcl_NewStringObj(tls, zArg, -1), uintptr(0), uintptr(0))
if tvfsResultCode(tls, p, bp /* &rc */) != 0 {
if *(*int32)(unsafe.Pointer(bp /* rc */)) != 0 {
@@ -70595,7 +75908,7 @@ func tvfsAccess(tls *crt.TLS, pVfs uintptr, zPath uintptr, flags int32, pResOut
// Populate buffer zOut with the full canonical pathname corresponding
// to the pathname in zPath. zOut is guaranteed to point to a buffer
// of at least (DEVSYM_MAX_PATHNAME+1) bytes.
-func tvfsFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_vfs.c:755:12: */
+func tvfsFullPathname(tls *libc.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOut uintptr) int32 { /* test_vfs.c:755:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70603,7 +75916,7 @@ func tvfsFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOu
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00008000) != 0) {
// var rc int32 at bp, 4
- tvfsExecTcl(tls, p, ts+32459 /* "xFullPathname" */, tcl.XTcl_NewStringObj(tls, zPath, -1), uintptr(0), uintptr(0), uintptr(0))
+ tvfsExecTcl(tls, p, ts+34524 /* "xFullPathname" */, tcl.XTcl_NewStringObj(tls, zPath, -1), uintptr(0), uintptr(0), uintptr(0))
if tvfsResultCode(tls, p, bp /* &rc */) != 0 {
if *(*int32)(unsafe.Pointer(bp /* rc */)) != 0 {
return *(*int32)(unsafe.Pointer(bp /* rc */))
@@ -70615,22 +75928,22 @@ func tvfsFullPathname(tls *crt.TLS, pVfs uintptr, zPath uintptr, nOut int32, zOu
// Populate the buffer pointed to by zBufOut with nByte bytes of
// random data.
-func tvfsRandomness(tls *crt.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_vfs.c:808:12: */
+func tvfsRandomness(tls *libc.TLS, pVfs uintptr, nByte int32, zBufOut uintptr) int32 { /* test_vfs.c:808:12: */
return sqlite3.Xsqlite3OsRandomness(tls, (*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent, nByte, zBufOut)
}
// Sleep for nMicro microseconds. Return the number of microseconds
// actually slept.
-func tvfsSleep(tls *crt.TLS, pVfs uintptr, nMicro int32) int32 { /* test_vfs.c:816:12: */
+func tvfsSleep(tls *libc.TLS, pVfs uintptr, nMicro int32) int32 { /* test_vfs.c:816:12: */
return sqlite3.Xsqlite3OsSleep(tls, (*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent, nMicro)
}
// Return the current time as a Julian Day number in *pTimeOut.
-func tvfsCurrentTime(tls *crt.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_vfs.c:823:12: */
- return (*(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent + 120 /* &.xCurrentTime */))))(tls, (*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent, pTimeOut)
+func tvfsCurrentTime(tls *libc.TLS, pVfs uintptr, pTimeOut uintptr) int32 { /* test_vfs.c:823:12: */
+ return (*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent + 120 /* &.xCurrentTime */))))(tls, (*Testvfs)(unsafe.Pointer((*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData)).FpParent, pTimeOut)
}
-func tvfsShmOpen(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:827:12: */
+func tvfsShmOpen(tls *libc.TLS, pFile uintptr) int32 { /* test_vfs.c:827:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70647,7 +75960,7 @@ func tvfsShmOpen(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:827:12: */
// SCRIPT xShmOpen FILENAME
tcl.XTcl_ResetResult(tls, (*Testvfs)(unsafe.Pointer(p)).Finterp)
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00000001) != 0) {
- tvfsExecTcl(tls, p, ts+35496 /* "xShmOpen" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), uintptr(0), uintptr(0), uintptr(0))
+ tvfsExecTcl(tls, p, ts+37577 /* "xShmOpen" */, tcl.XTcl_NewStringObj(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, -1), uintptr(0), uintptr(0), uintptr(0))
if tvfsResultCode(tls, p, bp /* &rc */) != 0 {
if *(*int32)(unsafe.Pointer(bp /* rc */)) != 0 {
return *(*int32)(unsafe.Pointer(bp /* rc */))
@@ -70661,17 +75974,17 @@ func tvfsShmOpen(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:827:12: */
// Search for a TestvfsBuffer. Create a new one if required.
for pBuffer = (*Testvfs)(unsafe.Pointer(p)).FpBuffer; pBuffer != 0; pBuffer = (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FpNext {
- if 0 == crt.Xstrcmp(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile) {
+ if 0 == libc.Xstrcmp(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile) {
break
}
}
if !(pBuffer != 0) {
- var szName int32 = int32(crt.Xstrlen(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename))
+ var szName int32 = int32(libc.Xstrlen(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename))
var nByte int32 = (int32((uint64(unsafe.Sizeof(TestvfsBuffer{})) + uint64(szName)) + uint64(1)))
pBuffer = tcl.XTcl_Alloc(tls, uint32(nByte))
- crt.Xmemset(tls, pBuffer, 0, uint64(nByte))
+ libc.Xmemset(tls, pBuffer, 0, uint64(nByte))
(*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile = (pBuffer + uintptr(1)*8224)
- crt.Xmemcpy(tls, (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, (uint64(szName + 1)))
+ libc.Xmemcpy(tls, (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile, (*TestvfsFd)(unsafe.Pointer(pFd)).FzFilename, (uint64(szName + 1)))
(*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FpNext = (*Testvfs)(unsafe.Pointer(p)).FpBuffer
(*Testvfs)(unsafe.Pointer(p)).FpBuffer = pBuffer
}
@@ -70683,16 +75996,16 @@ func tvfsShmOpen(tls *crt.TLS, pFile uintptr) int32 { /* test_vfs.c:827:12: */
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func tvfsAllocPage(tls *crt.TLS, p uintptr, iPage int32, pgsz int32) { /* test_vfs.c:877:13: */
+func tvfsAllocPage(tls *libc.TLS, p uintptr, iPage int32, pgsz int32) { /* test_vfs.c:877:13: */
if *(*uintptr)(unsafe.Pointer((p + 16 /* &.aPage */) + uintptr(iPage)*8)) == uintptr(0) {
*(*uintptr)(unsafe.Pointer((p + 16 /* &.aPage */) + uintptr(iPage)*8)) = tcl.XTcl_Alloc(tls, uint32(pgsz))
- crt.Xmemset(tls, *(*uintptr)(unsafe.Pointer((p + 16 /* &.aPage */) + uintptr(iPage)*8)), 0, uint64(pgsz))
+ libc.Xmemset(tls, *(*uintptr)(unsafe.Pointer((p + 16 /* &.aPage */) + uintptr(iPage)*8)), 0, uint64(pgsz))
(*TestvfsBuffer)(unsafe.Pointer(p)).Fpgsz = pgsz
}
}
-func tvfsShmMap(tls *crt.TLS, pFile uintptr, iPage int32, pgsz int32, isWrite int32, pp uintptr) int32 { /* test_vfs.c:886:12: */
+func tvfsShmMap(tls *libc.TLS, pFile uintptr, iPage int32, pgsz int32, isWrite int32, pp uintptr) int32 { /* test_vfs.c:886:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70717,12 +76030,12 @@ func tvfsShmMap(tls *crt.TLS, pFile uintptr, iPage int32, pgsz int32, isWrite in
tcl.XTcl_ListObjAppendElement(tls, (*Testvfs)(unsafe.Pointer(p)).Finterp, pArg, tcl.XTcl_NewIntObj(tls, iPage))
tcl.XTcl_ListObjAppendElement(tls, (*Testvfs)(unsafe.Pointer(p)).Finterp, pArg, tcl.XTcl_NewIntObj(tls, pgsz))
tcl.XTcl_ListObjAppendElement(tls, (*Testvfs)(unsafe.Pointer(p)).Finterp, pArg, tcl.XTcl_NewIntObj(tls, isWrite))
- tvfsExecTcl(tls, p, ts+32536, /* "xShmMap" */
+ tvfsExecTcl(tls, p, ts+34601, /* "xShmMap" */
tcl.XTcl_NewStringObj(tls, (*TestvfsBuffer)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpShm)).FzFile, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, pArg, uintptr(0))
tvfsResultCode(tls, p, bp /* &rc */)
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = pArg
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -70741,7 +76054,7 @@ func tvfsShmMap(tls *crt.TLS, pFile uintptr, iPage int32, pgsz int32, isWrite in
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func tvfsShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test_vfs.c:935:12: */
+func tvfsShmLock(tls *libc.TLS, pFile uintptr, ofst int32, n int32, flags int32) int32 { /* test_vfs.c:935:12: */
bp := tls.Alloc(100)
defer tls.Free(100)
@@ -70756,20 +76069,20 @@ func tvfsShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32)
}
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00000010) != 0) {
- sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([80]int8{})), bp+16 /* &zLock[0] */, ts+15440 /* "%d %d" */, crt.VaList(bp, ofst, n))
- nLock = int32(crt.Xstrlen(tls, bp+16 /* &zLock[0] */))
+ sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([80]int8{})), bp+16 /* &zLock[0] */, ts+17132 /* "%d %d" */, libc.VaList(bp, ofst, n))
+ nLock = int32(libc.Xstrlen(tls, bp+16 /* &zLock[0] */))
if (flags & 2) != 0 {
- crt.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+35505 /* " lock" */)
+ libc.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+37586 /* " lock" */)
} else {
- crt.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+35511 /* " unlock" */)
+ libc.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+37592 /* " unlock" */)
}
- nLock = nLock + (int32(crt.Xstrlen(tls, (bp + 16 /* &zLock */ + uintptr(nLock)))))
+ nLock = nLock + (int32(libc.Xstrlen(tls, (bp + 16 /* &zLock */ + uintptr(nLock)))))
if (flags & 4) != 0 {
- crt.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+35519 /* " shared" */)
+ libc.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+37600 /* " shared" */)
} else {
- crt.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+35527 /* " exclusive" */)
+ libc.Xstrcpy(tls, (bp + 16 /* &zLock */ + uintptr(nLock)), ts+37608 /* " exclusive" */)
}
- tvfsExecTcl(tls, p, ts+32515, /* "xShmLock" */
+ tvfsExecTcl(tls, p, ts+34580, /* "xShmLock" */
tcl.XTcl_NewStringObj(tls, (*TestvfsBuffer)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpShm)).FzFile, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId,
tcl.XTcl_NewStringObj(tls, bp+16 /* &zLock[0] */, -1), uintptr(0))
tvfsResultCode(tls, p, bp+96 /* &rc */)
@@ -70782,7 +76095,7 @@ func tvfsShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32)
if *(*int32)(unsafe.Pointer(bp + 96 /* rc */)) == 0 {
var isLock int32 = (flags & 2)
var isExcl int32 = (flags & 8)
- var mask u321 = (u321(((int32(1) << n) - 1) << ofst))
+ var mask u322 = (u322(((int32(1) << n) - 1) << ofst))
if isLock != 0 {
var p2 uintptr
for p2 = (*TestvfsBuffer)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpShm)).FpFile; p2 != 0; p2 = (*TestvfsFd)(unsafe.Pointer(p2)).FpNext {
@@ -70796,18 +76109,18 @@ func tvfsShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32)
}
if *(*int32)(unsafe.Pointer(bp + 96 /* rc */)) == 0 {
if isExcl != 0 {
- *(*u321)(unsafe.Pointer(pFd + 40 /* &.excllock */)) |= (mask)
+ *(*u322)(unsafe.Pointer(pFd + 40 /* &.excllock */)) |= (mask)
}
if !(isExcl != 0) {
- *(*u321)(unsafe.Pointer(pFd + 44 /* &.sharedlock */)) |= (mask)
+ *(*u322)(unsafe.Pointer(pFd + 44 /* &.sharedlock */)) |= (mask)
}
}
} else {
if isExcl != 0 {
- *(*u321)(unsafe.Pointer(pFd + 40 /* &.excllock */)) &= (^mask)
+ *(*u322)(unsafe.Pointer(pFd + 40 /* &.excllock */)) &= (^mask)
}
if !(isExcl != 0) {
- *(*u321)(unsafe.Pointer(pFd + 44 /* &.sharedlock */)) &= (^mask)
+ *(*u322)(unsafe.Pointer(pFd + 44 /* &.sharedlock */)) &= (^mask)
}
}
}
@@ -70815,7 +76128,7 @@ func tvfsShmLock(tls *crt.TLS, pFile uintptr, ofst int32, n int32, flags int32)
return *(*int32)(unsafe.Pointer(bp + 96 /* rc */))
}
-func tvfsShmBarrier(tls *crt.TLS, pFile uintptr) { /* test_vfs.c:1002:13: */
+func tvfsShmBarrier(tls *libc.TLS, pFile uintptr) { /* test_vfs.c:1002:13: */
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
var p uintptr = (*sqlite3_vfs)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpVfs)).FpAppData
@@ -70826,7 +76139,7 @@ func tvfsShmBarrier(tls *crt.TLS, pFile uintptr) { /* test_vfs.c:1002:13: */
} else {
z = ts + 488 /* "" */
}
- tvfsExecTcl(tls, p, ts+32524 /* "xShmBarrier" */, tcl.XTcl_NewStringObj(tls, z, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, uintptr(0), uintptr(0))
+ tvfsExecTcl(tls, p, ts+34589 /* "xShmBarrier" */, tcl.XTcl_NewStringObj(tls, z, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, uintptr(0), uintptr(0))
}
if (*Testvfs)(unsafe.Pointer(p)).FisFullshm != 0 {
@@ -70835,7 +76148,7 @@ func tvfsShmBarrier(tls *crt.TLS, pFile uintptr) { /* test_vfs.c:1002:13: */
}
}
-func tvfsShmUnmap(tls *crt.TLS, pFile uintptr, deleteFlag int32) int32 { /* test_vfs.c:1017:12: */
+func tvfsShmUnmap(tls *libc.TLS, pFile uintptr, deleteFlag int32) int32 { /* test_vfs.c:1017:12: */
bp := tls.Alloc(4)
defer tls.Free(4)
@@ -70854,7 +76167,7 @@ func tvfsShmUnmap(tls *crt.TLS, pFile uintptr, deleteFlag int32) int32 { /* test
}
if ((*Testvfs)(unsafe.Pointer(p)).FpScript != 0) && (((*Testvfs)(unsafe.Pointer(p)).Fmask & 0x00000080) != 0) {
- tvfsExecTcl(tls, p, ts+32505, /* "xShmUnmap" */
+ tvfsExecTcl(tls, p, ts+34570, /* "xShmUnmap" */
tcl.XTcl_NewStringObj(tls, (*TestvfsBuffer)(unsafe.Pointer((*TestvfsFd)(unsafe.Pointer(pFd)).FpShm)).FzFile, -1), (*TestvfsFd)(unsafe.Pointer(pFd)).FpShmId, uintptr(0), uintptr(0))
tvfsResultCode(tls, p, bp /* &rc */)
}
@@ -70881,31 +76194,31 @@ func tvfsShmUnmap(tls *crt.TLS, pFile uintptr, deleteFlag int32) int32 { /* test
return *(*int32)(unsafe.Pointer(bp /* rc */))
}
-func tvfsFetch(tls *crt.TLS, pFile uintptr, iOfst sqlite3_int64, iAmt int32, pp uintptr) int32 { /* test_vfs.c:1061:12: */
+func tvfsFetch(tls *libc.TLS, pFile uintptr, iOfst sqlite3_int64, iAmt int32, pp uintptr) int32 { /* test_vfs.c:1061:12: */
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
return sqlite3.Xsqlite3OsFetch(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FpReal, iOfst, iAmt, pp)
}
-func tvfsUnfetch(tls *crt.TLS, pFile uintptr, iOfst sqlite3_int64, p uintptr) int32 { /* test_vfs.c:1071:12: */
+func tvfsUnfetch(tls *libc.TLS, pFile uintptr, iOfst sqlite3_int64, p uintptr) int32 { /* test_vfs.c:1071:12: */
var pFd uintptr = (*TestvfsFile)(unsafe.Pointer(pFile)).FpFd
return sqlite3.Xsqlite3OsUnfetch(tls, (*TestvfsFd)(unsafe.Pointer(pFd)).FpReal, iOfst, p)
}
-func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1076:26: */
+func testvfs_obj_cmd(tls *libc.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1076:26: */
bp := tls.Alloc(568)
defer tls.Free(568)
var p uintptr = cd
*(*[10]TestvfsSubcmd)(unsafe.Pointer(bp + 96 /* aSubcmd */)) = [10]TestvfsSubcmd{
- {FzName: ts + 35538 /* "shm" */, FeCmd: uint32(0) /* CMD_SHM */},
- {FzName: ts + 35542 /* "delete" */, FeCmd: uint32(1) /* CMD_DELETE */},
- {FzName: ts + 35549 /* "filter" */, FeCmd: uint32(2) /* CMD_FILTER */},
- {FzName: ts + 35556 /* "ioerr" */, FeCmd: uint32(3) /* CMD_IOERR */},
- {FzName: ts + 35562 /* "fullerr" */, FeCmd: uint32(7) /* CMD_FULLERR */},
- {FzName: ts + 35570 /* "cantopenerr" */, FeCmd: uint32(8) /* CMD_CANTOPENERR */},
- {FzName: ts + 35582 /* "script" */, FeCmd: uint32(4) /* CMD_SCRIPT */},
- {FzName: ts + 35589 /* "devchar" */, FeCmd: uint32(5) /* CMD_DEVCHAR */},
- {FzName: ts + 35597 /* "sectorsize" */, FeCmd: uint32(6) /* CMD_SECTORSIZE */},
+ {FzName: ts + 37619 /* "shm" */, FeCmd: uint32(0) /* CMD_SHM */},
+ {FzName: ts + 37623 /* "delete" */, FeCmd: uint32(1) /* CMD_DELETE */},
+ {FzName: ts + 37630 /* "filter" */, FeCmd: uint32(2) /* CMD_FILTER */},
+ {FzName: ts + 37637 /* "ioerr" */, FeCmd: uint32(3) /* CMD_IOERR */},
+ {FzName: ts + 37643 /* "fullerr" */, FeCmd: uint32(7) /* CMD_FULLERR */},
+ {FzName: ts + 37651 /* "cantopenerr" */, FeCmd: uint32(8) /* CMD_CANTOPENERR */},
+ {FzName: ts + 37663 /* "script" */, FeCmd: uint32(4) /* CMD_SCRIPT */},
+ {FzName: ts + 37670 /* "devchar" */, FeCmd: uint32(5) /* CMD_DEVCHAR */},
+ {FzName: ts + 37678 /* "sectorsize" */, FeCmd: uint32(6) /* CMD_SECTORSIZE */},
{FzName: uintptr(0), FeCmd: uint32(0)},
}
// var i int32 at bp+256, 4
@@ -70915,7 +76228,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
return 1
}
if tcl.XTcl_GetIndexFromObjStruct(tls,
- interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+96 /* &aSubcmd[0] */, int32(unsafe.Sizeof(TestvfsSubcmd{})), ts+35608 /* "subcommand" */, 0, bp+256 /* &i */) != 0 {
+ interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)), bp+96 /* &aSubcmd[0] */, int32(unsafe.Sizeof(TestvfsSubcmd{})), ts+37689 /* "subcommand" */, 0, bp+256 /* &i */) != 0 {
return 1
}
tcl.XTcl_ResetResult(tls, interp)
@@ -70928,27 +76241,27 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
var pBuffer uintptr
var zName uintptr
if (objc != 3) && (objc != 4) {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+35619 /* "FILE ?VALUE?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+37700 /* "FILE ?VALUE?" */)
return 1
}
zName = tcl.XTcl_Alloc(tls, uint32((*sqlite3_vfs)(unsafe.Pointer((*Testvfs)(unsafe.Pointer(p)).FpParent)).FmxPathname))
- rc = (*(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer(p)).FpParent + 64 /* &.xFullPathname */))))(tls,
+ rc = (*(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(((*Testvfs)(unsafe.Pointer(p)).FpParent + 64 /* &.xFullPathname */))))(tls,
(*Testvfs)(unsafe.Pointer(p)).FpParent, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))),
(*sqlite3_vfs)(unsafe.Pointer((*Testvfs)(unsafe.Pointer(p)).FpParent)).FmxPathname, zName)
if rc != 0 {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+35632, /* "failed to get fu..." */
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+37713, /* "failed to get fu..." */
tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 0))
tcl.XTcl_Free(tls, zName)
return 1
}
for pBuffer = (*Testvfs)(unsafe.Pointer(p)).FpBuffer; pBuffer != 0; pBuffer = (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FpNext {
- if 0 == crt.Xstrcmp(tls, (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile, zName) {
+ if 0 == libc.Xstrcmp(tls, (*TestvfsBuffer)(unsafe.Pointer(pBuffer)).FzFile, zName) {
break
}
}
tcl.XTcl_Free(tls, zName)
if !(pBuffer != 0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+24, ts+35658 /* "no such file: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+24, ts+37739 /* "no such file: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 0))
return 1
}
if objc == 4 {
@@ -70965,7 +76278,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
if (*(*int32)(unsafe.Pointer(bp + 260 /* n */)) - (*(*int32)(unsafe.Pointer(bp + 256 /* i */)) * pgsz)) < pgsz {
nByte = *(*int32)(unsafe.Pointer(bp + 260 /* n */))
}
- crt.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((pBuffer + 16 /* &.aPage */) + uintptr(*(*int32)(unsafe.Pointer(bp + 256 /* i */)))*8)), (a + uintptr((*(*int32)(unsafe.Pointer(bp + 256 /* i */)) * pgsz))), uint64(nByte))
+ libc.Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((pBuffer + 16 /* &.aPage */) + uintptr(*(*int32)(unsafe.Pointer(bp + 256 /* i */)))*8)), (a + uintptr((*(*int32)(unsafe.Pointer(bp + 256 /* i */)) * pgsz))), uint64(nByte))
}
}
@@ -70990,7 +76303,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
*(*int32)(unsafe.Pointer(bp + 264 /* nElem */)) = 0
var mask int32 = 0
if objc != 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+29236 /* "LIST" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+31328 /* "LIST" */)
return 1
}
if tcl.XTcl_ListObjGetElements(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)), bp+264 /* &nElem */, bp+272 /* &apElem */) != 0 {
@@ -71001,13 +76314,13 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
var iMethod int32
var zElem uintptr = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 272 /* apElem */)) + uintptr(*(*int32)(unsafe.Pointer(bp + 256 /* i */)))*8)))
for iMethod = 0; iMethod < (int32(uint64(unsafe.Sizeof(vfsmethod)) / uint64(unsafe.Sizeof(VfsMethod{})))); iMethod++ {
- if crt.Xstrcmp(tls, zElem, vfsmethod[iMethod].FzName) == 0 {
+ if libc.Xstrcmp(tls, zElem, vfsmethod[iMethod].FzName) == 0 {
mask = mask | (vfsmethod[iMethod].Fmask)
break
}
}
if iMethod == (int32(uint64(unsafe.Sizeof(vfsmethod)) / uint64(unsafe.Sizeof(VfsMethod{})))) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+48, ts+35673 /* "unknown method: " */, zElem, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+48, ts+37754 /* "unknown method: " */, zElem, 0))
return 1
}
}
@@ -71027,7 +76340,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
if (*Testvfs)(unsafe.Pointer(p)).FpScript != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*Testvfs)(unsafe.Pointer(p)).FpScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -71039,7 +76352,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
(*Tcl_Obj)(unsafe.Pointer((*Testvfs)(unsafe.Pointer(p)).FpScript)).FrefCount++
}
} else if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+11110 /* "?SCRIPT?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+12760 /* "?SCRIPT?" */)
return 1
}
@@ -71097,7 +76410,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
}()
(*TestFaultInject)(unsafe.Pointer(pTest)).FiCnt = *(*int32)(unsafe.Pointer(bp + 284 /* iCnt */))
} else if objc != 2 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+35690 /* "?CNT PERSIST?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+37771 /* "?CNT PERSIST?" */)
return 1
}
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, iRet))
@@ -71113,28 +76426,28 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
case uint32(5) /* CMD_DEVCHAR */ :
{
*(*[16]DeviceFlag)(unsafe.Pointer(bp + 304 /* aFlag */)) = [16]DeviceFlag{
- {FzName: ts + 35704 /* "default" */, FiValue: -1},
- {FzName: ts + 23282 /* "atomic" */, FiValue: 0x00000001},
- {FzName: ts + 23289 /* "atomic512" */, FiValue: 0x00000002},
- {FzName: ts + 23299 /* "atomic1k" */, FiValue: 0x00000004},
- {FzName: ts + 23308 /* "atomic2k" */, FiValue: 0x00000008},
- {FzName: ts + 23317 /* "atomic4k" */, FiValue: 0x00000010},
- {FzName: ts + 23326 /* "atomic8k" */, FiValue: 0x00000020},
- {FzName: ts + 23335 /* "atomic16k" */, FiValue: 0x00000040},
- {FzName: ts + 23345 /* "atomic32k" */, FiValue: 0x00000080},
- {FzName: ts + 23355 /* "atomic64k" */, FiValue: 0x00000100},
- {FzName: ts + 23365 /* "sequential" */, FiValue: 0x00000400},
- {FzName: ts + 23376 /* "safe_append" */, FiValue: 0x00000200},
- {FzName: ts + 35712 /* "undeletable_when..." */, FiValue: 0x00000800},
- {FzName: ts + 23388 /* "powersafe_overwr..." */, FiValue: 0x00001000},
- {FzName: ts + 35734 /* "immutable" */, FiValue: 0x00002000},
+ {FzName: ts + 37785 /* "default" */, FiValue: -1},
+ {FzName: ts + 25381 /* "atomic" */, FiValue: 0x00000001},
+ {FzName: ts + 25388 /* "atomic512" */, FiValue: 0x00000002},
+ {FzName: ts + 25398 /* "atomic1k" */, FiValue: 0x00000004},
+ {FzName: ts + 25407 /* "atomic2k" */, FiValue: 0x00000008},
+ {FzName: ts + 25416 /* "atomic4k" */, FiValue: 0x00000010},
+ {FzName: ts + 25425 /* "atomic8k" */, FiValue: 0x00000020},
+ {FzName: ts + 25434 /* "atomic16k" */, FiValue: 0x00000040},
+ {FzName: ts + 25444 /* "atomic32k" */, FiValue: 0x00000080},
+ {FzName: ts + 25454 /* "atomic64k" */, FiValue: 0x00000100},
+ {FzName: ts + 25464 /* "sequential" */, FiValue: 0x00000400},
+ {FzName: ts + 25475 /* "safe_append" */, FiValue: 0x00000200},
+ {FzName: ts + 37793 /* "undeletable_when..." */, FiValue: 0x00000800},
+ {FzName: ts + 25487 /* "powersafe_overwr..." */, FiValue: 0x00001000},
+ {FzName: ts + 37815 /* "immutable" */, FiValue: 0x00002000},
{FzName: uintptr(0), FiValue: 0},
}
var pRet uintptr
var iFlag int32
if objc > 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+35744 /* "?ATTR-LIST?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+37825 /* "?ATTR-LIST?" */)
return 1
}
if objc == 3 {
@@ -71150,11 +76463,11 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
for j = 0; j < *(*int32)(unsafe.Pointer(bp + 292 /* nFlags */)); j++ {
*(*int32)(unsafe.Pointer(bp + 560 /* idx */)) = 0
if tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 296 /* flags */)) + uintptr(j)*8)), bp+304, /* &aFlag[0] */
- int32(unsafe.Sizeof(DeviceFlag{})), ts+15142 /* "flag" */, 0, bp+560 /* &idx */) != 0 {
+ int32(unsafe.Sizeof(DeviceFlag{})), ts+16852 /* "flag" */, 0, bp+560 /* &idx */) != 0 {
return 1
}
if ((*DeviceFlag)(unsafe.Pointer(bp+304 /* &aFlag */ +uintptr(*(*int32)(unsafe.Pointer(bp + 560 /* idx */)))*16)).FiValue < 0) && (*(*int32)(unsafe.Pointer(bp + 292 /* nFlags */)) > 1) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp+72, ts+35756 /* "bad flags: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp+72, ts+37837 /* "bad flags: " */, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8))), 0))
return 1
}
iNew = iNew | ((*DeviceFlag)(unsafe.Pointer(bp + 304 /* &aFlag */ + uintptr(*(*int32)(unsafe.Pointer(bp + 560 /* idx */)))*16)).FiValue)
@@ -71178,7 +76491,7 @@ func testvfs_obj_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, ob
case uint32(6) /* CMD_SECTORSIZE */ :
{
if objc > 3 {
- tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+35768 /* "?VALUE?" */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 2, objv, ts+37849 /* "?VALUE?" */)
return 1
}
if objc == 3 {
@@ -71209,40 +76522,40 @@ type VfsMethod = struct {
}
var vfsmethod = [18]VfsMethod{
- {FzName: ts + 35496 /* "xShmOpen" */, Fmask: 0x00000001},
- {FzName: ts + 32515 /* "xShmLock" */, Fmask: 0x00000010},
- {FzName: ts + 32524 /* "xShmBarrier" */, Fmask: 0x00000040},
- {FzName: ts + 32505 /* "xShmUnmap" */, Fmask: 0x00000080},
- {FzName: ts + 32536 /* "xShmMap" */, Fmask: 0x00000020},
- {FzName: ts + 24735 /* "xSync" */, Fmask: 0x00000200},
- {FzName: ts + 32443 /* "xDelete" */, Fmask: 0x00000400},
- {FzName: ts + 32351 /* "xWrite" */, Fmask: 0x00001000},
- {FzName: ts + 32345 /* "xRead" */, Fmask: 0x00010000},
- {FzName: ts + 32358 /* "xTruncate" */, Fmask: 0x00002000},
- {FzName: ts + 24300 /* "xOpen" */, Fmask: 0x00000100},
- {FzName: ts + 32338 /* "xClose" */, Fmask: 0x00000800},
- {FzName: ts + 32451 /* "xAccess" */, Fmask: 0x00004000},
- {FzName: ts + 32459 /* "xFullPathname" */, Fmask: 0x00008000},
- {FzName: ts + 32384 /* "xUnlock" */, Fmask: 0x00020000},
- {FzName: ts + 32378 /* "xLock" */, Fmask: 0x00040000},
- {FzName: ts + 35362 /* "xCheckReservedLo..." */, Fmask: 0x00080000},
- {FzName: ts + 32406 /* "xFileControl" */, Fmask: 0x00100000},
+ {FzName: ts + 37577 /* "xShmOpen" */, Fmask: 0x00000001},
+ {FzName: ts + 34580 /* "xShmLock" */, Fmask: 0x00000010},
+ {FzName: ts + 34589 /* "xShmBarrier" */, Fmask: 0x00000040},
+ {FzName: ts + 34570 /* "xShmUnmap" */, Fmask: 0x00000080},
+ {FzName: ts + 34601 /* "xShmMap" */, Fmask: 0x00000020},
+ {FzName: ts + 26827 /* "xSync" */, Fmask: 0x00000200},
+ {FzName: ts + 34508 /* "xDelete" */, Fmask: 0x00000400},
+ {FzName: ts + 34416 /* "xWrite" */, Fmask: 0x00001000},
+ {FzName: ts + 34410 /* "xRead" */, Fmask: 0x00010000},
+ {FzName: ts + 34423 /* "xTruncate" */, Fmask: 0x00002000},
+ {FzName: ts + 26399 /* "xOpen" */, Fmask: 0x00000100},
+ {FzName: ts + 34403 /* "xClose" */, Fmask: 0x00000800},
+ {FzName: ts + 34516 /* "xAccess" */, Fmask: 0x00004000},
+ {FzName: ts + 34524 /* "xFullPathname" */, Fmask: 0x00008000},
+ {FzName: ts + 34449 /* "xUnlock" */, Fmask: 0x00020000},
+ {FzName: ts + 34443 /* "xLock" */, Fmask: 0x00040000},
+ {FzName: ts + 37443 /* "xCheckReservedLo..." */, Fmask: 0x00080000},
+ {FzName: ts + 34471 /* "xFileControl" */, Fmask: 0x00100000},
} /* test_vfs.c:1178:9 */
-func testvfs_obj_del(tls *crt.TLS, cd ClientData) { /* test_vfs.c:1389:27: */
+func testvfs_obj_del(tls *libc.TLS, cd ClientData) { /* test_vfs.c:1389:27: */
var p uintptr = cd
if (*Testvfs)(unsafe.Pointer(p)).FpScript != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*Testvfs)(unsafe.Pointer(p)).FpScript
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
}
sqlite3.Xsqlite3_vfs_unregister(tls, (*Testvfs)(unsafe.Pointer(p)).FpVfs)
- crt.Xmemset(tls, (*Testvfs)(unsafe.Pointer(p)).FpVfs, 0, uint64(unsafe.Sizeof(sqlite3_vfs{})))
+ libc.Xmemset(tls, (*Testvfs)(unsafe.Pointer(p)).FpVfs, 0, uint64(unsafe.Sizeof(sqlite3_vfs{})))
tcl.XTcl_Free(tls, (*Testvfs)(unsafe.Pointer(p)).FpVfs)
- crt.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Testvfs{})))
+ libc.Xmemset(tls, p, 0, uint64(unsafe.Sizeof(Testvfs{})))
tcl.XTcl_Free(tls, p)
}
@@ -71279,7 +76592,7 @@ func testvfs_obj_del(tls *crt.TLS, cd ClientData) { /* test_vfs.c:1389:27: */
// SCRIPT xShmLock FILENAME ID LOCK
//
// where LOCK is of the form "OFFSET NBYTE lock/unlock shared/exclusive"
-func testvfs_cmd(tls *crt.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1434:26: */
+func testvfs_cmd(tls *libc.TLS, cd ClientData, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1434:26: */
bp := tls.Alloc(28)
defer tls.Free(28)
@@ -71324,7 +76637,7 @@ __2:
}
zSwitch = tcl.XTcl_GetStringFromObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(i)*8)), bp /* &nSwitch */)
- if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == crt.Xstrncmp(tls, ts+35776 /* "-noshm" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
+ if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == libc.Xstrncmp(tls, ts+37857 /* "-noshm" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
goto __5
}
if !(tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((i+1))*8)), bp+4 /* &isNoshm */) != 0) {
@@ -71341,7 +76654,7 @@ __8:
;
goto __6
__5:
- if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == crt.Xstrncmp(tls, ts+23658 /* "-default" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
+ if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == libc.Xstrncmp(tls, ts+25757 /* "-default" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
goto __9
}
if !(tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((i+1))*8)), bp+8 /* &isDefault */) != 0) {
@@ -71352,7 +76665,7 @@ __11:
;
goto __10
__9:
- if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == crt.Xstrncmp(tls, ts+35783 /* "-szosfile" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
+ if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == libc.Xstrncmp(tls, ts+37864 /* "-szosfile" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
goto __12
}
if !(tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((i+1))*8)), bp+12 /* &szOsFile */) != 0) {
@@ -71363,7 +76676,7 @@ __14:
;
goto __13
__12:
- if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == crt.Xstrncmp(tls, ts+35793 /* "-mxpathname" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
+ if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == libc.Xstrncmp(tls, ts+37874 /* "-mxpathname" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
goto __15
}
if !(tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((i+1))*8)), bp+16 /* &mxPathname */) != 0) {
@@ -71374,7 +76687,7 @@ __17:
;
goto __16
__15:
- if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == crt.Xstrncmp(tls, ts+35805 /* "-iversion" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
+ if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == libc.Xstrncmp(tls, ts+37886 /* "-iversion" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
goto __18
}
if !(tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((i+1))*8)), bp+20 /* &iVersion */) != 0) {
@@ -71385,7 +76698,7 @@ __20:
;
goto __19
__18:
- if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == crt.Xstrncmp(tls, ts+35815 /* "-fullshm" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
+ if !((*(*int32)(unsafe.Pointer(bp /* nSwitch */)) > 2) && (0 == libc.Xstrncmp(tls, ts+37896 /* "-fullshm" */, zSwitch, uint64(*(*int32)(unsafe.Pointer(bp /* nSwitch */)))))) {
goto __21
}
if !(tcl.XTcl_GetBooleanFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr((i+1))*8)), bp+24 /* &isFullshm */) != 0) {
@@ -71431,9 +76744,9 @@ __25:
;
zVfs = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8)))
- nByte = (int32((uint64(unsafe.Sizeof(Testvfs{})) + uint64(int32(crt.Xstrlen(tls, zVfs)))) + uint64(1)))
+ nByte = (int32((uint64(unsafe.Sizeof(Testvfs{})) + uint64(int32(libc.Xstrlen(tls, zVfs)))) + uint64(1)))
p = tcl.XTcl_Alloc(tls, uint32(nByte))
- crt.Xmemset(tls, p, 0, uint64(nByte))
+ libc.Xmemset(tls, p, 0, uint64(nByte))
(*Testvfs)(unsafe.Pointer(p)).FiDevchar = -1
(*Testvfs)(unsafe.Pointer(p)).FiSectorsize = -1
@@ -71443,16 +76756,16 @@ __25:
// is currently the default, the new [testvfs] may end up calling the
// methods of a deleted object.
tcl.XTcl_CreateObjCommand(tls, interp, zVfs, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
- }{testvfs_obj_cmd})), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, ClientData) }{testvfs_obj_del})))
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
+ }{testvfs_obj_cmd})), p, *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, ClientData) }{testvfs_obj_del})))
(*Testvfs)(unsafe.Pointer(p)).FpParent = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
(*Testvfs)(unsafe.Pointer(p)).Finterp = interp
(*Testvfs)(unsafe.Pointer(p)).FzName = (p + uintptr(1)*104)
- crt.Xmemcpy(tls, (*Testvfs)(unsafe.Pointer(p)).FzName, zVfs, (crt.Xstrlen(tls, zVfs) + uint64(1)))
+ libc.Xmemcpy(tls, (*Testvfs)(unsafe.Pointer(p)).FzName, zVfs, (libc.Xstrlen(tls, zVfs) + uint64(1)))
pVfs = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(sqlite3_vfs{})))
- crt.Xmemcpy(tls, pVfs, uintptr(unsafe.Pointer(&tvfs_vfs)), uint64(unsafe.Sizeof(sqlite3_vfs{})))
+ libc.Xmemcpy(tls, pVfs, uintptr(unsafe.Pointer(&tvfs_vfs)), uint64(unsafe.Sizeof(sqlite3_vfs{})))
(*sqlite3_vfs)(unsafe.Pointer(pVfs)).FpAppData = p
(*sqlite3_vfs)(unsafe.Pointer(pVfs)).FiVersion = *(*int32)(unsafe.Pointer(bp + 20 /* iVersion */))
(*sqlite3_vfs)(unsafe.Pointer(pVfs)).FzName = (*Testvfs)(unsafe.Pointer(p)).FzName
@@ -71474,7 +76787,7 @@ __26:
return 0
bad_args:
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+35824 /* "VFSNAME ?-noshm ..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+37905 /* "VFSNAME ?-noshm ..." */)
return 1
}
@@ -71503,12 +76816,12 @@ uintptr(0), // xNextSystemCall
} /* test_vfs.c:1440:22 */
// tclcmd: vfs_shmlock DB DBNAME (shared|exclusive) (lock|unlock) OFFSET N
-func test_vfs_shmlock(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1582:26: */
+func test_vfs_shmlock(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1582:26: */
bp := tls.Alloc(88)
defer tls.Free(88)
- *(*[3]uintptr)(unsafe.Pointer(bp + 8 /* azArg1 */)) = [3]uintptr{ts + 35928 /* "shared" */, ts + 11849 /* "exclusive" */, uintptr(0)}
- *(*[3]uintptr)(unsafe.Pointer(bp + 40 /* azArg2 */)) = [3]uintptr{ts + 35935 /* "lock" */, ts + 35940 /* "unlock" */, uintptr(0)}
+ *(*[3]uintptr)(unsafe.Pointer(bp + 8 /* azArg1 */)) = [3]uintptr{ts + 38009 /* "shared" */, ts + 13480 /* "exclusive" */, uintptr(0)}
+ *(*[3]uintptr)(unsafe.Pointer(bp + 40 /* azArg2 */)) = [3]uintptr{ts + 38016 /* "lock" */, ts + 38021 /* "unlock" */, uintptr(0)}
*(*uintptr)(unsafe.Pointer(bp /* db */)) = uintptr(0)
var rc int32 = 0
var zDbname uintptr = uintptr(0)
@@ -71520,14 +76833,14 @@ func test_vfs_shmlock(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
if objc != 7 {
tcl.XTcl_WrongNumArgs(tls, interp, 1, objv,
- ts+35947 /* "DB DBNAME (share..." */)
+ ts+38028 /* "DB DBNAME (share..." */)
return 1
}
zDbname = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
if ((((getDbPointer(tls, interp, tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(1)*8))), bp /* &db */) != 0) ||
- (tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+8 /* &azArg1[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+35999 /* "ARG" */, 0, bp+32 /* &iArg1 */) != 0)) ||
- (tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)), bp+40 /* &azArg2[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+35999 /* "ARG" */, 0, bp+64 /* &iArg2 */) != 0)) ||
+ (tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)), bp+8 /* &azArg1[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+38080 /* "ARG" */, 0, bp+32 /* &iArg1 */) != 0)) ||
+ (tcl.XTcl_GetIndexFromObjStruct(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)), bp+40 /* &azArg2[0] */, int32(unsafe.Sizeof(uintptr(0))), ts+38080 /* "ARG" */, 0, bp+64 /* &iArg2 */) != 0)) ||
(tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(5)*8)), bp+68 /* &iOffset */) != 0)) ||
(tcl.XTcl_GetIntFromObj(tls, interp, *(*uintptr)(unsafe.Pointer(objv + uintptr(6)*8)), bp+72 /* &n */) != 0) {
return 1
@@ -71537,7 +76850,7 @@ func test_vfs_shmlock(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
if *(*uintptr)(unsafe.Pointer(bp + 80 /* pFd */)) == uintptr(0) {
return 1
}
- rc = (*(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 80 /* pFd */)))).FpMethods + 112 /* &.xShmLock */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pFd */)), *(*int32)(unsafe.Pointer(bp + 68 /* iOffset */)), *(*int32)(unsafe.Pointer(bp + 72 /* n */)),
+ rc = (*(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 80 /* pFd */)))).FpMethods + 112 /* &.xShmLock */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 80 /* pFd */)), *(*int32)(unsafe.Pointer(bp + 68 /* iOffset */)), *(*int32)(unsafe.Pointer(bp + 72 /* n */)),
((func() int32 {
if *(*int32)(unsafe.Pointer(bp + 32 /* iArg1 */)) == 0 {
return 4
@@ -71554,7 +76867,7 @@ func test_vfs_shmlock(tls *crt.TLS, clientData uintptr, interp uintptr, objc int
return 0
}
-func test_vfs_set_readmark(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1628:26: */
+func test_vfs_set_readmark(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_vfs.c:1628:26: */
bp := tls.Alloc(48)
defer tls.Free(48)
@@ -71570,7 +76883,7 @@ func test_vfs_set_readmark(tls *crt.TLS, clientData uintptr, interp uintptr, obj
var iOff int32
if (objc != 4) && (objc != 5) {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+36003 /* "DB DBNAME SLOT ?..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+38084 /* "DB DBNAME SLOT ?..." */)
return 1
}
@@ -71585,39 +76898,52 @@ func test_vfs_set_readmark(tls *crt.TLS, clientData uintptr, interp uintptr, obj
if *(*uintptr)(unsafe.Pointer(bp + 32 /* pFd */)) == uintptr(0) {
return 1
}
- rc = (*(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* pFd */)))).FpMethods + 104 /* &.xShmMap */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pFd */)), 0, (32 * 1024), 0, bp+40 /* &pShm */)
+ rc = (*(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(((*sqlite3_file)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* pFd */)))).FpMethods + 104 /* &.xShmMap */))))(tls, *(*uintptr)(unsafe.Pointer(bp + 32 /* pFd */)), 0, (32 * 1024), 0, bp+40 /* &pShm */)
if rc != 0 {
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
return 1
}
if *(*uintptr)(unsafe.Pointer(bp + 40 /* pShm */)) == uintptr(0) {
- tcl.XTcl_AppendResult(tls, interp, crt.VaList(bp, ts+36026 /* "*-shm is not yet..." */, 0))
+ tcl.XTcl_AppendResult(tls, interp, libc.VaList(bp, ts+38107 /* "*-shm is not yet..." */, 0))
return 1
}
aShm = *(*uintptr)(unsafe.Pointer(bp + 40 /* pShm */))
iOff = (((12 * 2) + 1) + *(*int32)(unsafe.Pointer(bp + 24 /* iSlot */)))
if objc == 5 {
- *(*u321)(unsafe.Pointer(aShm + uintptr(iOff)*4)) = u321(*(*int32)(unsafe.Pointer(bp + 28 /* iVal */)))
+ *(*u322)(unsafe.Pointer(aShm + uintptr(iOff)*4)) = u322(*(*int32)(unsafe.Pointer(bp + 28 /* iVal */)))
}
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, int32(*(*u321)(unsafe.Pointer(aShm + uintptr(iOff)*4)))))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewIntObj(tls, int32(*(*u322)(unsafe.Pointer(aShm + uintptr(iOff)*4)))))
return 0
}
-func Sqlitetestvfs_Init(tls *crt.TLS, interp uintptr) int32 { /* test_vfs.c:1681:5: */
- tcl.XTcl_CreateObjCommand(tls, interp, ts+36050 /* "testvfs" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32
+func Sqlitetestvfs_Init(tls *libc.TLS, interp uintptr) int32 { /* test_vfs.c:1681:5: */
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+38131 /* "testvfs" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32
}{testvfs_cmd})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+36058 /* "vfs_shmlock" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+38139 /* "vfs_shmlock" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_vfs_shmlock})), uintptr(0), uintptr(0))
- tcl.XTcl_CreateObjCommand(tls, interp, ts+36070 /* "vfs_set_readmark" */, *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ tcl.XTcl_CreateObjCommand(tls, interp, ts+38151 /* "vfs_set_readmark" */, *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_vfs_set_readmark})), uintptr(0), uintptr(0))
return 0
}
+// 2015 November 30
+//
+// The author disclaims copyright to this source code. In place of
+// a legal notice, here is a blessing:
+//
+// May you do good and not evil.
+// May you find forgiveness for yourself and forgive others.
+// May you share freely, never taking more than you give.
+//
+//
+// This file contains code to implement most of the opendir() family of
+// POSIX functions on Win32 using the MSVCRT.
+
type TestWindow1 = struct {
FxStep uintptr
FxFinal uintptr
@@ -71632,7 +76958,7 @@ type TestWindowCtx1 = struct{ FpVal uintptr }
type TestWindowCtx = TestWindowCtx1 /* test_window.c:33:30 */
-func doTestWindowStep(tls *crt.TLS, bInverse int32, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:38:13: */
+func doTestWindowStep(tls *libc.TLS, bInverse int32, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:38:13: */
var i int32
var p uintptr = sqlite3.Xsqlite3_user_data(tls, ctx)
var pEval uintptr = tcl.XTcl_DuplicateObj(tls, func() uintptr {
@@ -71665,7 +76991,7 @@ func doTestWindowStep(tls *crt.TLS, bInverse int32, ctx uintptr, nArg int32, apA
if (*TestWindowCtx)(unsafe.Pointer(pCtx)).FpVal != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*TestWindowCtx)(unsafe.Pointer(pCtx)).FpVal
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -71676,13 +77002,13 @@ func doTestWindowStep(tls *crt.TLS, bInverse int32, ctx uintptr, nArg int32, apA
}
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pEval
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
}
-func doTestWindowFinalize(tls *crt.TLS, bValue int32, ctx uintptr) { /* test_window.c:76:13: */
+func doTestWindowFinalize(tls *libc.TLS, bValue int32, ctx uintptr) { /* test_window.c:76:13: */
var p uintptr = sqlite3.Xsqlite3_user_data(tls, ctx)
var pEval uintptr = tcl.XTcl_DuplicateObj(tls, func() uintptr {
if bValue != 0 {
@@ -71707,14 +77033,14 @@ func doTestWindowFinalize(tls *crt.TLS, bValue int32, ctx uintptr) { /* test_win
if rc != 0 {
sqlite3.Xsqlite3_result_error(tls, ctx, zResult, -1)
} else {
- sqlite3.Xsqlite3_result_text(tls, ctx, zResult, -1, crt.UintptrFromInt32(-1))
+ sqlite3.Xsqlite3_result_text(tls, ctx, zResult, -1, libc.UintptrFromInt32(-1))
}
if bValue == 0 {
if (*TestWindowCtx)(unsafe.Pointer(pCtx)).FpVal != 0 {
for ok := true; ok; ok = 0 != 0 {
var _objPtr uintptr = (*TestWindowCtx)(unsafe.Pointer(pCtx)).FpVal
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
@@ -71724,32 +77050,32 @@ func doTestWindowFinalize(tls *crt.TLS, bValue int32, ctx uintptr) { /* test_win
}
for ok1 := true; ok1; ok1 = 0 != 0 {
var _objPtr uintptr = pEval
- if crt.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
+ if libc.PostDecInt32(&(*Tcl_Obj)(unsafe.Pointer((_objPtr))).FrefCount, 1) <= 1 {
tcl.XTclFreeObj(tls, _objPtr)
}
}
}
-func testWindowStep(tls *crt.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:107:13: */
+func testWindowStep(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:107:13: */
doTestWindowStep(tls, 0, ctx, nArg, apArg)
}
-func testWindowInverse(tls *crt.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:114:13: */
+func testWindowInverse(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:114:13: */
doTestWindowStep(tls, 1, ctx, nArg, apArg)
}
-func testWindowFinal(tls *crt.TLS, ctx uintptr) { /* test_window.c:122:13: */
+func testWindowFinal(tls *libc.TLS, ctx uintptr) { /* test_window.c:122:13: */
doTestWindowFinalize(tls, 0, ctx)
}
-func testWindowValue(tls *crt.TLS, ctx uintptr) { /* test_window.c:125:13: */
+func testWindowValue(tls *libc.TLS, ctx uintptr) { /* test_window.c:125:13: */
doTestWindowFinalize(tls, 1, ctx)
}
-func testWindowDestroy(tls *crt.TLS, pCtx uintptr) { /* test_window.c:129:13: */
+func testWindowDestroy(tls *libc.TLS, pCtx uintptr) { /* test_window.c:129:13: */
tcl.XTcl_Free(tls, pCtx)
}
// Usage: sqlite3_create_window_function DB NAME XSTEP XFINAL XVALUE XINVERSE
-func test_create_window(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:136:26: */
+func test_create_window(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:136:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -71760,7 +77086,7 @@ func test_create_window(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
var rc int32
if objc != 7 {
- tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+36087 /* "DB NAME XSTEP XF..." */)
+ tcl.XTcl_WrongNumArgs(tls, interp, 1, objv, ts+38168 /* "DB NAME XSTEP XF..." */)
return 1
}
@@ -71769,7 +77095,7 @@ func test_create_window(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
}
zName = tcl.XTcl_GetString(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(2)*8)))
pNew = tcl.XTcl_Alloc(tls, uint32(unsafe.Sizeof(TestWindow{})))
- crt.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(TestWindow{})))
+ libc.Xmemset(tls, pNew, 0, uint64(unsafe.Sizeof(TestWindow{})))
(*TestWindow)(unsafe.Pointer(pNew)).FxStep = tcl.XTcl_DuplicateObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(3)*8)))
(*TestWindow)(unsafe.Pointer(pNew)).FxFinal = tcl.XTcl_DuplicateObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(4)*8)))
(*TestWindow)(unsafe.Pointer(pNew)).FxValue = tcl.XTcl_DuplicateObj(tls, *(*uintptr)(unsafe.Pointer(objv + uintptr(5)*8)))
@@ -71783,11 +77109,11 @@ func test_create_window(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), zName, -1, 1, pNew,
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{testWindowStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowValue})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{testWindowStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowValue})), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{testWindowInverse})),
- *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowDestroy})))
+ *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowDestroy})))
if rc != 0 {
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
return 1
@@ -71796,7 +77122,7 @@ func test_create_window(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
return 0
}
-func test_create_window_misuse(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:179:26: */
+func test_create_window_misuse(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:179:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -71818,9 +77144,9 @@ __1:
__2:
;
- rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+36124 /* "fff" */, -1, 1, uintptr(0),
- uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowValue})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+38205 /* "fff" */, -1, 1, uintptr(0),
+ uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowValue})), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{testWindowInverse})),
uintptr(0))
if !(rc != 21) {
@@ -71829,11 +77155,11 @@ __2:
goto error
__3:
;
- rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+36124 /* "fff" */, -1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+38205 /* "fff" */, -1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{testWindowStep})), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowValue})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{testWindowStep})), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowValue})), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{testWindowInverse})),
uintptr(0))
if !(rc != 21) {
@@ -71842,11 +77168,11 @@ __3:
goto error
__4:
;
- rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+36124 /* "fff" */, -1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+38205 /* "fff" */, -1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{testWindowStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowFinal})), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{testWindowStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowFinal})), uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{testWindowInverse})),
uintptr(0))
if !(rc != 21) {
@@ -71855,10 +77181,10 @@ __4:
goto error
__5:
;
- rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+36124 /* "fff" */, -1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+38205 /* "fff" */, -1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{testWindowStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{testWindowValue})), uintptr(0),
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{testWindowStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{testWindowValue})), uintptr(0),
uintptr(0))
if !(rc != 21) {
goto __6
@@ -71870,16 +77196,16 @@ __6:
return 0
error:
- tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, ts+36128 /* "misuse test erro..." */, -1))
+ tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, ts+38209 /* "misuse test erro..." */, -1))
return 1
}
// xStep for sumint().
-func sumintStep(tls *crt.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:225:13: */
+func sumintStep(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:225:13: */
var pInt uintptr
if sqlite3.Xsqlite3_value_type(tls, *(*uintptr)(unsafe.Pointer(apArg + uintptr(0)*8))) != 1 {
- sqlite3.Xsqlite3_result_error(tls, ctx, ts+36146 /* "invalid argument" */, -1)
+ sqlite3.Xsqlite3_result_error(tls, ctx, ts+38227 /* "invalid argument" */, -1)
return
}
pInt = sqlite3.Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(sqlite3_int64(0))))
@@ -71889,14 +77215,14 @@ func sumintStep(tls *crt.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_
}
// xInverse for sumint().
-func sumintInverse(tls *crt.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:246:13: */
+func sumintInverse(tls *libc.TLS, ctx uintptr, nArg int32, apArg uintptr) { /* test_window.c:246:13: */
var pInt uintptr
pInt = sqlite3.Xsqlite3_aggregate_context(tls, ctx, int32(unsafe.Sizeof(sqlite3_int64(0))))
*(*sqlite3_int64)(unsafe.Pointer(pInt)) -= (sqlite3.Xsqlite3_value_int64(tls, *(*uintptr)(unsafe.Pointer(apArg + uintptr(0)*8))))
}
// xFinal for sumint().
-func sumintFinal(tls *crt.TLS, ctx uintptr) { /* test_window.c:259:13: */
+func sumintFinal(tls *libc.TLS, ctx uintptr) { /* test_window.c:259:13: */
var res sqlite3_int64 = int64(0)
var pInt uintptr
pInt = sqlite3.Xsqlite3_aggregate_context(tls, ctx, 0)
@@ -71907,7 +77233,7 @@ func sumintFinal(tls *crt.TLS, ctx uintptr) { /* test_window.c:259:13: */
}
// xValue for sumint().
-func sumintValue(tls *crt.TLS, ctx uintptr) { /* test_window.c:270:13: */
+func sumintValue(tls *libc.TLS, ctx uintptr) { /* test_window.c:270:13: */
var res sqlite3_int64 = int64(0)
var pInt uintptr
pInt = sqlite3.Xsqlite3_aggregate_context(tls, ctx, 0)
@@ -71917,7 +77243,7 @@ func sumintValue(tls *crt.TLS, ctx uintptr) { /* test_window.c:270:13: */
sqlite3.Xsqlite3_result_int64(tls, ctx, res)
}
-func test_create_sumint(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:278:26: */
+func test_create_sumint(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:278:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -71933,11 +77259,11 @@ func test_create_sumint(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
return 1
}
- rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+36163 /* "sumint" */, 1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_window_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+38244 /* "sumint" */, 1, 1, uintptr(0),
*(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{sumintStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sumintFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sumintValue})), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{sumintStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sumintFinal})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sumintValue})), *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32, uintptr)
}{sumintInverse})),
uintptr(0))
@@ -71948,7 +77274,7 @@ func test_create_sumint(tls *crt.TLS, clientData uintptr, interp uintptr, objc i
return 0
}
-func test_override_sum(tls *crt.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:305:26: */
+func test_override_sum(tls *libc.TLS, clientData uintptr, interp uintptr, objc int32, objv uintptr) int32 { /* test_window.c:305:26: */
bp := tls.Alloc(8)
defer tls.Free(8)
@@ -71964,10 +77290,10 @@ func test_override_sum(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
return 1
}
- rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+36170 /* "sum" */, -1, 1, uintptr(0),
+ rc = sqlite3.Xsqlite3_create_function(tls, *(*uintptr)(unsafe.Pointer(bp /* db */)), ts+38251 /* "sum" */, -1, 1, uintptr(0),
uintptr(0), *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, uintptr)
- }{sumintStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, uintptr) }{sumintFinal})))
+ f func(*libc.TLS, uintptr, int32, uintptr)
+ }{sumintStep})), *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, uintptr) }{sumintFinal})))
if rc != 0 {
tcl.XTcl_SetObjResult(tls, interp, tcl.XTcl_NewStringObj(tls, sqlite3.Xsqlite3ErrName(tls, rc), -1))
@@ -71976,1288 +77302,1367 @@ func test_override_sum(tls *crt.TLS, clientData uintptr, interp uintptr, objc in
return 0
}
-func Sqlitetest_window_Init(tls *crt.TLS, interp uintptr) int32 { /* test_window.c:331:5: */
+func Sqlitetest_window_Init(tls *libc.TLS, interp uintptr) int32 { /* test_window.c:331:5: */
var i int32
- for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd13)) / uint64(unsafe.Sizeof(struct {
+ for i = 0; uint64(i) < (uint64(unsafe.Sizeof(aObjCmd14)) / uint64(unsafe.Sizeof(struct {
FzName uintptr
FxProc uintptr
FclientData int32
_ [4]byte
}{}))); i++ {
- var c ClientData = uintptr(int64(aObjCmd13[i].FclientData))
- tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd13[i].FzName, aObjCmd13[i].FxProc, c, uintptr(0))
+ var c ClientData = uintptr(intptr_t(aObjCmd14[i].FclientData))
+ tcl.XTcl_CreateObjCommand(tls, interp, aObjCmd14[i].FzName, aObjCmd14[i].FxProc, c, uintptr(0))
}
return 0
}
-var aObjCmd13 = [4]struct {
+var aObjCmd14 = [4]struct {
FzName uintptr
FxProc uintptr
FclientData int32
_ [4]byte
}{
- {FzName: ts + 36174 /* "sqlite3_create_w..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 36205 /* "test_create_wind..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 36240 /* "test_create_sumi..." */, FxProc: 0, FclientData: 0},
- {FzName: ts + 36259 /* "test_override_su..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 38255 /* "sqlite3_create_w..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 38286 /* "test_create_wind..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 38321 /* "test_create_sumi..." */, FxProc: 0, FclientData: 0},
+ {FzName: ts + 38340 /* "test_override_su..." */, FxProc: 0, FclientData: 0},
} /* test_window.c:336:5 */
+// 2008 September 1
+//
+// The author disclaims copyright to this source code. In place of
+// a legal notice, here is a blessing:
+//
+// May you do good and not evil.
+// May you find forgiveness for yourself and forgive others.
+// May you share freely, never taking more than you give.
+//
+//
+//
+// The code in this file contains sample implementations of the
+// sqlite3_wsd_init() and sqlite3_wsd_find() functions required if the
+// SQLITE_OMIT_WSD symbol is defined at build time.
+
func init() {
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 8 /* .xClose */)) = cfClose // test6.c:573:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 16 /* .xRead */)) = cfRead // test6.c:574:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 24 /* .xWrite */)) = cfWrite // test6.c:575:3:
- *(*func(*crt.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 32 /* .xTruncate */)) = cfTruncate // test6.c:576:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 40 /* .xSync */)) = cfSync // test6.c:577:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 48 /* .xFileSize */)) = cfFileSize // test6.c:578:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 56 /* .xLock */)) = cfLock // test6.c:579:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 64 /* .xUnlock */)) = cfUnlock // test6.c:580:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 72 /* .xCheckReservedLock */)) = cfCheckReservedLock // test6.c:581:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 80 /* .xFileControl */)) = cfFileControl // test6.c:582:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 88 /* .xSectorSize */)) = cfSectorSize // test6.c:583:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 96 /* .xDeviceCharacteristics */)) = cfDeviceCharacteristics // test6.c:584:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 104 /* .xShmMap */)) = cfShmMap // test6.c:585:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 112 /* .xShmLock */)) = cfShmLock // test6.c:586:3:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 120 /* .xShmBarrier */)) = cfShmBarrier // test6.c:587:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 128 /* .xShmUnmap */)) = cfShmUnmap // test6.c:588:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 8 /* .xCreate */)) = csvtabCreate // csv.c:874:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 16 /* .xConnect */)) = csvtabConnect // csv.c:875:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 24 /* .xBestIndex */)) = csvtabBestIndex // csv.c:876:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 32 /* .xDisconnect */)) = csvtabDisconnect // csv.c:877:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 40 /* .xDestroy */)) = csvtabDisconnect // csv.c:878:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 48 /* .xOpen */)) = csvtabOpen // csv.c:879:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 56 /* .xClose */)) = csvtabClose // csv.c:880:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 64 /* .xFilter */)) = csvtabFilter // csv.c:881:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 72 /* .xNext */)) = csvtabNext // csv.c:882:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 80 /* .xEof */)) = csvtabEof // csv.c:883:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 88 /* .xColumn */)) = csvtabColumn // csv.c:884:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 96 /* .xRowid */)) = csvtabRowid // csv.c:885:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 8 /* .xCreate */)) = csvtabCreate // csv.c:906:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 16 /* .xConnect */)) = csvtabConnect // csv.c:907:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 24 /* .xBestIndex */)) = csvtabBestIndex // csv.c:908:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 32 /* .xDisconnect */)) = csvtabDisconnect // csv.c:909:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 40 /* .xDestroy */)) = csvtabDisconnect // csv.c:910:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 48 /* .xOpen */)) = csvtabOpen // csv.c:911:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 56 /* .xClose */)) = csvtabClose // csv.c:912:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 64 /* .xFilter */)) = csvtabFilter // csv.c:913:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 72 /* .xNext */)) = csvtabNext // csv.c:914:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 80 /* .xEof */)) = csvtabEof // csv.c:915:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 88 /* .xColumn */)) = csvtabColumn // csv.c:916:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 96 /* .xRowid */)) = csvtabRowid // csv.c:917:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 104 /* .xUpdate */)) = csvtabUpdate // csv.c:918:3:
- *(*func(*crt.TLS, ClientData, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 16 /* .closeProc */)) = incrblobClose // tclsqlite.c:372:3:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 24 /* .inputProc */)) = incrblobInput // tclsqlite.c:373:3:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 32 /* .outputProc */)) = incrblobOutput // tclsqlite.c:374:3:
- *(*func(*crt.TLS, ClientData, int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 40 /* .seekProc */)) = incrblobSeek // tclsqlite.c:375:3:
- *(*func(*crt.TLS, ClientData, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 64 /* .watchProc */)) = incrblobWatch // tclsqlite.c:378:3:
- *(*func(*crt.TLS, ClientData, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 72 /* .getHandleProc */)) = incrblobHandle // tclsqlite.c:379:3:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{db_enter})) // test1.c:7878:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{db_leave})) // test1.c:7879:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_int})) // test1.c:7880:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_int64})) // test1.c:7881:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_long})) // test1.c:7882:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_str})) // test1.c:7883:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_snprintf_str})) // test1.c:7884:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_stronly})) // test1.c:7885:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_double})) // test1.c:7886:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_scaled})) // test1.c:7887:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite3_mprintf_hexdouble})) // test1.c:7888:39:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_mprintf_z})) // test1.c:7889:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_mprintf_n})) // test1.c:7890:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 216 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_snprintf_int})) // test1.c:7891:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 232 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_last_rowid})) // test1.c:7892:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 248 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_exec_printf})) // test1.c:7893:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 264 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_exec_hex})) // test1.c:7894:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 280 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_exec})) // test1.c:7895:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 296 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_exec_nr})) // test1.c:7896:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 312 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_get_table_printf})) // test1.c:7898:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 328 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite_test_close})) // test1.c:7900:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 344 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite_test_close_v2})) // test1.c:7901:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 360 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_create_function})) // test1.c:7902:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 376 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_create_aggregate})) // test1.c:7903:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 392 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_drop_modules})) // test1.c:7904:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 408 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_register_func})) // test1.c:7905:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 424 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite_abort})) // test1.c:7906:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 440 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_bind})) // test1.c:7907:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 456 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_breakpoint})) // test1.c:7908:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 472 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_key})) // test1.c:7909:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 488 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_rekey})) // test1.c:7910:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 504 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{sqlite_set_magic})) // test1.c:7911:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 520 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_interrupt})) // test1.c:7912:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 536 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{delete_function})) // test1.c:7913:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 552 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{delete_collation})) // test1.c:7914:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 568 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{get_autocommit})) // test1.c:7915:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 584 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_busy_timeout})) // test1.c:7916:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 600 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_printf})) // test1.c:7917:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 616 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{test_io_trace})) // test1.c:7918:39:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 632 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{clang_sanitize_address})) // test1.c:7919:41:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 8 /* .xClose */)) = cfClose // test6.c:573:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 16 /* .xRead */)) = cfRead // test6.c:574:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 24 /* .xWrite */)) = cfWrite // test6.c:575:3:
+ *(*func(*libc.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 32 /* .xTruncate */)) = cfTruncate // test6.c:576:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 40 /* .xSync */)) = cfSync // test6.c:577:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 48 /* .xFileSize */)) = cfFileSize // test6.c:578:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 56 /* .xLock */)) = cfLock // test6.c:579:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 64 /* .xUnlock */)) = cfUnlock // test6.c:580:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 72 /* .xCheckReservedLock */)) = cfCheckReservedLock // test6.c:581:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 80 /* .xFileControl */)) = cfFileControl // test6.c:582:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 88 /* .xSectorSize */)) = cfSectorSize // test6.c:583:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 96 /* .xDeviceCharacteristics */)) = cfDeviceCharacteristics // test6.c:584:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 104 /* .xShmMap */)) = cfShmMap // test6.c:585:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 112 /* .xShmLock */)) = cfShmLock // test6.c:586:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 120 /* .xShmBarrier */)) = cfShmBarrier // test6.c:587:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CrashFileVtab)) + 128 /* .xShmUnmap */)) = cfShmUnmap // test6.c:588:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 8 /* .xCreate */)) = csvtabCreate // csv.c:874:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 16 /* .xConnect */)) = csvtabConnect // csv.c:875:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 24 /* .xBestIndex */)) = csvtabBestIndex // csv.c:876:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 32 /* .xDisconnect */)) = csvtabDisconnect // csv.c:877:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 40 /* .xDestroy */)) = csvtabDisconnect // csv.c:878:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 48 /* .xOpen */)) = csvtabOpen // csv.c:879:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 56 /* .xClose */)) = csvtabClose // csv.c:880:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 64 /* .xFilter */)) = csvtabFilter // csv.c:881:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 72 /* .xNext */)) = csvtabNext // csv.c:882:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 80 /* .xEof */)) = csvtabEof // csv.c:883:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 88 /* .xColumn */)) = csvtabColumn // csv.c:884:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModule)) + 96 /* .xRowid */)) = csvtabRowid // csv.c:885:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 8 /* .xCreate */)) = csvtabCreate // csv.c:906:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 16 /* .xConnect */)) = csvtabConnect // csv.c:907:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 24 /* .xBestIndex */)) = csvtabBestIndex // csv.c:908:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 32 /* .xDisconnect */)) = csvtabDisconnect // csv.c:909:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 40 /* .xDestroy */)) = csvtabDisconnect // csv.c:910:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 48 /* .xOpen */)) = csvtabOpen // csv.c:911:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 56 /* .xClose */)) = csvtabClose // csv.c:912:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 64 /* .xFilter */)) = csvtabFilter // csv.c:913:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 72 /* .xNext */)) = csvtabNext // csv.c:914:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 80 /* .xEof */)) = csvtabEof // csv.c:915:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 88 /* .xColumn */)) = csvtabColumn // csv.c:916:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 96 /* .xRowid */)) = csvtabRowid // csv.c:917:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&CsvModuleFauxWrite)) + 104 /* .xUpdate */)) = csvtabUpdate // csv.c:918:3:
+ *(*func(*libc.TLS, ClientData, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 16 /* .closeProc */)) = incrblobClose // tclsqlite.c:372:3:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 24 /* .inputProc */)) = incrblobInput // tclsqlite.c:373:3:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 32 /* .outputProc */)) = incrblobOutput // tclsqlite.c:374:3:
+ *(*func(*libc.TLS, ClientData, int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 40 /* .seekProc */)) = incrblobSeek // tclsqlite.c:375:3:
+ *(*func(*libc.TLS, ClientData, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 64 /* .watchProc */)) = incrblobWatch // tclsqlite.c:378:3:
+ *(*func(*libc.TLS, ClientData, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&IncrblobChannelType)) + 72 /* .getHandleProc */)) = incrblobHandle // tclsqlite.c:379:3:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 8 /* .xProc */)) = f5tCreateTokenizer // fts5_tcl.c:1125:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 32 /* .xProc */)) = f5tTokenizerReturn // fts5_tcl.c:1126:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 56 /* .xProc */)) = f5tTokenize // fts5_tcl.c:1127:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 80 /* .xProc */)) = f5tCreateFunction // fts5_tcl.c:1128:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 104 /* .xProc */)) = f5tMayBeCorrupt // fts5_tcl.c:1129:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 128 /* .xProc */)) = f5tTokenHash // fts5_tcl.c:1130:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 152 /* .xProc */)) = f5tRegisterMatchinfo // fts5_tcl.c:1131:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd)) + 176 /* .xProc */)) = f5tRegisterTok // fts5_tcl.c:1132:45:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_open})) // test2.c:708:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{db_enter})) // test1.c:7939:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_close})) // test2.c:709:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{db_leave})) // test1.c:7940:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_commit})) // test2.c:710:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_int})) // test1.c:7941:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_rollback})) // test2.c:711:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_int64})) // test1.c:7942:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_stmt_begin})) // test2.c:712:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_long})) // test1.c:7943:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_stmt_commit})) // test2.c:713:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_str})) // test1.c:7944:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_stmt_rollback})) // test2.c:714:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_snprintf_str})) // test1.c:7945:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_stats})) // test2.c:715:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_stronly})) // test1.c:7946:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_pagecount})) // test2.c:716:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_double})) // test1.c:7947:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{page_get})) // test2.c:717:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_scaled})) // test1.c:7948:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{page_lookup})) // test2.c:718:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite3_mprintf_hexdouble})) // test1.c:7949:39:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{page_unref})) // test2.c:719:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_mprintf_z})) // test1.c:7950:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{page_read})) // test2.c:720:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_mprintf_n})) // test1.c:7951:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 216 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{page_write})) // test2.c:721:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_snprintf_int})) // test1.c:7952:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 232 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{page_number})) // test2.c:722:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_last_rowid})) // test1.c:7953:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 248 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{pager_truncate})) // test2.c:723:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_exec_printf})) // test1.c:7954:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 264 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{fake_big_file})) // test2.c:725:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_exec_hex})) // test1.c:7955:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 280 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{testBitvecBuiltinTest})) // test2.c:727:34:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_exec})) // test1.c:7956:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 296 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{testPendingByte})) // test2.c:728:45:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_exec_nr})) // test1.c:7957:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 312 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{faultInstallCmd})) // test2.c:729:45:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_get_table_printf})) // test1.c:7959:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 328 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite_test_close})) // test1.c:7961:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 344 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite_test_close_v2})) // test1.c:7962:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 360 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_create_function})) // test1.c:7963:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 376 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_create_aggregate})) // test1.c:7964:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 392 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_drop_modules})) // test1.c:7965:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 408 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_register_func})) // test1.c:7966:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 424 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite_abort})) // test1.c:7967:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 440 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_bind})) // test1.c:7968:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 456 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_breakpoint})) // test1.c:7969:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 472 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_key})) // test1.c:7970:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 488 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_rekey})) // test1.c:7971:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 504 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{sqlite_set_magic})) // test1.c:7972:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 520 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_interrupt})) // test1.c:7973:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 536 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{delete_function})) // test1.c:7974:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 552 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{delete_collation})) // test1.c:7975:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 568 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{get_autocommit})) // test1.c:7976:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 584 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_busy_timeout})) // test1.c:7977:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 600 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_printf})) // test1.c:7978:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 616 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{test_io_trace})) // test1.c:7979:39:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd1)) + 632 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{clang_sanitize_address})) // test1.c:7980:41:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_open})) // test3.c:666:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_open})) // test2.c:708:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_close})) // test3.c:667:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_close})) // test2.c:709:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_begin_transaction})) // test3.c:668:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_commit})) // test2.c:710:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_pager_stats})) // test3.c:669:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_rollback})) // test2.c:711:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_cursor})) // test3.c:670:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_stmt_begin})) // test2.c:712:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_close_cursor})) // test3.c:671:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_stmt_commit})) // test2.c:713:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_next})) // test3.c:672:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_stmt_rollback})) // test2.c:714:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_eof})) // test3.c:673:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_stats})) // test2.c:715:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_payload_size})) // test3.c:674:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_pagecount})) // test2.c:716:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_first})) // test3.c:675:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{page_get})) // test2.c:717:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_varint_test})) // test3.c:676:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{page_lookup})) // test2.c:718:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_from_db})) // test3.c:677:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{page_unref})) // test2.c:719:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_ismemdb})) // test3.c:678:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{page_read})) // test2.c:720:34:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 216 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{btree_set_cache_size})) // test3.c:679:36:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{page_write})) // test2.c:721:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 232 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{page_number})) // test2.c:722:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 248 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{pager_truncate})) // test2.c:723:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 264 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{fake_big_file})) // test2.c:725:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 280 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{testBitvecBuiltinTest})) // test2.c:727:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 296 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{testPendingByte})) // test2.c:728:45:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd2)) + 312 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{faultInstallCmd})) // test2.c:729:45:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_create})) // test4.c:701:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_open})) // test3.c:666:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_wait})) // test4.c:702:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_close})) // test3.c:667:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_halt})) // test4.c:703:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_begin_transaction})) // test3.c:668:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_argc})) // test4.c:704:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_pager_stats})) // test3.c:669:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_argv})) // test4.c:705:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_cursor})) // test3.c:670:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_colname})) // test4.c:706:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_close_cursor})) // test3.c:671:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_result})) // test4.c:707:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_next})) // test3.c:672:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_error})) // test4.c:708:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_eof})) // test3.c:673:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_compile})) // test4.c:709:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_payload_size})) // test3.c:674:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_step})) // test4.c:710:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_first})) // test3.c:675:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_finalize})) // test4.c:711:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_varint_test})) // test3.c:676:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_swap})) // test4.c:712:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_from_db})) // test3.c:677:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
- }{tcl_thread_db_get})) // test4.c:713:29:
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_ismemdb})) // test3.c:678:36:
*(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 216 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{btree_set_cache_size})) // test3.c:679:36:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_create})) // test4.c:701:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_wait})) // test4.c:702:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_halt})) // test4.c:703:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_argc})) // test4.c:704:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_argv})) // test4.c:705:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_colname})) // test4.c:706:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_result})) // test4.c:707:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_error})) // test4.c:708:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_compile})) // test4.c:709:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_step})) // test4.c:710:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_finalize})) // test4.c:711:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_swap})) // test4.c:712:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
+ }{tcl_thread_db_get})) // test4.c:713:29:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 216 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_thread_db_put})) // test4.c:714:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd3)) + 232 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 232 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_thread_stmt_get})) // test4.c:715:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{binarize})) // test5.c:210:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_value_overhead})) // test5.c:211:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_translate})) // test5.c:212:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd4)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_translate_selftest})) // test5.c:213:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_create})) // test7.c:695:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_wait})) // test7.c:696:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_halt})) // test7.c:697:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_argc})) // test7.c:698:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_argv})) // test7.c:699:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_colname})) // test7.c:700:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_result})) // test7.c:701:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_error})) // test7.c:702:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_compile})) // test7.c:703:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_step})) // test7.c:704:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_reset})) // test7.c:705:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 184 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_finalize})) // test7.c:706:29:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd5)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 200 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{tcl_client_swap})) // test7.c:707:29:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 8 /* .xProc */)) = test_multiplex_initialize // test_multiplex.c:1311:39:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 24 /* .xProc */)) = test_multiplex_shutdown // test_multiplex.c:1312:37:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd6)) + 40 /* .xProc */)) = test_multiplex_control // test_multiplex.c:1313:36:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 8 /* .xProc */)) = test_multiplex_initialize // test_multiplex.c:1311:39:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 24 /* .xProc */)) = test_multiplex_shutdown // test_multiplex.c:1312:37:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 40 /* .xProc */)) = test_multiplex_control // test_multiplex.c:1313:36:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 8 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_shutdown})) // test_mutex.c:485:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 24 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_initialize})) // test_mutex.c:486:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 40 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_config})) // test_mutex.c:487:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 56 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_enter_static_mutex})) // test_mutex.c:489:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 72 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_leave_static_mutex})) // test_mutex.c:490:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 88 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_enter_db_mutex})) // test_mutex.c:492:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 104 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_leave_db_mutex})) // test_mutex.c:493:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 120 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_alloc_mutex})) // test_mutex.c:495:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 136 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_install_mutex_counters})) // test_mutex.c:496:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 152 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_read_mutex_counters})) // test_mutex.c:497:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd7)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 168 /* .xProc */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32
}{test_clear_mutex_counters})) // test_mutex.c:498:34:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 8 /* .xProc */)) = test_quota_initialize // test_quota.c:1949:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 24 /* .xProc */)) = test_quota_shutdown // test_quota.c:1950:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 40 /* .xProc */)) = test_quota_set // test_quota.c:1951:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 56 /* .xProc */)) = test_quota_file // test_quota.c:1952:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 72 /* .xProc */)) = test_quota_dump // test_quota.c:1953:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 88 /* .xProc */)) = test_quota_fopen // test_quota.c:1954:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 104 /* .xProc */)) = test_quota_fread // test_quota.c:1955:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 120 /* .xProc */)) = test_quota_fwrite // test_quota.c:1956:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 136 /* .xProc */)) = test_quota_fclose // test_quota.c:1957:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 152 /* .xProc */)) = test_quota_fflush // test_quota.c:1958:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 168 /* .xProc */)) = test_quota_fseek // test_quota.c:1959:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 184 /* .xProc */)) = test_quota_rewind // test_quota.c:1960:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 200 /* .xProc */)) = test_quota_ftell // test_quota.c:1961:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 216 /* .xProc */)) = test_quota_ftruncate // test_quota.c:1962:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 232 /* .xProc */)) = test_quota_file_size // test_quota.c:1963:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 248 /* .xProc */)) = test_quota_file_truesize // test_quota.c:1964:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 264 /* .xProc */)) = test_quota_file_mtime // test_quota.c:1965:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 280 /* .xProc */)) = test_quota_remove // test_quota.c:1966:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 296 /* .xProc */)) = test_quota_glob // test_quota.c:1967:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 312 /* .xProc */)) = test_quota_file_available // test_quota.c:1968:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd8)) + 328 /* .xProc */)) = test_quota_ferror // test_quota.c:1969:38:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 8 /* .pInit */)) = sqlite3_amatch_init // test1.c:7281:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 24 /* .pInit */)) = sqlite3_carray_init // test1.c:7282:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 40 /* .pInit */)) = sqlite3_closure_init // test1.c:7283:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 56 /* .pInit */)) = sqlite3_csv_init // test1.c:7284:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 72 /* .pInit */)) = sqlite3_eval_init // test1.c:7285:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 88 /* .pInit */)) = sqlite3_explain_init // test1.c:7286:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 104 /* .pInit */)) = sqlite3_fileio_init // test1.c:7287:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 120 /* .pInit */)) = sqlite3_fuzzer_init // test1.c:7288:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 136 /* .pInit */)) = sqlite3_ieee_init // test1.c:7289:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 152 /* .pInit */)) = sqlite3_nextchar_init // test1.c:7290:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 168 /* .pInit */)) = sqlite3_percentile_init // test1.c:7291:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 184 /* .pInit */)) = sqlite3_prefixes_init // test1.c:7293:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 200 /* .pInit */)) = sqlite3_regexp_init // test1.c:7295:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 216 /* .pInit */)) = sqlite3_remember_init // test1.c:7296:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 232 /* .pInit */)) = sqlite3_series_init // test1.c:7297:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 248 /* .pInit */)) = sqlite3_spellfix_init // test1.c:7298:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 264 /* .pInit */)) = sqlite3_totype_init // test1.c:7299:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 280 /* .pInit */)) = sqlite3_unionvtab_init // test1.c:7300:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 296 /* .pInit */)) = sqlite3_wholenumber_init // test1.c:7301:32:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 312 /* .pInit */)) = sqlite3_zipfile_init // test1.c:7303:32:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 16 /* .xFunc */)) = randStr // test_func.c:675:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 40 /* .xFunc */)) = test_destructor // test_func.c:676:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 64 /* .xFunc */)) = test_destructor16 // test_func.c:678:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 88 /* .xFunc */)) = testHexToUtf16be // test_func.c:679:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 112 /* .xFunc */)) = testHexToUtf16le // test_func.c:680:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 136 /* .xFunc */)) = testHexToUtf8 // test_func.c:682:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 160 /* .xFunc */)) = test_destructor_count // test_func.c:683:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 184 /* .xFunc */)) = test_auxdata // test_func.c:684:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 208 /* .xFunc */)) = test_error // test_func.c:685:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 232 /* .xFunc */)) = test_error // test_func.c:686:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 256 /* .xFunc */)) = test_eval // test_func.c:687:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 280 /* .xFunc */)) = test_isolation // test_func.c:688:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 304 /* .xFunc */)) = counterFunc // test_func.c:689:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 328 /* .xFunc */)) = real2hex // test_func.c:690:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 352 /* .xFunc */)) = test_decode // test_func.c:691:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 376 /* .xFunc */)) = test_extract // test_func.c:692:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 400 /* .xFunc */)) = test_zeroblob // test_func.c:693:62:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 424 /* .xFunc */)) = test_getsubtype // test_func.c:694:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 448 /* .xFunc */)) = test_setsubtype // test_func.c:695:48:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 472 /* .xFunc */)) = test_frombind // test_func.c:696:48:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 8 /* .xProc */)) = test_sqlite3_db_config // test1.c:7926:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 32 /* .xProc */)) = test_bad_behavior // test1.c:7927:41:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 40 /* .clientData */)) = uintptr(unsafe.Pointer(&iZero)) // test1.c:7927:61:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 56 /* .xProc */)) = test_register_dbstat_vtab // test1.c:7928:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 80 /* .xProc */)) = get_sqlite_pointer // test1.c:7929:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 104 /* .xProc */)) = test_intarray_addr // test1.c:7930:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 128 /* .xProc */)) = test_int64array_addr // test1.c:7931:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 152 /* .xProc */)) = test_doublearray_addr // test1.c:7932:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 176 /* .xProc */)) = test_textarray_addr // test1.c:7933:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 200 /* .xProc */)) = test_bind_int // test1.c:7934:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 224 /* .xProc */)) = test_bind_zeroblob // test1.c:7935:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 248 /* .xProc */)) = test_bind_zeroblob64 // test1.c:7936:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 272 /* .xProc */)) = test_bind_int64 // test1.c:7937:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 296 /* .xProc */)) = test_bind_double // test1.c:7938:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 320 /* .xProc */)) = test_bind_null // test1.c:7939:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 344 /* .xProc */)) = test_bind_text // test1.c:7940:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 368 /* .xProc */)) = test_bind_text16 // test1.c:7941:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 392 /* .xProc */)) = test_bind_blob // test1.c:7942:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 416 /* .xProc */)) = test_bind_parameter_count // test1.c:7943:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 440 /* .xProc */)) = test_bind_parameter_name // test1.c:7944:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 464 /* .xProc */)) = test_bind_parameter_index // test1.c:7945:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 488 /* .xProc */)) = test_clear_bindings // test1.c:7946:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 512 /* .xProc */)) = test_sleep // test1.c:7947:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 536 /* .xProc */)) = test_errcode // test1.c:7948:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 560 /* .xProc */)) = test_ex_errcode // test1.c:7949:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 584 /* .xProc */)) = test_errmsg // test1.c:7950:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 608 /* .xProc */)) = test_errmsg16 // test1.c:7951:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 632 /* .xProc */)) = test_open // test1.c:7952:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 656 /* .xProc */)) = test_open16 // test1.c:7953:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 680 /* .xProc */)) = test_open_v2 // test1.c:7954:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 704 /* .xProc */)) = test_complete16 // test1.c:7955:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 728 /* .xProc */)) = test_normalize // test1.c:7956:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 752 /* .xProc */)) = test_prepare // test1.c:7958:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 776 /* .xProc */)) = test_prepare16 // test1.c:7959:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 800 /* .xProc */)) = test_prepare_v2 // test1.c:7960:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 824 /* .xProc */)) = test_prepare_v3 // test1.c:7961:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 848 /* .xProc */)) = test_prepare_tkt3134 // test1.c:7962:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 872 /* .xProc */)) = test_prepare16_v2 // test1.c:7963:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 896 /* .xProc */)) = test_finalize // test1.c:7964:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 920 /* .xProc */)) = test_stmt_status // test1.c:7965:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 944 /* .xProc */)) = test_reset // test1.c:7966:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 968 /* .xProc */)) = test_expired // test1.c:7967:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 992 /* .xProc */)) = test_transfer_bind // test1.c:7968:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1016 /* .xProc */)) = test_changes // test1.c:7969:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1040 /* .xProc */)) = test_step // test1.c:7970:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1064 /* .xProc */)) = test_sql // test1.c:7971:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1088 /* .xProc */)) = test_ex_sql // test1.c:7972:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1112 /* .xProc */)) = test_next_stmt // test1.c:7976:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1136 /* .xProc */)) = test_stmt_readonly // test1.c:7977:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1160 /* .xProc */)) = test_stmt_isexplain // test1.c:7978:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1184 /* .xProc */)) = test_stmt_busy // test1.c:7979:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1208 /* .xProc */)) = uses_stmt_journal // test1.c:7980:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1232 /* .xProc */)) = test_release_memory // test1.c:7982:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1256 /* .xProc */)) = test_db_release_memory // test1.c:7983:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1280 /* .xProc */)) = test_db_cacheflush // test1.c:7984:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1304 /* .xProc */)) = test_system_errno // test1.c:7985:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1328 /* .xProc */)) = test_db_filename // test1.c:7986:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1352 /* .xProc */)) = test_db_readonly // test1.c:7987:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1376 /* .xProc */)) = test_soft_heap_limit // test1.c:7988:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1400 /* .xProc */)) = test_soft_heap_limit // test1.c:7989:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1424 /* .xProc */)) = test_hard_heap_limit // test1.c:7990:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1448 /* .xProc */)) = test_thread_cleanup // test1.c:7991:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1472 /* .xProc */)) = test_pager_refcounts // test1.c:7992:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1496 /* .xProc */)) = test_load_extension // test1.c:7994:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1520 /* .xProc */)) = test_enable_load // test1.c:7995:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1544 /* .xProc */)) = test_extended_result_codes // test1.c:7996:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1568 /* .xProc */)) = test_limit // test1.c:7997:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1592 /* .xProc */)) = test_dbconfig_maindbname_icecube // test1.c:7998:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1616 /* .xProc */)) = save_prng_state // test1.c:8000:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1640 /* .xProc */)) = restore_prng_state // test1.c:8001:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1664 /* .xProc */)) = reset_prng_state // test1.c:8002:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1688 /* .xProc */)) = prng_seed // test1.c:8003:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1712 /* .xProc */)) = database_never_corrupt // test1.c:8004:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1736 /* .xProc */)) = database_may_be_corrupt // test1.c:8005:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1760 /* .xProc */)) = optimization_control // test1.c:8006:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1784 /* .xProc */)) = runAsObjProc // test1.c:8015:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1808 /* .xProc */)) = test_column_count // test1.c:8018:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1832 /* .xProc */)) = test_data_count // test1.c:8019:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1856 /* .xProc */)) = test_column_type // test1.c:8020:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1880 /* .xProc */)) = test_column_blob // test1.c:8021:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1904 /* .xProc */)) = test_column_double // test1.c:8022:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1928 /* .xProc */)) = test_column_int64 // test1.c:8023:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1952 /* .xProc */)) = test_stmt_utf8 // test1.c:8024:33:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1960 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{sqlite3.Xsqlite3_column_text})) // test1.c:8024:50:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1976 /* .xProc */)) = test_stmt_utf8 // test1.c:8025:33:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 1984 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{sqlite3.Xsqlite3_column_name})) // test1.c:8025:50:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2000 /* .xProc */)) = test_stmt_int // test1.c:8026:33:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2008 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
- }{sqlite3.Xsqlite3_column_int})) // test1.c:8026:50:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2024 /* .xProc */)) = test_stmt_int // test1.c:8027:33:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2032 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
- }{sqlite3.Xsqlite3_column_bytes})) // test1.c:8027:50:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2048 /* .xProc */)) = test_stmt_utf8 // test1.c:8029:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2056 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{sqlite3.Xsqlite3_column_decltype})) // test1.c:8029:49:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2072 /* .xProc */)) = test_stmt_int // test1.c:8038:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2080 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
- }{sqlite3.Xsqlite3_column_bytes16})) // test1.c:8038:49:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2096 /* .xProc */)) = test_stmt_utf16 // test1.c:8039:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2104 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{sqlite3.Xsqlite3_column_text16})) // test1.c:8039:51:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2120 /* .xProc */)) = test_stmt_utf16 // test1.c:8040:34:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2128 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{sqlite3.Xsqlite3_column_name16})) // test1.c:8040:51:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2144 /* .xProc */)) = add_alignment_test_collations // test1.c:8041:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2168 /* .xProc */)) = test_stmt_utf16 // test1.c:8043:36:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2176 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) uintptr
- }{sqlite3.Xsqlite3_column_decltype16})) // test1.c:8043:52:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2192 /* .xProc */)) = test_create_collation_v2 // test1.c:8052:39:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2216 /* .xProc */)) = test_global_recover // test1.c:8053:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2240 /* .xProc */)) = working_64bit_int // test1.c:8054:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2264 /* .xProc */)) = vfs_unlink_test // test1.c:8055:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2288 /* .xProc */)) = vfs_initfail_test // test1.c:8056:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2312 /* .xProc */)) = vfs_unregister_all // test1.c:8057:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2336 /* .xProc */)) = vfs_reregister_all // test1.c:8058:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2360 /* .xProc */)) = file_control_test // test1.c:8059:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2384 /* .xProc */)) = file_control_lasterrno_test // test1.c:8060:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2408 /* .xProc */)) = file_control_lockproxy_test // test1.c:8061:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2432 /* .xProc */)) = file_control_chunksize_test // test1.c:8062:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2456 /* .xProc */)) = file_control_sizehint_test // test1.c:8063:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2480 /* .xProc */)) = file_control_data_version // test1.c:8064:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2504 /* .xProc */)) = file_control_persist_wal // test1.c:8070:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2528 /* .xProc */)) = file_control_powersafe_overwrite // test1.c:8071:43:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2552 /* .xProc */)) = file_control_vfsname // test1.c:8072:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2576 /* .xProc */)) = file_control_tempfilename // test1.c:8073:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2600 /* .xProc */)) = vfs_list // test1.c:8074:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2624 /* .xProc */)) = test_create_function_v2 // test1.c:8075:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2648 /* .xProc */)) = test_collate // test1.c:8079:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2672 /* .xProc */)) = test_collate_needed // test1.c:8080:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2696 /* .xProc */)) = test_function // test1.c:8081:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2720 /* .xProc */)) = test_utf16bin_collate // test1.c:8082:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2744 /* .xProc */)) = test_errstr // test1.c:8084:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2768 /* .xProc */)) = tcl_variable_type // test1.c:8085:35:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2792 /* .xProc */)) = test_enable_shared // test1.c:8087:39:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2816 /* .xProc */)) = sqlite3BtreeSharedCacheReport // test1.c:8088:39:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2840 /* .xProc */)) = test_libversion_number // test1.c:8090:37:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2864 /* .xProc */)) = test_table_column_metadata // test1.c:8091:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2888 /* .xProc */)) = test_blob_reopen // test1.c:8093:31:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2912 /* .xProc */)) = test_pcache_stats // test1.c:8095:30:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2936 /* .xProc */)) = test_unlock_notify // test1.c:8097:33:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2960 /* .xProc */)) = test_wal_checkpoint // test1.c:8099:36:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 2984 /* .xProc */)) = test_wal_checkpoint_v2 // test1.c:8100:36:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3008 /* .xProc */)) = test_wal_autocheckpoint // test1.c:8101:37:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3032 /* .xProc */)) = test_sqlite3_log // test1.c:8102:36:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3056 /* .xProc */)) = test_print_eqp // test1.c:8104:36:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3080 /* .xProc */)) = test_test_control // test1.c:8106:32:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3104 /* .xProc */)) = test_getrusage // test1.c:8108:21:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3128 /* .xProc */)) = tclLoadStaticExtensionCmd // test1.c:8110:33:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3152 /* .xProc */)) = sorter_test_fakeheap // test1.c:8111:32:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3176 /* .xProc */)) = sorter_test_sort4_helper // test1.c:8112:36:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3200 /* .xProc */)) = vfsCurrentTimeInt64 // test1.c:8126:44:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3224 /* .xProc */)) = test_delete_database // test1.c:8137:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3248 /* .xProc */)) = test_atomic_batch_write // test1.c:8138:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3272 /* .xProc */)) = test_mmap_warm // test1.c:8139:35:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3296 /* .xProc */)) = test_config_sorterref // test1.c:8140:36:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 3320 /* .xProc */)) = test_decode_hexdb // test1.c:8141:36:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 8 /* .xProc */)) = register_echo_module // test8.c:1434:38:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 32 /* .xProc */)) = declare_vtab // test8.c:1435:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 8 /* .xProc */)) = test_malloc // test_malloc.c:1506:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 32 /* .xProc */)) = test_realloc // test_malloc.c:1507:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 56 /* .xProc */)) = test_free // test_malloc.c:1508:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 80 /* .xProc */)) = test_memset // test_malloc.c:1509:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 104 /* .xProc */)) = test_memget // test_malloc.c:1510:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 128 /* .xProc */)) = test_memory_used // test_malloc.c:1511:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 152 /* .xProc */)) = test_memory_highwater // test_malloc.c:1512:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 176 /* .xProc */)) = test_memdebug_backtrace // test_malloc.c:1513:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 200 /* .xProc */)) = test_memdebug_dump // test_malloc.c:1514:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 224 /* .xProc */)) = test_memdebug_fail // test_malloc.c:1515:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 248 /* .xProc */)) = test_memdebug_pending // test_malloc.c:1516:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 272 /* .xProc */)) = test_memdebug_settitle // test_malloc.c:1517:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 296 /* .xProc */)) = test_memdebug_malloc_count // test_malloc.c:1518:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 320 /* .xProc */)) = test_memdebug_log // test_malloc.c:1519:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 344 /* .xProc */)) = test_config_pagecache // test_malloc.c:1520:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 368 /* .xProc */)) = test_alt_pcache // test_malloc.c:1521:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 392 /* .xProc */)) = test_status // test_malloc.c:1522:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 416 /* .xProc */)) = test_db_status // test_malloc.c:1523:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 440 /* .xProc */)) = test_install_malloc_faultsim // test_malloc.c:1524:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 464 /* .xProc */)) = test_config_heap // test_malloc.c:1525:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 488 /* .xProc */)) = test_config_heap_size // test_malloc.c:1526:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 512 /* .xProc */)) = test_config_memstatus // test_malloc.c:1527:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 536 /* .xProc */)) = test_config_lookaside // test_malloc.c:1528:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 560 /* .xProc */)) = test_config_error // test_malloc.c:1529:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 584 /* .xProc */)) = test_config_uri // test_malloc.c:1530:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 608 /* .xProc */)) = test_config_cis // test_malloc.c:1531:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 632 /* .xProc */)) = test_config_pmasz // test_malloc.c:1532:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 656 /* .xProc */)) = test_db_config_lookaside // test_malloc.c:1533:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 680 /* .xProc */)) = test_dump_memsys3 // test_malloc.c:1534:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 704 /* .xProc */)) = test_dump_memsys3 // test_malloc.c:1535:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 728 /* .xProc */)) = test_install_memsys3 // test_malloc.c:1536:38:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 752 /* .xProc */)) = test_vfs_oom_test // test_malloc.c:1537:41:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 8 /* .xProc */)) = register_schema_module // test_schema.c:336:34:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd12)) + 8 /* .xProc */)) = register_tclvar_module // test_tclvar.c:553:36:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd13)) + 8 /* .xProc */)) = test_create_window // test_window.c:337:42:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd13)) + 32 /* .xProc */)) = test_create_window_misuse // test_window.c:338:46:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd13)) + 56 /* .xProc */)) = test_create_sumint // test_window.c:339:30:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd13)) + 80 /* .xProc */)) = test_override_sum // test_window.c:340:29:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd2)) + 8 /* .xProc */)) = c_misuse_test // test9.c:194:28:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd2)) + 32 /* .xProc */)) = c_realloc_test // test9.c:195:28:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd2)) + 56 /* .xProc */)) = c_collation_test // test9.c:196:28:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd3)) + 8 /* .xProc */)) = register_tcl_module // test_bestindex.c:611:33:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd4)) + 8 /* .xProc */)) = test_blob_open // test_blob.c:318:40:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd4)) + 24 /* .xProc */)) = test_blob_close // test_blob.c:319:40:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd4)) + 40 /* .xProc */)) = test_blob_bytes // test_blob.c:320:40:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd4)) + 56 /* .xProc */)) = test_blob_read // test_blob.c:321:40:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd4)) + 72 /* .xProc */)) = test_blob_write // test_blob.c:322:40:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd5)) + 8 /* .xProc */)) = register_fs_module // test_fs.c:908:32:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd6)) + 8 /* .xProc */)) = autoinstall_test_funcs // test_func.c:938:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd6)) + 24 /* .xProc */)) = abuse_create_function // test_func.c:939:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd6)) + 40 /* .xProc */)) = install_fts3_rank_function // test_func.c:940:41:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 8 /* .xProc */)) = hexio_read // test_hexio.c:451:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 24 /* .xProc */)) = hexio_write // test_hexio.c:452:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 40 /* .xProc */)) = hexio_get_int // test_hexio.c:453:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 56 /* .xProc */)) = hexio_render_int16 // test_hexio.c:454:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 72 /* .xProc */)) = hexio_render_int32 // test_hexio.c:455:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 88 /* .xProc */)) = utf8_to_utf8 // test_hexio.c:456:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 104 /* .xProc */)) = read_fts3varint // test_hexio.c:457:40:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 120 /* .xProc */)) = make_fts3record // test_hexio.c:458:40:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 8 /* .xProc */)) = init_wrapper_install // test_init.c:283:32:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 24 /* .xProc */)) = init_wrapper_query // test_init.c:284:32:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 40 /* .xProc */)) = init_wrapper_uninstall // test_init.c:285:32:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 56 /* .xProc */)) = init_wrapper_clear // test_init.c:286:32:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd9)) + 8 /* .xProc */)) = test_intarray_create // test_intarray.c:381:35:
- *(*func(*crt.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd9)) + 32 /* .xProc */)) = test_intarray_bind // test_intarray.c:382:33:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 8 /* .xProc */)) = test_quota_initialize // test_quota.c:1949:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 24 /* .xProc */)) = test_quota_shutdown // test_quota.c:1950:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 40 /* .xProc */)) = test_quota_set // test_quota.c:1951:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 56 /* .xProc */)) = test_quota_file // test_quota.c:1952:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 72 /* .xProc */)) = test_quota_dump // test_quota.c:1953:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 88 /* .xProc */)) = test_quota_fopen // test_quota.c:1954:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 104 /* .xProc */)) = test_quota_fread // test_quota.c:1955:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 120 /* .xProc */)) = test_quota_fwrite // test_quota.c:1956:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 136 /* .xProc */)) = test_quota_fclose // test_quota.c:1957:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 152 /* .xProc */)) = test_quota_fflush // test_quota.c:1958:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 168 /* .xProc */)) = test_quota_fseek // test_quota.c:1959:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 184 /* .xProc */)) = test_quota_rewind // test_quota.c:1960:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 200 /* .xProc */)) = test_quota_ftell // test_quota.c:1961:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 216 /* .xProc */)) = test_quota_ftruncate // test_quota.c:1962:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 232 /* .xProc */)) = test_quota_file_size // test_quota.c:1963:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 248 /* .xProc */)) = test_quota_file_truesize // test_quota.c:1964:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 264 /* .xProc */)) = test_quota_file_mtime // test_quota.c:1965:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 280 /* .xProc */)) = test_quota_remove // test_quota.c:1966:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 296 /* .xProc */)) = test_quota_glob // test_quota.c:1967:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 312 /* .xProc */)) = test_quota_file_available // test_quota.c:1968:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aCmd9)) + 328 /* .xProc */)) = test_quota_ferror // test_quota.c:1969:38:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 8 /* .pInit */)) = sqlite3_amatch_init // test1.c:7306:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 24 /* .pInit */)) = sqlite3_carray_init // test1.c:7307:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 40 /* .pInit */)) = sqlite3_closure_init // test1.c:7308:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 56 /* .pInit */)) = sqlite3_csv_init // test1.c:7309:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 72 /* .pInit */)) = sqlite3_decimal_init // test1.c:7310:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 88 /* .pInit */)) = sqlite3_eval_init // test1.c:7311:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 104 /* .pInit */)) = sqlite3_explain_init // test1.c:7312:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 120 /* .pInit */)) = sqlite3_fileio_init // test1.c:7313:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 136 /* .pInit */)) = sqlite3_fuzzer_init // test1.c:7314:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 152 /* .pInit */)) = sqlite3_ieee_init // test1.c:7315:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 168 /* .pInit */)) = sqlite3_nextchar_init // test1.c:7316:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 184 /* .pInit */)) = sqlite3_percentile_init // test1.c:7317:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 200 /* .pInit */)) = sqlite3_prefixes_init // test1.c:7319:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 216 /* .pInit */)) = sqlite3_regexp_init // test1.c:7321:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 232 /* .pInit */)) = sqlite3_remember_init // test1.c:7322:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 248 /* .pInit */)) = sqlite3_series_init // test1.c:7323:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 264 /* .pInit */)) = sqlite3_spellfix_init // test1.c:7324:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 280 /* .pInit */)) = sqlite3_totype_init // test1.c:7325:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 296 /* .pInit */)) = sqlite3_unionvtab_init // test1.c:7326:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 312 /* .pInit */)) = sqlite3_wholenumber_init // test1.c:7327:32:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aExtension)) + 328 /* .pInit */)) = sqlite3_zipfile_init // test1.c:7329:32:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 16 /* .xFunc */)) = decimalFunc // decimal.c:607:29:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 40 /* .xFunc */)) = decimalCmpFunc // decimal.c:608:29:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 64 /* .xFunc */)) = decimalAddFunc // decimal.c:609:29:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 88 /* .xFunc */)) = decimalSubFunc // decimal.c:610:29:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc)) + 112 /* .xFunc */)) = decimalMulFunc // decimal.c:611:29:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 16 /* .xFunc */)) = ieee754func // ieee754.c:262:36:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 40 /* .xFunc */)) = ieee754func // ieee754.c:263:36:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 64 /* .xFunc */)) = ieee754func // ieee754.c:264:36:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 88 /* .xFunc */)) = ieee754func // ieee754.c:265:36:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 112 /* .xFunc */)) = ieee754func_to_blob // ieee754.c:266:36:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFunc1)) + 136 /* .xFunc */)) = ieee754func_from_blob // ieee754.c:267:36:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 16 /* .xFunc */)) = randStr // test_func.c:675:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 40 /* .xFunc */)) = test_destructor // test_func.c:676:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 64 /* .xFunc */)) = test_destructor16 // test_func.c:678:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 88 /* .xFunc */)) = testHexToUtf16be // test_func.c:679:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 112 /* .xFunc */)) = testHexToUtf16le // test_func.c:680:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 136 /* .xFunc */)) = testHexToUtf8 // test_func.c:682:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 160 /* .xFunc */)) = test_destructor_count // test_func.c:683:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 184 /* .xFunc */)) = test_auxdata // test_func.c:684:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 208 /* .xFunc */)) = test_error // test_func.c:685:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 232 /* .xFunc */)) = test_error // test_func.c:686:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 256 /* .xFunc */)) = test_eval // test_func.c:687:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 280 /* .xFunc */)) = test_isolation // test_func.c:688:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 304 /* .xFunc */)) = counterFunc // test_func.c:689:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 328 /* .xFunc */)) = real2hex // test_func.c:690:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 352 /* .xFunc */)) = test_decode // test_func.c:691:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 376 /* .xFunc */)) = test_extract // test_func.c:692:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 400 /* .xFunc */)) = test_zeroblob // test_func.c:693:62:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 424 /* .xFunc */)) = test_getsubtype // test_func.c:694:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 448 /* .xFunc */)) = test_setsubtype // test_func.c:695:48:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&aFuncs)) + 472 /* .xFunc */)) = test_frombind // test_func.c:696:48:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 8 /* .xProc */)) = test_sqlite3rbu // test_rbu.c:370:21:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 24 /* .xProc */)) = test_sqlite3rbu_vacuum // test_rbu.c:371:28:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 40 /* .xProc */)) = test_sqlite3rbu_create_vfs // test_rbu.c:372:32:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 56 /* .xProc */)) = test_sqlite3rbu_destroy_vfs // test_rbu.c:373:33:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd)) + 72 /* .xProc */)) = test_sqlite3rbu_internal_test // test_rbu.c:374:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 8 /* .xProc */)) = test_sqlite3_db_config // test1.c:7987:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 32 /* .xProc */)) = test_bad_behavior // test1.c:7988:41:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 40 /* .clientData */)) = uintptr(unsafe.Pointer(&iZero)) // test1.c:7988:61:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 56 /* .xProc */)) = test_register_dbstat_vtab // test1.c:7989:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 80 /* .xProc */)) = get_sqlite_pointer // test1.c:7990:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 104 /* .xProc */)) = test_intarray_addr // test1.c:7991:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 128 /* .xProc */)) = test_int64array_addr // test1.c:7992:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 152 /* .xProc */)) = test_doublearray_addr // test1.c:7993:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 176 /* .xProc */)) = test_textarray_addr // test1.c:7994:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 200 /* .xProc */)) = test_bind_int // test1.c:7995:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 224 /* .xProc */)) = test_bind_zeroblob // test1.c:7996:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 248 /* .xProc */)) = test_bind_zeroblob64 // test1.c:7997:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 272 /* .xProc */)) = test_bind_int64 // test1.c:7998:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 296 /* .xProc */)) = test_bind_double // test1.c:7999:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 320 /* .xProc */)) = test_bind_null // test1.c:8000:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 344 /* .xProc */)) = test_bind_text // test1.c:8001:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 368 /* .xProc */)) = test_bind_text16 // test1.c:8002:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 392 /* .xProc */)) = test_bind_blob // test1.c:8003:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 416 /* .xProc */)) = test_bind_parameter_count // test1.c:8004:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 440 /* .xProc */)) = test_bind_parameter_name // test1.c:8005:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 464 /* .xProc */)) = test_bind_parameter_index // test1.c:8006:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 488 /* .xProc */)) = test_clear_bindings // test1.c:8007:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 512 /* .xProc */)) = test_sleep // test1.c:8008:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 536 /* .xProc */)) = test_errcode // test1.c:8009:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 560 /* .xProc */)) = test_ex_errcode // test1.c:8010:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 584 /* .xProc */)) = test_errmsg // test1.c:8011:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 608 /* .xProc */)) = test_errmsg16 // test1.c:8012:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 632 /* .xProc */)) = test_open // test1.c:8013:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 656 /* .xProc */)) = test_open16 // test1.c:8014:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 680 /* .xProc */)) = test_open_v2 // test1.c:8015:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 704 /* .xProc */)) = test_complete16 // test1.c:8016:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 728 /* .xProc */)) = test_normalize // test1.c:8017:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 752 /* .xProc */)) = test_prepare // test1.c:8019:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 776 /* .xProc */)) = test_prepare16 // test1.c:8020:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 800 /* .xProc */)) = test_prepare_v2 // test1.c:8021:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 824 /* .xProc */)) = test_prepare_v3 // test1.c:8022:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 848 /* .xProc */)) = test_prepare_tkt3134 // test1.c:8023:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 872 /* .xProc */)) = test_prepare16_v2 // test1.c:8024:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 896 /* .xProc */)) = test_finalize // test1.c:8025:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 920 /* .xProc */)) = test_stmt_status // test1.c:8026:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 944 /* .xProc */)) = test_reset // test1.c:8027:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 968 /* .xProc */)) = test_expired // test1.c:8028:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 992 /* .xProc */)) = test_transfer_bind // test1.c:8029:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1016 /* .xProc */)) = test_changes // test1.c:8030:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1040 /* .xProc */)) = test_step // test1.c:8031:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1064 /* .xProc */)) = test_sql // test1.c:8032:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1088 /* .xProc */)) = test_ex_sql // test1.c:8033:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1112 /* .xProc */)) = test_next_stmt // test1.c:8037:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1136 /* .xProc */)) = test_stmt_readonly // test1.c:8038:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1160 /* .xProc */)) = test_stmt_isexplain // test1.c:8039:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1184 /* .xProc */)) = test_stmt_busy // test1.c:8040:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1208 /* .xProc */)) = uses_stmt_journal // test1.c:8041:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1232 /* .xProc */)) = test_release_memory // test1.c:8043:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1256 /* .xProc */)) = test_db_release_memory // test1.c:8044:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1280 /* .xProc */)) = test_db_cacheflush // test1.c:8045:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1304 /* .xProc */)) = test_system_errno // test1.c:8046:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1328 /* .xProc */)) = test_db_filename // test1.c:8047:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1352 /* .xProc */)) = test_db_readonly // test1.c:8048:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1376 /* .xProc */)) = test_soft_heap_limit // test1.c:8049:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1400 /* .xProc */)) = test_soft_heap_limit // test1.c:8050:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1424 /* .xProc */)) = test_hard_heap_limit // test1.c:8051:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1448 /* .xProc */)) = test_thread_cleanup // test1.c:8052:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1472 /* .xProc */)) = test_pager_refcounts // test1.c:8053:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1496 /* .xProc */)) = test_load_extension // test1.c:8055:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1520 /* .xProc */)) = test_enable_load // test1.c:8056:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1544 /* .xProc */)) = test_extended_result_codes // test1.c:8057:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1568 /* .xProc */)) = test_limit // test1.c:8058:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1592 /* .xProc */)) = test_dbconfig_maindbname_icecube // test1.c:8059:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1616 /* .xProc */)) = save_prng_state // test1.c:8061:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1640 /* .xProc */)) = restore_prng_state // test1.c:8062:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1664 /* .xProc */)) = reset_prng_state // test1.c:8063:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1688 /* .xProc */)) = prng_seed // test1.c:8064:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1712 /* .xProc */)) = extra_schema_checks // test1.c:8065:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1736 /* .xProc */)) = database_never_corrupt // test1.c:8066:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1760 /* .xProc */)) = database_may_be_corrupt // test1.c:8067:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1784 /* .xProc */)) = optimization_control // test1.c:8068:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1808 /* .xProc */)) = runAsObjProc // test1.c:8077:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1832 /* .xProc */)) = test_column_count // test1.c:8080:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1856 /* .xProc */)) = test_data_count // test1.c:8081:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1880 /* .xProc */)) = test_column_type // test1.c:8082:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1904 /* .xProc */)) = test_column_blob // test1.c:8083:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1928 /* .xProc */)) = test_column_double // test1.c:8084:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1952 /* .xProc */)) = test_column_int64 // test1.c:8085:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1976 /* .xProc */)) = test_stmt_utf8 // test1.c:8086:33:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 1984 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_text})) // test1.c:8086:50:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2000 /* .xProc */)) = test_stmt_utf8 // test1.c:8087:33:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2008 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_name})) // test1.c:8087:50:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2024 /* .xProc */)) = test_stmt_int // test1.c:8088:33:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2032 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) int32
+ }{sqlite3.Xsqlite3_column_int})) // test1.c:8088:50:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2048 /* .xProc */)) = test_stmt_int // test1.c:8089:33:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2056 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) int32
+ }{sqlite3.Xsqlite3_column_bytes})) // test1.c:8089:50:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2072 /* .xProc */)) = test_stmt_utf8 // test1.c:8091:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2080 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_decltype})) // test1.c:8091:49:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2096 /* .xProc */)) = test_stmt_utf8 // test1.c:8094:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2104 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_database_name})) // test1.c:8094:49:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2120 /* .xProc */)) = test_stmt_utf8 // test1.c:8095:31:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2128 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_table_name})) // test1.c:8095:46:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2144 /* .xProc */)) = test_stmt_utf8 // test1.c:8096:32:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2152 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_origin_name})) // test1.c:8096:47:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2168 /* .xProc */)) = test_stmt_int // test1.c:8100:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2176 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) int32
+ }{sqlite3.Xsqlite3_column_bytes16})) // test1.c:8100:49:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2192 /* .xProc */)) = test_stmt_utf16 // test1.c:8101:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2200 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_text16})) // test1.c:8101:51:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2216 /* .xProc */)) = test_stmt_utf16 // test1.c:8102:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2224 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_name16})) // test1.c:8102:51:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2240 /* .xProc */)) = add_alignment_test_collations // test1.c:8103:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2264 /* .xProc */)) = test_stmt_utf16 // test1.c:8105:36:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2272 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_decltype16})) // test1.c:8105:52:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2288 /* .xProc */)) = test_stmt_utf16 // test1.c:8109:3:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2296 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_database_name16})) // test1.c:8109:20:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2312 /* .xProc */)) = test_stmt_utf16 // test1.c:8110:33:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2320 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_table_name16})) // test1.c:8110:50:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2336 /* .xProc */)) = test_stmt_utf16 // test1.c:8111:34:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2344 /* .clientData */)) = *(*uintptr)(unsafe.Pointer(&struct {
+ f func(*libc.TLS, uintptr, int32) uintptr
+ }{sqlite3.Xsqlite3_column_origin_name16})) // test1.c:8111:51:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2360 /* .xProc */)) = test_create_collation_v2 // test1.c:8114:39:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2384 /* .xProc */)) = test_global_recover // test1.c:8115:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2408 /* .xProc */)) = working_64bit_int // test1.c:8116:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2432 /* .xProc */)) = vfs_unlink_test // test1.c:8117:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2456 /* .xProc */)) = vfs_initfail_test // test1.c:8118:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2480 /* .xProc */)) = vfs_unregister_all // test1.c:8119:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2504 /* .xProc */)) = vfs_reregister_all // test1.c:8120:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2528 /* .xProc */)) = file_control_test // test1.c:8121:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2552 /* .xProc */)) = file_control_lasterrno_test // test1.c:8122:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2576 /* .xProc */)) = file_control_lockproxy_test // test1.c:8123:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2600 /* .xProc */)) = file_control_chunksize_test // test1.c:8124:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2624 /* .xProc */)) = file_control_sizehint_test // test1.c:8125:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2648 /* .xProc */)) = file_control_data_version // test1.c:8126:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2672 /* .xProc */)) = file_control_persist_wal // test1.c:8132:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2696 /* .xProc */)) = file_control_powersafe_overwrite // test1.c:8133:43:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2720 /* .xProc */)) = file_control_vfsname // test1.c:8134:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2744 /* .xProc */)) = file_control_tempfilename // test1.c:8135:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2768 /* .xProc */)) = vfs_list // test1.c:8136:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2792 /* .xProc */)) = test_create_function_v2 // test1.c:8137:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2816 /* .xProc */)) = test_collate // test1.c:8141:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2840 /* .xProc */)) = test_collate_needed // test1.c:8142:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2864 /* .xProc */)) = test_function // test1.c:8143:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2888 /* .xProc */)) = test_utf16bin_collate // test1.c:8144:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2912 /* .xProc */)) = test_errstr // test1.c:8146:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2936 /* .xProc */)) = tcl_variable_type // test1.c:8147:35:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2960 /* .xProc */)) = test_enable_shared // test1.c:8149:39:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 2984 /* .xProc */)) = sqlite3BtreeSharedCacheReport // test1.c:8150:39:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3008 /* .xProc */)) = test_libversion_number // test1.c:8152:37:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3032 /* .xProc */)) = test_table_column_metadata // test1.c:8153:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3056 /* .xProc */)) = test_blob_reopen // test1.c:8155:31:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3080 /* .xProc */)) = test_pcache_stats // test1.c:8157:30:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3104 /* .xProc */)) = test_unlock_notify // test1.c:8159:33:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3128 /* .xProc */)) = test_wal_checkpoint // test1.c:8161:36:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3152 /* .xProc */)) = test_wal_checkpoint_v2 // test1.c:8162:36:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3176 /* .xProc */)) = test_wal_autocheckpoint // test1.c:8163:37:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3200 /* .xProc */)) = test_sqlite3_log // test1.c:8164:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3224 /* .xProc */)) = test_print_eqp // test1.c:8166:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3248 /* .xProc */)) = test_test_control // test1.c:8168:32:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3272 /* .xProc */)) = test_getrusage // test1.c:8170:21:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3296 /* .xProc */)) = tclLoadStaticExtensionCmd // test1.c:8172:33:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3320 /* .xProc */)) = sorter_test_fakeheap // test1.c:8173:32:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3344 /* .xProc */)) = sorter_test_sort4_helper // test1.c:8174:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3368 /* .xProc */)) = vfsCurrentTimeInt64 // test1.c:8188:44:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3392 /* .xProc */)) = test_snapshot_get // test1.c:8190:32:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3416 /* .xProc */)) = test_snapshot_open // test1.c:8191:33:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3440 /* .xProc */)) = test_snapshot_free // test1.c:8192:33:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3464 /* .xProc */)) = test_snapshot_cmp // test1.c:8193:32:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3488 /* .xProc */)) = test_snapshot_recover // test1.c:8194:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3512 /* .xProc */)) = test_snapshot_get_blob // test1.c:8195:37:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3536 /* .xProc */)) = test_snapshot_open_blob // test1.c:8196:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3560 /* .xProc */)) = test_snapshot_cmp_blob // test1.c:8197:37:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3584 /* .xProc */)) = test_delete_database // test1.c:8199:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3608 /* .xProc */)) = test_atomic_batch_write // test1.c:8200:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3632 /* .xProc */)) = test_mmap_warm // test1.c:8201:35:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3656 /* .xProc */)) = test_config_sorterref // test1.c:8202:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3680 /* .xProc */)) = test_decode_hexdb // test1.c:8203:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd1)) + 3704 /* .xProc */)) = test_write_db // test1.c:8204:36:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 8 /* .xProc */)) = test_intarray_create // test_intarray.c:381:35:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd10)) + 32 /* .xProc */)) = test_intarray_bind // test_intarray.c:382:33:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 8 /* .xProc */)) = test_malloc // test_malloc.c:1473:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 32 /* .xProc */)) = test_realloc // test_malloc.c:1474:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 56 /* .xProc */)) = test_free // test_malloc.c:1475:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 80 /* .xProc */)) = test_memset // test_malloc.c:1476:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 104 /* .xProc */)) = test_memget // test_malloc.c:1477:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 128 /* .xProc */)) = test_memory_used // test_malloc.c:1478:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 152 /* .xProc */)) = test_memory_highwater // test_malloc.c:1479:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 176 /* .xProc */)) = test_memdebug_backtrace // test_malloc.c:1480:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 200 /* .xProc */)) = test_memdebug_dump // test_malloc.c:1481:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 224 /* .xProc */)) = test_memdebug_fail // test_malloc.c:1482:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 248 /* .xProc */)) = test_memdebug_pending // test_malloc.c:1483:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 272 /* .xProc */)) = test_memdebug_settitle // test_malloc.c:1484:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 296 /* .xProc */)) = test_memdebug_malloc_count // test_malloc.c:1485:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 320 /* .xProc */)) = test_memdebug_log // test_malloc.c:1486:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 344 /* .xProc */)) = test_config_pagecache // test_malloc.c:1487:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 368 /* .xProc */)) = test_alt_pcache // test_malloc.c:1488:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 392 /* .xProc */)) = test_status // test_malloc.c:1489:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 416 /* .xProc */)) = test_db_status // test_malloc.c:1490:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 440 /* .xProc */)) = test_install_malloc_faultsim // test_malloc.c:1491:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 464 /* .xProc */)) = test_config_heap // test_malloc.c:1492:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 488 /* .xProc */)) = test_config_heap_size // test_malloc.c:1493:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 512 /* .xProc */)) = test_config_memstatus // test_malloc.c:1494:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 536 /* .xProc */)) = test_config_lookaside // test_malloc.c:1495:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 560 /* .xProc */)) = test_config_error // test_malloc.c:1496:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 584 /* .xProc */)) = test_config_uri // test_malloc.c:1497:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 608 /* .xProc */)) = test_config_cis // test_malloc.c:1498:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 632 /* .xProc */)) = test_config_pmasz // test_malloc.c:1499:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 656 /* .xProc */)) = test_db_config_lookaside // test_malloc.c:1500:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 680 /* .xProc */)) = test_dump_memsys3 // test_malloc.c:1501:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 704 /* .xProc */)) = test_dump_memsys3 // test_malloc.c:1502:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 728 /* .xProc */)) = test_install_memsys3 // test_malloc.c:1503:38:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd11)) + 752 /* .xProc */)) = test_vfs_oom_test // test_malloc.c:1504:41:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd12)) + 8 /* .xProc */)) = register_schema_module // test_schema.c:336:34:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd13)) + 8 /* .xProc */)) = register_tclvar_module // test_tclvar.c:553:36:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd14)) + 8 /* .xProc */)) = test_create_window // test_window.c:337:42:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd14)) + 32 /* .xProc */)) = test_create_window_misuse // test_window.c:338:46:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd14)) + 56 /* .xProc */)) = test_create_sumint // test_window.c:339:30:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd14)) + 80 /* .xProc */)) = test_override_sum // test_window.c:340:29:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd2)) + 8 /* .xProc */)) = register_echo_module // test8.c:1434:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd2)) + 32 /* .xProc */)) = declare_vtab // test8.c:1435:38:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd3)) + 8 /* .xProc */)) = c_misuse_test // test9.c:194:28:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd3)) + 32 /* .xProc */)) = c_realloc_test // test9.c:195:28:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd3)) + 56 /* .xProc */)) = c_collation_test // test9.c:196:28:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd4)) + 8 /* .xProc */)) = register_tcl_module // test_bestindex.c:611:33:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd5)) + 8 /* .xProc */)) = test_blob_open // test_blob.c:318:40:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd5)) + 24 /* .xProc */)) = test_blob_close // test_blob.c:319:40:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd5)) + 40 /* .xProc */)) = test_blob_bytes // test_blob.c:320:40:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd5)) + 56 /* .xProc */)) = test_blob_read // test_blob.c:321:40:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd5)) + 72 /* .xProc */)) = test_blob_write // test_blob.c:322:40:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd6)) + 8 /* .xProc */)) = register_fs_module // test_fs.c:908:32:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 8 /* .xProc */)) = autoinstall_test_funcs // test_func.c:938:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 24 /* .xProc */)) = abuse_create_function // test_func.c:939:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd7)) + 40 /* .xProc */)) = install_fts3_rank_function // test_func.c:940:41:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 8 /* .xProc */)) = hexio_read // test_hexio.c:451:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 24 /* .xProc */)) = hexio_write // test_hexio.c:452:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 40 /* .xProc */)) = hexio_get_int // test_hexio.c:453:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 56 /* .xProc */)) = hexio_render_int16 // test_hexio.c:454:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 72 /* .xProc */)) = hexio_render_int32 // test_hexio.c:455:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 88 /* .xProc */)) = utf8_to_utf8 // test_hexio.c:456:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 104 /* .xProc */)) = read_fts3varint // test_hexio.c:457:40:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd8)) + 120 /* .xProc */)) = make_fts3record // test_hexio.c:458:40:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd9)) + 8 /* .xProc */)) = init_wrapper_install // test_init.c:283:32:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd9)) + 24 /* .xProc */)) = init_wrapper_query // test_init.c:284:32:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd9)) + 40 /* .xProc */)) = init_wrapper_uninstall // test_init.c:285:32:
+ *(*func(*libc.TLS, ClientData, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&aObjCmd9)) + 56 /* .xProc */)) = init_wrapper_clear // test_init.c:286:32:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 8 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32, int32) int32
+ f func(*libc.TLS, uintptr, int32, int32) int32
}{ts_open})) // test_syscall.c:134:27:
- *(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 40 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*crt.TLS, int32) int32 }{ts_close})) // test_syscall.c:135:27:
+ *(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 40 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct{ f func(*libc.TLS, int32) int32 }{ts_close})) // test_syscall.c:135:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 72 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, int32) int32
+ f func(*libc.TLS, uintptr, int32) int32
}{ts_access})) // test_syscall.c:136:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 104 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, size_t) uintptr
+ f func(*libc.TLS, uintptr, size_t) uintptr
}{ts_getcwd})) // test_syscall.c:137:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 136 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, uintptr) int32
+ f func(*libc.TLS, uintptr, uintptr) int32
}{ts_stat})) // test_syscall.c:138:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 168 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr) int32
+ f func(*libc.TLS, int32, uintptr) int32
}{ts_fstat})) // test_syscall.c:139:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 200 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, off_t) int32
+ f func(*libc.TLS, int32, off_t) int32
}{ts_ftruncate})) // test_syscall.c:140:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 232 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, int32, uintptr) int32
+ f func(*libc.TLS, int32, int32, uintptr) int32
}{ts_fcntl})) // test_syscall.c:141:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 264 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr, size_t) int32
+ f func(*libc.TLS, int32, uintptr, size_t) int32
}{ts_read})) // test_syscall.c:142:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 296 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr, size_t, off_t) int32
+ f func(*libc.TLS, int32, uintptr, size_t, off_t) int32
}{ts_pread})) // test_syscall.c:143:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 328 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr, size_t, sqlite3_uint64) int32
+ f func(*libc.TLS, int32, uintptr, size_t, sqlite3_uint64) int32
}{ts_pread64})) // test_syscall.c:144:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 360 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr, size_t) int32
+ f func(*libc.TLS, int32, uintptr, size_t) int32
}{ts_write})) // test_syscall.c:145:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 392 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr, size_t, off_t) int32
+ f func(*libc.TLS, int32, uintptr, size_t, off_t) int32
}{ts_pwrite})) // test_syscall.c:146:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 424 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, uintptr, size_t, sqlite3_uint64) int32
+ f func(*libc.TLS, int32, uintptr, size_t, sqlite3_uint64) int32
}{ts_pwrite64})) // test_syscall.c:147:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 456 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, mode_t) int32
+ f func(*libc.TLS, int32, mode_t) int32
}{ts_fchmod})) // test_syscall.c:148:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 488 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, int32, off_t, off_t) int32
+ f func(*libc.TLS, int32, off_t, off_t) int32
}{ts_fallocate})) // test_syscall.c:149:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 520 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, size_t, int32, int32, int32, off_t) uintptr
+ f func(*libc.TLS, uintptr, size_t, int32, int32, int32, off_t) uintptr
}{ts_mmap})) // test_syscall.c:150:27:
*(*sqlite3_syscall_ptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&aSyscall)) + 552 /* .xTest */)) = *(*uintptr)(unsafe.Pointer(&struct {
- f func(*crt.TLS, uintptr, size_t, size_t, int32, uintptr) uintptr
+ f func(*libc.TLS, uintptr, size_t, size_t, int32, uintptr) uintptr
}{ts_mremap})) // test_syscall.c:151:27:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 8 /* .xCreate */)) = amatchConnect // amatch.c:1456:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 16 /* .xConnect */)) = amatchConnect // amatch.c:1457:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 24 /* .xBestIndex */)) = amatchBestIndex // amatch.c:1458:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 32 /* .xDisconnect */)) = amatchDisconnect // amatch.c:1459:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 40 /* .xDestroy */)) = amatchDisconnect // amatch.c:1460:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 48 /* .xOpen */)) = amatchOpen // amatch.c:1461:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 56 /* .xClose */)) = amatchClose // amatch.c:1462:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 64 /* .xFilter */)) = amatchFilter // amatch.c:1463:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 72 /* .xNext */)) = amatchNext // amatch.c:1464:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 80 /* .xEof */)) = amatchEof // amatch.c:1465:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 88 /* .xColumn */)) = amatchColumn // amatch.c:1466:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 96 /* .xRowid */)) = amatchRowid // amatch.c:1467:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 104 /* .xUpdate */)) = amatchUpdate // amatch.c:1468:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 16 /* .xConnect */)) = carrayConnect // carray.c:336:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 24 /* .xBestIndex */)) = carrayBestIndex // carray.c:337:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 32 /* .xDisconnect */)) = carrayDisconnect // carray.c:338:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 48 /* .xOpen */)) = carrayOpen // carray.c:340:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 56 /* .xClose */)) = carrayClose // carray.c:341:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 64 /* .xFilter */)) = carrayFilter // carray.c:342:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 72 /* .xNext */)) = carrayNext // carray.c:343:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 80 /* .xEof */)) = carrayEof // carray.c:344:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 88 /* .xColumn */)) = carrayColumn // carray.c:345:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 96 /* .xRowid */)) = carrayRowid // carray.c:346:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 8 /* .xCreate */)) = closureConnect // closure.c:920:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 16 /* .xConnect */)) = closureConnect // closure.c:921:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 24 /* .xBestIndex */)) = closureBestIndex // closure.c:922:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 32 /* .xDisconnect */)) = closureDisconnect // closure.c:923:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 40 /* .xDestroy */)) = closureDisconnect // closure.c:924:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 48 /* .xOpen */)) = closureOpen // closure.c:925:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 56 /* .xClose */)) = closureClose // closure.c:926:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 64 /* .xFilter */)) = closureFilter // closure.c:927:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 72 /* .xNext */)) = closureNext // closure.c:928:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 80 /* .xEof */)) = closureEof // closure.c:929:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 88 /* .xColumn */)) = closureColumn // closure.c:930:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 96 /* .xRowid */)) = closureRowid // closure.c:931:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 40 /* .xOpen */)) = cfOpen // test6.c:853:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 48 /* .xDelete */)) = cfDelete // test6.c:854:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 56 /* .xAccess */)) = cfAccess // test6.c:855:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 64 /* .xFullPathname */)) = cfFullPathname // test6.c:856:5:
- *(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 72 /* .xDlOpen */)) = cfDlOpen // test6.c:857:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 80 /* .xDlError */)) = cfDlError // test6.c:858:5:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 88 /* .xDlSym */)) = cfDlSym // test6.c:859:5:
- *(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 96 /* .xDlClose */)) = cfDlClose // test6.c:860:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 104 /* .xRandomness */)) = cfRandomness // test6.c:861:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 112 /* .xSleep */)) = cfSleep // test6.c:862:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 120 /* .xCurrentTime */)) = cfCurrentTime // test6.c:863:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 128 /* .xGetLastError */)) = cfGetLastError // test6.c:864:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 8 /* .xClose */)) = demoClose // test_demovfs.c:402:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 16 /* .xRead */)) = demoRead // test_demovfs.c:403:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 24 /* .xWrite */)) = demoWrite // test_demovfs.c:404:5:
- *(*func(*crt.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 32 /* .xTruncate */)) = demoTruncate // test_demovfs.c:405:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 40 /* .xSync */)) = demoSync // test_demovfs.c:406:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 48 /* .xFileSize */)) = demoFileSize // test_demovfs.c:407:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 56 /* .xLock */)) = demoLock // test_demovfs.c:408:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 64 /* .xUnlock */)) = demoUnlock // test_demovfs.c:409:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 72 /* .xCheckReservedLock */)) = demoCheckReservedLock // test_demovfs.c:410:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 80 /* .xFileControl */)) = demoFileControl // test_demovfs.c:411:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 88 /* .xSectorSize */)) = demoSectorSize // test_demovfs.c:412:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 96 /* .xDeviceCharacteristics */)) = demoDeviceCharacteristics // test_demovfs.c:413:5:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 40 /* .xOpen */)) = demoOpen // test_demovfs.c:627:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 48 /* .xDelete */)) = demoDelete // test_demovfs.c:628:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 56 /* .xAccess */)) = demoAccess // test_demovfs.c:629:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 64 /* .xFullPathname */)) = demoFullPathname // test_demovfs.c:630:5:
- *(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 72 /* .xDlOpen */)) = demoDlOpen // test_demovfs.c:631:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 80 /* .xDlError */)) = demoDlError // test_demovfs.c:632:5:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 88 /* .xDlSym */)) = demoDlSym // test_demovfs.c:633:5:
- *(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 96 /* .xDlClose */)) = demoDlClose // test_demovfs.c:634:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 104 /* .xRandomness */)) = demoRandomness // test_demovfs.c:635:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 112 /* .xSleep */)) = demoSleep // test_demovfs.c:636:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 120 /* .xCurrentTime */)) = demoCurrentTime // test_demovfs.c:637:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 8 /* .xClose */)) = devsymClose // test_devsym.c:229:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 16 /* .xRead */)) = devsymRead // test_devsym.c:230:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 24 /* .xWrite */)) = devsymWrite // test_devsym.c:231:3:
- *(*func(*crt.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 32 /* .xTruncate */)) = devsymTruncate // test_devsym.c:232:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 40 /* .xSync */)) = devsymSync // test_devsym.c:233:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 48 /* .xFileSize */)) = devsymFileSize // test_devsym.c:234:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 56 /* .xLock */)) = devsymLock // test_devsym.c:235:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 64 /* .xUnlock */)) = devsymUnlock // test_devsym.c:236:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 72 /* .xCheckReservedLock */)) = devsymCheckReservedLock // test_devsym.c:237:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 80 /* .xFileControl */)) = devsymFileControl // test_devsym.c:238:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 88 /* .xSectorSize */)) = devsymSectorSize // test_devsym.c:239:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 96 /* .xDeviceCharacteristics */)) = devsymDeviceCharacteristics // test_devsym.c:240:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 104 /* .xShmMap */)) = devsymShmMap // test_devsym.c:241:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 112 /* .xShmLock */)) = devsymShmLock // test_devsym.c:242:3:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 120 /* .xShmBarrier */)) = devsymShmBarrier // test_devsym.c:243:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 128 /* .xShmUnmap */)) = devsymShmUnmap // test_devsym.c:244:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 40 /* .xOpen */)) = devsymOpen // test_devsym.c:428:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 48 /* .xDelete */)) = devsymDelete // test_devsym.c:429:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 56 /* .xAccess */)) = devsymAccess // test_devsym.c:430:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 64 /* .xFullPathname */)) = devsymFullPathname // test_devsym.c:431:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 104 /* .xRandomness */)) = devsymRandomness // test_devsym.c:443:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 112 /* .xSleep */)) = devsymSleep // test_devsym.c:444:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 120 /* .xCurrentTime */)) = devsymCurrentTime // test_devsym.c:445:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 8 /* .xCreate */)) = echoCreate // test8.c:1301:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 16 /* .xConnect */)) = echoConnect // test8.c:1302:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 24 /* .xBestIndex */)) = echoBestIndex // test8.c:1303:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 32 /* .xDisconnect */)) = echoDisconnect // test8.c:1304:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 40 /* .xDestroy */)) = echoDestroy // test8.c:1305:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 48 /* .xOpen */)) = echoOpen // test8.c:1306:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 56 /* .xClose */)) = echoClose // test8.c:1307:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 64 /* .xFilter */)) = echoFilter // test8.c:1308:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 72 /* .xNext */)) = echoNext // test8.c:1309:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 80 /* .xEof */)) = echoEof // test8.c:1310:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 88 /* .xColumn */)) = echoColumn // test8.c:1311:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 96 /* .xRowid */)) = echoRowid // test8.c:1312:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 104 /* .xUpdate */)) = echoUpdate // test8.c:1313:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 112 /* .xBegin */)) = echoBegin // test8.c:1314:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 120 /* .xSync */)) = echoSync // test8.c:1315:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 128 /* .xCommit */)) = echoCommit // test8.c:1316:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 136 /* .xRollback */)) = echoRollback // test8.c:1317:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 144 /* .xFindFunction */)) = echoFindFunction // test8.c:1318:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 152 /* .xRename */)) = echoRename // test8.c:1319:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 8 /* .xCreate */)) = echoCreate // test8.c:1324:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 16 /* .xConnect */)) = echoConnect // test8.c:1325:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 24 /* .xBestIndex */)) = echoBestIndex // test8.c:1326:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 32 /* .xDisconnect */)) = echoDisconnect // test8.c:1327:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 40 /* .xDestroy */)) = echoDestroy // test8.c:1328:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 48 /* .xOpen */)) = echoOpen // test8.c:1329:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 56 /* .xClose */)) = echoClose // test8.c:1330:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 64 /* .xFilter */)) = echoFilter // test8.c:1331:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 72 /* .xNext */)) = echoNext // test8.c:1332:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 80 /* .xEof */)) = echoEof // test8.c:1333:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 88 /* .xColumn */)) = echoColumn // test8.c:1334:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 96 /* .xRowid */)) = echoRowid // test8.c:1335:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 104 /* .xUpdate */)) = echoUpdate // test8.c:1336:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 112 /* .xBegin */)) = echoBegin // test8.c:1337:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 120 /* .xSync */)) = echoSync // test8.c:1338:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 128 /* .xCommit */)) = echoCommit // test8.c:1339:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 136 /* .xRollback */)) = echoRollback // test8.c:1340:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 144 /* .xFindFunction */)) = echoFindFunction // test8.c:1341:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 152 /* .xRename */)) = echoRename // test8.c:1342:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 160 /* .xSavepoint */)) = echoSavepoint // test8.c:1343:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 168 /* .xRelease */)) = echoRelease // test8.c:1344:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 176 /* .xRollbackTo */)) = echoRollbackTo // test8.c:1345:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 8 /* .xCreate */)) = expertConnect // sqlite3expert.c:625:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 16 /* .xConnect */)) = expertConnect // sqlite3expert.c:626:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 24 /* .xBestIndex */)) = expertBestIndex // sqlite3expert.c:627:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 32 /* .xDisconnect */)) = expertDisconnect // sqlite3expert.c:628:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 40 /* .xDestroy */)) = expertDisconnect // sqlite3expert.c:629:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 48 /* .xOpen */)) = expertOpen // sqlite3expert.c:630:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 56 /* .xClose */)) = expertClose // sqlite3expert.c:631:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 64 /* .xFilter */)) = expertFilter // sqlite3expert.c:632:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 72 /* .xNext */)) = expertNext // sqlite3expert.c:633:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 80 /* .xEof */)) = expertEof // sqlite3expert.c:634:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 88 /* .xColumn */)) = expertColumn // sqlite3expert.c:635:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 96 /* .xRowid */)) = expertRowid // sqlite3expert.c:636:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 104 /* .xUpdate */)) = expertUpdate // sqlite3expert.c:637:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 16 /* .xConnect */)) = explainConnect // explain.c:274:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 24 /* .xBestIndex */)) = explainBestIndex // explain.c:275:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 32 /* .xDisconnect */)) = explainDisconnect // explain.c:276:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 48 /* .xOpen */)) = explainOpen // explain.c:278:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 56 /* .xClose */)) = explainClose // explain.c:279:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 64 /* .xFilter */)) = explainFilter // explain.c:280:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 72 /* .xNext */)) = explainNext // explain.c:281:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 80 /* .xEof */)) = explainEof // explain.c:282:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 88 /* .xColumn */)) = explainColumn // explain.c:283:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 96 /* .xRowid */)) = explainRowid // explain.c:284:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 8 /* .xCreate */)) = fsConnect // test_fs.c:800:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 16 /* .xConnect */)) = fsConnect // test_fs.c:801:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 24 /* .xBestIndex */)) = fsBestIndex // test_fs.c:802:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 32 /* .xDisconnect */)) = fsDisconnect // test_fs.c:803:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 40 /* .xDestroy */)) = fsDisconnect // test_fs.c:804:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 48 /* .xOpen */)) = fsOpen // test_fs.c:805:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 56 /* .xClose */)) = fsClose // test_fs.c:806:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 64 /* .xFilter */)) = fsFilter // test_fs.c:807:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 72 /* .xNext */)) = fsNext // test_fs.c:808:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 80 /* .xEof */)) = fsEof // test_fs.c:809:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 88 /* .xColumn */)) = fsColumn // test_fs.c:810:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 96 /* .xRowid */)) = fsRowid // test_fs.c:811:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 8 /* .xClose */)) = fsClose1 // test_onefile.c:210:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 16 /* .xRead */)) = fsRead // test_onefile.c:211:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 24 /* .xWrite */)) = fsWrite // test_onefile.c:212:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 32 /* .xTruncate */)) = fsTruncate // test_onefile.c:213:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 40 /* .xSync */)) = fsSync // test_onefile.c:214:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 48 /* .xFileSize */)) = fsFileSize // test_onefile.c:215:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 56 /* .xLock */)) = fsLock // test_onefile.c:216:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 64 /* .xUnlock */)) = fsUnlock // test_onefile.c:217:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 72 /* .xCheckReservedLock */)) = fsCheckReservedLock // test_onefile.c:218:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 80 /* .xFileControl */)) = fsFileControl // test_onefile.c:219:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 88 /* .xSectorSize */)) = fsSectorSize // test_onefile.c:220:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 96 /* .xDeviceCharacteristics */)) = fsDeviceCharacteristics // test_onefile.c:221:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 40 /* .xOpen */)) = fsOpen1 // test_onefile.c:191:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 48 /* .xDelete */)) = fsDelete // test_onefile.c:192:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 56 /* .xAccess */)) = fsAccess // test_onefile.c:193:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 64 /* .xFullPathname */)) = fsFullPathname // test_onefile.c:194:5:
- *(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 72 /* .xDlOpen */)) = fsDlOpen // test_onefile.c:195:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 80 /* .xDlError */)) = fsDlError // test_onefile.c:196:5:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 88 /* .xDlSym */)) = fsDlSym // test_onefile.c:197:5:
- *(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 96 /* .xDlClose */)) = fsDlClose // test_onefile.c:198:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 104 /* .xRandomness */)) = fsRandomness // test_onefile.c:199:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 112 /* .xSleep */)) = fsSleep // test_onefile.c:200:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 120 /* .xCurrentTime */)) = fsCurrentTime // test_onefile.c:201:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 8 /* .xCreate */)) = fsdirConnect1 // test_fs.c:823:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 16 /* .xConnect */)) = fsdirConnect1 // test_fs.c:824:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 24 /* .xBestIndex */)) = fsdirBestIndex1 // test_fs.c:825:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 32 /* .xDisconnect */)) = fsdirDisconnect1 // test_fs.c:826:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 40 /* .xDestroy */)) = fsdirDisconnect1 // test_fs.c:827:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 48 /* .xOpen */)) = fsdirOpen1 // test_fs.c:828:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 56 /* .xClose */)) = fsdirClose1 // test_fs.c:829:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 64 /* .xFilter */)) = fsdirFilter1 // test_fs.c:830:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 72 /* .xNext */)) = fsdirNext1 // test_fs.c:831:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 80 /* .xEof */)) = fsdirEof1 // test_fs.c:832:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 88 /* .xColumn */)) = fsdirColumn1 // test_fs.c:833:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 96 /* .xRowid */)) = fsdirRowid1 // test_fs.c:834:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 16 /* .xConnect */)) = fsdirConnect // fileio.c:942:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 24 /* .xBestIndex */)) = fsdirBestIndex // fileio.c:943:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 32 /* .xDisconnect */)) = fsdirDisconnect // fileio.c:944:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 48 /* .xOpen */)) = fsdirOpen // fileio.c:946:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 56 /* .xClose */)) = fsdirClose // fileio.c:947:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 64 /* .xFilter */)) = fsdirFilter // fileio.c:948:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 72 /* .xNext */)) = fsdirNext // fileio.c:949:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 80 /* .xEof */)) = fsdirEof // fileio.c:950:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 88 /* .xColumn */)) = fsdirColumn // fileio.c:951:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 96 /* .xRowid */)) = fsdirRowid // fileio.c:952:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 8 /* .xCreate */)) = fstreeConnect // test_fs.c:846:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 16 /* .xConnect */)) = fstreeConnect // test_fs.c:847:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 24 /* .xBestIndex */)) = fstreeBestIndex // test_fs.c:848:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 32 /* .xDisconnect */)) = fstreeDisconnect // test_fs.c:849:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 40 /* .xDestroy */)) = fstreeDisconnect // test_fs.c:850:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 48 /* .xOpen */)) = fstreeOpen // test_fs.c:851:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 56 /* .xClose */)) = fstreeClose // test_fs.c:852:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 64 /* .xFilter */)) = fstreeFilter // test_fs.c:853:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 72 /* .xNext */)) = fstreeNext // test_fs.c:854:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 80 /* .xEof */)) = fstreeEof // test_fs.c:855:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 88 /* .xColumn */)) = fstreeColumn // test_fs.c:856:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 96 /* .xRowid */)) = fstreeRowid // test_fs.c:857:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 8 /* .xCreate */)) = fuzzerConnect // fuzzer.c:1149:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 16 /* .xConnect */)) = fuzzerConnect // fuzzer.c:1150:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 24 /* .xBestIndex */)) = fuzzerBestIndex // fuzzer.c:1151:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 32 /* .xDisconnect */)) = fuzzerDisconnect // fuzzer.c:1152:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 40 /* .xDestroy */)) = fuzzerDisconnect // fuzzer.c:1153:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 48 /* .xOpen */)) = fuzzerOpen // fuzzer.c:1154:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 56 /* .xClose */)) = fuzzerClose // fuzzer.c:1155:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 64 /* .xFilter */)) = fuzzerFilter // fuzzer.c:1156:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 72 /* .xNext */)) = fuzzerNext // fuzzer.c:1157:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 80 /* .xEof */)) = fuzzerEof // fuzzer.c:1158:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 88 /* .xColumn */)) = fuzzerColumn // fuzzer.c:1159:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 96 /* .xRowid */)) = fuzzerRowid // fuzzer.c:1160:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 8 /* .xCreate */)) = intarrayCreate // test_intarray.c:189:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 16 /* .xConnect */)) = intarrayCreate // test_intarray.c:190:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 24 /* .xBestIndex */)) = intarrayBestIndex // test_intarray.c:191:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 32 /* .xDisconnect */)) = intarrayDestroy // test_intarray.c:192:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 40 /* .xDestroy */)) = intarrayDestroy // test_intarray.c:193:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 48 /* .xOpen */)) = intarrayOpen // test_intarray.c:194:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 56 /* .xClose */)) = intarrayClose // test_intarray.c:195:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 64 /* .xFilter */)) = intarrayFilter // test_intarray.c:196:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 72 /* .xNext */)) = intarrayNext // test_intarray.c:197:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 80 /* .xEof */)) = intarrayEof // test_intarray.c:198:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 88 /* .xColumn */)) = intarrayColumn // test_intarray.c:199:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 96 /* .xRowid */)) = intarrayRowid // test_intarray.c:200:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 8 /* .xClose */)) = jtClose // test_journal.c:189:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 16 /* .xRead */)) = jtRead // test_journal.c:190:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 24 /* .xWrite */)) = jtWrite // test_journal.c:191:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 32 /* .xTruncate */)) = jtTruncate // test_journal.c:192:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 40 /* .xSync */)) = jtSync // test_journal.c:193:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 48 /* .xFileSize */)) = jtFileSize // test_journal.c:194:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 56 /* .xLock */)) = jtLock // test_journal.c:195:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 64 /* .xUnlock */)) = jtUnlock // test_journal.c:196:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 72 /* .xCheckReservedLock */)) = jtCheckReservedLock // test_journal.c:197:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 80 /* .xFileControl */)) = jtFileControl // test_journal.c:198:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 88 /* .xSectorSize */)) = jtSectorSize // test_journal.c:199:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 96 /* .xDeviceCharacteristics */)) = jtDeviceCharacteristics // test_journal.c:200:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 40 /* .xOpen */)) = jtOpen // test_journal.c:172:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 48 /* .xDelete */)) = jtDelete // test_journal.c:173:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 56 /* .xAccess */)) = jtAccess // test_journal.c:174:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 64 /* .xFullPathname */)) = jtFullPathname // test_journal.c:175:3:
- *(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 72 /* .xDlOpen */)) = jtDlOpen // test_journal.c:176:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 80 /* .xDlError */)) = jtDlError // test_journal.c:177:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 88 /* .xDlSym */)) = jtDlSym // test_journal.c:178:3:
- *(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 96 /* .xDlClose */)) = jtDlClose // test_journal.c:179:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 104 /* .xRandomness */)) = jtRandomness // test_journal.c:180:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 112 /* .xSleep */)) = jtSleep // test_journal.c:181:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 120 /* .xCurrentTime */)) = jtCurrentTime // test_journal.c:182:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 128 /* .xGetLastError */)) = jtGetLastError // test_journal.c:183:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 136 /* .xCurrentTimeInt64 */)) = jtCurrentTimeInt64 // test_journal.c:184:3:
- *(*func(*crt.TLS, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 0 /* .xMalloc */)) = faultsimMalloc // test_malloc.c:208:5:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 8 /* .xFree */)) = faultsimFree // test_malloc.c:209:5:
- *(*func(*crt.TLS, uintptr, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 16 /* .xRealloc */)) = faultsimRealloc // test_malloc.c:210:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 24 /* .xSize */)) = faultsimSize // test_malloc.c:211:5:
- *(*func(*crt.TLS, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 32 /* .xRoundup */)) = faultsimRoundup // test_malloc.c:212:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 40 /* .xInit */)) = faultsimInit // test_malloc.c:213:5:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&m)) + 48 /* .xShutdown */)) = faultsimShutdown // test_malloc.c:214:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 16 /* .xConnect */)) = prefixesConnect // prefixes.c:230:21:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 24 /* .xBestIndex */)) = prefixesBestIndex // prefixes.c:231:21:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 32 /* .xDisconnect */)) = prefixesDisconnect // prefixes.c:232:21:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 48 /* .xOpen */)) = prefixesOpen // prefixes.c:234:21:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 56 /* .xClose */)) = prefixesClose // prefixes.c:235:21:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 64 /* .xFilter */)) = prefixesFilter // prefixes.c:236:21:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 72 /* .xNext */)) = prefixesNext // prefixes.c:237:21:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 80 /* .xEof */)) = prefixesEof // prefixes.c:238:21:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 88 /* .xColumn */)) = prefixesColumn // prefixes.c:239:21:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 96 /* .xRowid */)) = prefixesRowid // prefixes.c:240:21:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&pzNeededCollation)) + 0)) = uintptr(unsafe.Pointer(&zNeededCollation)) // test1.c:3130:34:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 8 /* .xCreate */)) = schemaCreate // test_schema.c:276:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 16 /* .xConnect */)) = schemaCreate // test_schema.c:277:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 24 /* .xBestIndex */)) = schemaBestIndex // test_schema.c:278:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 32 /* .xDisconnect */)) = schemaDestroy // test_schema.c:279:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 40 /* .xDestroy */)) = schemaDestroy // test_schema.c:280:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 48 /* .xOpen */)) = schemaOpen // test_schema.c:281:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 56 /* .xClose */)) = schemaClose // test_schema.c:282:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 64 /* .xFilter */)) = schemaFilter // test_schema.c:283:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 72 /* .xNext */)) = schemaNext // test_schema.c:284:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 80 /* .xEof */)) = schemaEof // test_schema.c:285:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 88 /* .xColumn */)) = schemaColumn // test_schema.c:286:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 96 /* .xRowid */)) = schemaRowid // test_schema.c:287:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 16 /* .xConnect */)) = seriesConnect // series.c:383:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 24 /* .xBestIndex */)) = seriesBestIndex // series.c:384:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 32 /* .xDisconnect */)) = seriesDisconnect // series.c:385:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 48 /* .xOpen */)) = seriesOpen // series.c:387:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 56 /* .xClose */)) = seriesClose // series.c:388:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 64 /* .xFilter */)) = seriesFilter // series.c:389:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 72 /* .xNext */)) = seriesNext // series.c:390:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 80 /* .xEof */)) = seriesEof // series.c:391:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 88 /* .xColumn */)) = seriesColumn // series.c:392:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 96 /* .xRowid */)) = seriesRowid // series.c:393:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 8 /* .xCreate */)) = spellfix1Create // spellfix.c:2993:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 16 /* .xConnect */)) = spellfix1Connect // spellfix.c:2994:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 24 /* .xBestIndex */)) = spellfix1BestIndex // spellfix.c:2995:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 32 /* .xDisconnect */)) = spellfix1Disconnect // spellfix.c:2996:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 40 /* .xDestroy */)) = spellfix1Destroy // spellfix.c:2997:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 48 /* .xOpen */)) = spellfix1Open // spellfix.c:2998:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 56 /* .xClose */)) = spellfix1Close // spellfix.c:2999:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 64 /* .xFilter */)) = spellfix1Filter // spellfix.c:3000:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 72 /* .xNext */)) = spellfix1Next // spellfix.c:3001:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 80 /* .xEof */)) = spellfix1Eof // spellfix.c:3002:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 88 /* .xColumn */)) = spellfix1Column // spellfix.c:3003:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 96 /* .xRowid */)) = spellfix1Rowid // spellfix.c:3004:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 104 /* .xUpdate */)) = spellfix1Update // spellfix.c:3005:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 152 /* .xRename */)) = spellfix1Rename // spellfix.c:3011:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 8 /* .xCreate */)) = tclConnect // test_bestindex.c:551:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 16 /* .xConnect */)) = tclConnect // test_bestindex.c:552:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 24 /* .xBestIndex */)) = tclBestIndex // test_bestindex.c:553:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 32 /* .xDisconnect */)) = tclDisconnect // test_bestindex.c:554:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 40 /* .xDestroy */)) = tclDisconnect // test_bestindex.c:555:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 48 /* .xOpen */)) = tclOpen // test_bestindex.c:556:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 56 /* .xClose */)) = tclClose // test_bestindex.c:557:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 64 /* .xFilter */)) = tclFilter // test_bestindex.c:558:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 72 /* .xNext */)) = tclNext // test_bestindex.c:559:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 80 /* .xEof */)) = tclEof // test_bestindex.c:560:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 88 /* .xColumn */)) = tclColumn // test_bestindex.c:561:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 96 /* .xRowid */)) = tclRowid // test_bestindex.c:562:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 8 /* .xCreate */)) = tclvarConnect // test_tclvar.c:471:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 16 /* .xConnect */)) = tclvarConnect // test_tclvar.c:472:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 24 /* .xBestIndex */)) = tclvarBestIndex // test_tclvar.c:473:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 32 /* .xDisconnect */)) = tclvarDisconnect // test_tclvar.c:474:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 40 /* .xDestroy */)) = tclvarDisconnect // test_tclvar.c:475:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 48 /* .xOpen */)) = tclvarOpen // test_tclvar.c:476:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 56 /* .xClose */)) = tclvarClose // test_tclvar.c:477:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 64 /* .xFilter */)) = tclvarFilter // test_tclvar.c:478:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 72 /* .xNext */)) = tclvarNext // test_tclvar.c:479:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 80 /* .xEof */)) = tclvarEof // test_tclvar.c:480:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 88 /* .xColumn */)) = tclvarColumn // test_tclvar.c:481:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 96 /* .xRowid */)) = tclvarRowid // test_tclvar.c:482:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 104 /* .xUpdate */)) = tclvarUpdate // test_tclvar.c:483:3:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 8 /* .pArg */)) = uintptr(unsafe.Pointer(&testpcacheGlobal)) // test_pcache.c:435:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 16 /* .xInit */)) = testpcacheInit // test_pcache.c:436:5:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 24 /* .xShutdown */)) = testpcacheShutdown // test_pcache.c:437:5:
- *(*func(*crt.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 32 /* .xCreate */)) = testpcacheCreate // test_pcache.c:438:5:
- *(*func(*crt.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 40 /* .xCachesize */)) = testpcacheCachesize // test_pcache.c:439:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 48 /* .xPagecount */)) = testpcachePagecount // test_pcache.c:440:5:
- *(*func(*crt.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 56 /* .xFetch */)) = testpcacheFetch // test_pcache.c:441:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 64 /* .xUnpin */)) = testpcacheUnpin // test_pcache.c:442:5:
- *(*func(*crt.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 72 /* .xRekey */)) = testpcacheRekey // test_pcache.c:443:5:
- *(*func(*crt.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 80 /* .xTruncate */)) = testpcacheTruncate // test_pcache.c:444:5:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 88 /* .xDestroy */)) = testpcacheDestroy // test_pcache.c:445:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 8 /* .xClose */)) = tmpClose // test_onefile.c:231:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 16 /* .xRead */)) = tmpRead // test_onefile.c:232:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 24 /* .xWrite */)) = tmpWrite // test_onefile.c:233:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 32 /* .xTruncate */)) = tmpTruncate // test_onefile.c:234:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 40 /* .xSync */)) = tmpSync // test_onefile.c:235:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 48 /* .xFileSize */)) = tmpFileSize // test_onefile.c:236:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 56 /* .xLock */)) = tmpLock // test_onefile.c:237:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 64 /* .xUnlock */)) = tmpUnlock // test_onefile.c:238:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 72 /* .xCheckReservedLock */)) = tmpCheckReservedLock // test_onefile.c:239:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 80 /* .xFileControl */)) = tmpFileControl // test_onefile.c:240:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 88 /* .xSectorSize */)) = tmpSectorSize // test_onefile.c:241:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 96 /* .xDeviceCharacteristics */)) = tmpDeviceCharacteristics // test_onefile.c:242:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 8 /* .xClose */)) = tvfsClose // test_vfs.c:206:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 16 /* .xRead */)) = tvfsRead // test_vfs.c:207:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 24 /* .xWrite */)) = tvfsWrite // test_vfs.c:208:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 32 /* .xTruncate */)) = tvfsTruncate // test_vfs.c:209:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 40 /* .xSync */)) = tvfsSync // test_vfs.c:210:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 48 /* .xFileSize */)) = tvfsFileSize // test_vfs.c:211:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 56 /* .xLock */)) = tvfsLock // test_vfs.c:212:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 64 /* .xUnlock */)) = tvfsUnlock // test_vfs.c:213:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 72 /* .xCheckReservedLock */)) = tvfsCheckReservedLock // test_vfs.c:214:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 80 /* .xFileControl */)) = tvfsFileControl // test_vfs.c:215:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 88 /* .xSectorSize */)) = tvfsSectorSize // test_vfs.c:216:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 96 /* .xDeviceCharacteristics */)) = tvfsDeviceCharacteristics // test_vfs.c:217:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 104 /* .xShmMap */)) = tvfsShmMap // test_vfs.c:218:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 112 /* .xShmLock */)) = tvfsShmLock // test_vfs.c:219:3:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 120 /* .xShmBarrier */)) = tvfsShmBarrier // test_vfs.c:220:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 128 /* .xShmUnmap */)) = tvfsShmUnmap // test_vfs.c:221:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 136 /* .xFetch */)) = tvfsFetch // test_vfs.c:222:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 144 /* .xUnfetch */)) = tvfsUnfetch // test_vfs.c:223:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 40 /* .xOpen */)) = tvfsOpen // test_vfs.c:1447:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 48 /* .xDelete */)) = tvfsDelete // test_vfs.c:1448:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 56 /* .xAccess */)) = tvfsAccess // test_vfs.c:1449:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 64 /* .xFullPathname */)) = tvfsFullPathname // test_vfs.c:1450:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 104 /* .xRandomness */)) = tvfsRandomness // test_vfs.c:1462:5:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 112 /* .xSleep */)) = tvfsSleep // test_vfs.c:1463:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 120 /* .xCurrentTime */)) = tvfsCurrentTime // test_vfs.c:1464:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 8 /* .xCreate */)) = unionConnect // unionvtab.c:1332:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 16 /* .xConnect */)) = unionConnect // unionvtab.c:1333:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 24 /* .xBestIndex */)) = unionBestIndex // unionvtab.c:1334:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 32 /* .xDisconnect */)) = unionDisconnect // unionvtab.c:1335:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 40 /* .xDestroy */)) = unionDisconnect // unionvtab.c:1336:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 48 /* .xOpen */)) = unionOpen // unionvtab.c:1337:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 56 /* .xClose */)) = unionClose // unionvtab.c:1338:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 64 /* .xFilter */)) = unionFilter // unionvtab.c:1339:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 72 /* .xNext */)) = unionNext // unionvtab.c:1340:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 80 /* .xEof */)) = unionEof // unionvtab.c:1341:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 88 /* .xColumn */)) = unionColumn // unionvtab.c:1342:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 96 /* .xRowid */)) = unionRowid // unionvtab.c:1343:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 8 /* .xClose */)) = vfslogClose // test_osinst.c:204:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 16 /* .xRead */)) = vfslogRead // test_osinst.c:205:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 24 /* .xWrite */)) = vfslogWrite // test_osinst.c:206:3:
- *(*func(*crt.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 32 /* .xTruncate */)) = vfslogTruncate // test_osinst.c:207:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 40 /* .xSync */)) = vfslogSync // test_osinst.c:208:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 48 /* .xFileSize */)) = vfslogFileSize // test_osinst.c:209:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 56 /* .xLock */)) = vfslogLock // test_osinst.c:210:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 64 /* .xUnlock */)) = vfslogUnlock // test_osinst.c:211:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 72 /* .xCheckReservedLock */)) = vfslogCheckReservedLock // test_osinst.c:212:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 80 /* .xFileControl */)) = vfslogFileControl // test_osinst.c:213:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 88 /* .xSectorSize */)) = vfslogSectorSize // test_osinst.c:214:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 96 /* .xDeviceCharacteristics */)) = vfslogDeviceCharacteristics // test_osinst.c:215:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 104 /* .xShmMap */)) = vfslogShmMap // test_osinst.c:216:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 112 /* .xShmLock */)) = vfslogShmLock // test_osinst.c:217:3:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 120 /* .xShmBarrier */)) = vfslogShmBarrier // test_osinst.c:218:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 128 /* .xShmUnmap */)) = vfslogShmUnmap // test_osinst.c:219:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 8 /* .xCreate */)) = vlogConnect // test_osinst.c:1074:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 16 /* .xConnect */)) = vlogConnect // test_osinst.c:1075:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 24 /* .xBestIndex */)) = vlogBestIndex // test_osinst.c:1076:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 32 /* .xDisconnect */)) = vlogDisconnect // test_osinst.c:1077:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 40 /* .xDestroy */)) = vlogDisconnect // test_osinst.c:1078:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 48 /* .xOpen */)) = vlogOpen // test_osinst.c:1079:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 56 /* .xClose */)) = vlogClose // test_osinst.c:1080:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 64 /* .xFilter */)) = vlogFilter // test_osinst.c:1081:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 72 /* .xNext */)) = vlogNext // test_osinst.c:1082:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 80 /* .xEof */)) = vlogEof // test_osinst.c:1083:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 88 /* .xColumn */)) = vlogColumn // test_osinst.c:1084:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 96 /* .xRowid */)) = vlogRowid // test_osinst.c:1085:5:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 40 /* .xOpen */)) = vfslogOpen // test_osinst.c:187:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 48 /* .xDelete */)) = vfslogDelete // test_osinst.c:188:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 56 /* .xAccess */)) = vfslogAccess // test_osinst.c:189:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 64 /* .xFullPathname */)) = vfslogFullPathname // test_osinst.c:190:3:
- *(*func(*crt.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 72 /* .xDlOpen */)) = vfslogDlOpen // test_osinst.c:191:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 80 /* .xDlError */)) = vfslogDlError // test_osinst.c:192:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 88 /* .xDlSym */)) = vfslogDlSym // test_osinst.c:193:3:
- *(*func(*crt.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 96 /* .xDlClose */)) = vfslogDlClose // test_osinst.c:194:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 104 /* .xRandomness */)) = vfslogRandomness // test_osinst.c:195:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 112 /* .xSleep */)) = vfslogSleep // test_osinst.c:196:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 120 /* .xCurrentTime */)) = vfslogCurrentTime // test_osinst.c:197:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 128 /* .xGetLastError */)) = vfslogGetLastError // test_osinst.c:198:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 136 /* .xCurrentTimeInt64 */)) = vfslogCurrentTimeInt64 // test_osinst.c:199:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 8 /* .xCreate */)) = wholenumberConnect // wholenumber.c:238:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 16 /* .xConnect */)) = wholenumberConnect // wholenumber.c:239:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 24 /* .xBestIndex */)) = wholenumberBestIndex // wholenumber.c:240:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 32 /* .xDisconnect */)) = wholenumberDisconnect // wholenumber.c:241:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 40 /* .xDestroy */)) = wholenumberDisconnect // wholenumber.c:242:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 48 /* .xOpen */)) = wholenumberOpen // wholenumber.c:243:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 56 /* .xClose */)) = wholenumberClose // wholenumber.c:244:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 64 /* .xFilter */)) = wholenumberFilter // wholenumber.c:245:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 72 /* .xNext */)) = wholenumberNext // wholenumber.c:246:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 80 /* .xEof */)) = wholenumberEof // wholenumber.c:247:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 88 /* .xColumn */)) = wholenumberColumn // wholenumber.c:248:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 96 /* .xRowid */)) = wholenumberRowid // wholenumber.c:249:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 8 /* .xClose */)) = devsymClose // test_devsym.c:393:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 16 /* .xRead */)) = devsymRead // test_devsym.c:394:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 24 /* .xWrite */)) = writecrashWrite // test_devsym.c:395:3:
- *(*func(*crt.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 32 /* .xTruncate */)) = devsymTruncate // test_devsym.c:396:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 40 /* .xSync */)) = devsymSync // test_devsym.c:397:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 48 /* .xFileSize */)) = devsymFileSize // test_devsym.c:398:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 56 /* .xLock */)) = devsymLock // test_devsym.c:399:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 64 /* .xUnlock */)) = devsymUnlock // test_devsym.c:400:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 72 /* .xCheckReservedLock */)) = devsymCheckReservedLock // test_devsym.c:401:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 80 /* .xFileControl */)) = devsymFileControl // test_devsym.c:402:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 88 /* .xSectorSize */)) = writecrashSectorSize // test_devsym.c:403:3:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 96 /* .xDeviceCharacteristics */)) = writecrashDeviceCharacteristics // test_devsym.c:404:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 104 /* .xShmMap */)) = devsymShmMap // test_devsym.c:405:3:
- *(*func(*crt.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 112 /* .xShmLock */)) = devsymShmLock // test_devsym.c:406:3:
- *(*func(*crt.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 120 /* .xShmBarrier */)) = devsymShmBarrier // test_devsym.c:407:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 128 /* .xShmUnmap */)) = devsymShmUnmap // test_devsym.c:408:3:
- *(*func(*crt.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 40 /* .xOpen */)) = writecrashOpen // test_devsym.c:457:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 48 /* .xDelete */)) = devsymDelete // test_devsym.c:458:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 56 /* .xAccess */)) = devsymAccess // test_devsym.c:459:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 64 /* .xFullPathname */)) = devsymFullPathname // test_devsym.c:460:3:
- *(*func(*crt.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 104 /* .xRandomness */)) = devsymRandomness // test_devsym.c:472:3:
- *(*func(*crt.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 112 /* .xSleep */)) = devsymSleep // test_devsym.c:473:3:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 120 /* .xCurrentTime */)) = devsymCurrentTime // test_devsym.c:474:3:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 8 /* .xCreate */)) = zipfileConnect // zipfile.c:2143:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 16 /* .xConnect */)) = zipfileConnect // zipfile.c:2144:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 24 /* .xBestIndex */)) = zipfileBestIndex // zipfile.c:2145:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 32 /* .xDisconnect */)) = zipfileDisconnect // zipfile.c:2146:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 40 /* .xDestroy */)) = zipfileDisconnect // zipfile.c:2147:5:
- *(*func(*crt.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 48 /* .xOpen */)) = zipfileOpen // zipfile.c:2148:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 56 /* .xClose */)) = zipfileClose // zipfile.c:2149:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 64 /* .xFilter */)) = zipfileFilter // zipfile.c:2150:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 72 /* .xNext */)) = zipfileNext // zipfile.c:2151:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 80 /* .xEof */)) = zipfileEof // zipfile.c:2152:5:
- *(*func(*crt.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 88 /* .xColumn */)) = zipfileColumn // zipfile.c:2153:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 104 /* .xUpdate */)) = zipfileUpdate // zipfile.c:2155:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 112 /* .xBegin */)) = zipfileBegin // zipfile.c:2156:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 128 /* .xCommit */)) = zipfileCommit // zipfile.c:2158:5:
- *(*func(*crt.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 136 /* .xRollback */)) = zipfileRollback // zipfile.c:2159:5:
- *(*func(*crt.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 144 /* .xFindFunction */)) = zipfileFindFunction // zipfile.c:2160:5:
-}
-
-var ts1 = "%s\x00internal error!\x00SELECT * FROM main.%Q WHERE sample()\x00expert\x00PRAGMA table_info=%Q\x00main\x00, \x00%Q\x00 COLLATE %Q\x00 COLLATE %s\x00 DESC\x00PRAGMA index_list=%Q\x00PRAGMA index_xInfo=%Q\x00%s_idx_%08x\x00CREATE INDEX '%q' ON %Q(%s)\x00CREATE INDEX %s ON %s(%s)\x00EXPLAIN QUERY PLAN %s\x00 USING INDEX \x00 USING COVERING INDEX \x00%s\n\x00%s;\n\x00SELECT 'CREATE TEMP' || substr(sql, 7) FROM sqlite_master WHERE tbl_name = %Q AND type IN ('table', 'trigger') ORDER BY type;\x00ALTER TABLE temp.%Q RENAME TO %Q\x00INSERT INTO %Q VALUES(\x00%s?\x00\x00)\x00UPDATE %Q SET \x00%s%Q=?\x00DELETE FROM %Q\x00t592690916721053953805701627921227776\x00DROP TABLE t592690916721053953805701627921227776\x00SELECT type, name, sql, 1 FROM sqlite_master WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%%' UNION ALL SELECT type, name, sql, 2 FROM sqlite_master WHERE type = 'trigger' AND tbl_name IN(SELECT name FROM sqlite_master WHERE type = 'view') ORDER BY 4, 1\x00CREATE TABLE x(\x00%s%Q COLLATE %s\x00CREATE VIRTUAL TABLE %Q USING expert(%Q)\x00SELECT max(i.seqno) FROM sqlite_master AS s, pragma_index_list(s.name) AS l, pragma_index_info(l.name) AS i WHERE s.type = 'table'\x00%sx.%Q IS rem(%d, x.%Q) COLLATE %s\x00%s%d\x00SELECT %s FROM %Q x ORDER BY %s\x00SELECT %s FROM temp.t592690916721053953805701627921227776 x ORDER BY %s\x00%d\x00 %d\x00DROP TABLE IF EXISTS temp.t592690916721053953805701627921227776\x00CREATE TABLE temp.t592690916721053953805701627921227776 AS SELECT * FROM %Q\x00SELECT s.rowid, s.name, l.name FROM sqlite_master AS s, pragma_index_list(s.name) AS l WHERE s.type = 'table'\x00SELECT name, coll FROM pragma_index_xinfo(?) WHERE key\x00INSERT INTO sqlite_stat1 VALUES(?, ?, ?)\x00ANALYZE; PRAGMA writable_schema=1\x00rem\x00sample\x00ANALYZE sqlite_master\x00:memory:\x00SELECT sql FROM sqlite_master WHERE name NOT LIKE 'sqlite_%%' AND sql NOT LIKE 'CREATE VIRTUAL %%'\x00%s;%s%s\n\x00 -- stat1: \x00no such handle: \x00sql\x00TABLE\x00analyze\x00count\x00report\x00STMT EREPORT\x00destroy\x00SUBCOMMAND ...\x00sub-command\x00indexes\x00plan\x00candidates\x00DB\x00sqlite3expert%d\x00out of memory\x00sqlite3_expert_new\x00%s: cost must be between 1 and %d\x00%s: maximum string length is %d\x00%s: iLang must be between 0 and %d\x00?\x00SELECT * FROM %Q.%Q\x00%s: %s\x00%s: %s has %d columns, expected 4\x00vocabulary_table\x00vocabulary_word\x00vocabulary_language\x00edit_distances\x00unrecognized argument: [%s]\n\x00no edit_distances table specified\x00CREATE TABLE x(word,distance,language,command HIDDEN,nword HIDDEN)\x000123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^abcdefghijklmnopqrstuvwxyz~\x00SELECT \"%w\" FROM \"%w\"\x00 WHERE \"%w\">=?1 AND \"%w\"=?2 ORDER BY 1\x00SELECT \"%w\" FROM \"%w\" WHERE \"%w\">=?1 ORDER BY 1\x00*\x00DELETE from %s is not allowed\x00UPDATE of %s is not allowed\x00INSERT INTO %s allowed for column [command] only\x00approximate_match\x00int32\x00int64\x00double\x00char*\x00CREATE TABLE x(value,pointer hidden,count hidden,ctype hidden)\x00carray\x00unknown datatype: %Q\x00inttoptr\x00tablename\x00idcolumn\x00parentcolumn\x00CREATE TABLE x(id,depth,root HIDDEN,tablename HIDDEN,idcolumn HIDDEN,parentcolumn HIDDEN)\x00SELECT \"%w\".\"%w\" FROM \"%w\" WHERE \"%w\".\"%w\"=?1\x00transitive_closure\x00rb\x00cannot open '%s' for reading\x00line %d: unescaped %c character\x00line %d: unterminated %c-quoted field\n\x00more than one '%s' parameter\x00yes\x00on\x00true\x00no\x00off\x00false\x00header\x00more than one 'header' parameter\x00testflags\x00columns\x00more than one 'columns' parameter\x00column= value must be positive\x00bad parameter: '%s'\x00must specify either filename= or data= but not both\x00%sc%d TEXT\x00,\x00%s\"%w\" TEXT\x00bad schema: '%s' - %s\x00filename\x00data\x00schema\x00csv\x00csv_wr\x00 \x00eval\x00CREATE TABLE x(addr,opcode,p1,p2,p3,p4,p5,comment,sql HIDDEN)\x00EXPLAIN %s\x00explain\x00wb\x00wrong number of arguments to function writefile()\x00failed to create symlink: %s\x00failed to create directory: %s\x00failed to write file: %s\x00CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)\x00cannot read directory: %s\x00%s/%s\x00cannot stat file: %s\x00table function fsdir requires an argument\x00table function fsdir requires a non-NULL argument\x00fsdir\x00readfile\x00writefile\x00lsmode\x00%s: ruleset must be between 0 and %d\x00%s: wrong number of CREATE VIRTUAL TABLE arguments\x00CREATE TABLE x(word,distance,ruleset)\x00fuzzer\x00ieee754(%lld,%d)\x00ieee754\x00BEGIN; SELECT * FROM %s%q%ssqlite_master\x00'\x00'.\x00PRAGMA %s%q%spage_size\x00sqlite3_mmap_warm_cache: Warmed up %d pages of %s\x00END\x00AND (%s)\x00collate \"%w\"\x00SELECT %s FROM %s WHERE %s>=(?1 || ?2) %s AND %s<=(?1 || char(1114111)) %s %s ORDER BY 1 %s ASC LIMIT 1\x00next_char\x00NULL\x00is\x00not\x00in(\x00in(select\x00in(with\x00?,?,?\x002nd argument to percentile() is not a number between 0.0 and 100.0\x002nd argument to percentile() is not the same for all input rows\x001st argument to percentile() is not numeric\x00Inf input to percentile()\x00percentile\x00CREATE TABLE prefixes(prefix TEXT, original_string TEXT HIDDEN)\x00prefixes\x00prefix_length\x00unknown \\ escape\x00afnrtv\\()*.+?[$^{|}]\x00\a\f\n\r\t\v\x00unmatched '('\x00'*' without operand\x00'+' without operand\x00'?' without operand\x00'{m,n}' without operand\x00unmatched '{'\x00n less than m in '{m,n}'\x00both m and n are zero in '{m,n}'\x00POSIX character classes not supported\x00unclosed '['\x00unrecognized character\x00regexp\x00remember\x00CREATE TABLE x(value,start hidden,stop hidden,step hidden)\x00generate_series() requires SQLite 3.8.12 or later\x00generate_series\x00.ABCDHLRMY9 ?\x00non-ASCII input to editdist()\x00NULL input to editdist()\x00SELECT iLang, cFrom, cTo, iCost FROM \"%w\" WHERE iLang>=0 ORDER BY iLang\x00editdist3\x00DROP TABLE IF EXISTS \"%w\".\"%w_vocab\"\x00CREATE TABLE x(word,rank,distance,langid, score, matchlen, phonehash HIDDEN, top HIDDEN, scope HIDDEN, srchcnt HIDDEN, soundslike HIDDEN, command HIDDEN)\x00CREATE TABLE IF NOT EXISTS \"%w\".\"%w_vocab\"(\n id INTEGER PRIMARY KEY,\n rank INT,\n langid INT,\n word TEXT,\n k1 TEXT,\n k2 TEXT\n);\n\x00CREATE INDEX IF NOT EXISTS \"%w\".\"%w_vocab_index_langid_k2\" ON \"%w_vocab\"(langid,k2);\x00edit_cost_table=\x00bad argument to spellfix1(): \"%s\"\x00SELECT id, word, rank, coalesce(k1,word) FROM \"%w\".\"%w_vocab\" WHERE langid=%d AND k2>=?1 AND k2<?2\x00SELECT word, rank, NULL, langid, id FROM \"%w\".\"%w_vocab\"%s\x00 WHERE rowid=?\x00ROLLBACK\x00IGNORE\x00ABORT\x00REPLACE\x00DELETE FROM \"%w\".\"%w_vocab\" WHERE id=%lld\x00NOT NULL constraint failed: %s.word\x00reset\x00null\x00unknown value for %s.command: \"%w\"\x00INSERT INTO \"%w\".\"%w_vocab\"(rank,langid,word,k1,k2) VALUES(%d,%d,%Q,nullif(%Q,%Q),%Q)\x00INSERT OR %s INTO \"%w\".\"%w_vocab\"(id,rank,langid,word,k1,k2) VALUES(%lld,%d,%d,%Q,nullif(%Q,%Q),%Q)\x00UPDATE OR %s \"%w\".\"%w_vocab\" SET id=%lld, rank=%d, langid=%d, word=%Q, k1=nullif(%Q,%Q), k2=%Q WHERE id=%lld\x00ALTER TABLE \"%w\".\"%w_vocab\" RENAME TO \"%w_vocab\"\x00spellfix1_translit\x00spellfix1_editdist\x00spellfix1_phonehash\x00spellfix1_scriptcode\x00spellfix1\x00922337203685477580\x00tointeger\x00toreal\x00sql error: %s\x00_rowid_\x00integer\x00no such rowid table: %s%s%s\x00.\x00SELECT group_concat(quote(name) || '.' || quote(type)) FROM pragma_table_info(?, ?)\x00source table schema mismatch\x00swarmvtab: no such SQL parameter: %s\x00maxopen\x00swarmvtab: illegal maxopen value\x00missing\x00swarmvtab: duplicate \"missing\" option\x00SELECT \"%w\"(?%s)\x00,?\x00openclose\x00swarmvtab: duplicate \"openclose\" option\x00SELECT \"%w\"(?,?%s)\x00swarmvtab: unrecognized option: %s\x00SELECT \"%w\"(?)\x00swarmvtab: parse error: %s\x00swarmvtab\x00unionvtab\x00temp\x00%s tables must be created in TEMP schema\x00wrong number of arguments for %s\x00SELECT * FROM (%z) ORDER BY 3\x00rowid range mismatch error\x00no source tables configured\x00SELECT 'CREATE TABLE xyz(' || group_concat(quote(name) || ' ' || type, ', ') || ')',max((cid+1) * (type='INTEGER' COLLATE nocase AND pk=1))-1 FROM pragma_table_info(%Q, ?)\x00SELECT rowid, * FROM %Q %s %lld\x00WHERE _rowid_ <=\x00-- \x00%z%sSELECT rowid, * FROM %s%q%s%Q\x00 UNION ALL \x00%z WHERE rowid=%lld\x00WHERE\x00%z WHERE rowid>=%lld\x00AND\x00%z %s rowid<=%lld\x00CREATE TABLE x(value)\x00wholenumber\x00CREATE TABLE y(name PRIMARY KEY,mode,mtime,sz,rawdata,data,method,z HIDDEN) WITHOUT ROWID;\x00zipfile\x00zipfile constructor requires one argument\x00error in fread()\x00error in fwrite()\x00failed to read CDS at offset %lld\x00%.*s\x00failed to read LFH at offset %d\x001.2.11\x00inflateInit2() failed (%d)\x00inflate() failed (%d)\x00zipfile: deflate() error\x00cannot find end of central directory record\x00zipfile() function requires an argument\x00cannot open file: %s\x00-rwxrwxrwx\x00zipfile: mode does not match data\x00zipfile: parse error in mode: %s\x00zipfile: missing filename\x00ab+\x00zipfile: failed to open file %s for writing\x00sz must be NULL\x00rawdata must be NULL\x00unknown compression method: %d\x00%s/\x00duplicate name: \"%s\"\x00{\"version-made-by\" : %u, \"version-to-extract\" : %u, \"flags\" : %u, \"compression\" : %u, \"time\" : %u, \"date\" : %u, \"crc32\" : %u, \"compressed-size\" : %u, \"uncompressed-size\" : %u, \"file-name-length\" : %u, \"extra-field-length\" : %u, \"file-comment-length\" : %u, \"disk-number-start\" : %u, \"internal-attr\" : %u, \"external-attr\" : %u, \"offset\" : %u }\x00zipfile_cds\x00wrong number of arguments to function zipfile()\x00first argument to zipfile() must be non-NULL\x00illegal method value: %d\x00non-directory name must not end with /\x00incrblob\x00incrblob_%d\x00%lld\x00sqlite_unlock_notify_arg\x00sqlite_unlock_notify_argcount\x00DELETE\x00INSERT\x00UPDATE\x00bytearray\x00boolean\x00wideInt\x00int\x00SQLITE_COPY\x00SQLITE_CREATE_INDEX\x00SQLITE_CREATE_TABLE\x00SQLITE_CREATE_TEMP_INDEX\x00SQLITE_CREATE_TEMP_TABLE\x00SQLITE_CREATE_TEMP_TRIGGER\x00SQLITE_CREATE_TEMP_VIEW\x00SQLITE_CREATE_TRIGGER\x00SQLITE_CREATE_VIEW\x00SQLITE_DELETE\x00SQLITE_DROP_INDEX\x00SQLITE_DROP_TABLE\x00SQLITE_DROP_TEMP_INDEX\x00SQLITE_DROP_TEMP_TABLE\x00SQLITE_DROP_TEMP_TRIGGER\x00SQLITE_DROP_TEMP_VIEW\x00SQLITE_DROP_TRIGGER\x00SQLITE_DROP_VIEW\x00SQLITE_INSERT\x00SQLITE_PRAGMA\x00SQLITE_READ\x00SQLITE_SELECT\x00SQLITE_TRANSACTION\x00SQLITE_UPDATE\x00SQLITE_ATTACH\x00SQLITE_DETACH\x00SQLITE_ALTER_TABLE\x00SQLITE_REINDEX\x00SQLITE_ANALYZE\x00SQLITE_CREATE_VTABLE\x00SQLITE_DROP_VTABLE\x00SQLITE_FUNCTION\x00SQLITE_SAVEPOINT\x00SQLITE_RECURSIVE\x00????\x00SQLITE_DENY\x00SQLITE_OK\x00SQLITE_IGNORE\x00RELEASE _tcl_transaction\x00COMMIT\x00ROLLBACK TO _tcl_transaction ; RELEASE _tcl_transaction\x00option\x00?CALLBACK?\x00?DATABASE? FILENAME\x00cannot open target database: \x00backup failed: \x00CALLBACK\x00cache option ?arg?\x00flush\x00size\x00size n\x00cannot convert \"\x00\" to integer\x00bad option \"\x00\": must be flush or size\x00NAME SCRIPT\x00SCRIPT\x00SQL\x00?OPTION? ?BOOLEAN?\x00unknown config option: \"\x00\"\x00CONFLICT-ALGORITHM TABLE FILENAME ?SEPARATOR? ?NULLINDICATOR?\x00\t\x00Error: non-null separator required for copy\x00rollback\x00abort\x00fail\x00ignore\x00replace\x00Error: \"\x00\", conflict-algorithm must be one of: rollback, abort, fail, ignore, or replace\x00SELECT * FROM '%q'\x00Error: no such table: \x00Error: \x00Error: can't malloc()\x00INSERT OR %q INTO '%q' VALUES(?\x00Error: cannot open file: \x00BEGIN\x00Error: %s line %d: expected %d columns of data but found %d\x00, failed while processing line: \x00?DATABASE? VALUE\x00-maxsize\x00-readonly\x00unknown option: \x00unable to set MEMDB content\x00extension loading is turned off at compile-time\x00-withoutnulls\x00unknown option: \"\x00?OPTIONS? SQL ?ARRAY-NAME? ?SCRIPT?\x00NAME ?SWITCHES? SCRIPT\x00-argcount\x00option requires an argument: \x00number of arguments must be non-negative\x00-deterministic\x00-directonly\x00-innocuous\x00-returntype\x00real\x00text\x00blob\x00any\x00type\x00\": must be -argcount, -deterministic, -directonly, -innocuous, or -returntype\x00?-readonly? ?DB? TABLE COLUMN ROWID\x00NULLVALUE\x00N CALLBACK\x00KEY\x00cannot open source database: \x00restore failed: \x00restore failed: source database busy\x00?DATABASE?\x00(step|sort|autoindex)\x00step\x00sort\x00autoindex\x00vmstep\x00bad argument: should be autoindex, step, sort or vmstep\x00MILLISECONDS\x00?CALLBACK? ?MASK?\x00trace type\x00SAVEPOINT _tcl_transaction\x00[TYPE] SCRIPT\x00transaction type\x00BEGIN EXCLUSIVE\x00BEGIN IMMEDIATE\x00?SCRIPT?\x00preupdate_hook was omitted at compile-time\x00-use-legacy-prepare\x00-last-stmt-ptr\x00%p\x00unknown argument: \x00authorizer\x00backup\x00bind_fallback\x00busy\x00cache\x00changes\x00close\x00collate\x00collation_needed\x00commit_hook\x00complete\x00config\x00copy\x00deserialize\x00enable_load_extension\x00errorcode\x00exists\x00function\x00interrupt\x00last_insert_rowid\x00nullvalue\x00onecolumn\x00preupdate\x00profile\x00progress\x00rekey\x00restore\x00rollback_hook\x00serialize\x00status\x00timeout\x00total_changes\x00trace\x00trace_v2\x00transaction\x00unlock_notify\x00update_hook\x00version\x00wal_hook\x00defensive\x00dqs_ddl\x00dqs_dml\x00enable_fkey\x00enable_qpsg\x00enable_trigger\x00enable_view\x00fts3_tokenizer\x00legacy_alter_table\x00legacy_file_format\x00load_extension\x00no_ckpt_on_close\x00reset_database\x00trigger_eqp\x00trusted_schema\x00writable_schema\x00statement\x00row\x00deferred\x00exclusive\x00immediate\x00HANDLE ?FILENAME? ?-vfs VFSNAME? ?-readonly BOOLEAN? ?-create BOOLEAN? ?-nofollow BOOLEAN? ?-nomutex BOOLEAN? ?-fullmutex BOOLEAN? ?-uri BOOLEAN?\x00-version\x00-sourceid\x00-has-codec\x000\x00-key\x00-vfs\x00-create\x00-nofollow\x00-nomutex\x00-fullmutex\x00-uri\x00-translatefilename\x00sqlite3\x00sqlite\x003.32.3\x00if {[llength $argv]>=1} {\nset argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource $argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif {$line!=\"\"} {\nputs -nonewline \"> \"\n} else {\nputs -nonewline \"% \"\n}\nflush stdout\nappend line [gets stdin]\nif {[info complete $line]} {\nif {[catch {uplevel #0 $line} result]} {\nputs stderr \"Error: $result\"\n} elseif {$result!=\"\"} {\nputs $result\n}\nset line {}\n} else {\nappend line \\n\n}\n}\n}\n\x00SQLITE_DEBUG_BREAK\x00attach debugger to process %d and press any key to continue.\n\x00utf-8\x00argc\x00argv0\x00argv\x00errorInfo\x00%s: %s\n\x00SQLITE-CONNECTION\x00command not found: \x00error code %s (%d) does not match sqlite3_errcode %s (%d)\x00OMIT_MISUSE\x00wrong # args: should be \"\x00 DB FORMAT STRING\x00 DB HEX\x00 DB\x00 DB SQL\x00%z%s%s\x00%s%n\x00abcdefghijklmnopqrstuvwxyz\x00 DB FORMAT STRING ?COUNT?\x00 DB\"\x00 FILENAME\"\x00%02x\x00%04x\x00tkt2213 is not fixed\x00text16\x00bytes\x00bytes16\x00noop\x00x_coalesce\x00hex8\x00hex16\x00tkt2213func\x00pointer_change\x00counter1\x00counter2\x00intreal\x00x_sqlite_exec\x00value of 40 handed to x_count\x00x_count totals to 42\x00x_count\x00legacy_count\x00 TEXT\"\x00 FORMAT INT INT INT\"\x00argument is not a valid 64-bit integer\x00 FORMAT INT INT ?STRING?\"\x00 INT FORMAT INT INT ?STRING?\"\x00N must be non-negative\x00 FORMAT INT INT DOUBLE\"\x00 FORMAT DOUBLE DOUBLE\"\x00 FORMAT STRING\"\x00%08x%08x\x002nd argument should be 16-characters of hex\x00?BOOLEAN?\x00DB BOOLEAN\x00DB dbname tblname colname\x00CHANNEL ROWID\x00DB-HANDLE NAME CMP-PROC DEL-PROC\x00sqlite3_create_collate_v2() failed to detect an invalid encoding\x00utf8\x00utf16\x00utf16le\x00utf16be\x00DB NAME NARG ENC SWITCHES...\x00encoding\x00-func\x00-step\x00-final\x00-destroy\x00switch\x00DB-HANDLE FILE ?PROC?\x00this build omits sqlite3_load_extension()\x00DB-HANDLE ONOFF\x00string\x00value\x00first argument should be one of: int int64 string double null value\x00 DB FUNCTION-NAME\x00 <STMT>\x00STMT PARAMETER RESETFLAG\x00SQLITE_STMTSTATUS_FULLSCAN_STEP\x00SQLITE_STMTSTATUS_SORT\x00SQLITE_STMTSTATUS_AUTOINDEX\x00SQLITE_STMTSTATUS_VM_STEP\x00SQLITE_STMTSTATUS_REPREPARE\x00SQLITE_STMTSTATUS_RUN\x00SQLITE_STMTSTATUS_MEMUSED\x00NBYTE\x00FILE\x00PATH\x00 DB STMT\x00 STMT\x00 FROM-STMT TO-STMT\x00 VM IDX VALUE (null|static|normal)\"\x00static\x00static-nbytes\x00normal\x00blob10\x00abc\x00xyz\x00pq\x004th argument should be \"null\" or \"static\" or \"normal\"\x00(%d) \x00test_collate\x00UTF-8\x00UTF-16LE\x00UTF-16BE\x00 <DB> <utf8> <utf16le> <utf16be>\x00utf16bin\x00utf16_unaligned\x00utf16_aligned\x00test_function\x00<error code>\x00STMT IDX N\x00 STMT N VALUE\x00NaN\x00SNaN\x00-NaN\x00-SNaN\x00+Inf\x00-Inf\x00Epsilon\x00-Epsilon\x00NaN0\x00-NaN0\x00 STMT N\x00 STMT N VALUE BYTES\x00 STMT N DATA BYTES\x00cannot use %d blob bytes, have %d\x00STMT\x00STMT N\x00STMT NAME\x00 DB sql bytes ?tailvar?\x00 DB sql bytes tailvar\x00 DB sql bytes flags tailvar\x00\x00SELECT 1\x00 filename options-list\x00FILENAME FLAGS VFS\x00SQLITE_OPEN_READONLY\x00SQLITE_OPEN_READWRITE\x00SQLITE_OPEN_CREATE\x00SQLITE_OPEN_DELETEONCLOSE\x00SQLITE_OPEN_EXCLUSIVE\x00SQLITE_OPEN_AUTOPROXY\x00SQLITE_OPEN_MAIN_DB\x00SQLITE_OPEN_TEMP_DB\x00SQLITE_OPEN_TRANSIENT_DB\x00SQLITE_OPEN_MAIN_JOURNAL\x00SQLITE_OPEN_TEMP_JOURNAL\x00SQLITE_OPEN_SUBJOURNAL\x00SQLITE_OPEN_MASTER_JOURNAL\x00SQLITE_OPEN_NOMUTEX\x00SQLITE_OPEN_FULLMUTEX\x00SQLITE_OPEN_SHAREDCACHE\x00SQLITE_OPEN_PRIVATECACHE\x00SQLITE_OPEN_WAL\x00SQLITE_OPEN_URI\x00flag\x00<utf-16 sql>\x00 STMT column\x00INTEGER\x00FLOAT\x00TEXT\x00BLOB\x00 DB MAGIC\x00SQLITE_MAGIC_OPEN\x00SQLITE_MAGIC_CLOSED\x00SQLITE_MAGIC_BUSY\x00SQLITE_MAGIC_ERROR\x00 DB function-name\x00VARIABLE\x00DB DBNAME\x00?N?\x001234567890000000\x00__one\x00__two\x00notadatabase\x00Unexpected non-zero errno: \x00DB [DBNAME]\x00%u\x00DB DBNAME SIZE\x00 DB PWD\x00 DB FLAG\x00%d %d\x00 DB ?AUXDB?\x00 DB ID VALUE\x00unknown limit type: \x00SQLITE_LIMIT_LENGTH\x00SQLITE_LIMIT_SQL_LENGTH\x00SQLITE_LIMIT_COLUMN\x00SQLITE_LIMIT_EXPR_DEPTH\x00SQLITE_LIMIT_COMPOUND_SELECT\x00SQLITE_LIMIT_VDBE_OP\x00SQLITE_LIMIT_FUNCTION_ARG\x00SQLITE_LIMIT_ATTACHED\x00SQLITE_LIMIT_LIKE_PATTERN_LENGTH\x00SQLITE_LIMIT_VARIABLE_NUMBER\x00SQLITE_LIMIT_TRIGGER_DEPTH\x00SQLITE_LIMIT_WORKER_THREADS\x00SQLITE_LIMIT_TOOSMALL\x00SQLITE_LIMIT_TOOBIG\x00SEED ?DB?\x00current\x00max\x00min\x00recyclable\x00DB ?NAME?\x00passive\x00full\x00restart\x00truncate\x00DB MODE ?NAME?\x00mode\x00 - \x00DB VALUE\x00COMMAND ...\x00command has no objProc: \x00%d %d %d %s\n\x00SQLITE_TESTCTRL_LOCALTIME_FAULT\x00SQLITE_TESTCTRL_SORTER_MMAP\x00SQLITE_TESTCTRL_IMPOSTER\x00SQLITE_TESTCTRL_INTERNAL_FUNCTIONS\x00VERB ARGS...\x00VERB\x00ONOFF\x00DB LIMIT\x00DB dbName onOff tnum\x00ru_utime=%d.%06d ru_stime=%d.%06d ru_minflt=%d ru_majflt=%d\x00DB OPT BOOLEAN\x00unknown optimization - should be one of:\x00all\x00none\x00query-flattener\x00groupby-order\x00factor-constants\x00distinct-opt\x00cover-idx-scan\x00order-by-idx-join\x00transitive\x00omit-noop-join\x00stat4\x00skip-scan\x00push-down\x00DB NAME ...\x00no such extension: \x00initialization of \x00 failed: \x00amatch\x00closure\x00fileio\x00nextchar\x00series\x00spellfix\x00totype\x00BOOL\x00DB SQL1 NSTEP SQL2\x00data error: (a!=b)\x00checksum mismatch\x00sql error: \x00TYPE\x00Deliberate panic\x00DB SETTING [VALUE]\x00SQLITE_*\x00DBCONFIG_*\x00ENABLE_*\x00unknown sqlite3_db_config setting\x00FKEY\x00TRIGGER\x00FTS3_TOKENIZER\x00LOAD_EXTENSION\x00NO_CKPT_ON_CLOSE\x00QPSG\x00TRIGGER_EQP\x00RESET_DB\x00DEFENSIVE\x00WRITABLE_SCHEMA\x00LEGACY_ALTER_TABLE\x00DQS_DML\x00DQS_DDL\x00LEGACY_FILE_FORMAT\x00icecube\x00DB ?DBNAME?\x00HEXDB\x00| size %d pagesize %d\x00bad 'pagesize' field\x00bad 'size' field\x00| page %d offset %d\x00| %d: %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x\x00sqlite_search_count\x00sqlite_found_count\x00sqlite_sort_count\x00sqlite3_max_blobsize\x00sqlite_like_count\x00sqlite_interrupt_count\x00sqlite_open_file_count\x00sqlite_current_time\x00sqlite3_xferopt_count\x00sqlite3_pager_readdb_count\x00sqlite3_pager_writedb_count\x00sqlite3_pager_writej_count\x00unaligned_string_counter\x00sqlite_last_needed_collation\x00sqlite_query_plan\x00sqlite_opentemp_count\x00sqlite_static_bind_value\x00sqlite_static_bind_nbyte\x00sqlite_temp_directory\x00sqlite_data_directory\x00bitmask_size\x00longdouble_size\x00sqlite_sync_count\x00sqlite_fullsync_count\x00db_enter\x00db_leave\x00sqlite3_mprintf_int\x00sqlite3_mprintf_int64\x00sqlite3_mprintf_long\x00sqlite3_mprintf_str\x00sqlite3_snprintf_str\x00sqlite3_mprintf_stronly\x00sqlite3_mprintf_double\x00sqlite3_mprintf_scaled\x00sqlite3_mprintf_hexdouble\x00sqlite3_mprintf_z_test\x00sqlite3_mprintf_n_test\x00sqlite3_snprintf_int\x00sqlite3_last_insert_rowid\x00sqlite3_exec_printf\x00sqlite3_exec_hex\x00sqlite3_exec\x00sqlite3_exec_nr\x00sqlite3_get_table_printf\x00sqlite3_close\x00sqlite3_close_v2\x00sqlite3_create_function\x00sqlite3_create_aggregate\x00sqlite3_drop_modules\x00sqlite_register_test_function\x00sqlite_abort\x00sqlite_bind\x00breakpoint\x00sqlite3_key\x00sqlite3_rekey\x00sqlite_set_magic\x00sqlite3_interrupt\x00sqlite_delete_function\x00sqlite_delete_collation\x00sqlite3_get_autocommit\x00sqlite3_busy_timeout\x00printf\x00sqlite3IoTrace\x00clang_sanitize_address\x00sqlite3_db_config\x00bad_behavior\x00register_dbstat_vtab\x00sqlite3_connection_pointer\x00intarray_addr\x00int64array_addr\x00doublearray_addr\x00textarray_addr\x00sqlite3_bind_int\x00sqlite3_bind_zeroblob\x00sqlite3_bind_zeroblob64\x00sqlite3_bind_int64\x00sqlite3_bind_double\x00sqlite3_bind_null\x00sqlite3_bind_text\x00sqlite3_bind_text16\x00sqlite3_bind_blob\x00sqlite3_bind_parameter_count\x00sqlite3_bind_parameter_name\x00sqlite3_bind_parameter_index\x00sqlite3_clear_bindings\x00sqlite3_sleep\x00sqlite3_errcode\x00sqlite3_extended_errcode\x00sqlite3_errmsg\x00sqlite3_errmsg16\x00sqlite3_open\x00sqlite3_open16\x00sqlite3_open_v2\x00sqlite3_complete16\x00sqlite3_normalize\x00sqlite3_prepare\x00sqlite3_prepare16\x00sqlite3_prepare_v2\x00sqlite3_prepare_v3\x00sqlite3_prepare_tkt3134\x00sqlite3_prepare16_v2\x00sqlite3_finalize\x00sqlite3_stmt_status\x00sqlite3_reset\x00sqlite3_expired\x00sqlite3_transfer_bindings\x00sqlite3_changes\x00sqlite3_step\x00sqlite3_sql\x00sqlite3_expanded_sql\x00sqlite3_next_stmt\x00sqlite3_stmt_readonly\x00sqlite3_stmt_isexplain\x00sqlite3_stmt_busy\x00uses_stmt_journal\x00sqlite3_release_memory\x00sqlite3_db_release_memory\x00sqlite3_db_cacheflush\x00sqlite3_system_errno\x00sqlite3_db_filename\x00sqlite3_db_readonly\x00sqlite3_soft_heap_limit\x00sqlite3_soft_heap_limit64\x00sqlite3_hard_heap_limit64\x00sqlite3_thread_cleanup\x00sqlite3_pager_refcounts\x00sqlite3_load_extension\x00sqlite3_enable_load_extension\x00sqlite3_extended_result_codes\x00sqlite3_limit\x00dbconfig_maindbname_icecube\x00save_prng_state\x00restore_prng_state\x00reset_prng_state\x00prng_seed\x00database_never_corrupt\x00database_may_be_corrupt\x00optimization_control\x00tcl_objproc\x00sqlite3_column_count\x00sqlite3_data_count\x00sqlite3_column_type\x00sqlite3_column_blob\x00sqlite3_column_double\x00sqlite3_column_int64\x00sqlite3_column_text\x00sqlite3_column_name\x00sqlite3_column_int\x00sqlite3_column_bytes\x00sqlite3_column_decltype\x00sqlite3_column_bytes16\x00sqlite3_column_text16\x00sqlite3_column_name16\x00add_alignment_test_collations\x00sqlite3_column_decltype16\x00sqlite3_create_collation_v2\x00sqlite3_global_recover\x00working_64bit_int\x00vfs_unlink_test\x00vfs_initfail_test\x00vfs_unregister_all\x00vfs_reregister_all\x00file_control_test\x00file_control_lasterrno_test\x00file_control_lockproxy_test\x00file_control_chunksize_test\x00file_control_sizehint_test\x00file_control_data_version\x00file_control_persist_wal\x00file_control_powersafe_overwrite\x00file_control_vfsname\x00file_control_tempfilename\x00sqlite3_vfs_list\x00sqlite3_create_function_v2\x00add_test_collate\x00add_test_collate_needed\x00add_test_function\x00add_test_utf16bin_collate\x00sqlite3_test_errstr\x00tcl_variable_type\x00sqlite3_enable_shared_cache\x00sqlite3_shared_cache_report\x00sqlite3_libversion_number\x00sqlite3_table_column_metadata\x00sqlite3_blob_reopen\x00pcache_stats\x00sqlite3_unlock_notify\x00sqlite3_wal_checkpoint\x00sqlite3_wal_checkpoint_v2\x00sqlite3_wal_autocheckpoint\x00test_sqlite3_log\x00print_explain_query_plan\x00sqlite3_test_control\x00getrusage\x00load_static_extension\x00sorter_test_fakeheap\x00sorter_test_sort4_helper\x00vfs_current_time_int64\x00sqlite3_delete_database\x00atomic_batch_write\x00sqlite3_mmap_warm\x00sqlite3_config_sorterref\x00decode_hexdb\x00*** OBSOLETE VARIABLE ***\x00 FILENAME N-PAGE\"\x00 ID\"\x00ref\x00page\x00state\x00err\x00hit\x00miss\x00ovfl\x00 ID PGNO\"\x00 PAGE\"\x00 PAGE DATA\"\x00 N-MEGABYTES FILE\"\x00open failed: \x00Hello, World!\x00write failed: \x00 PENDING-BYTE\"\x00fault simulator script failed: [%s]\x00 SCRIPT\"\x00 SIZE PROGRAM\"\x00sqlite_io_error_pending\x00sqlite_io_error_persist\x00sqlite_io_error_hit\x00sqlite_io_error_hardhit\x00sqlite_diskfull_pending\x00sqlite_diskfull\x00sqlite_pending_byte\x00pager_open\x00pager_close\x00pager_commit\x00pager_rollback\x00pager_stmt_begin\x00pager_stmt_commit\x00pager_stmt_rollback\x00pager_stats\x00pager_pagecount\x00page_get\x00page_lookup\x00page_unref\x00page_read\x00page_write\x00page_number\x00pager_truncate\x00fake_big_file\x00sqlite3BitvecBuiltinTest\x00sqlite3_test_control_pending_byte\x00sqlite3_test_control_fault_install\x00 FILENAME NCACHE FLAGS\"\x00read\x00write\x00 ID TABLENUM WRITEABLE\"\x00 START MULTIPLIER COUNT INCREMENT\"\x00putVarint returned %d - should be between 1 and 9\x00putVarint returned %d and getVarint returned %d\x00Wrote 0x%016llx and got back 0x%016llx\x00putVarint returned %d and GetVarint32 returned %d\x00Wrote 0x%016llx and got back 0x%016llx from GetVarint32\x00 DB-HANDLE ?N?\"\x00No such db-handle: \"\x00 BT NCACHE\"\x00?-intkey? CSR KEY VALUE\x00btree_insert\x00btree_open\x00btree_close\x00btree_begin_transaction\x00btree_pager_stats\x00btree_cursor\x00btree_close_cursor\x00btree_next\x00btree_eof\x00btree_payload_size\x00btree_first\x00btree_varint_test\x00btree_from_db\x00btree_ismemdb\x00btree_set_cache_size\x00thread ID must be an upper case letter\x00 ID FILENAME\x00thread \x00 is already running\x00failed to create the thread\x00 ID\x00no such thread\x00 ID N\x00column number out of range\x00no database is open\x00 ID SQL\x00no virtual machine available\x00 IDL\x00 ID1 ID2\x00 ID DB\x00thread_create\x00thread_wait\x00thread_halt\x00thread_argc\x00thread_argv\x00thread_colname\x00thread_result\x00thread_error\x00thread_compile\x00thread_step\x00thread_finalize\x00thread_swap\x00thread_db_get\x00thread_db_put\x00thread_stmt_get\x00 <repeat-count> <do-calls>\x00hello world\x00UTF8\x00UTF16LE\x00UTF16BE\x00UTF16\x00No such encoding: \x00 <string/blob> <from enc> <to enc>\x00binarize\x00test_value_overhead\x00test_translate\x00translate_selftest\x00out of memory in the crash simulator\n\x00atomic\x00atomic512\x00atomic1k\x00atomic2k\x00atomic4k\x00atomic8k\x00atomic16k\x00atomic32k\x00atomic64k\x00sequential\x00safe_append\x00powersafe_overwrite\x00batch-atomic\x00-sectorsize\x00-characteristics\x00Bad option: \"\x00\" - must be \"-characteristics\" or \"-sectorsize\"\x00Option requires an argument: \"\x00no such flag\x00ENABLE ?DEFAULT?\x00crash\x00?OPTIONS? DELAY CRASHFILE\x00Filename is too long: \"\x00NWRITE\x00?-default? PARENT-VFS\x00-default\x00\": must be -default\x00Error in jt_register\x00sqlite3_crash_enable\x00sqlite3_crashparams\x00sqlite3_crash_now\x00sqlite3_simulate_device\x00sqlite3_crash_on_write\x00unregister_devsim\x00register_jt_vfs\x00unregister_jt_vfs\x00client_create\x00client_wait\x00client_halt\x00client_argc\x00client_argv\x00client_colname\x00client_result\x00client_error\x00client_compile\x00client_step\x00client_reset\x00client_finalize\x00client_swap\x00echo_module_fail(%s,%s)\x00echo-vtab-error: %s\x00SELECT * FROM %Q\x00PRAGMA index_list(%s)\x00PRAGMA index_info(%s)\x00echo_module\x00SELECT sql FROM sqlite_master WHERE type = 'table' AND name = ?\x00%s%s\x00xCreate\x00CREATE TABLE %Q(logmsg)\x00xConnect\x00xDisconnect\x00xDestroy\x00DROP TABLE %Q\x00xOpen\x00xNext\x00xColumn\x00xRowid\x00xFilter\x00, *\x00%z, %s\x00%z, NULL\x00echo_module_ignore_usable\x00xBestIndex\x00echo_module_cost\x00SELECT count(*) FROM %Q\x00SELECT rowid%z FROM %Q\x00rowid\x00=\x00<\x00>\x00<=\x00>=\x00LIKE\x00like\x00glob\x00 %s %s LIKE (SELECT '%%'||?||'%%')\x00 %s %s %s ?\x00DESC\x00ASC\x00 ORDER BY %s %s\x00xUpdate\x00 SET\x00UPDATE %Q\x00 SET rowid=?1 \x00%s %Q=?%d\x00 WHERE rowid=?%d\x00DELETE FROM %Q WHERE rowid = ?1\x00INSERT INTO %Q (\x00%s%Q\x00%s?%d\x00) VALUES(\x00echo(%s)\x00xBegin\x00echo_module_begin_fail\x00xSync\x00echo_module_sync_fail\x00xCommit\x00xRollback\x00::echo_glob_overload\x00xRename\x00ALTER TABLE %s RENAME TO %s%s\x00echo\x00echo_v2\x00DB SQL\x00register_echo_module\x00sqlite3_declare_vtab\x00N/A\x00sqlite3_create_collation\x00Error testing function: \x00sqlite3_malloc\x00sqlite3_realloc\x00c_misuse_test\x00c_realloc_test\x00c_collation_test\x00sqlite3_reset_auto_extension\x00npage\x00finish\x00remaining\x00pagecount\x00CMDNAME DESTHANDLE DESTNAME SRCHANDLE SRCNAME\x00sqlite3_backup_init() failed\x00sqlite3_backup\x00wrong number of arguments\x00unexpected: %s\x00eq\x00gt\x00le\x00lt\x00ge\x00match\x00ne\x00isnot\x00isnotnull\x00isnull\x00op\x00column\x00usable\x00desc\x00cost\x00orderby\x00idxnum\x00idxstr\x00rows\x00use\x00omit\x00unexpected: %d\x00tcl\x00register_tcl_module\x00incrblob_\x00DB DATABASE TABLE COLUMN ROWID FLAGS VARNAME\x00HANDLE\x00CHANNEL OFFSET N\x00out of memory in testdata/sqlite-src-3320300/src/test_blob.c\x00HANDLE OFFSET DATA ?NDATA?\x00sqlite3_blob_open\x00sqlite3_blob_close\x00sqlite3_blob_bytes\x00sqlite3_blob_read\x00sqlite3_blob_write\x00sqlite_options\x00malloc_usable_size\x00rowid32\x00casesensitivelike\x00curdir\x001\x00win32malloc\x00debug\x00default_ckptfullfsync\x00direct_read\x00dirsync\x00lfs\x00pagecache_overflow_stats\x00mmap\x00worker_threads\x008\x00memdebug\x008_3_names\x00cursorhints\x00hiddencolumns\x00mem3\x00mem5\x00offset_sql_func\x00snapshot\x00mutex\x00mutex_noop\x00altertable\x00api_armor\x00atomicwrite\x00json1\x00has_codec\x00like_match_blobs\x00attach\x00auth\x00autoinc\x00autoreset\x00autovacuum\x00default_autovacuum\x00between_opt\x00builtin_test\x00bloblit\x00cast\x00check\x00cte\x00columnmetadata\x00oversize_cell_check\x00compileoption_diags\x00compound\x00conflict\x00crashtest\x00datetime\x00decltype\x00deprecated\x00diskio\x00floatingpoint\x00foreignkey\x00fts1\x00fts2\x00fts3\x00fts5\x00fts3_unicode\x00fts4_deferred\x00gettable\x00icu\x00icu_collations\x00integrityck\x00legacyformat\x00like_opt\x00load_ext\x00localtime\x00lookaside\x00long_double\x00memorydb\x00memorymanage\x00mergesort\x00null_trim\x00or_opt\x00rbu\x00pager_pragmas\x00pragma\x00reindex\x00rtree\x00rtree_int_only\x00schema_pragmas\x00schema_version\x00session\x00stmtvtab\x00scanstatus\x00lock_proxy_pragmas\x00prefer_proxy_locking\x00shared_cache\x00subquery\x00tclvar\x00threadsafe\x00threadsafe1\x00threadsafe2\x00tempdb\x00trigger\x00truncate_opt\x00vacuum\x00view\x00vtab\x00wal\x00wsd\x00update_delete_limit\x00fast_secure_delete\x00secure_delete\x00userauth\x00multiplex_ext_overwrite\x00yytrackmaxstackdepth\x00sqllog\x00uri_00_error\x00normalize\x00windowfunc\x00SQLITE_MAX_LENGTH\x00SQLITE_MAX_COLUMN\x00SQLITE_MAX_SQL_LENGTH\x00SQLITE_MAX_EXPR_DEPTH\x00SQLITE_MAX_COMPOUND_SELECT\x00SQLITE_MAX_VDBE_OP\x00SQLITE_MAX_FUNCTION_ARG\x00SQLITE_MAX_VARIABLE_NUMBER\x00SQLITE_MAX_PAGE_SIZE\x00SQLITE_MAX_PAGE_COUNT\x00SQLITE_MAX_LIKE_PATTERN_LENGTH\x00SQLITE_MAX_TRIGGER_DEPTH\x00SQLITE_DEFAULT_CACHE_SIZE\x00SQLITE_DEFAULT_PAGE_SIZE\x00SQLITE_DEFAULT_FILE_FORMAT\x00SQLITE_DEFAULT_SYNCHRONOUS\x00SQLITE_DEFAULT_WAL_SYNCHRONOUS\x00SQLITE_MAX_ATTACHED\x00SQLITE_MAX_DEFAULT_PAGE_SIZE\x00SQLITE_MAX_WORKER_THREADS\x00TEMP_STORE\x00%s-journal\x00%s-wal\x00%s-shm\x00%s%03d\x00%s-journal%03d\x00%s-wal%03d\x00Loadable extensions are not supported\x00demo\x00register_demovfs\x00unregister_demovfs\x00devsym\x00writecrash\x00CREATE TABLE xyz(dir, name);\x00CREATE TABLE xyz(path, size, data);\x00WITH r(d) AS ( SELECT CASE WHEN dir=?2 THEN ?3 ELSE dir END || '/' || name FROM fsdir WHERE dir=?1 AND name NOT LIKE '.%' UNION ALL SELECT dir || '/' || name FROM r, fsdir WHERE dir=d AND name NOT LIKE '.%') SELECT d FROM r;\x00/\x00CREATE TABLE x(path TEXT, data TEXT)\x00SELECT * FROM %Q.%Q WHERE rowid=?\x00fs\x00fstree\x00register_fs_module\x00abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-!,:*^+=_|?/<> \x00sqlite3_prepare_v2() error: %s\x000123456789abcdef\x00x'\x00test_agg_errmsg16\x00randstr\x00test_destructor\x00test_destructor16\x00hex_to_utf16be\x00hex_to_utf16le\x00hex_to_utf8\x00test_destructor_count\x00test_auxdata\x00test_error\x00test_eval\x00test_isolation\x00test_counter\x00real2hex\x00test_decode\x00test_extract\x00test_zeroblob\x00test_getsubtype\x00test_setsubtype\x00test_frombind\x00tx\x00funcxx_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789\x00nullx_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789\x00sqlite3_create_function abused test failed\x00invalid matchinfo blob passed to function rank()\x00wrong number of arguments to function rank()\x00rank\x00autoinstall_test_functions\x00abuse_create_function\x00install_fts3_rank_function\x000123456789ABCDEF\x00FILENAME OFFSET AMT\x00r\x00cannot open input file \x00FILENAME OFFSET HEXDATA\x00r+b\x00r+\x00cannot open output file \x00HEXDATA\x00[utf8_to_utf8] unavailable - SQLITE_DEBUG not defined\x00BLOB VARNAME\x00LIST\x00hexio_read\x00hexio_write\x00hexio_get_int\x00hexio_render_int16\x00hexio_render_int32\x00utf8_to_utf8\x00read_fts3varint\x00make_fts3record\x00mem\x00pcache\x00Unknown argument: \"\x00init_wrapper_install\x00init_wrapper_query\x00init_wrapper_uninstall\x00init_wrapper_clear\x00CREATE TABLE x(value INTEGER PRIMARY KEY)\x00CREATE VIRTUAL TABLE temp.%Q USING %Q\x00INTARRAY\x00SQLITE_NOMEM\x00sqlite3_intarray_create\x00sqlite3_intarray_bind\x00jt\x00-journal\x00NBYTES\x00PRIOR NBYTES\x00bad pointer: \x00PRIOR\x00ADDRESS SIZE HEX\x00size must be positive\x00no data\x00ADDRESS SIZE\x00?RESET?\x00DEPT\x00FILENAME\x00COUNTER ?OPTIONS?\x00-repeat\x00-benigncnt\x00TITLE\x00SUB-COMMAND ...\x00start\x00stop\x00dump\x00clear\x00sync\x00SIZE N\x00INSTALLFLAG DISCARDCHANCE PRNGSEEED HIGHSTRESS\x00discard-chance should be between 0 and 100\x00BOOLEAN\x00SIZE COUNT\x00BUFID SIZE COUNT\x00illegal arguments - see documentation\x00NBYTE NMINALLOC\x00[DB]\x00sqlite3_db_config(db, 99999) does not return SQLITE_ERROR\x00sqlite3_config(99999) does not return SQLITE_ERROR\x00PARAMETER RESETFLAG\x00SQLITE_STATUS_MEMORY_USED\x00SQLITE_STATUS_MALLOC_SIZE\x00SQLITE_STATUS_PAGECACHE_USED\x00SQLITE_STATUS_PAGECACHE_OVERFLOW\x00SQLITE_STATUS_PAGECACHE_SIZE\x00SQLITE_STATUS_SCRATCH_USED\x00SQLITE_STATUS_SCRATCH_OVERFLOW\x00SQLITE_STATUS_SCRATCH_SIZE\x00SQLITE_STATUS_PARSER_STACK\x00SQLITE_STATUS_MALLOC_COUNT\x00DB PARAMETER RESETFLAG\x00SQLITE_\x00DBSTATUS_\x00LOOKASIDE_USED\x00CACHE_USED\x00SCHEMA_USED\x00STMT_USED\x00LOOKASIDE_HIT\x00LOOKASIDE_MISS_SIZE\x00LOOKASIDE_MISS_FULL\x00CACHE_HIT\x00CACHE_MISS\x00CACHE_WRITE\x00DEFERRED_FKS\x00CACHE_USED_SHARED\x00CACHE_SPILL\x00?INTEGER?\x00sqlite3_free\x00memset\x00memget\x00sqlite3_memory_used\x00sqlite3_memory_highwater\x00sqlite3_memdebug_backtrace\x00sqlite3_memdebug_dump\x00sqlite3_memdebug_fail\x00sqlite3_memdebug_pending\x00sqlite3_memdebug_settitle\x00sqlite3_memdebug_malloc_count\x00sqlite3_memdebug_log\x00sqlite3_config_pagecache\x00sqlite3_config_alt_pcache\x00sqlite3_status\x00sqlite3_db_status\x00install_malloc_faultsim\x00sqlite3_config_heap\x00sqlite3_config_heap_size\x00sqlite3_config_memstatus\x00sqlite3_config_lookaside\x00sqlite3_config_error\x00sqlite3_config_uri\x00sqlite3_config_cis\x00sqlite3_config_pmasz\x00sqlite3_db_config_lookaside\x00sqlite3_dump_memsys3\x00sqlite3_dump_memsys5\x00sqlite3_install_memsys3\x00sqlite3_memdebug_vfs_oom_test\x00%05u\x00 FILENAME [OFFSET AMT]\"\x00unable to open file \"\x00\" for reading\x00md5\x00md5-10x8\x00md5file\x00md5file-10x8\x00md5sum\x00%03d\x00multiplexor.xAccess failure on %s\x00multiplexor.xOpen failure on %s\x00multiplex_control\x00chunksize\x00multiplex_truncate\x00multiplex/%z\x00multiplex\x00NAME MAKEDEFAULT\x00-force\x00?-force?\x00enable\x00chunk_size\x00max_chunks\x00HANDLE DBNAME SUB-COMMAND INT-VALUE\x00expected database handle, got \"\x00SUB-COMMAND\x00sqlite3_multiplex_initialize\x00sqlite3_multiplex_shutdown\x00sqlite3_multiplex_control\x00fast\x00recursive\x00static_master\x00static_mem\x00static_open\x00static_prng\x00static_lru\x00static_pmem\x00static_app1\x00static_app2\x00static_app3\x00static_vfs1\x00static_vfs2\x00static_vfs3\x00mutex counters are \x00already installed\x00not installed\x00singlethread\x00multithread\x00serialized\x00mutex name\x00NAME\x00disable_mutex_init\x00disable_mutex_try\x00sqlite3_shutdown\x00sqlite3_initialize\x00sqlite3_config\x00enter_static_mutex\x00leave_static_mutex\x00enter_db_mutex\x00leave_db_mutex\x00alloc_dealloc_mutex\x00install_mutex_counters\x00read_mutex_counters\x00clear_mutex_counters\x00\x00\x00\x00\x00\x00\x00\x00vfslog/%z\x00sqlite_ostrace1.....\x00xClose\x00xRead\x00xWrite\x00xTruncate\x00xFilesize\x00xLock\x00xUnlock\x00xCheckResLock\x00xFileControl\x00xSectorSize\x00xDeviceChar\x00xDelete\x00xAccess\x00xFullPathname\x00xRandomness\x00xSleep\x00xCurrentTime\x00xShmUnmap\x00xShmLock\x00xShmBarrier\x00xShmMap\x00annotation\x00CREATE TABLE xxx(event, file, click, rc, size, offset)\x00vfslog\x00VFS\x00failed\x00VFS PARENT LOGFILE\x00bad sqlite3 handle: \x00annotate\x00finalize\x00new\x00register\x00quota/%z\x00quota\x00::piLimit_\x00PATTERN LIMIT SCRIPT\x00FILENAME MODE\x00HANDLE SIZE NELEM\x00HANDLE SIZE NELEM CONTENT\x00HANDLE ?HARDSYNC?\x00HANDLE OFFSET WHENCE\x00SEEK_SET\x00SEEK_CUR\x00SEEK_END\x00WHENCE should be SEEK_SET, SEEK_CUR, or SEEK_END\x00HANDLE SIZE\x00PATTERN TEXT\x00sqlite3_quota_initialize\x00sqlite3_quota_shutdown\x00sqlite3_quota_set\x00sqlite3_quota_file\x00sqlite3_quota_dump\x00sqlite3_quota_fopen\x00sqlite3_quota_fread\x00sqlite3_quota_fwrite\x00sqlite3_quota_fclose\x00sqlite3_quota_fflush\x00sqlite3_quota_fseek\x00sqlite3_quota_rewind\x00sqlite3_quota_ftell\x00sqlite3_quota_ftruncate\x00sqlite3_quota_file_size\x00sqlite3_quota_file_truesize\x00sqlite3_quota_file_mtime\x00sqlite3_quota_remove\x00sqlite3_quota_glob\x00sqlite3_quota_file_available\x00sqlite3_quota_ferror\x00register_cube_geom\x00register_circle_geom\x00CREATE TABLE x(database,tablename,cid,name,type,not_null,dflt_value,pk)\x00SELECT name FROM sqlite_temp_master WHERE type='table'\x00SELECT name FROM %Q.sqlite_master WHERE type='table'\x00PRAGMA %Q.table_info(%Q)\x00PRAGMA database_list\x00register_schema_module\x00PRAGMA main.journal_mode\x00CMDNAME PATH ?VFS? ?BUSY-HANDLER-SCRIPT?\x00sqlite3demo_superlock\x00open\x00access\x00getcwd\x00stat\x00fstat\x00ftruncate\x00fcntl\x00pread\x00pread64\x00pwrite\x00pwrite64\x00fchmod\x00fallocate\x00mremap\x00SYSCALL-LIST\x00system-call\x00?COUNT PERSIST?\x00EACCES\x00EINTR\x00EIO\x00EOVERFLOW\x00ENOMEM\x00EAGAIN\x00ETIMEDOUT\x00EBUSY\x00EPERM\x00EDEADLK\x00ENOLCK\x00SYSCALL ERRNO\x00errno\x00PGSZ\x00getpagesize\x00pgsz out of range\x00fault\x00install\x00uninstall\x00list\x00defaultvfs\x00pagesize\x00VFS does not support xSetSystemCall\x00test_syscall\x00load_testfixture_extensions\x00SLAVE\x00CREATE TABLE x( name TEXT, arrayname TEXT, value TEXT, fullname TEXT PRIMARY KEY) WITHOUT ROWID\x00array names\x00tclvar_filter_cmd\x00%s(%s)\x00expr {[info exists ::tclvar_set_omit] && $::tclvar_set_omit}\x00the 'fullname' column must be TEXT\x00prohibited TCL variable change\x00proc like {pattern str} {\n set p [string map {% * _ ?} $pattern]\n string match $p $str\n}\nproc tclvar_filter_cmd {eq match glob regexp like} {\n set res {}\n set pattern $eq\n if {$pattern=={}} { set pattern $match }\n if {$pattern=={}} { set pattern * }\n foreach v [uplevel #0 info vars $pattern] {\n if {($glob=={} || [string match $glob [uplevel #0 set $v]])\n && ($like=={} || [like $like [uplevel #0 set $v]])\n && ($regexp=={} || [regexp $regexp [uplevel #0 set $v]])\n } {\n lappend res $v\n }\n }\n set res\n}\n\x00register_tclvar_module\x00clock_seconds\x00sqlthread\x00sqlite3_blocking_step\x00sqlite3_blocking_prepare_v2\x00sqlite3_nonblocking_prepare_v2\x00error\x00set\x00Error in Tcl_CreateThread()\x00no parent thread\x00parent\x00spawn\x00VARNAME SCRIPT\x00DBNAME\x00id\x00%s \x00SQLITE_ERROR\x00SQLITE_IOERR\x00SQLITE_LOCKED\x00SQLITE_BUSY\x00SQLITE_READONLY\x00SQLITE_READONLY_CANTINIT\x00SQLITE_NOTFOUND\x00SQLITE_OMIT\x00normal|dataonly\x00full|dataonly\x00xCheckReservedLock\x00BEGIN_ATOMIC_WRITE\x00COMMIT_ATOMIC_WRITE\x00ZIPVFS\x00anon\x00SQLITE_ACCESS_EXISTS\x00SQLITE_ACCESS_READWRITE\x00SQLITE_ACCESS_READ\x00xShmOpen\x00 lock\x00 unlock\x00 shared\x00 exclusive\x00shm\x00delete\x00filter\x00ioerr\x00fullerr\x00cantopenerr\x00script\x00devchar\x00sectorsize\x00subcommand\x00FILE ?VALUE?\x00failed to get full path: \x00no such file: \x00unknown method: \x00?CNT PERSIST?\x00default\x00undeletable_when_open\x00immutable\x00?ATTR-LIST?\x00bad flags: \x00?VALUE?\x00-noshm\x00-szosfile\x00-mxpathname\x00-iversion\x00-fullshm\x00VFSNAME ?-noshm BOOL? ?-fullshm BOOL? ?-default BOOL? ?-mxpathname INT? ?-szosfile INT? ?-iversion INT?\x00shared\x00lock\x00unlock\x00DB DBNAME (shared|exclusive) (lock|unlock) OFFSET N\x00ARG\x00DB DBNAME SLOT ?VALUE?\x00*-shm is not yet mapped\x00testvfs\x00vfs_shmlock\x00vfs_set_readmark\x00DB NAME XSTEP XFINAL XVALUE XINVERSE\x00fff\x00misuse test error\x00invalid argument\x00sumint\x00sum\x00sqlite3_create_window_function\x00test_create_window_function_misuse\x00test_create_sumint\x00test_override_sum\x00"
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 8 /* .xCreate */)) = amatchConnect // amatch.c:1456:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 16 /* .xConnect */)) = amatchConnect // amatch.c:1457:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 24 /* .xBestIndex */)) = amatchBestIndex // amatch.c:1458:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 32 /* .xDisconnect */)) = amatchDisconnect // amatch.c:1459:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 40 /* .xDestroy */)) = amatchDisconnect // amatch.c:1460:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 48 /* .xOpen */)) = amatchOpen // amatch.c:1461:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 56 /* .xClose */)) = amatchClose // amatch.c:1462:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 64 /* .xFilter */)) = amatchFilter // amatch.c:1463:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 72 /* .xNext */)) = amatchNext // amatch.c:1464:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 80 /* .xEof */)) = amatchEof // amatch.c:1465:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 88 /* .xColumn */)) = amatchColumn // amatch.c:1466:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 96 /* .xRowid */)) = amatchRowid // amatch.c:1467:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&amatchModule)) + 104 /* .xUpdate */)) = amatchUpdate // amatch.c:1468:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 16 /* .xConnect */)) = carrayConnect // carray.c:336:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 24 /* .xBestIndex */)) = carrayBestIndex // carray.c:337:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 32 /* .xDisconnect */)) = carrayDisconnect // carray.c:338:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 48 /* .xOpen */)) = carrayOpen // carray.c:340:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 56 /* .xClose */)) = carrayClose // carray.c:341:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 64 /* .xFilter */)) = carrayFilter // carray.c:342:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 72 /* .xNext */)) = carrayNext // carray.c:343:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 80 /* .xEof */)) = carrayEof // carray.c:344:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 88 /* .xColumn */)) = carrayColumn // carray.c:345:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&carrayModule)) + 96 /* .xRowid */)) = carrayRowid // carray.c:346:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 8 /* .xCreate */)) = closureConnect // closure.c:920:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 16 /* .xConnect */)) = closureConnect // closure.c:921:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 24 /* .xBestIndex */)) = closureBestIndex // closure.c:922:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 32 /* .xDisconnect */)) = closureDisconnect // closure.c:923:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 40 /* .xDestroy */)) = closureDisconnect // closure.c:924:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 48 /* .xOpen */)) = closureOpen // closure.c:925:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 56 /* .xClose */)) = closureClose // closure.c:926:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 64 /* .xFilter */)) = closureFilter // closure.c:927:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 72 /* .xNext */)) = closureNext // closure.c:928:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 80 /* .xEof */)) = closureEof // closure.c:929:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 88 /* .xColumn */)) = closureColumn // closure.c:930:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&closureModule)) + 96 /* .xRowid */)) = closureRowid // closure.c:931:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 40 /* .xOpen */)) = cfOpen // test6.c:853:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 48 /* .xDelete */)) = cfDelete // test6.c:854:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 56 /* .xAccess */)) = cfAccess // test6.c:855:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 64 /* .xFullPathname */)) = cfFullPathname // test6.c:856:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 72 /* .xDlOpen */)) = cfDlOpen // test6.c:857:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 80 /* .xDlError */)) = cfDlError // test6.c:858:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 88 /* .xDlSym */)) = cfDlSym // test6.c:859:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 96 /* .xDlClose */)) = cfDlClose // test6.c:860:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 104 /* .xRandomness */)) = cfRandomness // test6.c:861:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 112 /* .xSleep */)) = cfSleep // test6.c:862:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 120 /* .xCurrentTime */)) = cfCurrentTime // test6.c:863:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&crashVfs)) + 128 /* .xGetLastError */)) = cfGetLastError // test6.c:864:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 8 /* .xClose */)) = demoClose // test_demovfs.c:402:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 16 /* .xRead */)) = demoRead // test_demovfs.c:403:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 24 /* .xWrite */)) = demoWrite // test_demovfs.c:404:5:
+ *(*func(*libc.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 32 /* .xTruncate */)) = demoTruncate // test_demovfs.c:405:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 40 /* .xSync */)) = demoSync // test_demovfs.c:406:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 48 /* .xFileSize */)) = demoFileSize // test_demovfs.c:407:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 56 /* .xLock */)) = demoLock // test_demovfs.c:408:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 64 /* .xUnlock */)) = demoUnlock // test_demovfs.c:409:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 72 /* .xCheckReservedLock */)) = demoCheckReservedLock // test_demovfs.c:410:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 80 /* .xFileControl */)) = demoFileControl // test_demovfs.c:411:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 88 /* .xSectorSize */)) = demoSectorSize // test_demovfs.c:412:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demoio)) + 96 /* .xDeviceCharacteristics */)) = demoDeviceCharacteristics // test_demovfs.c:413:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 40 /* .xOpen */)) = demoOpen // test_demovfs.c:627:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 48 /* .xDelete */)) = demoDelete // test_demovfs.c:628:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 56 /* .xAccess */)) = demoAccess // test_demovfs.c:629:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 64 /* .xFullPathname */)) = demoFullPathname // test_demovfs.c:630:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 72 /* .xDlOpen */)) = demoDlOpen // test_demovfs.c:631:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 80 /* .xDlError */)) = demoDlError // test_demovfs.c:632:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 88 /* .xDlSym */)) = demoDlSym // test_demovfs.c:633:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 96 /* .xDlClose */)) = demoDlClose // test_demovfs.c:634:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 104 /* .xRandomness */)) = demoRandomness // test_demovfs.c:635:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 112 /* .xSleep */)) = demoSleep // test_demovfs.c:636:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&demovfs)) + 120 /* .xCurrentTime */)) = demoCurrentTime // test_demovfs.c:637:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 8 /* .xClose */)) = devsymClose // test_devsym.c:229:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 16 /* .xRead */)) = devsymRead // test_devsym.c:230:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 24 /* .xWrite */)) = devsymWrite // test_devsym.c:231:3:
+ *(*func(*libc.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 32 /* .xTruncate */)) = devsymTruncate // test_devsym.c:232:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 40 /* .xSync */)) = devsymSync // test_devsym.c:233:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 48 /* .xFileSize */)) = devsymFileSize // test_devsym.c:234:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 56 /* .xLock */)) = devsymLock // test_devsym.c:235:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 64 /* .xUnlock */)) = devsymUnlock // test_devsym.c:236:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 72 /* .xCheckReservedLock */)) = devsymCheckReservedLock // test_devsym.c:237:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 80 /* .xFileControl */)) = devsymFileControl // test_devsym.c:238:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 88 /* .xSectorSize */)) = devsymSectorSize // test_devsym.c:239:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 96 /* .xDeviceCharacteristics */)) = devsymDeviceCharacteristics // test_devsym.c:240:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 104 /* .xShmMap */)) = devsymShmMap // test_devsym.c:241:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 112 /* .xShmLock */)) = devsymShmLock // test_devsym.c:242:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 120 /* .xShmBarrier */)) = devsymShmBarrier // test_devsym.c:243:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_io_methods)) + 128 /* .xShmUnmap */)) = devsymShmUnmap // test_devsym.c:244:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 40 /* .xOpen */)) = devsymOpen // test_devsym.c:428:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 48 /* .xDelete */)) = devsymDelete // test_devsym.c:429:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 56 /* .xAccess */)) = devsymAccess // test_devsym.c:430:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 64 /* .xFullPathname */)) = devsymFullPathname // test_devsym.c:431:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 104 /* .xRandomness */)) = devsymRandomness // test_devsym.c:443:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 112 /* .xSleep */)) = devsymSleep // test_devsym.c:444:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&devsym_vfs)) + 120 /* .xCurrentTime */)) = devsymCurrentTime // test_devsym.c:445:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 8 /* .xCreate */)) = echoCreate // test8.c:1301:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 16 /* .xConnect */)) = echoConnect // test8.c:1302:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 24 /* .xBestIndex */)) = echoBestIndex // test8.c:1303:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 32 /* .xDisconnect */)) = echoDisconnect // test8.c:1304:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 40 /* .xDestroy */)) = echoDestroy // test8.c:1305:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 48 /* .xOpen */)) = echoOpen // test8.c:1306:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 56 /* .xClose */)) = echoClose // test8.c:1307:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 64 /* .xFilter */)) = echoFilter // test8.c:1308:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 72 /* .xNext */)) = echoNext // test8.c:1309:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 80 /* .xEof */)) = echoEof // test8.c:1310:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 88 /* .xColumn */)) = echoColumn // test8.c:1311:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 96 /* .xRowid */)) = echoRowid // test8.c:1312:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 104 /* .xUpdate */)) = echoUpdate // test8.c:1313:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 112 /* .xBegin */)) = echoBegin // test8.c:1314:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 120 /* .xSync */)) = echoSync // test8.c:1315:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 128 /* .xCommit */)) = echoCommit // test8.c:1316:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 136 /* .xRollback */)) = echoRollback // test8.c:1317:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 144 /* .xFindFunction */)) = echoFindFunction // test8.c:1318:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModule)) + 152 /* .xRename */)) = echoRename // test8.c:1319:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 8 /* .xCreate */)) = echoCreate // test8.c:1324:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 16 /* .xConnect */)) = echoConnect // test8.c:1325:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 24 /* .xBestIndex */)) = echoBestIndex // test8.c:1326:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 32 /* .xDisconnect */)) = echoDisconnect // test8.c:1327:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 40 /* .xDestroy */)) = echoDestroy // test8.c:1328:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 48 /* .xOpen */)) = echoOpen // test8.c:1329:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 56 /* .xClose */)) = echoClose // test8.c:1330:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 64 /* .xFilter */)) = echoFilter // test8.c:1331:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 72 /* .xNext */)) = echoNext // test8.c:1332:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 80 /* .xEof */)) = echoEof // test8.c:1333:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 88 /* .xColumn */)) = echoColumn // test8.c:1334:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 96 /* .xRowid */)) = echoRowid // test8.c:1335:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 104 /* .xUpdate */)) = echoUpdate // test8.c:1336:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 112 /* .xBegin */)) = echoBegin // test8.c:1337:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 120 /* .xSync */)) = echoSync // test8.c:1338:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 128 /* .xCommit */)) = echoCommit // test8.c:1339:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 136 /* .xRollback */)) = echoRollback // test8.c:1340:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 144 /* .xFindFunction */)) = echoFindFunction // test8.c:1341:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 152 /* .xRename */)) = echoRename // test8.c:1342:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 160 /* .xSavepoint */)) = echoSavepoint // test8.c:1343:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 168 /* .xRelease */)) = echoRelease // test8.c:1344:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&echoModuleV2)) + 176 /* .xRollbackTo */)) = echoRollbackTo // test8.c:1345:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 8 /* .xCreate */)) = expertConnect // sqlite3expert.c:625:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 16 /* .xConnect */)) = expertConnect // sqlite3expert.c:626:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 24 /* .xBestIndex */)) = expertBestIndex // sqlite3expert.c:627:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 32 /* .xDisconnect */)) = expertDisconnect // sqlite3expert.c:628:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 40 /* .xDestroy */)) = expertDisconnect // sqlite3expert.c:629:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 48 /* .xOpen */)) = expertOpen // sqlite3expert.c:630:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 56 /* .xClose */)) = expertClose // sqlite3expert.c:631:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 64 /* .xFilter */)) = expertFilter // sqlite3expert.c:632:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 72 /* .xNext */)) = expertNext // sqlite3expert.c:633:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 80 /* .xEof */)) = expertEof // sqlite3expert.c:634:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 88 /* .xColumn */)) = expertColumn // sqlite3expert.c:635:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 96 /* .xRowid */)) = expertRowid // sqlite3expert.c:636:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&expertModule)) + 104 /* .xUpdate */)) = expertUpdate // sqlite3expert.c:637:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 16 /* .xConnect */)) = explainConnect // explain.c:274:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 24 /* .xBestIndex */)) = explainBestIndex // explain.c:275:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 32 /* .xDisconnect */)) = explainDisconnect // explain.c:276:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 48 /* .xOpen */)) = explainOpen // explain.c:278:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 56 /* .xClose */)) = explainClose // explain.c:279:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 64 /* .xFilter */)) = explainFilter // explain.c:280:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 72 /* .xNext */)) = explainNext // explain.c:281:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 80 /* .xEof */)) = explainEof // explain.c:282:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 88 /* .xColumn */)) = explainColumn // explain.c:283:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&explainModule)) + 96 /* .xRowid */)) = explainRowid // explain.c:284:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 8 /* .xCreate */)) = fsConnect // test_fs.c:800:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 16 /* .xConnect */)) = fsConnect // test_fs.c:801:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 24 /* .xBestIndex */)) = fsBestIndex // test_fs.c:802:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 32 /* .xDisconnect */)) = fsDisconnect // test_fs.c:803:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 40 /* .xDestroy */)) = fsDisconnect // test_fs.c:804:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 48 /* .xOpen */)) = fsOpen // test_fs.c:805:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 56 /* .xClose */)) = fsClose // test_fs.c:806:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 64 /* .xFilter */)) = fsFilter // test_fs.c:807:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 72 /* .xNext */)) = fsNext // test_fs.c:808:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 80 /* .xEof */)) = fsEof // test_fs.c:809:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 88 /* .xColumn */)) = fsColumn // test_fs.c:810:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsModule)) + 96 /* .xRowid */)) = fsRowid // test_fs.c:811:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 8 /* .xClose */)) = fsClose1 // test_onefile.c:210:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 16 /* .xRead */)) = fsRead // test_onefile.c:211:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 24 /* .xWrite */)) = fsWrite // test_onefile.c:212:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 32 /* .xTruncate */)) = fsTruncate // test_onefile.c:213:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 40 /* .xSync */)) = fsSync // test_onefile.c:214:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 48 /* .xFileSize */)) = fsFileSize // test_onefile.c:215:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 56 /* .xLock */)) = fsLock // test_onefile.c:216:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 64 /* .xUnlock */)) = fsUnlock // test_onefile.c:217:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 72 /* .xCheckReservedLock */)) = fsCheckReservedLock // test_onefile.c:218:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 80 /* .xFileControl */)) = fsFileControl // test_onefile.c:219:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 88 /* .xSectorSize */)) = fsSectorSize // test_onefile.c:220:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_io_methods)) + 96 /* .xDeviceCharacteristics */)) = fsDeviceCharacteristics // test_onefile.c:221:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 40 /* .xOpen */)) = fsOpen1 // test_onefile.c:191:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 48 /* .xDelete */)) = fsDelete // test_onefile.c:192:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 56 /* .xAccess */)) = fsAccess // test_onefile.c:193:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 64 /* .xFullPathname */)) = fsFullPathname // test_onefile.c:194:5:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 72 /* .xDlOpen */)) = fsDlOpen // test_onefile.c:195:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 80 /* .xDlError */)) = fsDlError // test_onefile.c:196:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 88 /* .xDlSym */)) = fsDlSym // test_onefile.c:197:5:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 96 /* .xDlClose */)) = fsDlClose // test_onefile.c:198:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 104 /* .xRandomness */)) = fsRandomness // test_onefile.c:199:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 112 /* .xSleep */)) = fsSleep // test_onefile.c:200:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fs_vfs)) + 120 /* .xCurrentTime */)) = fsCurrentTime // test_onefile.c:201:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 8 /* .xCreate */)) = fsdirConnect1 // test_fs.c:823:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 16 /* .xConnect */)) = fsdirConnect1 // test_fs.c:824:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 24 /* .xBestIndex */)) = fsdirBestIndex1 // test_fs.c:825:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 32 /* .xDisconnect */)) = fsdirDisconnect1 // test_fs.c:826:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 40 /* .xDestroy */)) = fsdirDisconnect1 // test_fs.c:827:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 48 /* .xOpen */)) = fsdirOpen1 // test_fs.c:828:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 56 /* .xClose */)) = fsdirClose1 // test_fs.c:829:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 64 /* .xFilter */)) = fsdirFilter1 // test_fs.c:830:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 72 /* .xNext */)) = fsdirNext1 // test_fs.c:831:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 80 /* .xEof */)) = fsdirEof1 // test_fs.c:832:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 88 /* .xColumn */)) = fsdirColumn1 // test_fs.c:833:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule)) + 96 /* .xRowid */)) = fsdirRowid1 // test_fs.c:834:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 16 /* .xConnect */)) = fsdirConnect // fileio.c:942:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 24 /* .xBestIndex */)) = fsdirBestIndex // fileio.c:943:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 32 /* .xDisconnect */)) = fsdirDisconnect // fileio.c:944:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 48 /* .xOpen */)) = fsdirOpen // fileio.c:946:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 56 /* .xClose */)) = fsdirClose // fileio.c:947:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 64 /* .xFilter */)) = fsdirFilter // fileio.c:948:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 72 /* .xNext */)) = fsdirNext // fileio.c:949:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 80 /* .xEof */)) = fsdirEof // fileio.c:950:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 88 /* .xColumn */)) = fsdirColumn // fileio.c:951:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fsdirModule1)) + 96 /* .xRowid */)) = fsdirRowid // fileio.c:952:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 8 /* .xCreate */)) = fstreeConnect // test_fs.c:846:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 16 /* .xConnect */)) = fstreeConnect // test_fs.c:847:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 24 /* .xBestIndex */)) = fstreeBestIndex // test_fs.c:848:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 32 /* .xDisconnect */)) = fstreeDisconnect // test_fs.c:849:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 40 /* .xDestroy */)) = fstreeDisconnect // test_fs.c:850:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 48 /* .xOpen */)) = fstreeOpen // test_fs.c:851:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 56 /* .xClose */)) = fstreeClose // test_fs.c:852:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 64 /* .xFilter */)) = fstreeFilter // test_fs.c:853:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 72 /* .xNext */)) = fstreeNext // test_fs.c:854:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 80 /* .xEof */)) = fstreeEof // test_fs.c:855:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 88 /* .xColumn */)) = fstreeColumn // test_fs.c:856:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fstreeModule)) + 96 /* .xRowid */)) = fstreeRowid // test_fs.c:857:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 8 /* .xCreate */)) = fts5tokConnectMethod // fts5_test_tok.c:453:6:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 16 /* .xConnect */)) = fts5tokConnectMethod // fts5_test_tok.c:454:6:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 24 /* .xBestIndex */)) = fts5tokBestIndexMethod // fts5_test_tok.c:455:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 32 /* .xDisconnect */)) = fts5tokDisconnectMethod // fts5_test_tok.c:456:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 40 /* .xDestroy */)) = fts5tokDisconnectMethod // fts5_test_tok.c:457:6:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 48 /* .xOpen */)) = fts5tokOpenMethod // fts5_test_tok.c:458:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 56 /* .xClose */)) = fts5tokCloseMethod // fts5_test_tok.c:459:6:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 64 /* .xFilter */)) = fts5tokFilterMethod // fts5_test_tok.c:460:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 72 /* .xNext */)) = fts5tokNextMethod // fts5_test_tok.c:461:6:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 80 /* .xEof */)) = fts5tokEofMethod // fts5_test_tok.c:462:6:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 88 /* .xColumn */)) = fts5tokColumnMethod // fts5_test_tok.c:463:6:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fts5tok_module)) + 96 /* .xRowid */)) = fts5tokRowidMethod // fts5_test_tok.c:464:6:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 8 /* .xCreate */)) = fuzzerConnect // fuzzer.c:1149:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 16 /* .xConnect */)) = fuzzerConnect // fuzzer.c:1150:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 24 /* .xBestIndex */)) = fuzzerBestIndex // fuzzer.c:1151:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 32 /* .xDisconnect */)) = fuzzerDisconnect // fuzzer.c:1152:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 40 /* .xDestroy */)) = fuzzerDisconnect // fuzzer.c:1153:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 48 /* .xOpen */)) = fuzzerOpen // fuzzer.c:1154:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 56 /* .xClose */)) = fuzzerClose // fuzzer.c:1155:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 64 /* .xFilter */)) = fuzzerFilter // fuzzer.c:1156:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 72 /* .xNext */)) = fuzzerNext // fuzzer.c:1157:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 80 /* .xEof */)) = fuzzerEof // fuzzer.c:1158:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 88 /* .xColumn */)) = fuzzerColumn // fuzzer.c:1159:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&fuzzerModule)) + 96 /* .xRowid */)) = fuzzerRowid // fuzzer.c:1160:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 8 /* .xCreate */)) = intarrayCreate // test_intarray.c:189:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 16 /* .xConnect */)) = intarrayCreate // test_intarray.c:190:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 24 /* .xBestIndex */)) = intarrayBestIndex // test_intarray.c:191:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 32 /* .xDisconnect */)) = intarrayDestroy // test_intarray.c:192:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 40 /* .xDestroy */)) = intarrayDestroy // test_intarray.c:193:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 48 /* .xOpen */)) = intarrayOpen // test_intarray.c:194:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 56 /* .xClose */)) = intarrayClose // test_intarray.c:195:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 64 /* .xFilter */)) = intarrayFilter // test_intarray.c:196:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 72 /* .xNext */)) = intarrayNext // test_intarray.c:197:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 80 /* .xEof */)) = intarrayEof // test_intarray.c:198:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 88 /* .xColumn */)) = intarrayColumn // test_intarray.c:199:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&intarrayModule)) + 96 /* .xRowid */)) = intarrayRowid // test_intarray.c:200:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 8 /* .xClose */)) = jtClose // test_journal.c:189:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 16 /* .xRead */)) = jtRead // test_journal.c:190:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 24 /* .xWrite */)) = jtWrite // test_journal.c:191:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 32 /* .xTruncate */)) = jtTruncate // test_journal.c:192:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 40 /* .xSync */)) = jtSync // test_journal.c:193:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 48 /* .xFileSize */)) = jtFileSize // test_journal.c:194:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 56 /* .xLock */)) = jtLock // test_journal.c:195:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 64 /* .xUnlock */)) = jtUnlock // test_journal.c:196:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 72 /* .xCheckReservedLock */)) = jtCheckReservedLock // test_journal.c:197:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 80 /* .xFileControl */)) = jtFileControl // test_journal.c:198:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 88 /* .xSectorSize */)) = jtSectorSize // test_journal.c:199:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_io_methods)) + 96 /* .xDeviceCharacteristics */)) = jtDeviceCharacteristics // test_journal.c:200:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 40 /* .xOpen */)) = jtOpen // test_journal.c:172:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 48 /* .xDelete */)) = jtDelete // test_journal.c:173:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 56 /* .xAccess */)) = jtAccess // test_journal.c:174:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 64 /* .xFullPathname */)) = jtFullPathname // test_journal.c:175:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 72 /* .xDlOpen */)) = jtDlOpen // test_journal.c:176:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 80 /* .xDlError */)) = jtDlError // test_journal.c:177:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 88 /* .xDlSym */)) = jtDlSym // test_journal.c:178:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 96 /* .xDlClose */)) = jtDlClose // test_journal.c:179:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 104 /* .xRandomness */)) = jtRandomness // test_journal.c:180:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 112 /* .xSleep */)) = jtSleep // test_journal.c:181:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 120 /* .xCurrentTime */)) = jtCurrentTime // test_journal.c:182:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 128 /* .xGetLastError */)) = jtGetLastError // test_journal.c:183:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&jt_vfs)) + 136 /* .xCurrentTimeInt64 */)) = jtCurrentTimeInt64 // test_journal.c:184:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 16 /* .xConnect */)) = prefixesConnect // prefixes.c:230:21:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 24 /* .xBestIndex */)) = prefixesBestIndex // prefixes.c:231:21:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 32 /* .xDisconnect */)) = prefixesDisconnect // prefixes.c:232:21:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 48 /* .xOpen */)) = prefixesOpen // prefixes.c:234:21:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 56 /* .xClose */)) = prefixesClose // prefixes.c:235:21:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 64 /* .xFilter */)) = prefixesFilter // prefixes.c:236:21:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 72 /* .xNext */)) = prefixesNext // prefixes.c:237:21:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 80 /* .xEof */)) = prefixesEof // prefixes.c:238:21:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 88 /* .xColumn */)) = prefixesColumn // prefixes.c:239:21:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&prefixesModule)) + 96 /* .xRowid */)) = prefixesRowid // prefixes.c:240:21:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&pzNeededCollation)) + 0)) = uintptr(unsafe.Pointer(&zNeededCollation)) // test1.c:3130:34:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 8 /* .xCreate */)) = schemaCreate // test_schema.c:276:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 16 /* .xConnect */)) = schemaCreate // test_schema.c:277:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 24 /* .xBestIndex */)) = schemaBestIndex // test_schema.c:278:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 32 /* .xDisconnect */)) = schemaDestroy // test_schema.c:279:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 40 /* .xDestroy */)) = schemaDestroy // test_schema.c:280:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 48 /* .xOpen */)) = schemaOpen // test_schema.c:281:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 56 /* .xClose */)) = schemaClose // test_schema.c:282:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 64 /* .xFilter */)) = schemaFilter // test_schema.c:283:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 72 /* .xNext */)) = schemaNext // test_schema.c:284:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 80 /* .xEof */)) = schemaEof // test_schema.c:285:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 88 /* .xColumn */)) = schemaColumn // test_schema.c:286:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&schemaModule)) + 96 /* .xRowid */)) = schemaRowid // test_schema.c:287:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 16 /* .xConnect */)) = seriesConnect // series.c:383:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 24 /* .xBestIndex */)) = seriesBestIndex // series.c:384:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 32 /* .xDisconnect */)) = seriesDisconnect // series.c:385:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 48 /* .xOpen */)) = seriesOpen // series.c:387:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 56 /* .xClose */)) = seriesClose // series.c:388:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 64 /* .xFilter */)) = seriesFilter // series.c:389:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 72 /* .xNext */)) = seriesNext // series.c:390:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 80 /* .xEof */)) = seriesEof // series.c:391:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 88 /* .xColumn */)) = seriesColumn // series.c:392:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&seriesModule)) + 96 /* .xRowid */)) = seriesRowid // series.c:393:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 8 /* .xCreate */)) = spellfix1Create // spellfix.c:2993:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 16 /* .xConnect */)) = spellfix1Connect // spellfix.c:2994:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 24 /* .xBestIndex */)) = spellfix1BestIndex // spellfix.c:2995:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 32 /* .xDisconnect */)) = spellfix1Disconnect // spellfix.c:2996:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 40 /* .xDestroy */)) = spellfix1Destroy // spellfix.c:2997:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 48 /* .xOpen */)) = spellfix1Open // spellfix.c:2998:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 56 /* .xClose */)) = spellfix1Close // spellfix.c:2999:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 64 /* .xFilter */)) = spellfix1Filter // spellfix.c:3000:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 72 /* .xNext */)) = spellfix1Next // spellfix.c:3001:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 80 /* .xEof */)) = spellfix1Eof // spellfix.c:3002:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 88 /* .xColumn */)) = spellfix1Column // spellfix.c:3003:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 96 /* .xRowid */)) = spellfix1Rowid // spellfix.c:3004:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 104 /* .xUpdate */)) = spellfix1Update // spellfix.c:3005:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&spellfix1Module)) + 152 /* .xRename */)) = spellfix1Rename // spellfix.c:3011:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 8 /* .xCreate */)) = tclConnect // test_bestindex.c:551:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 16 /* .xConnect */)) = tclConnect // test_bestindex.c:552:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 24 /* .xBestIndex */)) = tclBestIndex // test_bestindex.c:553:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 32 /* .xDisconnect */)) = tclDisconnect // test_bestindex.c:554:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 40 /* .xDestroy */)) = tclDisconnect // test_bestindex.c:555:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 48 /* .xOpen */)) = tclOpen // test_bestindex.c:556:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 56 /* .xClose */)) = tclClose // test_bestindex.c:557:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 64 /* .xFilter */)) = tclFilter // test_bestindex.c:558:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 72 /* .xNext */)) = tclNext // test_bestindex.c:559:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 80 /* .xEof */)) = tclEof // test_bestindex.c:560:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 88 /* .xColumn */)) = tclColumn // test_bestindex.c:561:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclModule)) + 96 /* .xRowid */)) = tclRowid // test_bestindex.c:562:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 8 /* .xCreate */)) = tclvarConnect // test_tclvar.c:471:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 16 /* .xConnect */)) = tclvarConnect // test_tclvar.c:472:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 24 /* .xBestIndex */)) = tclvarBestIndex // test_tclvar.c:473:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 32 /* .xDisconnect */)) = tclvarDisconnect // test_tclvar.c:474:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 40 /* .xDestroy */)) = tclvarDisconnect // test_tclvar.c:475:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 48 /* .xOpen */)) = tclvarOpen // test_tclvar.c:476:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 56 /* .xClose */)) = tclvarClose // test_tclvar.c:477:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 64 /* .xFilter */)) = tclvarFilter // test_tclvar.c:478:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 72 /* .xNext */)) = tclvarNext // test_tclvar.c:479:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 80 /* .xEof */)) = tclvarEof // test_tclvar.c:480:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 88 /* .xColumn */)) = tclvarColumn // test_tclvar.c:481:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 96 /* .xRowid */)) = tclvarRowid // test_tclvar.c:482:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tclvarModule)) + 104 /* .xUpdate */)) = tclvarUpdate // test_tclvar.c:483:3:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 8 /* .pArg */)) = uintptr(unsafe.Pointer(&testpcacheGlobal)) // test_pcache.c:435:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 16 /* .xInit */)) = testpcacheInit // test_pcache.c:436:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 24 /* .xShutdown */)) = testpcacheShutdown // test_pcache.c:437:5:
+ *(*func(*libc.TLS, int32, int32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 32 /* .xCreate */)) = testpcacheCreate // test_pcache.c:438:5:
+ *(*func(*libc.TLS, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 40 /* .xCachesize */)) = testpcacheCachesize // test_pcache.c:439:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 48 /* .xPagecount */)) = testpcachePagecount // test_pcache.c:440:5:
+ *(*func(*libc.TLS, uintptr, uint32, int32) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 56 /* .xFetch */)) = testpcacheFetch // test_pcache.c:441:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 64 /* .xUnpin */)) = testpcacheUnpin // test_pcache.c:442:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uint32, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 72 /* .xRekey */)) = testpcacheRekey // test_pcache.c:443:5:
+ *(*func(*libc.TLS, uintptr, uint32))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 80 /* .xTruncate */)) = testpcacheTruncate // test_pcache.c:444:5:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&testPcache)) + 88 /* .xDestroy */)) = testpcacheDestroy // test_pcache.c:445:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 8 /* .xClose */)) = tmpClose // test_onefile.c:231:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 16 /* .xRead */)) = tmpRead // test_onefile.c:232:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 24 /* .xWrite */)) = tmpWrite // test_onefile.c:233:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 32 /* .xTruncate */)) = tmpTruncate // test_onefile.c:234:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 40 /* .xSync */)) = tmpSync // test_onefile.c:235:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 48 /* .xFileSize */)) = tmpFileSize // test_onefile.c:236:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 56 /* .xLock */)) = tmpLock // test_onefile.c:237:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 64 /* .xUnlock */)) = tmpUnlock // test_onefile.c:238:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 72 /* .xCheckReservedLock */)) = tmpCheckReservedLock // test_onefile.c:239:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 80 /* .xFileControl */)) = tmpFileControl // test_onefile.c:240:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 88 /* .xSectorSize */)) = tmpSectorSize // test_onefile.c:241:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tmp_io_methods)) + 96 /* .xDeviceCharacteristics */)) = tmpDeviceCharacteristics // test_onefile.c:242:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 8 /* .xClose */)) = tvfsClose // test_vfs.c:206:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 16 /* .xRead */)) = tvfsRead // test_vfs.c:207:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 24 /* .xWrite */)) = tvfsWrite // test_vfs.c:208:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 32 /* .xTruncate */)) = tvfsTruncate // test_vfs.c:209:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 40 /* .xSync */)) = tvfsSync // test_vfs.c:210:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 48 /* .xFileSize */)) = tvfsFileSize // test_vfs.c:211:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 56 /* .xLock */)) = tvfsLock // test_vfs.c:212:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 64 /* .xUnlock */)) = tvfsUnlock // test_vfs.c:213:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 72 /* .xCheckReservedLock */)) = tvfsCheckReservedLock // test_vfs.c:214:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 80 /* .xFileControl */)) = tvfsFileControl // test_vfs.c:215:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 88 /* .xSectorSize */)) = tvfsSectorSize // test_vfs.c:216:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 96 /* .xDeviceCharacteristics */)) = tvfsDeviceCharacteristics // test_vfs.c:217:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 104 /* .xShmMap */)) = tvfsShmMap // test_vfs.c:218:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 112 /* .xShmLock */)) = tvfsShmLock // test_vfs.c:219:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 120 /* .xShmBarrier */)) = tvfsShmBarrier // test_vfs.c:220:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 128 /* .xShmUnmap */)) = tvfsShmUnmap // test_vfs.c:221:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 136 /* .xFetch */)) = tvfsFetch // test_vfs.c:222:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_io_methods)) + 144 /* .xUnfetch */)) = tvfsUnfetch // test_vfs.c:223:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 40 /* .xOpen */)) = tvfsOpen // test_vfs.c:1447:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 48 /* .xDelete */)) = tvfsDelete // test_vfs.c:1448:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 56 /* .xAccess */)) = tvfsAccess // test_vfs.c:1449:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 64 /* .xFullPathname */)) = tvfsFullPathname // test_vfs.c:1450:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 104 /* .xRandomness */)) = tvfsRandomness // test_vfs.c:1462:5:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 112 /* .xSleep */)) = tvfsSleep // test_vfs.c:1463:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&tvfs_vfs)) + 120 /* .xCurrentTime */)) = tvfsCurrentTime // test_vfs.c:1464:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 8 /* .xCreate */)) = unionConnect // unionvtab.c:1332:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 16 /* .xConnect */)) = unionConnect // unionvtab.c:1333:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 24 /* .xBestIndex */)) = unionBestIndex // unionvtab.c:1334:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 32 /* .xDisconnect */)) = unionDisconnect // unionvtab.c:1335:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 40 /* .xDestroy */)) = unionDisconnect // unionvtab.c:1336:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 48 /* .xOpen */)) = unionOpen // unionvtab.c:1337:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 56 /* .xClose */)) = unionClose // unionvtab.c:1338:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 64 /* .xFilter */)) = unionFilter // unionvtab.c:1339:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 72 /* .xNext */)) = unionNext // unionvtab.c:1340:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 80 /* .xEof */)) = unionEof // unionvtab.c:1341:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 88 /* .xColumn */)) = unionColumn // unionvtab.c:1342:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&unionModule)) + 96 /* .xRowid */)) = unionRowid // unionvtab.c:1343:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 8 /* .xClose */)) = vfslogClose // test_osinst.c:204:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 16 /* .xRead */)) = vfslogRead // test_osinst.c:205:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 24 /* .xWrite */)) = vfslogWrite // test_osinst.c:206:3:
+ *(*func(*libc.TLS, uintptr, sqlite3_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 32 /* .xTruncate */)) = vfslogTruncate // test_osinst.c:207:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 40 /* .xSync */)) = vfslogSync // test_osinst.c:208:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 48 /* .xFileSize */)) = vfslogFileSize // test_osinst.c:209:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 56 /* .xLock */)) = vfslogLock // test_osinst.c:210:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 64 /* .xUnlock */)) = vfslogUnlock // test_osinst.c:211:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 72 /* .xCheckReservedLock */)) = vfslogCheckReservedLock // test_osinst.c:212:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 80 /* .xFileControl */)) = vfslogFileControl // test_osinst.c:213:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 88 /* .xSectorSize */)) = vfslogSectorSize // test_osinst.c:214:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 96 /* .xDeviceCharacteristics */)) = vfslogDeviceCharacteristics // test_osinst.c:215:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 104 /* .xShmMap */)) = vfslogShmMap // test_osinst.c:216:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 112 /* .xShmLock */)) = vfslogShmLock // test_osinst.c:217:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 120 /* .xShmBarrier */)) = vfslogShmBarrier // test_osinst.c:218:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_io_methods)) + 128 /* .xShmUnmap */)) = vfslogShmUnmap // test_osinst.c:219:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 8 /* .xCreate */)) = vlogConnect // test_osinst.c:1074:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 16 /* .xConnect */)) = vlogConnect // test_osinst.c:1075:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 24 /* .xBestIndex */)) = vlogBestIndex // test_osinst.c:1076:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 32 /* .xDisconnect */)) = vlogDisconnect // test_osinst.c:1077:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 40 /* .xDestroy */)) = vlogDisconnect // test_osinst.c:1078:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 48 /* .xOpen */)) = vlogOpen // test_osinst.c:1079:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 56 /* .xClose */)) = vlogClose // test_osinst.c:1080:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 64 /* .xFilter */)) = vlogFilter // test_osinst.c:1081:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 72 /* .xNext */)) = vlogNext // test_osinst.c:1082:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 80 /* .xEof */)) = vlogEof // test_osinst.c:1083:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 88 /* .xColumn */)) = vlogColumn // test_osinst.c:1084:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_module)) + 96 /* .xRowid */)) = vlogRowid // test_osinst.c:1085:5:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 40 /* .xOpen */)) = vfslogOpen // test_osinst.c:187:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 48 /* .xDelete */)) = vfslogDelete // test_osinst.c:188:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 56 /* .xAccess */)) = vfslogAccess // test_osinst.c:189:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 64 /* .xFullPathname */)) = vfslogFullPathname // test_osinst.c:190:3:
+ *(*func(*libc.TLS, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 72 /* .xDlOpen */)) = vfslogDlOpen // test_osinst.c:191:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 80 /* .xDlError */)) = vfslogDlError // test_osinst.c:192:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr) uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 88 /* .xDlSym */)) = vfslogDlSym // test_osinst.c:193:3:
+ *(*func(*libc.TLS, uintptr, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 96 /* .xDlClose */)) = vfslogDlClose // test_osinst.c:194:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 104 /* .xRandomness */)) = vfslogRandomness // test_osinst.c:195:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 112 /* .xSleep */)) = vfslogSleep // test_osinst.c:196:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 120 /* .xCurrentTime */)) = vfslogCurrentTime // test_osinst.c:197:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 128 /* .xGetLastError */)) = vfslogGetLastError // test_osinst.c:198:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&vfslog_vfs)) + 136 /* .xCurrentTimeInt64 */)) = vfslogCurrentTimeInt64 // test_osinst.c:199:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 8 /* .xCreate */)) = wholenumberConnect // wholenumber.c:238:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 16 /* .xConnect */)) = wholenumberConnect // wholenumber.c:239:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 24 /* .xBestIndex */)) = wholenumberBestIndex // wholenumber.c:240:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 32 /* .xDisconnect */)) = wholenumberDisconnect // wholenumber.c:241:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 40 /* .xDestroy */)) = wholenumberDisconnect // wholenumber.c:242:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 48 /* .xOpen */)) = wholenumberOpen // wholenumber.c:243:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 56 /* .xClose */)) = wholenumberClose // wholenumber.c:244:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 64 /* .xFilter */)) = wholenumberFilter // wholenumber.c:245:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 72 /* .xNext */)) = wholenumberNext // wholenumber.c:246:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 80 /* .xEof */)) = wholenumberEof // wholenumber.c:247:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 88 /* .xColumn */)) = wholenumberColumn // wholenumber.c:248:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&wholenumberModule)) + 96 /* .xRowid */)) = wholenumberRowid // wholenumber.c:249:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 8 /* .xClose */)) = devsymClose // test_devsym.c:393:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 16 /* .xRead */)) = devsymRead // test_devsym.c:394:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 24 /* .xWrite */)) = writecrashWrite // test_devsym.c:395:3:
+ *(*func(*libc.TLS, uintptr, sqlite_int64) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 32 /* .xTruncate */)) = devsymTruncate // test_devsym.c:396:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 40 /* .xSync */)) = devsymSync // test_devsym.c:397:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 48 /* .xFileSize */)) = devsymFileSize // test_devsym.c:398:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 56 /* .xLock */)) = devsymLock // test_devsym.c:399:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 64 /* .xUnlock */)) = devsymUnlock // test_devsym.c:400:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 72 /* .xCheckReservedLock */)) = devsymCheckReservedLock // test_devsym.c:401:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 80 /* .xFileControl */)) = devsymFileControl // test_devsym.c:402:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 88 /* .xSectorSize */)) = writecrashSectorSize // test_devsym.c:403:3:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 96 /* .xDeviceCharacteristics */)) = writecrashDeviceCharacteristics // test_devsym.c:404:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 104 /* .xShmMap */)) = devsymShmMap // test_devsym.c:405:3:
+ *(*func(*libc.TLS, uintptr, int32, int32, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 112 /* .xShmLock */)) = devsymShmLock // test_devsym.c:406:3:
+ *(*func(*libc.TLS, uintptr))(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 120 /* .xShmBarrier */)) = devsymShmBarrier // test_devsym.c:407:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_io_methods)) + 128 /* .xShmUnmap */)) = devsymShmUnmap // test_devsym.c:408:3:
+ *(*func(*libc.TLS, uintptr, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 40 /* .xOpen */)) = writecrashOpen // test_devsym.c:457:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 48 /* .xDelete */)) = devsymDelete // test_devsym.c:458:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 56 /* .xAccess */)) = devsymAccess // test_devsym.c:459:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 64 /* .xFullPathname */)) = devsymFullPathname // test_devsym.c:460:3:
+ *(*func(*libc.TLS, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 104 /* .xRandomness */)) = devsymRandomness // test_devsym.c:472:3:
+ *(*func(*libc.TLS, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 112 /* .xSleep */)) = devsymSleep // test_devsym.c:473:3:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&writecrash_vfs)) + 120 /* .xCurrentTime */)) = devsymCurrentTime // test_devsym.c:474:3:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 8 /* .xCreate */)) = zipfileConnect // zipfile.c:2143:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 16 /* .xConnect */)) = zipfileConnect // zipfile.c:2144:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 24 /* .xBestIndex */)) = zipfileBestIndex // zipfile.c:2145:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 32 /* .xDisconnect */)) = zipfileDisconnect // zipfile.c:2146:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 40 /* .xDestroy */)) = zipfileDisconnect // zipfile.c:2147:5:
+ *(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 48 /* .xOpen */)) = zipfileOpen // zipfile.c:2148:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 56 /* .xClose */)) = zipfileClose // zipfile.c:2149:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, int32, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 64 /* .xFilter */)) = zipfileFilter // zipfile.c:2150:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 72 /* .xNext */)) = zipfileNext // zipfile.c:2151:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 80 /* .xEof */)) = zipfileEof // zipfile.c:2152:5:
+ *(*func(*libc.TLS, uintptr, uintptr, int32) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 88 /* .xColumn */)) = zipfileColumn // zipfile.c:2153:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 104 /* .xUpdate */)) = zipfileUpdate // zipfile.c:2155:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 112 /* .xBegin */)) = zipfileBegin // zipfile.c:2156:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 128 /* .xCommit */)) = zipfileCommit // zipfile.c:2158:5:
+ *(*func(*libc.TLS, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 136 /* .xRollback */)) = zipfileRollback // zipfile.c:2159:5:
+ *(*func(*libc.TLS, uintptr, int32, uintptr, uintptr, uintptr) int32)(unsafe.Pointer(uintptr(unsafe.Pointer(&zipfileModule)) + 144 /* .xFindFunction */)) = zipfileFindFunction // zipfile.c:2160:5:
+}
+
+var ts1 = "%s\x00internal error!\x00SELECT * FROM main.%Q WHERE sample()\x00expert\x00PRAGMA table_info=%Q\x00main\x00, \x00%Q\x00 COLLATE %Q\x00 COLLATE %s\x00 DESC\x00PRAGMA index_list=%Q\x00PRAGMA index_xInfo=%Q\x00%s_idx_%08x\x00CREATE INDEX '%q' ON %Q(%s)\x00CREATE INDEX %s ON %s(%s)\x00EXPLAIN QUERY PLAN %s\x00 USING INDEX \x00 USING COVERING INDEX \x00%s\n\x00%s;\n\x00SELECT 'CREATE TEMP' || substr(sql, 7) FROM sqlite_schema WHERE tbl_name = %Q AND type IN ('table', 'trigger') ORDER BY type;\x00ALTER TABLE temp.%Q RENAME TO %Q\x00INSERT INTO %Q VALUES(\x00%s?\x00\x00)\x00UPDATE %Q SET \x00%s%Q=?\x00DELETE FROM %Q\x00t592690916721053953805701627921227776\x00DROP TABLE t592690916721053953805701627921227776\x00SELECT type, name, sql, 1 FROM sqlite_schema WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%%' UNION ALL SELECT type, name, sql, 2 FROM sqlite_schema WHERE type = 'trigger' AND tbl_name IN(SELECT name FROM sqlite_schema WHERE type = 'view') ORDER BY 4, 1\x00CREATE TABLE x(\x00%s%Q COLLATE %s\x00CREATE VIRTUAL TABLE %Q USING expert(%Q)\x00SELECT max(i.seqno) FROM sqlite_schema AS s, pragma_index_list(s.name) AS l, pragma_index_info(l.name) AS i WHERE s.type = 'table'\x00%sx.%Q IS rem(%d, x.%Q) COLLATE %s\x00%s%d\x00SELECT %s FROM %Q x ORDER BY %s\x00SELECT %s FROM temp.t592690916721053953805701627921227776 x ORDER BY %s\x00%d\x00 %d\x00DROP TABLE IF EXISTS temp.t592690916721053953805701627921227776\x00CREATE TABLE temp.t592690916721053953805701627921227776 AS SELECT * FROM %Q\x00SELECT s.rowid, s.name, l.name FROM sqlite_schema AS s, pragma_index_list(s.name) AS l WHERE s.type = 'table'\x00SELECT name, coll FROM pragma_index_xinfo(?) WHERE key\x00INSERT INTO sqlite_stat1 VALUES(?, ?, ?)\x00ANALYZE; PRAGMA writable_schema=1\x00rem\x00sample\x00ANALYZE sqlite_schema\x00:memory:\x00SELECT sql FROM sqlite_schema WHERE name NOT LIKE 'sqlite_%%' AND sql NOT LIKE 'CREATE VIRTUAL %%'\x00%s;%s%s\n\x00 -- stat1: \x00no such handle: \x00sql\x00TABLE\x00analyze\x00count\x00report\x00STMT EREPORT\x00destroy\x00SUBCOMMAND ...\x00sub-command\x00indexes\x00plan\x00candidates\x00DB\x00sqlite3expert%d\x00out of memory\x00sqlite3_expert_new\x00SQLITE_DONE\x00SQLITE_ERROR\x00SQLITE_OK\x00SELECT fts5(?1)\x00error: \x00fts5_api_ptr\x00f5t_2_%lld\x00xColumnCount\x00xRowCount\x00xColumnTotalSize\x00COL\x00xTokenize\x00TEXT SCRIPT\x00xPhraseCount\x00xPhraseSize\x00PHRASE\x00xInstCount\x00xInst\x00IDX\x00xRowid\x00xColumnText\x00xColumnSize\x00xQueryPhrase\x00PHRASE SCRIPT\x00xSetAuxdata\x00VALUE\x00xGetAuxdata\x00CLEAR\x00xSetAuxdataInt\x00INTEGER\x00xGetAuxdataInt\x00xPhraseForeach\x00IPHRASE COLVAR OFFVAR SCRIPT\x00xPhraseColumnForeach\x00IPHRASE COLVAR SCRIPT\x00SUB-COMMAND\x00f5t_%lld\x00bytearray\x00boolean\x00double\x00wideInt\x00int\x00DB NAME SCRIPT\x00?-subst? DB NAME TEXT\x00-subst\x00unrecognized option: \x00no such tokenizer: \x00error in tokenizer.xCreate()\x00error in tokenizer.xTokenize()\x00document\x00aux\x00query\x00prefixquery\x00invalid\x00-colocated\x00sqlite3_fts5_token may only be used by tokenizer callback\x00?-colocated? TEXT START END\x00error in fts5_api.xCreateTokenizer()\x00?BOOLEAN?\x00NSLOT TOKEN\x00sqlite3_fts5_create_tokenizer\x00sqlite3_fts5_token\x00sqlite3_fts5_tokenize\x00sqlite3_fts5_create_function\x00sqlite3_fts5_may_be_corrupt\x00sqlite3_fts5_token_hash\x00sqlite3_fts5_register_matchinfo\x00sqlite3_fts5_register_fts5tokenize\x00unrecognized matchinfo flag: %c\x00pcx\x00matchinfo\x00CREATE TABLE x(input HIDDEN, token, start, end, position)\x00fts5tokenize\x00%s: cost must be between 1 and %d\x00%s: maximum string length is %d\x00%s: iLang must be between 0 and %d\x00?\x00SELECT * FROM %Q.%Q\x00%s: %s\x00%s: %s has %d columns, expected 4\x00vocabulary_table\x00vocabulary_word\x00vocabulary_language\x00edit_distances\x00unrecognized argument: [%s]\n\x00no edit_distances table specified\x00CREATE TABLE x(word,distance,language,command HIDDEN,nword HIDDEN)\x000123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^abcdefghijklmnopqrstuvwxyz~\x00SELECT \"%w\" FROM \"%w\"\x00 WHERE \"%w\">=?1 AND \"%w\"=?2 ORDER BY 1\x00SELECT \"%w\" FROM \"%w\" WHERE \"%w\">=?1 ORDER BY 1\x00*\x00DELETE from %s is not allowed\x00UPDATE of %s is not allowed\x00INSERT INTO %s allowed for column [command] only\x00approximate_match\x00int32\x00int64\x00char*\x00CREATE TABLE x(value,pointer hidden,count hidden,ctype hidden)\x00carray\x00unknown datatype: %Q\x00inttoptr\x00tablename\x00idcolumn\x00parentcolumn\x00CREATE TABLE x(id,depth,root HIDDEN,tablename HIDDEN,idcolumn HIDDEN,parentcolumn HIDDEN)\x00SELECT \"%w\".\"%w\" FROM \"%w\" WHERE \"%w\".\"%w\"=?1\x00transitive_closure\x00rb\x00cannot open '%s' for reading\x00line %d: unescaped %c character\x00line %d: unterminated %c-quoted field\n\x00more than one '%s' parameter\x00yes\x00on\x00true\x00no\x00off\x00false\x00header\x00more than one 'header' parameter\x00testflags\x00columns\x00more than one 'columns' parameter\x00column= value must be positive\x00bad parameter: '%s'\x00must specify either filename= or data= but not both\x00%sc%d TEXT\x00,\x00%s\"%w\" TEXT\x00bad schema: '%s' - %s\x00filename\x00data\x00schema\x00csv\x00csv_wr\x00decimal_sum\x00decimal\x00decimal_cmp\x00decimal_add\x00decimal_sub\x00decimal_mul\x00 \x00eval\x00CREATE TABLE x(addr,opcode,p1,p2,p3,p4,p5,comment,sql HIDDEN)\x00EXPLAIN %s\x00explain\x00wb\x00wrong number of arguments to function writefile()\x00failed to create symlink: %s\x00failed to create directory: %s\x00failed to write file: %s\x00CREATE TABLE x(name,mode,mtime,data,path HIDDEN,dir HIDDEN)\x00cannot read directory: %s\x00%s/%s\x00cannot stat file: %s\x00table function fsdir requires an argument\x00table function fsdir requires a non-NULL argument\x00fsdir\x00readfile\x00writefile\x00lsmode\x00%s: ruleset must be between 0 and %d\x00%s: wrong number of CREATE VIRTUAL TABLE arguments\x00CREATE TABLE x(word,distance,ruleset)\x00fuzzer\x00ieee754(%lld,%d)\x00ieee754\x00ieee754_mantissa\x00ieee754_exponent\x00ieee754_to_blob\x00ieee754_from_blob\x00BEGIN; SELECT * FROM %s%q%ssqlite_schema\x00'\x00'.\x00PRAGMA %s%q%spage_size\x00sqlite3_mmap_warm_cache: Warmed up %d pages of %s\x00END\x00AND (%s)\x00collate \"%w\"\x00SELECT %s FROM %s WHERE %s>=(?1 || ?2) %s AND %s<=(?1 || char(1114111)) %s %s ORDER BY 1 %s ASC LIMIT 1\x00next_char\x00NULL\x00is\x00not\x00in(\x00in(select\x00in(with\x00?,?,?\x002nd argument to percentile() is not a number between 0.0 and 100.0\x002nd argument to percentile() is not the same for all input rows\x001st argument to percentile() is not numeric\x00Inf input to percentile()\x00percentile\x00CREATE TABLE prefixes(prefix TEXT, original_string TEXT HIDDEN)\x00prefixes\x00prefix_length\x00unknown \\ escape\x00afnrtv\\()*.+?[$^{|}]\x00\a\f\n\r\t\v\x00unmatched '('\x00'*' without operand\x00'+' without operand\x00'?' without operand\x00'{m,n}' without operand\x00unmatched '{'\x00n less than m in '{m,n}'\x00both m and n are zero in '{m,n}'\x00POSIX character classes not supported\x00unclosed '['\x00unrecognized character\x00regexp\x00remember\x00CREATE TABLE x(value,start hidden,stop hidden,step hidden)\x00generate_series() requires SQLite 3.8.12 or later\x00generate_series\x00.ABCDHLRMY9 ?\x00non-ASCII input to editdist()\x00NULL input to editdist()\x00SELECT iLang, cFrom, cTo, iCost FROM \"%w\" WHERE iLang>=0 ORDER BY iLang\x00editdist3\x00DROP TABLE IF EXISTS \"%w\".\"%w_vocab\"\x00CREATE TABLE x(word,rank,distance,langid, score, matchlen, phonehash HIDDEN, top HIDDEN, scope HIDDEN, srchcnt HIDDEN, soundslike HIDDEN, command HIDDEN)\x00CREATE TABLE IF NOT EXISTS \"%w\".\"%w_vocab\"(\n id INTEGER PRIMARY KEY,\n rank INT,\n langid INT,\n word TEXT,\n k1 TEXT,\n k2 TEXT\n);\n\x00CREATE INDEX IF NOT EXISTS \"%w\".\"%w_vocab_index_langid_k2\" ON \"%w_vocab\"(langid,k2);\x00edit_cost_table=\x00bad argument to spellfix1(): \"%s\"\x00SELECT id, word, rank, coalesce(k1,word) FROM \"%w\".\"%w_vocab\" WHERE langid=%d AND k2>=?1 AND k2<?2\x00SELECT word, rank, NULL, langid, id FROM \"%w\".\"%w_vocab\"%s\x00 WHERE rowid=?\x00ROLLBACK\x00IGNORE\x00ABORT\x00REPLACE\x00DELETE FROM \"%w\".\"%w_vocab\" WHERE id=%lld\x00NOT NULL constraint failed: %s.word\x00reset\x00null\x00unknown value for %s.command: \"%w\"\x00INSERT INTO \"%w\".\"%w_vocab\"(rank,langid,word,k1,k2) VALUES(%d,%d,%Q,nullif(%Q,%Q),%Q)\x00INSERT OR %s INTO \"%w\".\"%w_vocab\"(id,rank,langid,word,k1,k2) VALUES(%lld,%d,%d,%Q,nullif(%Q,%Q),%Q)\x00UPDATE OR %s \"%w\".\"%w_vocab\" SET id=%lld, rank=%d, langid=%d, word=%Q, k1=nullif(%Q,%Q), k2=%Q WHERE id=%lld\x00ALTER TABLE \"%w\".\"%w_vocab\" RENAME TO \"%w_vocab\"\x00spellfix1_translit\x00spellfix1_editdist\x00spellfix1_phonehash\x00spellfix1_scriptcode\x00spellfix1\x00922337203685477580\x00tointeger\x00toreal\x00sql error: %s\x00_rowid_\x00integer\x00no such rowid table: %s%s%s\x00.\x00SELECT group_concat(quote(name) || '.' || quote(type)) FROM pragma_table_info(?, ?)\x00source table schema mismatch\x00swarmvtab: no such SQL parameter: %s\x00maxopen\x00swarmvtab: illegal maxopen value\x00missing\x00swarmvtab: duplicate \"missing\" option\x00SELECT \"%w\"(?%s)\x00,?\x00openclose\x00swarmvtab: duplicate \"openclose\" option\x00SELECT \"%w\"(?,?%s)\x00swarmvtab: unrecognized option: %s\x00SELECT \"%w\"(?)\x00swarmvtab: parse error: %s\x00swarmvtab\x00unionvtab\x00temp\x00%s tables must be created in TEMP schema\x00wrong number of arguments for %s\x00SELECT * FROM (%z) ORDER BY 3\x00rowid range mismatch error\x00no source tables configured\x00SELECT 'CREATE TABLE xyz(' || group_concat(quote(name) || ' ' || type, ', ') || ')',max((cid+1) * (type='INTEGER' COLLATE nocase AND pk=1))-1 FROM pragma_table_info(%Q, ?)\x00SELECT rowid, * FROM %Q %s %lld\x00WHERE _rowid_ <=\x00-- \x00%z%sSELECT rowid, * FROM %s%q%s%Q\x00 UNION ALL \x00%z WHERE rowid=%lld\x00WHERE\x00%z WHERE rowid>=%lld\x00AND\x00%z %s rowid<=%lld\x00CREATE TABLE x(value)\x00wholenumber\x00CREATE TABLE y(name PRIMARY KEY,mode,mtime,sz,rawdata,data,method,z HIDDEN) WITHOUT ROWID;\x00zipfile\x00zipfile constructor requires one argument\x00error in fread()\x00error in fwrite()\x00failed to read CDS at offset %lld\x00%.*s\x00failed to read LFH at offset %d\x001.2.11\x00inflateInit2() failed (%d)\x00inflate() failed (%d)\x00zipfile: deflate() error\x00cannot find end of central directory record\x00zipfile() function requires an argument\x00cannot open file: %s\x00-rwxrwxrwx\x00zipfile: mode does not match data\x00zipfile: parse error in mode: %s\x00zipfile: missing filename\x00ab+\x00zipfile: failed to open file %s for writing\x00sz must be NULL\x00rawdata must be NULL\x00unknown compression method: %d\x00%s/\x00duplicate name: \"%s\"\x00{\"version-made-by\" : %u, \"version-to-extract\" : %u, \"flags\" : %u, \"compression\" : %u, \"time\" : %u, \"date\" : %u, \"crc32\" : %u, \"compressed-size\" : %u, \"uncompressed-size\" : %u, \"file-name-length\" : %u, \"extra-field-length\" : %u, \"file-comment-length\" : %u, \"disk-number-start\" : %u, \"internal-attr\" : %u, \"external-attr\" : %u, \"offset\" : %u }\x00zipfile_cds\x00wrong number of arguments to function zipfile()\x00first argument to zipfile() must be non-NULL\x00illegal method value: %d\x00non-directory name must not end with /\x00rbu_delta\x00step\x00close\x00create_rbu_delta\x00savestate\x00dbMain_eval\x00SQL\x00bp_progress\x00db\x00RBU\x00state\x00progress\x00close_no_error\x00temp_size_limit\x00LIMIT\x00temp_size\x00dbRbu_eval\x00METHOD\x00method\x00 - \x00oal\x00move\x00checkpoint\x00done\x00error\x00NAME TARGET-DB RBU-DB ?STATE-DB?\x00NAME TARGET-DB ?STATE-DB?\x00?-default? NAME PARENT\x00NAME\x00sqlite3rbu_db(0, 0)!=0\x00sqlite3rbu\x00sqlite3rbu_vacuum\x00sqlite3rbu_create_vfs\x00sqlite3rbu_destroy_vfs\x00sqlite3rbu_internal_test\x00incrblob\x00incrblob_%d\x00%lld\x00sqlite_unlock_notify_arg\x00sqlite_unlock_notify_argcount\x00DELETE\x00INSERT\x00UPDATE\x00SQLITE_COPY\x00SQLITE_CREATE_INDEX\x00SQLITE_CREATE_TABLE\x00SQLITE_CREATE_TEMP_INDEX\x00SQLITE_CREATE_TEMP_TABLE\x00SQLITE_CREATE_TEMP_TRIGGER\x00SQLITE_CREATE_TEMP_VIEW\x00SQLITE_CREATE_TRIGGER\x00SQLITE_CREATE_VIEW\x00SQLITE_DELETE\x00SQLITE_DROP_INDEX\x00SQLITE_DROP_TABLE\x00SQLITE_DROP_TEMP_INDEX\x00SQLITE_DROP_TEMP_TABLE\x00SQLITE_DROP_TEMP_TRIGGER\x00SQLITE_DROP_TEMP_VIEW\x00SQLITE_DROP_TRIGGER\x00SQLITE_DROP_VIEW\x00SQLITE_INSERT\x00SQLITE_PRAGMA\x00SQLITE_READ\x00SQLITE_SELECT\x00SQLITE_TRANSACTION\x00SQLITE_UPDATE\x00SQLITE_ATTACH\x00SQLITE_DETACH\x00SQLITE_ALTER_TABLE\x00SQLITE_REINDEX\x00SQLITE_ANALYZE\x00SQLITE_CREATE_VTABLE\x00SQLITE_DROP_VTABLE\x00SQLITE_FUNCTION\x00SQLITE_SAVEPOINT\x00SQLITE_RECURSIVE\x00????\x00SQLITE_DENY\x00SQLITE_IGNORE\x00RELEASE _tcl_transaction\x00COMMIT\x00ROLLBACK TO _tcl_transaction ; RELEASE _tcl_transaction\x00option\x00?CALLBACK?\x00?DATABASE? FILENAME\x00cannot open target database: \x00backup failed: \x00CALLBACK\x00cache option ?arg?\x00flush\x00size\x00size n\x00cannot convert \"\x00\" to integer\x00bad option \"\x00\": must be flush or size\x00NAME SCRIPT\x00SCRIPT\x00?OPTION? ?BOOLEAN?\x00unknown config option: \"\x00\"\x00CONFLICT-ALGORITHM TABLE FILENAME ?SEPARATOR? ?NULLINDICATOR?\x00\t\x00Error: non-null separator required for copy\x00rollback\x00abort\x00fail\x00ignore\x00replace\x00Error: \"\x00\", conflict-algorithm must be one of: rollback, abort, fail, ignore, or replace\x00SELECT * FROM '%q'\x00Error: no such table: \x00Error: \x00Error: can't malloc()\x00INSERT OR %q INTO '%q' VALUES(?\x00Error: cannot open file: \x00BEGIN\x00Error: %s line %d: expected %d columns of data but found %d\x00, failed while processing line: \x00?DATABASE? VALUE\x00-maxsize\x00-readonly\x00unknown option: \x00unable to set MEMDB content\x00extension loading is turned off at compile-time\x00-withoutnulls\x00unknown option: \"\x00?OPTIONS? SQL ?ARRAY-NAME? ?SCRIPT?\x00NAME ?SWITCHES? SCRIPT\x00-argcount\x00option requires an argument: \x00number of arguments must be non-negative\x00-deterministic\x00-directonly\x00-innocuous\x00-returntype\x00real\x00text\x00blob\x00any\x00type\x00\": must be -argcount, -deterministic, -directonly, -innocuous, or -returntype\x00?-readonly? ?DB? TABLE COLUMN ROWID\x00NULLVALUE\x00N CALLBACK\x00KEY\x00cannot open source database: \x00restore failed: \x00restore failed: source database busy\x00?DATABASE?\x00(step|sort|autoindex)\x00sort\x00autoindex\x00vmstep\x00bad argument: should be autoindex, step, sort or vmstep\x00MILLISECONDS\x00?CALLBACK? ?MASK?\x00trace type\x00SAVEPOINT _tcl_transaction\x00[TYPE] SCRIPT\x00transaction type\x00BEGIN EXCLUSIVE\x00BEGIN IMMEDIATE\x00?SCRIPT?\x00SUB-COMMAND ?ARGS?\x00hook ?SCRIPT?\x00INDEX\x00-use-legacy-prepare\x00-last-stmt-ptr\x00%p\x00unknown argument: \x00authorizer\x00backup\x00bind_fallback\x00busy\x00cache\x00changes\x00collate\x00collation_needed\x00commit_hook\x00complete\x00config\x00copy\x00deserialize\x00enable_load_extension\x00errorcode\x00exists\x00function\x00interrupt\x00last_insert_rowid\x00nullvalue\x00onecolumn\x00preupdate\x00profile\x00rekey\x00restore\x00rollback_hook\x00serialize\x00status\x00timeout\x00total_changes\x00trace\x00trace_v2\x00transaction\x00unlock_notify\x00update_hook\x00version\x00wal_hook\x00defensive\x00dqs_ddl\x00dqs_dml\x00enable_fkey\x00enable_qpsg\x00enable_trigger\x00enable_view\x00fts3_tokenizer\x00legacy_alter_table\x00legacy_file_format\x00load_extension\x00no_ckpt_on_close\x00reset_database\x00trigger_eqp\x00trusted_schema\x00writable_schema\x00statement\x00row\x00deferred\x00exclusive\x00immediate\x00depth\x00hook\x00new\x00old\x00HANDLE ?FILENAME? ?-vfs VFSNAME? ?-readonly BOOLEAN? ?-create BOOLEAN? ?-nofollow BOOLEAN? ?-nomutex BOOLEAN? ?-fullmutex BOOLEAN? ?-uri BOOLEAN?\x00-version\x00-sourceid\x00-has-codec\x000\x00-key\x00-vfs\x00-create\x00-nofollow\x00-nomutex\x00-fullmutex\x00-uri\x00-translatefilename\x00sqlite3\x00sqlite\x003.33.0\x00if {[llength $argv]>=1} {\nset argv0 [lindex $argv 0]\nset argv [lrange $argv 1 end]\nsource $argv0\n} else {\nset line {}\nwhile {![eof stdin]} {\nif {$line!=\"\"} {\nputs -nonewline \"> \"\n} else {\nputs -nonewline \"% \"\n}\nflush stdout\nappend line [gets stdin]\nif {[info complete $line]} {\nif {[catch {uplevel #0 $line} result]} {\nputs stderr \"Error: $result\"\n} elseif {$result!=\"\"} {\nputs $result\n}\nset line {}\n} else {\nappend line \\n\n}\n}\n}\n\x00SQLITE_DEBUG_BREAK\x00attach debugger to process %d and press any key to continue.\n\x00utf-8\x00argc\x00argv0\x00argv\x00errorInfo\x00%s: %s\n\x00SQLITE-CONNECTION\x00command not found: \x00error code %s (%d) does not match sqlite3_errcode %s (%d)\x00OMIT_MISUSE\x00wrong # args: should be \"\x00 DB FORMAT STRING\x00 DB HEX\x00 DB\x00 DB SQL\x00%z%s%s\x00%s%n\x00abcdefghijklmnopqrstuvwxyz\x00 DB FORMAT STRING ?COUNT?\x00 DB\"\x00 FILENAME\"\x00%02x\x00%04x\x00tkt2213 is not fixed\x00text16\x00bytes\x00bytes16\x00noop\x00x_coalesce\x00hex8\x00hex16\x00tkt2213func\x00pointer_change\x00counter1\x00counter2\x00intreal\x00x_sqlite_exec\x00value of 40 handed to x_count\x00x_count totals to 42\x00x_count\x00legacy_count\x00 TEXT\"\x00 FORMAT INT INT INT\"\x00argument is not a valid 64-bit integer\x00 FORMAT INT INT ?STRING?\"\x00 INT FORMAT INT INT ?STRING?\"\x00N must be non-negative\x00 FORMAT INT INT DOUBLE\"\x00 FORMAT DOUBLE DOUBLE\"\x00 FORMAT STRING\"\x00%08x%08x\x002nd argument should be 16-characters of hex\x00DB BOOLEAN\x00DB dbname tblname colname\x00CHANNEL ROWID\x00DB-HANDLE NAME CMP-PROC DEL-PROC\x00sqlite3_create_collate_v2() failed to detect an invalid encoding\x00utf8\x00utf16\x00utf16le\x00utf16be\x00DB NAME NARG ENC SWITCHES...\x00encoding\x00-func\x00-step\x00-final\x00-destroy\x00switch\x00DB-HANDLE FILE ?PROC?\x00this build omits sqlite3_load_extension()\x00DB-HANDLE ONOFF\x00string\x00value\x00first argument should be one of: int int64 string double null value\x00 DB FUNCTION-NAME\x00 <STMT>\x00STMT PARAMETER RESETFLAG\x00SQLITE_STMTSTATUS_FULLSCAN_STEP\x00SQLITE_STMTSTATUS_SORT\x00SQLITE_STMTSTATUS_AUTOINDEX\x00SQLITE_STMTSTATUS_VM_STEP\x00SQLITE_STMTSTATUS_REPREPARE\x00SQLITE_STMTSTATUS_RUN\x00SQLITE_STMTSTATUS_MEMUSED\x00NBYTE\x00DB DBNAME\x00DB DBNAME SNAPSHOT\x00SNAPSHOT\x00SNAPSHOT1 SNAPSHOT2\x00bad SNAPSHOT\x00FILE\x00PATH\x00 DB STMT\x00 STMT\x00 FROM-STMT TO-STMT\x00 VM IDX VALUE (null|static|normal)\"\x00static\x00static-nbytes\x00normal\x00blob10\x00abc\x00xyz\x00pq\x004th argument should be \"null\" or \"static\" or \"normal\"\x00(%d) \x00test_collate\x00UTF-8\x00UTF-16LE\x00UTF-16BE\x00 <DB> <utf8> <utf16le> <utf16be>\x00utf16bin\x00utf16_unaligned\x00utf16_aligned\x00test_function\x00<error code>\x00STMT IDX N\x00 STMT N VALUE\x00NaN\x00SNaN\x00-NaN\x00-SNaN\x00+Inf\x00-Inf\x00Epsilon\x00-Epsilon\x00NaN0\x00-NaN0\x00 STMT N\x00 STMT N VALUE BYTES\x00 STMT N DATA BYTES\x00cannot use %d blob bytes, have %d\x00STMT\x00STMT N\x00STMT NAME\x00 DB sql bytes ?tailvar?\x00 DB sql bytes tailvar\x00 DB sql bytes flags tailvar\x00\x00SELECT 1\x00 filename options-list\x00FILENAME FLAGS VFS\x00SQLITE_OPEN_READONLY\x00SQLITE_OPEN_READWRITE\x00SQLITE_OPEN_CREATE\x00SQLITE_OPEN_DELETEONCLOSE\x00SQLITE_OPEN_EXCLUSIVE\x00SQLITE_OPEN_AUTOPROXY\x00SQLITE_OPEN_MAIN_DB\x00SQLITE_OPEN_TEMP_DB\x00SQLITE_OPEN_TRANSIENT_DB\x00SQLITE_OPEN_MAIN_JOURNAL\x00SQLITE_OPEN_TEMP_JOURNAL\x00SQLITE_OPEN_SUBJOURNAL\x00SQLITE_OPEN_SUPER_JOURNAL\x00SQLITE_OPEN_NOMUTEX\x00SQLITE_OPEN_FULLMUTEX\x00SQLITE_OPEN_SHAREDCACHE\x00SQLITE_OPEN_PRIVATECACHE\x00SQLITE_OPEN_WAL\x00SQLITE_OPEN_URI\x00flag\x00<utf-16 sql>\x00 STMT column\x00FLOAT\x00TEXT\x00BLOB\x00 DB MAGIC\x00SQLITE_MAGIC_OPEN\x00SQLITE_MAGIC_CLOSED\x00SQLITE_MAGIC_BUSY\x00SQLITE_MAGIC_ERROR\x00 DB function-name\x00VARIABLE\x00?N?\x001234567890000000\x00__one\x00__two\x00notadatabase\x00Unexpected non-zero errno: \x00DB [DBNAME]\x00%u\x00DB DBNAME SIZE\x00 DB PWD\x00 DB FLAG\x00%d %d\x00 DB ?AUXDB?\x00 DB ID VALUE\x00unknown limit type: \x00SQLITE_LIMIT_LENGTH\x00SQLITE_LIMIT_SQL_LENGTH\x00SQLITE_LIMIT_COLUMN\x00SQLITE_LIMIT_EXPR_DEPTH\x00SQLITE_LIMIT_COMPOUND_SELECT\x00SQLITE_LIMIT_VDBE_OP\x00SQLITE_LIMIT_FUNCTION_ARG\x00SQLITE_LIMIT_ATTACHED\x00SQLITE_LIMIT_LIKE_PATTERN_LENGTH\x00SQLITE_LIMIT_VARIABLE_NUMBER\x00SQLITE_LIMIT_TRIGGER_DEPTH\x00SQLITE_LIMIT_WORKER_THREADS\x00SQLITE_LIMIT_TOOSMALL\x00SQLITE_LIMIT_TOOBIG\x00SEED ?DB?\x00BOOLEAN\x00current\x00max\x00min\x00recyclable\x00DB ?NAME?\x00passive\x00full\x00restart\x00truncate\x00DB MODE ?NAME?\x00mode\x00DB VALUE\x00COMMAND ...\x00command has no objProc: \x00%d %d %d %s\n\x00SQLITE_TESTCTRL_LOCALTIME_FAULT\x00SQLITE_TESTCTRL_SORTER_MMAP\x00SQLITE_TESTCTRL_IMPOSTER\x00SQLITE_TESTCTRL_INTERNAL_FUNCTIONS\x00VERB ARGS...\x00VERB\x00ONOFF\x00DB LIMIT\x00DB dbName onOff tnum\x00ru_utime=%d.%06d ru_stime=%d.%06d ru_minflt=%d ru_majflt=%d\x00DB OPT BOOLEAN\x00unknown optimization - should be one of:\x00all\x00none\x00query-flattener\x00groupby-order\x00factor-constants\x00distinct-opt\x00cover-idx-scan\x00order-by-idx-join\x00transitive\x00omit-noop-join\x00stat4\x00skip-scan\x00push-down\x00DB NAME ...\x00no such extension: \x00initialization of \x00 failed: \x00amatch\x00closure\x00fileio\x00nextchar\x00series\x00spellfix\x00totype\x00BOOL\x00DB SQL1 NSTEP SQL2\x00data error: (a!=b)\x00checksum mismatch\x00sql error: \x00TYPE\x00Deliberate panic\x00DB SETTING [VALUE]\x00SQLITE_*\x00DBCONFIG_*\x00ENABLE_*\x00unknown sqlite3_db_config setting\x00FKEY\x00TRIGGER\x00FTS3_TOKENIZER\x00LOAD_EXTENSION\x00NO_CKPT_ON_CLOSE\x00QPSG\x00TRIGGER_EQP\x00RESET_DB\x00DEFENSIVE\x00WRITABLE_SCHEMA\x00LEGACY_ALTER_TABLE\x00DQS_DML\x00DQS_DDL\x00LEGACY_FILE_FORMAT\x00icecube\x00DB ?DBNAME?\x00DB OFFSET DATA\x00HEXDB\x00| size %d pagesize %d\x00bad 'pagesize' field\x00bad 'size' field\x00| page %d offset %d\x00| %d: %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x\x00sqlite_search_count\x00sqlite_found_count\x00sqlite_sort_count\x00sqlite3_max_blobsize\x00sqlite_like_count\x00sqlite_interrupt_count\x00sqlite_open_file_count\x00sqlite_current_time\x00sqlite3_xferopt_count\x00sqlite3_pager_readdb_count\x00sqlite3_pager_writedb_count\x00sqlite3_pager_writej_count\x00unaligned_string_counter\x00sqlite_last_needed_collation\x00sqlite_query_plan\x00sqlite_opentemp_count\x00sqlite_static_bind_value\x00sqlite_static_bind_nbyte\x00sqlite_temp_directory\x00sqlite_data_directory\x00bitmask_size\x00longdouble_size\x00sqlite_sync_count\x00sqlite_fullsync_count\x00db_enter\x00db_leave\x00sqlite3_mprintf_int\x00sqlite3_mprintf_int64\x00sqlite3_mprintf_long\x00sqlite3_mprintf_str\x00sqlite3_snprintf_str\x00sqlite3_mprintf_stronly\x00sqlite3_mprintf_double\x00sqlite3_mprintf_scaled\x00sqlite3_mprintf_hexdouble\x00sqlite3_mprintf_z_test\x00sqlite3_mprintf_n_test\x00sqlite3_snprintf_int\x00sqlite3_last_insert_rowid\x00sqlite3_exec_printf\x00sqlite3_exec_hex\x00sqlite3_exec\x00sqlite3_exec_nr\x00sqlite3_get_table_printf\x00sqlite3_close\x00sqlite3_close_v2\x00sqlite3_create_function\x00sqlite3_create_aggregate\x00sqlite3_drop_modules\x00sqlite_register_test_function\x00sqlite_abort\x00sqlite_bind\x00breakpoint\x00sqlite3_key\x00sqlite3_rekey\x00sqlite_set_magic\x00sqlite3_interrupt\x00sqlite_delete_function\x00sqlite_delete_collation\x00sqlite3_get_autocommit\x00sqlite3_busy_timeout\x00printf\x00sqlite3IoTrace\x00clang_sanitize_address\x00sqlite3_db_config\x00bad_behavior\x00register_dbstat_vtab\x00sqlite3_connection_pointer\x00intarray_addr\x00int64array_addr\x00doublearray_addr\x00textarray_addr\x00sqlite3_bind_int\x00sqlite3_bind_zeroblob\x00sqlite3_bind_zeroblob64\x00sqlite3_bind_int64\x00sqlite3_bind_double\x00sqlite3_bind_null\x00sqlite3_bind_text\x00sqlite3_bind_text16\x00sqlite3_bind_blob\x00sqlite3_bind_parameter_count\x00sqlite3_bind_parameter_name\x00sqlite3_bind_parameter_index\x00sqlite3_clear_bindings\x00sqlite3_sleep\x00sqlite3_errcode\x00sqlite3_extended_errcode\x00sqlite3_errmsg\x00sqlite3_errmsg16\x00sqlite3_open\x00sqlite3_open16\x00sqlite3_open_v2\x00sqlite3_complete16\x00sqlite3_normalize\x00sqlite3_prepare\x00sqlite3_prepare16\x00sqlite3_prepare_v2\x00sqlite3_prepare_v3\x00sqlite3_prepare_tkt3134\x00sqlite3_prepare16_v2\x00sqlite3_finalize\x00sqlite3_stmt_status\x00sqlite3_reset\x00sqlite3_expired\x00sqlite3_transfer_bindings\x00sqlite3_changes\x00sqlite3_step\x00sqlite3_sql\x00sqlite3_expanded_sql\x00sqlite3_next_stmt\x00sqlite3_stmt_readonly\x00sqlite3_stmt_isexplain\x00sqlite3_stmt_busy\x00uses_stmt_journal\x00sqlite3_release_memory\x00sqlite3_db_release_memory\x00sqlite3_db_cacheflush\x00sqlite3_system_errno\x00sqlite3_db_filename\x00sqlite3_db_readonly\x00sqlite3_soft_heap_limit\x00sqlite3_soft_heap_limit64\x00sqlite3_hard_heap_limit64\x00sqlite3_thread_cleanup\x00sqlite3_pager_refcounts\x00sqlite3_load_extension\x00sqlite3_enable_load_extension\x00sqlite3_extended_result_codes\x00sqlite3_limit\x00dbconfig_maindbname_icecube\x00save_prng_state\x00restore_prng_state\x00reset_prng_state\x00prng_seed\x00extra_schema_checks\x00database_never_corrupt\x00database_may_be_corrupt\x00optimization_control\x00tcl_objproc\x00sqlite3_column_count\x00sqlite3_data_count\x00sqlite3_column_type\x00sqlite3_column_blob\x00sqlite3_column_double\x00sqlite3_column_int64\x00sqlite3_column_text\x00sqlite3_column_name\x00sqlite3_column_int\x00sqlite3_column_bytes\x00sqlite3_column_decltype\x00sqlite3_column_database_name\x00sqlite3_column_table_name\x00sqlite3_column_origin_name\x00sqlite3_column_bytes16\x00sqlite3_column_text16\x00sqlite3_column_name16\x00add_alignment_test_collations\x00sqlite3_column_decltype16\x00sqlite3_column_database_name16\x00sqlite3_column_table_name16\x00sqlite3_column_origin_name16\x00sqlite3_create_collation_v2\x00sqlite3_global_recover\x00working_64bit_int\x00vfs_unlink_test\x00vfs_initfail_test\x00vfs_unregister_all\x00vfs_reregister_all\x00file_control_test\x00file_control_lasterrno_test\x00file_control_lockproxy_test\x00file_control_chunksize_test\x00file_control_sizehint_test\x00file_control_data_version\x00file_control_persist_wal\x00file_control_powersafe_overwrite\x00file_control_vfsname\x00file_control_tempfilename\x00sqlite3_vfs_list\x00sqlite3_create_function_v2\x00add_test_collate\x00add_test_collate_needed\x00add_test_function\x00add_test_utf16bin_collate\x00sqlite3_test_errstr\x00tcl_variable_type\x00sqlite3_enable_shared_cache\x00sqlite3_shared_cache_report\x00sqlite3_libversion_number\x00sqlite3_table_column_metadata\x00sqlite3_blob_reopen\x00pcache_stats\x00sqlite3_unlock_notify\x00sqlite3_wal_checkpoint\x00sqlite3_wal_checkpoint_v2\x00sqlite3_wal_autocheckpoint\x00test_sqlite3_log\x00print_explain_query_plan\x00sqlite3_test_control\x00getrusage\x00load_static_extension\x00sorter_test_fakeheap\x00sorter_test_sort4_helper\x00vfs_current_time_int64\x00sqlite3_snapshot_get\x00sqlite3_snapshot_open\x00sqlite3_snapshot_free\x00sqlite3_snapshot_cmp\x00sqlite3_snapshot_recover\x00sqlite3_snapshot_get_blob\x00sqlite3_snapshot_open_blob\x00sqlite3_snapshot_cmp_blob\x00sqlite3_delete_database\x00atomic_batch_write\x00sqlite3_mmap_warm\x00sqlite3_config_sorterref\x00decode_hexdb\x00test_write_db\x00*** OBSOLETE VARIABLE ***\x00 FILENAME N-PAGE\"\x00 ID\"\x00ref\x00page\x00err\x00hit\x00miss\x00ovfl\x00 ID PGNO\"\x00 PAGE\"\x00 PAGE DATA\"\x00 N-MEGABYTES FILE\"\x00open failed: \x00Hello, World!\x00write failed: \x00 PENDING-BYTE\"\x00fault simulator script failed: [%s]\x00 SCRIPT\"\x00 SIZE PROGRAM\"\x00sqlite_io_error_pending\x00sqlite_io_error_persist\x00sqlite_io_error_hit\x00sqlite_io_error_hardhit\x00sqlite_diskfull_pending\x00sqlite_diskfull\x00sqlite_pending_byte\x00pager_open\x00pager_close\x00pager_commit\x00pager_rollback\x00pager_stmt_begin\x00pager_stmt_commit\x00pager_stmt_rollback\x00pager_stats\x00pager_pagecount\x00page_get\x00page_lookup\x00page_unref\x00page_read\x00page_write\x00page_number\x00pager_truncate\x00fake_big_file\x00sqlite3BitvecBuiltinTest\x00sqlite3_test_control_pending_byte\x00sqlite3_test_control_fault_install\x00 FILENAME NCACHE FLAGS\"\x00read\x00write\x00 ID TABLENUM WRITEABLE\"\x00 START MULTIPLIER COUNT INCREMENT\"\x00putVarint returned %d - should be between 1 and 9\x00putVarint returned %d and getVarint returned %d\x00Wrote 0x%016llx and got back 0x%016llx\x00putVarint returned %d and GetVarint32 returned %d\x00Wrote 0x%016llx and got back 0x%016llx from GetVarint32\x00 DB-HANDLE ?N?\"\x00No such db-handle: \"\x00 BT NCACHE\"\x00?-intkey? CSR KEY VALUE\x00btree_insert\x00btree_open\x00btree_close\x00btree_begin_transaction\x00btree_pager_stats\x00btree_cursor\x00btree_close_cursor\x00btree_next\x00btree_eof\x00btree_payload_size\x00btree_first\x00btree_varint_test\x00btree_from_db\x00btree_ismemdb\x00btree_set_cache_size\x00thread ID must be an upper case letter\x00 ID FILENAME\x00thread \x00 is already running\x00failed to create the thread\x00 ID\x00no such thread\x00 ID N\x00column number out of range\x00no database is open\x00 ID SQL\x00no virtual machine available\x00 IDL\x00 ID1 ID2\x00 ID DB\x00thread_create\x00thread_wait\x00thread_halt\x00thread_argc\x00thread_argv\x00thread_colname\x00thread_result\x00thread_error\x00thread_compile\x00thread_step\x00thread_finalize\x00thread_swap\x00thread_db_get\x00thread_db_put\x00thread_stmt_get\x00 <repeat-count> <do-calls>\x00hello world\x00UTF8\x00UTF16LE\x00UTF16BE\x00UTF16\x00No such encoding: \x00 <string/blob> <from enc> <to enc>\x00binarize\x00test_value_overhead\x00test_translate\x00translate_selftest\x00out of memory in the crash simulator\n\x00atomic\x00atomic512\x00atomic1k\x00atomic2k\x00atomic4k\x00atomic8k\x00atomic16k\x00atomic32k\x00atomic64k\x00sequential\x00safe_append\x00powersafe_overwrite\x00batch-atomic\x00-sectorsize\x00-characteristics\x00Bad option: \"\x00\" - must be \"-characteristics\" or \"-sectorsize\"\x00Option requires an argument: \"\x00no such flag\x00ENABLE ?DEFAULT?\x00crash\x00?OPTIONS? DELAY CRASHFILE\x00Filename is too long: \"\x00NWRITE\x00?-default? PARENT-VFS\x00-default\x00\": must be -default\x00Error in jt_register\x00sqlite3_crash_enable\x00sqlite3_crashparams\x00sqlite3_crash_now\x00sqlite3_simulate_device\x00sqlite3_crash_on_write\x00unregister_devsim\x00register_jt_vfs\x00unregister_jt_vfs\x00client_create\x00client_wait\x00client_halt\x00client_argc\x00client_argv\x00client_colname\x00client_result\x00client_error\x00client_compile\x00client_step\x00client_reset\x00client_finalize\x00client_swap\x00echo_module_fail(%s,%s)\x00echo-vtab-error: %s\x00SELECT * FROM %Q\x00PRAGMA index_list(%s)\x00PRAGMA index_info(%s)\x00echo_module\x00SELECT sql FROM sqlite_schema WHERE type = 'table' AND name = ?\x00%s%s\x00xCreate\x00CREATE TABLE %Q(logmsg)\x00xConnect\x00xDisconnect\x00xDestroy\x00DROP TABLE %Q\x00xOpen\x00xNext\x00xColumn\x00xFilter\x00, *\x00%z, %s\x00%z, NULL\x00echo_module_ignore_usable\x00xBestIndex\x00echo_module_cost\x00SELECT count(*) FROM %Q\x00SELECT rowid%z FROM %Q\x00rowid\x00=\x00<\x00>\x00<=\x00>=\x00LIKE\x00like\x00glob\x00 %s %s LIKE (SELECT '%%'||?||'%%')\x00 %s %s %s ?\x00DESC\x00ASC\x00 ORDER BY %s %s\x00xUpdate\x00 SET\x00UPDATE %Q\x00 SET rowid=?1 \x00%s %Q=?%d\x00 WHERE rowid=?%d\x00DELETE FROM %Q WHERE rowid = ?1\x00INSERT INTO %Q (\x00%s%Q\x00%s?%d\x00) VALUES(\x00echo(%s)\x00xBegin\x00echo_module_begin_fail\x00xSync\x00echo_module_sync_fail\x00xCommit\x00xRollback\x00::echo_glob_overload\x00xRename\x00ALTER TABLE %s RENAME TO %s%s\x00echo\x00echo_v2\x00DB SQL\x00register_echo_module\x00sqlite3_declare_vtab\x00N/A\x00sqlite3_create_collation\x00Error testing function: \x00sqlite3_malloc\x00sqlite3_realloc\x00c_misuse_test\x00c_realloc_test\x00c_collation_test\x00sqlite3_reset_auto_extension\x00npage\x00finish\x00remaining\x00pagecount\x00CMDNAME DESTHANDLE DESTNAME SRCHANDLE SRCNAME\x00sqlite3_backup_init() failed\x00sqlite3_backup\x00wrong number of arguments\x00unexpected: %s\x00eq\x00gt\x00le\x00lt\x00ge\x00match\x00ne\x00isnot\x00isnotnull\x00isnull\x00op\x00column\x00usable\x00desc\x00cost\x00orderby\x00idxnum\x00idxstr\x00rows\x00use\x00omit\x00unexpected: %d\x00tcl\x00register_tcl_module\x00incrblob_\x00DB DATABASE TABLE COLUMN ROWID FLAGS VARNAME\x00HANDLE\x00CHANNEL OFFSET N\x00out of memory in testdata/sqlite-src-3330000/src/test_blob.c\x00HANDLE OFFSET DATA ?NDATA?\x00sqlite3_blob_open\x00sqlite3_blob_close\x00sqlite3_blob_bytes\x00sqlite3_blob_read\x00sqlite3_blob_write\x00sqlite_options\x00malloc_usable_size\x001\x00rowid32\x00casesensitivelike\x00curdir\x00win32malloc\x00debug\x00default_ckptfullfsync\x00direct_read\x00dirsync\x00lfs\x00pagecache_overflow_stats\x00mmap\x00worker_threads\x008\x00memdebug\x008_3_names\x00cursorhints\x00hiddencolumns\x00mem3\x00mem5\x00offset_sql_func\x00snapshot\x00mutex\x00mutex_noop\x00altertable\x00api_armor\x00atomicwrite\x00json1\x00has_codec\x00like_match_blobs\x00attach\x00auth\x00autoinc\x00autoreset\x00autovacuum\x00default_autovacuum\x00between_opt\x00builtin_test\x00bloblit\x00cast\x00check\x00cte\x00columnmetadata\x00oversize_cell_check\x00compileoption_diags\x00compound\x00conflict\x00crashtest\x00datetime\x00decltype\x00deprecated\x00diskio\x00floatingpoint\x00foreignkey\x00fts1\x00fts2\x00fts3\x00fts5\x00fts3_unicode\x00fts4_deferred\x00gettable\x00icu\x00icu_collations\x00integrityck\x00legacyformat\x00like_opt\x00load_ext\x00localtime\x00lookaside\x00long_double\x00memorydb\x00memorymanage\x00mergesort\x00null_trim\x00or_opt\x00rbu\x00pager_pragmas\x00pragma\x00reindex\x00rtree\x00rtree_int_only\x00schema_pragmas\x00schema_version\x00session\x00stmtvtab\x00scanstatus\x00lock_proxy_pragmas\x00prefer_proxy_locking\x00shared_cache\x00subquery\x00tclvar\x00threadsafe\x00threadsafe1\x00threadsafe2\x00tempdb\x00trigger\x00truncate_opt\x00vacuum\x00view\x00vtab\x00wal\x00wsd\x00update_delete_limit\x00fast_secure_delete\x00secure_delete\x00userauth\x00multiplex_ext_overwrite\x00yytrackmaxstackdepth\x00sqllog\x00uri_00_error\x00normalize\x00windowfunc\x00SQLITE_MAX_LENGTH\x00SQLITE_MAX_COLUMN\x00SQLITE_MAX_SQL_LENGTH\x00SQLITE_MAX_EXPR_DEPTH\x00SQLITE_MAX_COMPOUND_SELECT\x00SQLITE_MAX_VDBE_OP\x00SQLITE_MAX_FUNCTION_ARG\x00SQLITE_MAX_VARIABLE_NUMBER\x00SQLITE_MAX_PAGE_SIZE\x00SQLITE_MAX_PAGE_COUNT\x00SQLITE_MAX_LIKE_PATTERN_LENGTH\x00SQLITE_MAX_TRIGGER_DEPTH\x00SQLITE_DEFAULT_CACHE_SIZE\x00SQLITE_DEFAULT_PAGE_SIZE\x00SQLITE_DEFAULT_FILE_FORMAT\x00SQLITE_DEFAULT_SYNCHRONOUS\x00SQLITE_DEFAULT_WAL_SYNCHRONOUS\x00SQLITE_MAX_ATTACHED\x00SQLITE_MAX_DEFAULT_PAGE_SIZE\x00SQLITE_MAX_WORKER_THREADS\x00TEMP_STORE\x00%s-journal\x00%s-wal\x00%s-shm\x00%s%03d\x00%s-journal%03d\x00%s-wal%03d\x00Loadable extensions are not supported\x00demo\x00register_demovfs\x00unregister_demovfs\x00devsym\x00writecrash\x00CREATE TABLE xyz(dir, name);\x00CREATE TABLE xyz(path, size, data);\x00WITH r(d) AS ( SELECT CASE WHEN dir=?2 THEN ?3 ELSE dir END || '/' || name FROM fsdir WHERE dir=?1 AND name NOT LIKE '.%' UNION ALL SELECT dir || '/' || name FROM r, fsdir WHERE dir=d AND name NOT LIKE '.%') SELECT d FROM r;\x00/\x00CREATE TABLE x(path TEXT, data TEXT)\x00SELECT * FROM %Q.%Q WHERE rowid=?\x00fs\x00fstree\x00register_fs_module\x00abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-!,:*^+=_|?/<> \x00sqlite3_prepare_v2() error: %s\x000123456789abcdef\x00x'\x00test_agg_errmsg16\x00randstr\x00test_destructor\x00test_destructor16\x00hex_to_utf16be\x00hex_to_utf16le\x00hex_to_utf8\x00test_destructor_count\x00test_auxdata\x00test_error\x00test_eval\x00test_isolation\x00test_counter\x00real2hex\x00test_decode\x00test_extract\x00test_zeroblob\x00test_getsubtype\x00test_setsubtype\x00test_frombind\x00tx\x00funcxx_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789\x00nullx_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789\x00sqlite3_create_function abused test failed\x00invalid matchinfo blob passed to function rank()\x00wrong number of arguments to function rank()\x00rank\x00autoinstall_test_functions\x00abuse_create_function\x00install_fts3_rank_function\x000123456789ABCDEF\x00FILENAME OFFSET AMT\x00r\x00cannot open input file \x00FILENAME OFFSET HEXDATA\x00r+b\x00r+\x00cannot open output file \x00HEXDATA\x00[utf8_to_utf8] unavailable - SQLITE_DEBUG not defined\x00BLOB VARNAME\x00LIST\x00hexio_read\x00hexio_write\x00hexio_get_int\x00hexio_render_int16\x00hexio_render_int32\x00utf8_to_utf8\x00read_fts3varint\x00make_fts3record\x00mem\x00pcache\x00Unknown argument: \"\x00init_wrapper_install\x00init_wrapper_query\x00init_wrapper_uninstall\x00init_wrapper_clear\x00CREATE TABLE x(value INTEGER PRIMARY KEY)\x00CREATE VIRTUAL TABLE temp.%Q USING %Q\x00INTARRAY\x00SQLITE_NOMEM\x00sqlite3_intarray_create\x00sqlite3_intarray_bind\x00jt\x00-journal\x00NBYTES\x00PRIOR NBYTES\x00bad pointer: \x00PRIOR\x00ADDRESS SIZE HEX\x00size must be positive\x00no data\x00ADDRESS SIZE\x00?RESET?\x00DEPT\x00FILENAME\x00COUNTER ?OPTIONS?\x00-repeat\x00-benigncnt\x00TITLE\x00SUB-COMMAND ...\x00start\x00stop\x00dump\x00clear\x00sync\x00SIZE N\x00INSTALLFLAG DISCARDCHANCE PRNGSEEED HIGHSTRESS\x00discard-chance should be between 0 and 100\x00SIZE COUNT\x00BUFID SIZE COUNT\x00illegal arguments - see documentation\x00NBYTE NMINALLOC\x00[DB]\x00sqlite3_db_config(db, 99999) does not return SQLITE_ERROR\x00sqlite3_config(99999) does not return SQLITE_ERROR\x00PARAMETER RESETFLAG\x00SQLITE_STATUS_MEMORY_USED\x00SQLITE_STATUS_MALLOC_SIZE\x00SQLITE_STATUS_PAGECACHE_USED\x00SQLITE_STATUS_PAGECACHE_OVERFLOW\x00SQLITE_STATUS_PAGECACHE_SIZE\x00SQLITE_STATUS_SCRATCH_USED\x00SQLITE_STATUS_SCRATCH_OVERFLOW\x00SQLITE_STATUS_SCRATCH_SIZE\x00SQLITE_STATUS_PARSER_STACK\x00SQLITE_STATUS_MALLOC_COUNT\x00DB PARAMETER RESETFLAG\x00SQLITE_\x00DBSTATUS_\x00LOOKASIDE_USED\x00CACHE_USED\x00SCHEMA_USED\x00STMT_USED\x00LOOKASIDE_HIT\x00LOOKASIDE_MISS_SIZE\x00LOOKASIDE_MISS_FULL\x00CACHE_HIT\x00CACHE_MISS\x00CACHE_WRITE\x00DEFERRED_FKS\x00CACHE_USED_SHARED\x00CACHE_SPILL\x00?INTEGER?\x00sqlite3_free\x00memset\x00memget\x00sqlite3_memory_used\x00sqlite3_memory_highwater\x00sqlite3_memdebug_backtrace\x00sqlite3_memdebug_dump\x00sqlite3_memdebug_fail\x00sqlite3_memdebug_pending\x00sqlite3_memdebug_settitle\x00sqlite3_memdebug_malloc_count\x00sqlite3_memdebug_log\x00sqlite3_config_pagecache\x00sqlite3_config_alt_pcache\x00sqlite3_status\x00sqlite3_db_status\x00install_malloc_faultsim\x00sqlite3_config_heap\x00sqlite3_config_heap_size\x00sqlite3_config_memstatus\x00sqlite3_config_lookaside\x00sqlite3_config_error\x00sqlite3_config_uri\x00sqlite3_config_cis\x00sqlite3_config_pmasz\x00sqlite3_db_config_lookaside\x00sqlite3_dump_memsys3\x00sqlite3_dump_memsys5\x00sqlite3_install_memsys3\x00sqlite3_memdebug_vfs_oom_test\x00%05u\x00 FILENAME [OFFSET AMT]\"\x00unable to open file \"\x00\" for reading\x00md5\x00md5-10x8\x00md5file\x00md5file-10x8\x00md5sum\x00%03d\x00multiplexor.xAccess failure on %s\x00multiplexor.xOpen failure on %s\x00multiplex_control\x00chunksize\x00multiplex_truncate\x00multiplex/%z\x00multiplex\x00NAME MAKEDEFAULT\x00-force\x00?-force?\x00enable\x00chunk_size\x00max_chunks\x00HANDLE DBNAME SUB-COMMAND INT-VALUE\x00expected database handle, got \"\x00sqlite3_multiplex_initialize\x00sqlite3_multiplex_shutdown\x00sqlite3_multiplex_control\x00fast\x00recursive\x00static_main\x00static_mem\x00static_open\x00static_prng\x00static_lru\x00static_pmem\x00static_app1\x00static_app2\x00static_app3\x00static_vfs1\x00static_vfs2\x00static_vfs3\x00mutex counters are \x00already installed\x00not installed\x00singlethread\x00multithread\x00serialized\x00mutex name\x00disable_mutex_init\x00disable_mutex_try\x00sqlite3_shutdown\x00sqlite3_initialize\x00sqlite3_config\x00enter_static_mutex\x00leave_static_mutex\x00enter_db_mutex\x00leave_db_mutex\x00alloc_dealloc_mutex\x00install_mutex_counters\x00read_mutex_counters\x00clear_mutex_counters\x00\x00\x00\x00\x00\x00\x00\x00vfslog/%z\x00sqlite_ostrace1.....\x00xClose\x00xRead\x00xWrite\x00xTruncate\x00xFilesize\x00xLock\x00xUnlock\x00xCheckResLock\x00xFileControl\x00xSectorSize\x00xDeviceChar\x00xDelete\x00xAccess\x00xFullPathname\x00xRandomness\x00xSleep\x00xCurrentTime\x00xShmUnmap\x00xShmLock\x00xShmBarrier\x00xShmMap\x00annotation\x00CREATE TABLE xxx(event, file, click, rc, size, offset)\x00vfslog\x00VFS\x00failed\x00VFS PARENT LOGFILE\x00bad sqlite3 handle: \x00annotate\x00finalize\x00register\x00quota/%z\x00quota\x00::piLimit_\x00PATTERN LIMIT SCRIPT\x00FILENAME MODE\x00HANDLE SIZE NELEM\x00HANDLE SIZE NELEM CONTENT\x00HANDLE ?HARDSYNC?\x00HANDLE OFFSET WHENCE\x00SEEK_SET\x00SEEK_CUR\x00SEEK_END\x00WHENCE should be SEEK_SET, SEEK_CUR, or SEEK_END\x00HANDLE SIZE\x00PATTERN TEXT\x00sqlite3_quota_initialize\x00sqlite3_quota_shutdown\x00sqlite3_quota_set\x00sqlite3_quota_file\x00sqlite3_quota_dump\x00sqlite3_quota_fopen\x00sqlite3_quota_fread\x00sqlite3_quota_fwrite\x00sqlite3_quota_fclose\x00sqlite3_quota_fflush\x00sqlite3_quota_fseek\x00sqlite3_quota_rewind\x00sqlite3_quota_ftell\x00sqlite3_quota_ftruncate\x00sqlite3_quota_file_size\x00sqlite3_quota_file_truesize\x00sqlite3_quota_file_mtime\x00sqlite3_quota_remove\x00sqlite3_quota_glob\x00sqlite3_quota_file_available\x00sqlite3_quota_ferror\x00cube\x00circle\x00Qcircle\x00breadthfirstsearch\x00register_cube_geom\x00register_circle_geom\x00CREATE TABLE x(database,tablename,cid,name,type,not_null,dflt_value,pk)\x00SELECT name FROM sqlite_temp_schema WHERE type='table'\x00SELECT name FROM %Q.sqlite_schema WHERE type='table'\x00PRAGMA %Q.table_info(%Q)\x00PRAGMA database_list\x00register_schema_module\x00PRAGMA main.journal_mode\x00CMDNAME PATH ?VFS? ?BUSY-HANDLER-SCRIPT?\x00sqlite3demo_superlock\x00open\x00access\x00getcwd\x00stat\x00fstat\x00ftruncate\x00fcntl\x00pread\x00pread64\x00pwrite\x00pwrite64\x00fchmod\x00fallocate\x00mremap\x00SYSCALL-LIST\x00system-call\x00?COUNT PERSIST?\x00EACCES\x00EINTR\x00EIO\x00EOVERFLOW\x00ENOMEM\x00EAGAIN\x00ETIMEDOUT\x00EBUSY\x00EPERM\x00EDEADLK\x00ENOLCK\x00SYSCALL ERRNO\x00errno\x00PGSZ\x00getpagesize\x00pgsz out of range\x00fault\x00install\x00uninstall\x00list\x00defaultvfs\x00pagesize\x00VFS does not support xSetSystemCall\x00test_syscall\x00load_testfixture_extensions\x00SLAVE\x00CREATE TABLE x( name TEXT, arrayname TEXT, value TEXT, fullname TEXT PRIMARY KEY) WITHOUT ROWID\x00array names\x00tclvar_filter_cmd\x00%s(%s)\x00expr {[info exists ::tclvar_set_omit] && $::tclvar_set_omit}\x00the 'fullname' column must be TEXT\x00prohibited TCL variable change\x00proc like {pattern str} {\n set p [string map {% * _ ?} $pattern]\n string match $p $str\n}\nproc tclvar_filter_cmd {eq match glob regexp like} {\n set res {}\n set pattern $eq\n if {$pattern=={}} { set pattern $match }\n if {$pattern=={}} { set pattern * }\n foreach v [uplevel #0 info vars $pattern] {\n if {($glob=={} || [string match $glob [uplevel #0 set $v]])\n && ($like=={} || [like $like [uplevel #0 set $v]])\n && ($regexp=={} || [regexp $regexp [uplevel #0 set $v]])\n } {\n lappend res $v\n }\n }\n set res\n}\n\x00register_tclvar_module\x00clock_seconds\x00sqlthread\x00sqlite3_blocking_step\x00sqlite3_blocking_prepare_v2\x00sqlite3_nonblocking_prepare_v2\x00set\x00Error in Tcl_CreateThread()\x00no parent thread\x00parent\x00spawn\x00VARNAME SCRIPT\x00DBNAME\x00id\x00%s \x00SQLITE_IOERR\x00SQLITE_LOCKED\x00SQLITE_BUSY\x00SQLITE_READONLY\x00SQLITE_READONLY_CANTINIT\x00SQLITE_NOTFOUND\x00SQLITE_OMIT\x00normal|dataonly\x00full|dataonly\x00xCheckReservedLock\x00BEGIN_ATOMIC_WRITE\x00COMMIT_ATOMIC_WRITE\x00ZIPVFS\x00anon\x00SQLITE_ACCESS_EXISTS\x00SQLITE_ACCESS_READWRITE\x00SQLITE_ACCESS_READ\x00xShmOpen\x00 lock\x00 unlock\x00 shared\x00 exclusive\x00shm\x00delete\x00filter\x00ioerr\x00fullerr\x00cantopenerr\x00script\x00devchar\x00sectorsize\x00subcommand\x00FILE ?VALUE?\x00failed to get full path: \x00no such file: \x00unknown method: \x00?CNT PERSIST?\x00default\x00undeletable_when_open\x00immutable\x00?ATTR-LIST?\x00bad flags: \x00?VALUE?\x00-noshm\x00-szosfile\x00-mxpathname\x00-iversion\x00-fullshm\x00VFSNAME ?-noshm BOOL? ?-fullshm BOOL? ?-default BOOL? ?-mxpathname INT? ?-szosfile INT? ?-iversion INT?\x00shared\x00lock\x00unlock\x00DB DBNAME (shared|exclusive) (lock|unlock) OFFSET N\x00ARG\x00DB DBNAME SLOT ?VALUE?\x00*-shm is not yet mapped\x00testvfs\x00vfs_shmlock\x00vfs_set_readmark\x00DB NAME XSTEP XFINAL XVALUE XINVERSE\x00fff\x00misuse test error\x00invalid argument\x00sumint\x00sum\x00sqlite3_create_window_function\x00test_create_window_function_misuse\x00test_create_sumint\x00test_override_sum\x00"
var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data