3.37.0: regenerate all but darwin/arm64, netbsd/amd64 and windows/386

This commit is contained in:
Jan Mercl
2021-11-29 14:56:53 +01:00
parent d4ed92c0a7
commit 12794c24e9
171 changed files with 352338 additions and 308350 deletions

View File

@@ -1,4 +1,4 @@
// Code generated by 'ccgo -export-defines "" -o internal/mptest/main_linux_s390x.go -trace-translation-units testdata/sqlite-src-3360000/mptest/mptest.c -Itestdata/sqlite-amalgamation-3360000 -l modernc.org/sqlite/lib -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -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_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_OS_UNIX=1', DO NOT EDIT.
// Code generated by 'ccgo -export-defines "" -o internal/mptest/main_linux_s390x.go -trace-translation-units testdata/sqlite-src-3370000/mptest/mptest.c -Itestdata/sqlite-amalgamation-3370000 -l modernc.org/sqlite/lib -DNDEBUG -DHAVE_USLEEP -DLONGDOUBLE_TYPE=double -DSQLITE_CORE -DSQLITE_ENABLE_COLUMN_METADATA -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_SESSION -DSQLITE_ENABLE_SNAPSHOT -DSQLITE_ENABLE_STAT4 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_MUTEX_APPDEF=1 -DSQLITE_MUTEX_NOOP -DSQLITE_SOUNDEX -DSQLITE_THREADSAFE=1 -DSQLITE_OS_UNIX=1', DO NOT EDIT.
package main
@@ -17,6 +17,7 @@ var _ = math.Pi
var _ reflect.Kind
var _ atomic.Value
var _ unsafe.Pointer
var _ *libc.TLS
var _ types.Size_t
func main() { libc.Start(main1) }
@@ -270,6 +271,7 @@ const (
SQLITE_CONSTRAINT = 19
SQLITE_CONSTRAINT_CHECK = 275
SQLITE_CONSTRAINT_COMMITHOOK = 531
SQLITE_CONSTRAINT_DATATYPE = 3091
SQLITE_CONSTRAINT_FOREIGNKEY = 787
SQLITE_CONSTRAINT_FUNCTION = 1043
SQLITE_CONSTRAINT_NOTNULL = 1299
@@ -540,6 +542,7 @@ const (
SQLITE_OPEN_CREATE = 0x00000004
SQLITE_OPEN_DELETEONCLOSE = 0x00000008
SQLITE_OPEN_EXCLUSIVE = 0x00000010
SQLITE_OPEN_EXRESCODE = 0x02000000
SQLITE_OPEN_FULLMUTEX = 0x00010000
SQLITE_OPEN_MAIN_DB = 0x00000100
SQLITE_OPEN_MAIN_JOURNAL = 0x00000800
@@ -598,7 +601,7 @@ const (
SQLITE_SHM_SHARED = 4
SQLITE_SHM_UNLOCK = 1
SQLITE_SOUNDEX = 1
SQLITE_SOURCE_ID = "2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5"
SQLITE_SOURCE_ID = "2021-11-27 14:13:22 bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a"
SQLITE_STATUS_MALLOC_COUNT = 9
SQLITE_STATUS_MALLOC_SIZE = 5
SQLITE_STATUS_MEMORY_USED = 0
@@ -671,8 +674,8 @@ const (
SQLITE_UTF16LE = 2
SQLITE_UTF16_ALIGNED = 8
SQLITE_UTF8 = 1
SQLITE_VERSION = "3.36.0"
SQLITE_VERSION_NUMBER = 3036000
SQLITE_VERSION = "3.37.0"
SQLITE_VERSION_NUMBER = 3037000
SQLITE_VTAB_CONSTRAINT_SUPPORT = 1
SQLITE_VTAB_DIRECTONLY = 3
SQLITE_VTAB_INNOCUOUS = 2
@@ -1447,15 +1450,15 @@ type va_list = uintptr /* stdarg.h:99:24 */
// between -9223372036854775808 and +9223372036854775807 inclusive. ^The
// sqlite3_uint64 and sqlite_uint64 types can store integer values
// between 0 and +18446744073709551615 inclusive.
type sqlite_int64 = int64 /* sqlite3.h:278:25 */
type sqlite_uint64 = uint64 /* sqlite3.h:279:34 */
type sqlite3_int64 = sqlite_int64 /* sqlite3.h:281:22 */
type sqlite3_uint64 = sqlite_uint64 /* sqlite3.h:282:23 */
type sqlite_int64 = int64 /* sqlite3.h:301:25 */
type sqlite_uint64 = uint64 /* sqlite3.h:302:34 */
type sqlite3_int64 = sqlite_int64 /* sqlite3.h:304:22 */
type sqlite3_uint64 = sqlite_uint64 /* sqlite3.h:305:23 */
// The type for a callback function.
// This is legacy and deprecated. It is included for historical
// compatibility and is not documented.
type sqlite3_callback = uintptr /* sqlite3.h:338:13 */
type sqlite3_callback = uintptr /* sqlite3.h:361:13 */
// CAPI3REF: Result Codes
// KEYWORDS: {result code definitions}
@@ -1490,6 +1493,19 @@ type sqlite3_callback = uintptr /* sqlite3.h:338:13 */
// These bit values are intended for use in the
// 3rd parameter to the [sqlite3_open_v2()] interface and
// in the 4th parameter to the [sqlite3_vfs.xOpen] method.
//
// Only those flags marked as "Ok for sqlite3_open_v2()" may be
// used as the third argument to the [sqlite3_open_v2()] interface.
// The other flags have historically been ignored by sqlite3_open_v2(),
// though future versions of SQLite might change so that an error is
// raised if any of the disallowed bits are passed into sqlite3_open_v2().
// Applications should not depend on the historical behavior.
//
// Note in particular that passing the SQLITE_OPEN_EXCLUSIVE flag into
// [sqlite3_open_v2()] does *not* cause the underlying database file
// to be opened using O_EXCL. Passing SQLITE_OPEN_EXCLUSIVE into
// [sqlite3_open_v2()] has historically be a no-op and might become an
// error in future versions of SQLite.
// Reserved: 0x00F00000
// Legacy compatibility:
@@ -1566,7 +1582,7 @@ type sqlite3_callback = uintptr /* sqlite3.h:338:13 */
// 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_file1 = struct{ pMethods uintptr } /* sqlite3.h:684:9 */
type sqlite3_file1 = struct{ pMethods uintptr } /* sqlite3.h:722:9 */
// CAPI3REF: Result Codes
// KEYWORDS: {result code definitions}
@@ -1601,6 +1617,19 @@ type sqlite3_file1 = struct{ pMethods uintptr } /* sqlite3.h:684:9 */
// These bit values are intended for use in the
// 3rd parameter to the [sqlite3_open_v2()] interface and
// in the 4th parameter to the [sqlite3_vfs.xOpen] method.
//
// Only those flags marked as "Ok for sqlite3_open_v2()" may be
// used as the third argument to the [sqlite3_open_v2()] interface.
// The other flags have historically been ignored by sqlite3_open_v2(),
// though future versions of SQLite might change so that an error is
// raised if any of the disallowed bits are passed into sqlite3_open_v2().
// Applications should not depend on the historical behavior.
//
// Note in particular that passing the SQLITE_OPEN_EXCLUSIVE flag into
// [sqlite3_open_v2()] does *not* cause the underlying database file
// to be opened using O_EXCL. Passing SQLITE_OPEN_EXCLUSIVE into
// [sqlite3_open_v2()] has historically be a no-op and might become an
// error in future versions of SQLite.
// Reserved: 0x00F00000
// Legacy compatibility:
@@ -1677,7 +1706,7 @@ type sqlite3_file1 = struct{ pMethods uintptr } /* sqlite3.h:684:9 */
// 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:684:29 */
type sqlite3_file = sqlite3_file1 /* sqlite3.h:722:29 */
type sqlite3_io_methods1 = struct {
iVersion int32
_ [4]byte
@@ -1699,7 +1728,7 @@ type sqlite3_io_methods1 = struct {
xShmUnmap uintptr
xFetch uintptr
xUnfetch uintptr
} /* sqlite3.h:684:9 */
} /* sqlite3.h:722:9 */
// CAPI3REF: OS Interface File Virtual Methods Object
//
@@ -1793,7 +1822,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:783:35 */
type sqlite3_io_methods = sqlite3_io_methods1 /* sqlite3.h:821:35 */
// CAPI3REF: OS Interface Object
//
@@ -1986,7 +2015,7 @@ type sqlite3_vfs1 = struct {
xSetSystemCall uintptr
xGetSystemCall uintptr
xNextSystemCall uintptr
} /* sqlite3.h:1387:9 */
} /* sqlite3.h:1425:9 */
// CAPI3REF: OS Interface Object
//
@@ -2155,8 +2184,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:1387:28 */
type sqlite3_syscall_ptr = uintptr /* sqlite3.h:1388:14 */
type sqlite3_vfs = sqlite3_vfs1 /* sqlite3.h:1425:28 */
type sqlite3_syscall_ptr = uintptr /* sqlite3.h:1426:14 */
// CAPI3REF: Memory Allocation Routines
//
@@ -2228,7 +2257,7 @@ type sqlite3_mem_methods1 = struct {
xInit uintptr
xShutdown uintptr
pAppData uintptr
} /* sqlite3.h:1685:9 */
} /* sqlite3.h:1723:9 */
// CAPI3REF: Memory Allocation Routines
//
@@ -2291,7 +2320,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:1685:36 */
type sqlite3_mem_methods = sqlite3_mem_methods1 /* sqlite3.h:1723:36 */
// CAPI3REF: Constants Defining Special Destructor Behavior
//
@@ -2305,7 +2334,7 @@ type sqlite3_mem_methods = sqlite3_mem_methods1 /* sqlite3.h:1685:36 */
//
// The typedef is necessary to work around problems in certain
// C++ compilers.
type sqlite3_destructor_type = uintptr /* sqlite3.h:5665:14 */
type sqlite3_destructor_type = uintptr /* sqlite3.h:5733:14 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -2320,7 +2349,7 @@ type sqlite3_vtab1 = struct {
nRef int32
_ [4]byte
zErrMsg uintptr
} /* sqlite3.h:6784:9 */
} /* sqlite3.h:6918:9 */
// The interface to the virtual-table mechanism is currently considered
// to be experimental. The interface might change in incompatible ways.
@@ -2330,7 +2359,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:6784:29 */
type sqlite3_vtab = sqlite3_vtab1 /* sqlite3.h:6918:29 */
type sqlite3_index_info1 = struct {
nConstraint int32
_ [4]byte
@@ -2349,12 +2378,12 @@ type sqlite3_index_info1 = struct {
idxFlags int32
_ [4]byte
colUsed sqlite3_uint64
} /* sqlite3.h:6785:9 */
} /* sqlite3.h:6919:9 */
type sqlite3_index_info = sqlite3_index_info1 /* sqlite3.h:6785:35 */
type sqlite3_vtab_cursor1 = struct{ pVtab uintptr } /* sqlite3.h:6786:9 */
type sqlite3_index_info = sqlite3_index_info1 /* sqlite3.h:6919:35 */
type sqlite3_vtab_cursor1 = struct{ pVtab uintptr } /* sqlite3.h:6920:9 */
type sqlite3_vtab_cursor = sqlite3_vtab_cursor1 /* sqlite3.h:6786:36 */
type sqlite3_vtab_cursor = sqlite3_vtab_cursor1 /* sqlite3.h:6920:36 */
type sqlite3_module1 = struct {
iVersion int32
_ [4]byte
@@ -2381,9 +2410,9 @@ type sqlite3_module1 = struct {
xRelease uintptr
xRollbackTo uintptr
xShadowName uintptr
} /* sqlite3.h:6784:9 */
} /* sqlite3.h:6918:9 */
type sqlite3_module = sqlite3_module1 /* sqlite3.h:6787:31 */
type sqlite3_module = sqlite3_module1 /* sqlite3.h:6921:31 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -2491,7 +2520,7 @@ type sqlite3_index_constraint = struct {
usable uint8
_ [2]byte
iTermOffset int32
} /* sqlite3.h:6785:9 */
} /* sqlite3.h:6919:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -2597,7 +2626,7 @@ type sqlite3_index_orderby = struct {
iColumn int32
desc uint8
_ [3]byte
} /* sqlite3.h:6785:9 */
} /* sqlite3.h:6919:9 */
// CAPI3REF: Virtual Table Indexing Information
// KEYWORDS: sqlite3_index_info
@@ -2703,7 +2732,7 @@ type sqlite3_index_constraint_usage = struct {
argvIndex int32
omit uint8
_ [3]byte
} /* sqlite3.h:6785:9 */
} /* sqlite3.h:6919:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -2778,7 +2807,7 @@ type sqlite3_mutex_methods1 = struct {
xMutexLeave uintptr
xMutexHeld uintptr
xMutexNotheld uintptr
} /* sqlite3.h:7619:9 */
} /* sqlite3.h:7753:9 */
// CAPI3REF: Mutex Methods Object
//
@@ -2843,7 +2872,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:7619:38 */
type sqlite3_mutex_methods = sqlite3_mutex_methods1 /* sqlite3.h:7753:38 */
// CAPI3REF: Custom Page Cache Object
//
@@ -2856,7 +2885,7 @@ type sqlite3_mutex_methods = sqlite3_mutex_methods1 /* sqlite3.h:7619:38 */
type sqlite3_pcache_page1 = struct {
pBuf uintptr
pExtra uintptr
} /* sqlite3.h:8375:9 */
} /* sqlite3.h:8509:9 */
// CAPI3REF: Custom Page Cache Object
//
@@ -2866,7 +2895,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:8375:36 */
type sqlite3_pcache_page = sqlite3_pcache_page1 /* sqlite3.h:8509:36 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -3040,7 +3069,7 @@ type sqlite3_pcache_methods21 = struct {
xTruncate uintptr
xDestroy uintptr
xShrink uintptr
} /* sqlite3.h:8540:9 */
} /* sqlite3.h:8674:9 */
// CAPI3REF: Application Defined Page Cache.
// KEYWORDS: {page cache}
@@ -3199,7 +3228,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:8540:40 */
type sqlite3_pcache_methods2 = sqlite3_pcache_methods21 /* sqlite3.h:8674: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
@@ -3216,12 +3245,12 @@ type sqlite3_pcache_methods1 = struct {
xRekey uintptr
xTruncate uintptr
xDestroy uintptr
} /* sqlite3.h:8563:9 */
} /* sqlite3.h:8697:9 */
// 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:8563:39 */
type sqlite3_pcache_methods = sqlite3_pcache_methods1 /* sqlite3.h:8697:39 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -3241,7 +3270,7 @@ type sqlite3_pcache_methods = sqlite3_pcache_methods1 /* sqlite3.h:8563:39 */
// 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_snapshot1 = struct{ hidden [48]uint8 } /* sqlite3.h:9630:9 */
type sqlite3_snapshot1 = struct{ hidden [48]uint8 } /* sqlite3.h:9765:9 */
// CAPI3REF: Database Snapshot
// KEYWORDS: {snapshot} {sqlite3_snapshot}
@@ -3261,7 +3290,7 @@ type sqlite3_snapshot1 = struct{ hidden [48]uint8 } /* sqlite3.h:9630:9 */
// 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:9632:3 */
type sqlite3_snapshot = sqlite3_snapshot1 /* sqlite3.h:9767:3 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -3305,7 +3334,7 @@ type sqlite3_rtree_geometry1 = struct {
aParam uintptr
pUser uintptr
xDelUser uintptr
} /* sqlite3.h:9957:9 */
} /* sqlite3.h:10096:9 */
// CAPI3REF: Flags for sqlite3_deserialize()
//
@@ -3342,7 +3371,7 @@ type sqlite3_rtree_geometry1 = struct {
//
//
type sqlite3_rtree_geometry = sqlite3_rtree_geometry1 /* sqlite3.h:9957:39 */
type sqlite3_rtree_geometry = sqlite3_rtree_geometry1 /* sqlite3.h:10096:39 */
type sqlite3_rtree_query_info1 = struct {
pContext uintptr
nParam int32
@@ -3362,13 +3391,13 @@ type sqlite3_rtree_query_info1 = struct {
eWithin int32
rScore sqlite3_rtree_dbl
apSqlParam uintptr
} /* sqlite3.h:9958:9 */
} /* sqlite3.h:10097:9 */
type sqlite3_rtree_query_info = sqlite3_rtree_query_info1 /* sqlite3.h:9958:41 */
type sqlite3_rtree_query_info = sqlite3_rtree_query_info1 /* sqlite3.h:10097: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:9966:18 */
type sqlite3_rtree_dbl = float64 /* sqlite3.h:10105:18 */
// CAPI3REF: Values for sqlite3session_config().
@@ -3422,7 +3451,7 @@ type Fts5ExtensionApi1 = struct {
xPhraseNext uintptr
xPhraseFirstColumn uintptr
xPhraseNextColumn uintptr
} /* sqlite3.h:11813:9 */
} /* sqlite3.h:11952:9 */
// CAPI3REF: Values for sqlite3session_config().
@@ -3454,22 +3483,22 @@ type Fts5ExtensionApi1 = struct {
// Virtual table implementations may overload SQL functions by implementing
// the sqlite3_module.xFindFunction() method.
type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.h:11813:33 */
type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.h:11952:33 */
type Fts5PhraseIter1 = struct {
a uintptr
b uintptr
} /* sqlite3.h:11815:9 */
} /* sqlite3.h:11954:9 */
type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.h:11815:31 */
type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.h:11954:31 */
type fts5_extension_function = uintptr /* sqlite3.h:11817:14 */
type fts5_extension_function = uintptr /* sqlite3.h:11956:14 */
type fts5_tokenizer1 = struct {
xCreate uintptr
xDelete uintptr
xTokenize uintptr
} /* sqlite3.h:12276:9 */
} /* sqlite3.h:12415:9 */
type fts5_tokenizer = fts5_tokenizer1 /* sqlite3.h:12276:31 */
type fts5_tokenizer = fts5_tokenizer1 /* sqlite3.h:12415:31 */
// Flags that may be passed as the third argument to xTokenize()
@@ -3489,7 +3518,7 @@ type fts5_api1 = struct {
xCreateTokenizer uintptr
xFindTokenizer uintptr
xCreateFunction uintptr
} /* sqlite3.h:12312:9 */
} /* sqlite3.h:12451:9 */
// Flags that may be passed as the third argument to xTokenize()
@@ -3503,7 +3532,7 @@ type fts5_api1 = struct {
// ************************************************************************
//
// FTS5 EXTENSION REGISTRATION API
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */
type fts5_api = fts5_api1 /* sqlite3.h:12451:25 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
@@ -6356,11 +6385,11 @@ func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18:
if strglob(tls, ts+2323 /* "*.test" */, g.zDbFile) != 0 {
usage(tls, *(*uintptr)(unsafe.Pointer(argv)))
}
if libc.Xstrcmp(tls, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2021-06-18 18:36..." */) != 0 {
if libc.Xstrcmp(tls, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2021-11-27 14:13..." */) != 0 {
libc.Xfprintf(tls, libc.Xstderr,
ts+2415, /* "SQLite library a..." */
libc.VaList(bp, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2021-06-18 18:36..." */))
libc.VaList(bp, sqlite3.Xsqlite3_sourceid(tls), ts+2330 /* "2021-11-27 14:13..." */))
libc.Xexit(tls, 1)
}
*(*int32)(unsafe.Pointer(bp + 232 /* n */)) = (argc - 2)
@@ -6419,7 +6448,7 @@ func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18:
libc.Xprintf(tls, ts+2317 /* " %s" */, libc.VaList(bp+72, *(*uintptr)(unsafe.Pointer(argv + uintptr(i)*8))))
}
libc.Xprintf(tls, ts+2321 /* "\n" */, 0)
libc.Xprintf(tls, ts+2617 /* "With SQLite 3.36..." */, 0)
libc.Xprintf(tls, ts+2617 /* "With SQLite 3.37..." */, 0)
for i = 0; (libc.AssignUintptr(&zCOption, sqlite3.Xsqlite3_compileoption_get(tls, i))) != uintptr(0); i++ {
libc.Xprintf(tls, ts+2722 /* "-DSQLITE_%s\n" */, libc.VaList(bp+80, zCOption))
}
@@ -6566,5 +6595,5 @@ func main1(tls *libc.TLS, argc int32, argv uintptr) int32 { /* mptest.c:1279:18:
return (libc.Bool32(g.nError > 0))
}
var ts1 = "%s%.*s\n\x00%s:ERROR: \x00%s:FATAL: \x00UPDATE client SET wantHalt=1;\x00%s: \x00main\x00timeout after %dms\x00[%.*s]\x00(info) %s\x00(errcode=%d) %s\x00%s\n%s\n\x00out of memory\x00 \x00nil\x00'\x00error(%d)\x00BEGIN IMMEDIATE\x00in startScript: %s\x00UPDATE counters SET nError=nError+%d, nTest=nTest+%d\x00SELECT 1 FROM client WHERE id=%d AND wantHalt\x00DELETE FROM client WHERE id=%d\x00COMMIT TRANSACTION;\x00SELECT script, id, name FROM task WHERE client=%d AND starttime IS NULL ORDER BY id LIMIT 1\x00%s\x00UPDATE task SET starttime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00Waited over 30 seconds with no work. Giving up.\x00DELETE FROM client WHERE id=%d; COMMIT;\x00COMMIT\x00UPDATE task SET endtime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00INSERT OR IGNORE INTO client VALUES(%d,0)\x00%s \"%s\" --client %d --trace %d\x00%z --sqltrace\x00%z --sync\x00%z --vfs \"%s\"\x00system('%q')\x00%z &\x00system() fails with error code %d\x00rb\x00cannot open \"%s\" for reading\x00--end\x00--endif\x00--else\x00--if\x00SELECT 1 FROM task WHERE client=%d AND client IN (SELECT id FROM client) AND endtime IS NULL\x00SELECT 1 FROM task WHERE client IN (SELECT id FROM client) AND endtime IS NULL\x00\x00%stimeout waiting for client %d\x00%stimeout waiting for all clients\x00on\x00yes\x00off\x00no\x00unknown boolean: [%s]\x00%.*s\x00sleep\x00exit\x00testcase\x00finish\x00reset\x00match\x00line %d of %s:\nExpected [%.*s]\n Got [%s]\x00glob\x00notglob\x00line %d of %s:\nExpected [%s]\n Got [%s]\x00output\x00source\x00%.*s/%s\x00begin script [%s]\n\x00end script [%s]\n\x00print\x00if\x00SELECT %.*s\x00else\x00endif\x00start\x00wait\x00line %d of %s\n\x00task\x00line %d of %s: bad client number: %d\x00%s:%d\x00INSERT INTO task(client,script,name) VALUES(%d,'%q',%Q)\x00breakpoint\x00show-sql-errors\x00line %d of %s: unknown command --%s\x00command-line option \"--%s\" requires an argument\x00Usage: %s DATABASE ?OPTIONS? ?SCRIPT?\n\x00Options:\n --errlog FILENAME Write errors to FILENAME\n --journalmode MODE Use MODE as the journal_mode\n --log FILENAME Log messages to FILENAME\n --quiet Suppress unnecessary output\n --vfs NAME Use NAME as the VFS\n --repeat N Repeat the test N times\n --sqltrace Enable SQL tracing\n --sync Enable synchronous disk writes\n --timeout MILLISEC Busy timeout is MILLISEC\n --trace BOOLEAN Enable or disable tracing\n\x00%s: unrecognized arguments:\x00 %s\x00\n\x00*.test\x002021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5\x00SQLite library and header mismatch\nLibrary: %s\nHeader: %s\n\x00%05d.mptest\x00journalmode\x00repeat\x00vfs\x00client\x00errlog\x00log\x00trace\x00quiet\x00timeout\x00sqltrace\x00sync\x00a\x00illegal client number: %d\n\x00%05d.client%02d\x00BEGIN: %s\x00With SQLite 3.36.0 2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5\n\x00-DSQLITE_%s\n\x00... %strying to unlink '%s'\n\x00still \x00unable to unlink '%s' after %d attempts\n\x00cannot open [%s]\x00PRAGMA journal_mode=%Q;\x00PRAGMA synchronous=OFF\x00vfsname\x00eval\x00start-client\x00begin %s (%d)\x00end %s (%d)\x00end-client\x00missing script filename\x00DROP TABLE IF EXISTS task;\nDROP TABLE IF EXISTS counters;\nDROP TABLE IF EXISTS client;\nCREATE TABLE task(\n id INTEGER PRIMARY KEY,\n name TEXT,\n client INTEGER,\n starttime DATE,\n endtime DATE,\n script TEXT\n);CREATE INDEX task_i1 ON task(client, starttime);\nCREATE INDEX task_i2 ON task(client, endtime);\nCREATE TABLE counters(nError,nTest);\nINSERT INTO counters VALUES(0,0);\nCREATE TABLE client(id INTEGER PRIMARY KEY, wantHalt);\n\x00begin script [%s] cycle %d\n\x00end script [%s] cycle %d\n\x00during shutdown...\n\x00UPDATE client SET wantHalt=1\x00SELECT 1 FROM client\x00SELECT nError, nTest FROM counters\x00Summary: %d errors out of %d tests\n\x00END: %s\x00"
var ts1 = "%s%.*s\n\x00%s:ERROR: \x00%s:FATAL: \x00UPDATE client SET wantHalt=1;\x00%s: \x00main\x00timeout after %dms\x00[%.*s]\x00(info) %s\x00(errcode=%d) %s\x00%s\n%s\n\x00out of memory\x00 \x00nil\x00'\x00error(%d)\x00BEGIN IMMEDIATE\x00in startScript: %s\x00UPDATE counters SET nError=nError+%d, nTest=nTest+%d\x00SELECT 1 FROM client WHERE id=%d AND wantHalt\x00DELETE FROM client WHERE id=%d\x00COMMIT TRANSACTION;\x00SELECT script, id, name FROM task WHERE client=%d AND starttime IS NULL ORDER BY id LIMIT 1\x00%s\x00UPDATE task SET starttime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00Waited over 30 seconds with no work. Giving up.\x00DELETE FROM client WHERE id=%d; COMMIT;\x00COMMIT\x00UPDATE task SET endtime=strftime('%%Y-%%m-%%d %%H:%%M:%%f','now') WHERE id=%d;\x00INSERT OR IGNORE INTO client VALUES(%d,0)\x00%s \"%s\" --client %d --trace %d\x00%z --sqltrace\x00%z --sync\x00%z --vfs \"%s\"\x00system('%q')\x00%z &\x00system() fails with error code %d\x00rb\x00cannot open \"%s\" for reading\x00--end\x00--endif\x00--else\x00--if\x00SELECT 1 FROM task WHERE client=%d AND client IN (SELECT id FROM client) AND endtime IS NULL\x00SELECT 1 FROM task WHERE client IN (SELECT id FROM client) AND endtime IS NULL\x00\x00%stimeout waiting for client %d\x00%stimeout waiting for all clients\x00on\x00yes\x00off\x00no\x00unknown boolean: [%s]\x00%.*s\x00sleep\x00exit\x00testcase\x00finish\x00reset\x00match\x00line %d of %s:\nExpected [%.*s]\n Got [%s]\x00glob\x00notglob\x00line %d of %s:\nExpected [%s]\n Got [%s]\x00output\x00source\x00%.*s/%s\x00begin script [%s]\n\x00end script [%s]\n\x00print\x00if\x00SELECT %.*s\x00else\x00endif\x00start\x00wait\x00line %d of %s\n\x00task\x00line %d of %s: bad client number: %d\x00%s:%d\x00INSERT INTO task(client,script,name) VALUES(%d,'%q',%Q)\x00breakpoint\x00show-sql-errors\x00line %d of %s: unknown command --%s\x00command-line option \"--%s\" requires an argument\x00Usage: %s DATABASE ?OPTIONS? ?SCRIPT?\n\x00Options:\n --errlog FILENAME Write errors to FILENAME\n --journalmode MODE Use MODE as the journal_mode\n --log FILENAME Log messages to FILENAME\n --quiet Suppress unnecessary output\n --vfs NAME Use NAME as the VFS\n --repeat N Repeat the test N times\n --sqltrace Enable SQL tracing\n --sync Enable synchronous disk writes\n --timeout MILLISEC Busy timeout is MILLISEC\n --trace BOOLEAN Enable or disable tracing\n\x00%s: unrecognized arguments:\x00 %s\x00\n\x00*.test\x002021-11-27 14:13:22 bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a\x00SQLite library and header mismatch\nLibrary: %s\nHeader: %s\n\x00%05d.mptest\x00journalmode\x00repeat\x00vfs\x00client\x00errlog\x00log\x00trace\x00quiet\x00timeout\x00sqltrace\x00sync\x00a\x00illegal client number: %d\n\x00%05d.client%02d\x00BEGIN: %s\x00With SQLite 3.37.0 2021-11-27 14:13:22 bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a\n\x00-DSQLITE_%s\n\x00... %strying to unlink '%s'\n\x00still \x00unable to unlink '%s' after %d attempts\n\x00cannot open [%s]\x00PRAGMA journal_mode=%Q;\x00PRAGMA synchronous=OFF\x00vfsname\x00eval\x00start-client\x00begin %s (%d)\x00end %s (%d)\x00end-client\x00missing script filename\x00DROP TABLE IF EXISTS task;\nDROP TABLE IF EXISTS counters;\nDROP TABLE IF EXISTS client;\nCREATE TABLE task(\n id INTEGER PRIMARY KEY,\n name TEXT,\n client INTEGER,\n starttime DATE,\n endtime DATE,\n script TEXT\n);CREATE INDEX task_i1 ON task(client, starttime);\nCREATE INDEX task_i2 ON task(client, endtime);\nCREATE TABLE counters(nError,nTest);\nINSERT INTO counters VALUES(0,0);\nCREATE TABLE client(id INTEGER PRIMARY KEY, wantHalt);\n\x00begin script [%s] cycle %d\n\x00end script [%s] cycle %d\n\x00during shutdown...\n\x00UPDATE client SET wantHalt=1\x00SELECT 1 FROM client\x00SELECT nError, nTest FROM counters\x00Summary: %d errors out of %d tests\n\x00END: %s\x00"
var ts = (*reflect.StringHeader)(unsafe.Pointer(&ts1)).Data