mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-11 18:50:08 +08:00
freebsd/amd64: regenerate
This commit is contained in:
5
Makefile
5
Makefile
@@ -69,8 +69,9 @@ darwin_arm64:
|
||||
GOOS=darwin GOARCH=arm64 go build -v ./...
|
||||
|
||||
freebsd_amd64:
|
||||
TARGET_GOOS=freebsd TARGET_GOARCH=amd64 go generate 2>&1 | tee /tmp/log-generate-sqlite-freebsd-amd64
|
||||
GOOS=freebsd GOARCH=amd64 go build -v ./...
|
||||
@echo "Should be executed only on freebsd/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
netbsd_amd64:
|
||||
TARGET_GOOS=netbsd TARGET_GOARCH=amd64 go generate 2>&1 | tee /tmp/log-generate-sqlite-netbsd-amd64
|
||||
|
@@ -372,6 +372,7 @@ func fail(s string, args ...interface{}) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Printf("Running on %s/%s.\n", runtime.GOOS, runtime.GOARCH)
|
||||
env := os.Getenv("GO_GENERATE")
|
||||
goarch := runtime.GOARCH
|
||||
goos := runtime.GOOS
|
||||
@@ -587,6 +588,7 @@ func makeTestfixture(goos, goarch string, more []string) {
|
||||
"-DTCLSH_INIT_PROC=sqlite3TestInit",
|
||||
"-D_HAVE_SQLITE_CONFIG_H",
|
||||
"-I/usr/include/tcl8.6", //TODO linux: should not be hardcoded
|
||||
"-I/usr/local/include/tcl8.6", //TODO freebsd: should not be hardcoded
|
||||
"-export-defines", "",
|
||||
"-export-fields", "F",
|
||||
"-trace-translation-units",
|
||||
|
10
go.mod
10
go.mod
@@ -3,11 +3,11 @@ module modernc.org/sqlite
|
||||
go 1.15
|
||||
|
||||
require (
|
||||
github.com/mattn/go-sqlite3 v1.14.8
|
||||
github.com/mattn/go-sqlite3 v1.14.9
|
||||
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac
|
||||
modernc.org/ccgo/v3 v3.12.53
|
||||
modernc.org/libc v1.11.52
|
||||
modernc.org/ccgo/v3 v3.12.56
|
||||
modernc.org/libc v1.11.55
|
||||
modernc.org/mathutil v1.4.1
|
||||
modernc.org/tcl v1.8.7
|
||||
modernc.org/z v1.2.13
|
||||
modernc.org/tcl v1.8.9
|
||||
modernc.org/z v1.2.14
|
||||
)
|
||||
|
26
go.sum
26
go.sum
@@ -8,8 +8,8 @@ github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNU
|
||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-sqlite3 v1.14.8 h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU=
|
||||
github.com/mattn/go-sqlite3 v1.14.8/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/mattn/go-sqlite3 v1.14.9 h1:10HX2Td0ocZpYEjhilsuo6WWtUqttj2Kb0KtD86/KYA=
|
||||
github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk=
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
@@ -55,8 +55,9 @@ modernc.org/cc/v3 v3.35.7/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.35.8/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.35.10/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.35.15/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.35.16 h1:YwB4BKGpX5rfDWyn2yVDVcUDHVLy6mqV3ZnytbCv9ZA=
|
||||
modernc.org/cc/v3 v3.35.16/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.35.17 h1:sWWFJxgj2whIJ5P/rzgHalMgpcIhkVSRgiLV0XA7p6Y=
|
||||
modernc.org/cc/v3 v3.35.17/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/ccgo/v3 v3.9.5/go.mod h1:umuo2EP2oDSBnD3ckjaVUXMrmeAw8C8OSICVa0iFf60=
|
||||
modernc.org/ccgo/v3 v3.10.0/go.mod h1:c0yBmkRFi7uW4J7fwx/JiijwOjeAeR2NoSaRVFPmjMw=
|
||||
modernc.org/ccgo/v3 v3.11.0/go.mod h1:dGNposbDp9TOZ/1KBxghxtUp/bzErD0/0QW4hhSaBMI=
|
||||
@@ -80,8 +81,11 @@ modernc.org/ccgo/v3 v3.12.46/go.mod h1:UZe6EvMSqOxaJ4sznY7b23/k13R8XNlyWsO5bAmSg
|
||||
modernc.org/ccgo/v3 v3.12.47/go.mod h1:m8d6p0zNps187fhBwzY/ii6gxfjob1VxWb919Nk1HUk=
|
||||
modernc.org/ccgo/v3 v3.12.50/go.mod h1:bu9YIwtg+HXQxBhsRDE+cJjQRuINuT9PUK4orOco/JI=
|
||||
modernc.org/ccgo/v3 v3.12.51/go.mod h1:gaIIlx4YpmGO2bLye04/yeblmvWEmE4BBBls4aJXFiE=
|
||||
modernc.org/ccgo/v3 v3.12.53 h1:I74lSqj3EE2nQdLFXHkV5qKSJ4fu80gBPqniUQZHaOM=
|
||||
modernc.org/ccgo/v3 v3.12.53/go.mod h1:8xWGGTFkdFEWBEsUmi+DBjwu/WLy3SSOrqEmKUjMeEg=
|
||||
modernc.org/ccgo/v3 v3.12.54/go.mod h1:yANKFTm9llTFVX1FqNKHE0aMcQb1fuPJx6p8AcUx+74=
|
||||
modernc.org/ccgo/v3 v3.12.55/go.mod h1:rsXiIyJi9psOwiBkplOaHye5L4MOOaCjHg1Fxkj7IeU=
|
||||
modernc.org/ccgo/v3 v3.12.56 h1:ziryYQpJAmrOqBW6ojZLnovh8Wn8faOtAyDlXMOOZDA=
|
||||
modernc.org/ccgo/v3 v3.12.56/go.mod h1:ljeFks3faDseCkr60JMpeDb2GSO3TKAmrzm7q9YOcMU=
|
||||
modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM=
|
||||
modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM=
|
||||
modernc.org/libc v1.9.8/go.mod h1:U1eq8YWr/Kc1RWCMFUWEdkTg8OTcfLw2kY8EDwl039w=
|
||||
@@ -108,8 +112,10 @@ modernc.org/libc v1.11.45/go.mod h1:Y192orvfVQQYFzCNsn+Xt0Hxt4DiO4USpLNXBlXg/tM=
|
||||
modernc.org/libc v1.11.47/go.mod h1:tPkE4PzCTW27E6AIKIR5IwHAQKCAtudEIeAV1/SiyBg=
|
||||
modernc.org/libc v1.11.49/go.mod h1:9JrJuK5WTtoTWIFQ7QjX2Mb/bagYdZdscI3xrvHbXjE=
|
||||
modernc.org/libc v1.11.51/go.mod h1:R9I8u9TS+meaWLdbfQhq2kFknTW0O3aw3kEMqDDxMaM=
|
||||
modernc.org/libc v1.11.52 h1:FJ/yRwXD+iQa7ydlSN6RSkd30GjLvnm4t+YvwasK+h8=
|
||||
modernc.org/libc v1.11.52/go.mod h1:5ip5vWYPAoMulkQ5XlSJTy12Sz5U6blOQiYasilVPsU=
|
||||
modernc.org/libc v1.11.53/go.mod h1:5ip5vWYPAoMulkQ5XlSJTy12Sz5U6blOQiYasilVPsU=
|
||||
modernc.org/libc v1.11.54/go.mod h1:S/FVnskbzVUrjfBqlGFIPA5m7UwB3n9fojHhCNfSsnw=
|
||||
modernc.org/libc v1.11.55 h1:x5QJk5eYCG96PlgPO1K9vUk/AxmzIcyukKBAmbxyiv4=
|
||||
modernc.org/libc v1.11.55/go.mod h1:j2A5YBRm6HjNkoSs/fzZrSxCuwWqcMYTDPLNx0URn3M=
|
||||
modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/mathutil v1.2.2/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/mathutil v1.4.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
@@ -122,9 +128,9 @@ modernc.org/opt v0.1.1 h1:/0RX92k9vwVeDXj+Xn23DKp2VJubL7k8qNffND6qn3A=
|
||||
modernc.org/opt v0.1.1/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
|
||||
modernc.org/strutil v1.1.1 h1:xv+J1BXY3Opl2ALrBwyfEikFAj8pmqcpnfmuwUwcozs=
|
||||
modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw=
|
||||
modernc.org/tcl v1.8.7 h1:zR9cu3uHJnwfsFe6VTvwICfZvbqRwg4Piv9dkPVf7/Q=
|
||||
modernc.org/tcl v1.8.7/go.mod h1:gRG492KrTpGj4P7O/6Vb3Ia2X4mvyR2J1rDQO1VD8ZI=
|
||||
modernc.org/tcl v1.8.9 h1:01+Q6s54NyXq9lKJZqD8mT3Pa8NizxetnIsg4d8g0bw=
|
||||
modernc.org/tcl v1.8.9/go.mod h1:h+sl0eQcsm7asyTWrvceAojTr6tFTEXT910S6yo8fvg=
|
||||
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
|
||||
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
modernc.org/z v1.2.13 h1:tvFaClI3x9ezfh7A7IDpWJdjWSamrqKztePeNnnBKRg=
|
||||
modernc.org/z v1.2.13/go.mod h1:4NXnmQuCJMl/VoaDlpGk41KsnvPfgraE4JVx7Mjf0t8=
|
||||
modernc.org/z v1.2.14 h1:oZBeZfql7WiThnnDpf1MI56Ee6MxpkRbjI7NNRVl1zo=
|
||||
modernc.org/z v1.2.14/go.mod h1:CpKggokvOlUM49WoeUzsVs98MTIq8RzgTFfcg4nAsrA=
|
||||
|
@@ -679,7 +679,6 @@ const (
|
||||
W_OK = 0x02
|
||||
X_OK = 0x01
|
||||
X_ACCMODE_T_DECLARED = 0
|
||||
X_ANSI_STDARG_H_ = 0
|
||||
X_ASSERT_H_ = 0
|
||||
X_BIG_ENDIAN = 4321
|
||||
X_BLKCNT_T_DECLARED = 0
|
||||
@@ -757,6 +756,7 @@ const (
|
||||
X_LSEEK_DECLARED = 0
|
||||
X_LWPID_T_DECLARED = 0
|
||||
X_MACHINE_ENDIAN_H_ = 0
|
||||
X_MACHINE_STDARG_H_ = 0
|
||||
X_MACHINE__LIMITS_H_ = 0
|
||||
X_MACHINE__TYPES_H_ = 0
|
||||
X_MKDTEMP_DECLARED = 0
|
||||
@@ -999,7 +999,6 @@ const (
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SQLITE3RTREE_H_ = 0
|
||||
X_SSIZE_T_DECLARED = 0
|
||||
X_STDARG_H = 0
|
||||
X_STDFILE_DECLARED = 0
|
||||
X_STDIO_H_ = 0
|
||||
X_STDLIB_H_ = 0
|
||||
@@ -1016,6 +1015,7 @@ const (
|
||||
X_SYS_UNISTD_H_ = 0
|
||||
X_SYS__PTHREADTYPES_H_ = 0
|
||||
X_SYS__SIGSET_H_ = 0
|
||||
X_SYS__STDARG_H_ = 0
|
||||
X_SYS__STDINT_H_ = 0
|
||||
X_SYS__TIMESPEC_H_ = 0
|
||||
X_SYS__TIMEVAL_H_ = 0
|
||||
@@ -1036,10 +1036,7 @@ const (
|
||||
X_V6_ILP32_OFFBIG = 0
|
||||
X_V6_LP64_OFF64 = 0
|
||||
X_V6_LPBIG_OFFBIG = -1
|
||||
X_VA_LIST = 0
|
||||
X_VA_LIST_DECLARED = 0
|
||||
X_VA_LIST_DEFINED = 0
|
||||
X_VA_LIST_T_H = 0
|
||||
X_WCHAR_T_DECLARED = 0
|
||||
X_XLOCALE_CTYPE_H = 0
|
||||
X_XLOCALE_RUN_FUNCTIONS_DEFINED = 1
|
||||
@@ -1060,27 +1057,13 @@ type ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type wchar_t = int32 /* <builtin>:15:24 */
|
||||
type wchar_t = int32 /* <builtin>:15:24 */ // compatibility w/GNU headers
|
||||
|
||||
// Define the standard macros for the user,
|
||||
// if this invocation was from the user program.
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
|
||||
// Define va_list, if desired, from __gnuc_va_list.
|
||||
// We deliberately do not define va_list when called from
|
||||
// stdio.h, because ANSI C says that stdio.h is not supposed to define
|
||||
// va_list. stdio.h needs to have access to that data type,
|
||||
// but must not use that name. It should use the name __gnuc_va_list,
|
||||
// which is safe because it is reserved for the implementation.
|
||||
|
||||
// The macro _VA_LIST_ is the same thing used by this file in Ultrix.
|
||||
// But on BSD NET2 we must not test or define or undef it.
|
||||
// (Note that the comments in NET 2's ansi.h
|
||||
// are incorrect for _VA_LIST_--see stdio.h!)
|
||||
// The macro _VA_LIST_DEFINED is used in Windows NT 3.5
|
||||
// The macro _VA_LIST is used in SCO Unix 3.2.
|
||||
// The macro _VA_LIST_T_H is used in the Bull dpx2
|
||||
// The macro __va_list__ is used by BeOS.
|
||||
type va_list = uintptr /* stdarg.h:99:24 */
|
||||
type va_list = uintptr /* _stdarg.h:41:27 */
|
||||
|
||||
// CAPI3REF: 64-Bit Integer Types
|
||||
// KEYWORDS: sqlite_int64 sqlite_uint64
|
||||
@@ -3152,11 +3135,142 @@ type fts5_api1 = struct {
|
||||
// ************************************************************************
|
||||
//
|
||||
// FTS5 EXTENSION REGISTRATION API
|
||||
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */ // internally known to gcc
|
||||
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */
|
||||
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
//
|
||||
// END OF REGISTRATION API
|
||||
//
|
||||
|
||||
//******* End of fts5.h ********
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1990, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
//
|
||||
// This code is derived from software contributed to Berkeley by
|
||||
// Chris Torek.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// 3. Neither the name of the University nor the names of its contributors
|
||||
// may be used to endorse or promote products derived from this software
|
||||
// without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
// SUCH DAMAGE.
|
||||
//
|
||||
// @(#)stdio.h 8.5 (Berkeley) 4/29/95
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1991, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
//
|
||||
// This code is derived from software contributed to Berkeley by
|
||||
// Berkeley Software Design, Inc.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// 3. Neither the name of the University nor the names of its contributors
|
||||
// may be used to endorse or promote products derived from this software
|
||||
// without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
// SUCH DAMAGE.
|
||||
//
|
||||
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2003 Marcel Moolenaar
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
// SUCH DAMAGE.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
type fpos_t = int64 /* stdio.h:47:18 */
|
||||
|
||||
@@ -4427,7 +4541,7 @@ func errorMessage(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:215:
|
||||
var zMsg uintptr
|
||||
// var zPrefix [30]int8 at bp+8, 30
|
||||
|
||||
ap = va
|
||||
(ap) = va
|
||||
zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+8 /* "%s:ERROR: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */))
|
||||
@@ -4453,7 +4567,7 @@ func fatalError(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:241:13
|
||||
var zMsg uintptr
|
||||
// var zPrefix [30]int8 at bp+8, 30
|
||||
|
||||
ap = va
|
||||
(ap) = va
|
||||
zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+19 /* "%s:FATAL: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */))
|
||||
@@ -4490,7 +4604,7 @@ func logMessage(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:276:13
|
||||
var zMsg uintptr
|
||||
// var zPrefix [30]int8 at bp+8, 30
|
||||
|
||||
ap = va
|
||||
(ap) = va
|
||||
zMsg = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
sqlite3.Xsqlite3_snprintf(tls, int32(unsafe.Sizeof([30]int8{})), bp+8 /* &zPrefix[0] */, ts+60 /* "%s: " */, libc.VaList(bp, uintptr(unsafe.Pointer(&g))+64 /* &.zName */))
|
||||
@@ -4582,7 +4696,7 @@ func prepareSql(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* mptest.
|
||||
var zSql uintptr
|
||||
var rc int32
|
||||
*(*uintptr)(unsafe.Pointer(bp + 16 /* pStmt */)) = uintptr(0)
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
rc = sqlite3.Xsqlite3_prepare_v2(tls, g.db, zSql, -1, bp+16 /* &pStmt */, uintptr(0))
|
||||
@@ -4603,7 +4717,7 @@ func runSql(tls *libc.TLS, zFormat uintptr, va uintptr) { /* mptest.c:377:13: */
|
||||
_ = ap
|
||||
var zSql uintptr
|
||||
var rc int32
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, uintptr(0), uintptr(0), uintptr(0))
|
||||
@@ -4619,7 +4733,7 @@ func trySql(tls *libc.TLS, zFormat uintptr, va uintptr) int32 { /* mptest.c:394:
|
||||
_ = ap
|
||||
var zSql uintptr
|
||||
var rc int32
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
rc = sqlite3.Xsqlite3_exec(tls, g.db, zSql, uintptr(0), uintptr(0), uintptr(0))
|
||||
@@ -4727,7 +4841,7 @@ func evalSql(tls *libc.TLS, p uintptr, zFormat uintptr, va uintptr) int32 { /* m
|
||||
var zSql uintptr
|
||||
var rc int32
|
||||
*(*uintptr)(unsafe.Pointer(bp + 8 /* zErrMsg */)) = uintptr(0)
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -578,7 +578,6 @@ const (
|
||||
W_OK = 0x02
|
||||
X_OK = 0x01
|
||||
X_ACCMODE_T_DECLARED = 0
|
||||
X_ANSI_STDARG_H_ = 0
|
||||
X_ASSERT_H_ = 0
|
||||
X_BIG_ENDIAN = 4321
|
||||
X_BLKCNT_T_DECLARED = 0
|
||||
@@ -656,6 +655,7 @@ const (
|
||||
X_LSEEK_DECLARED = 0
|
||||
X_LWPID_T_DECLARED = 0
|
||||
X_MACHINE_ENDIAN_H_ = 0
|
||||
X_MACHINE_STDARG_H_ = 0
|
||||
X_MACHINE__LIMITS_H_ = 0
|
||||
X_MACHINE__TYPES_H_ = 0
|
||||
X_MKDTEMP_DECLARED = 0
|
||||
@@ -898,7 +898,6 @@ const (
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SQLITE3RTREE_H_ = 0
|
||||
X_SSIZE_T_DECLARED = 0
|
||||
X_STDARG_H = 0
|
||||
X_STDFILE_DECLARED = 0
|
||||
X_STDIO_H_ = 0
|
||||
X_STDLIB_H_ = 0
|
||||
@@ -914,6 +913,7 @@ const (
|
||||
X_SYS_UNISTD_H_ = 0
|
||||
X_SYS__PTHREADTYPES_H_ = 0
|
||||
X_SYS__SIGSET_H_ = 0
|
||||
X_SYS__STDARG_H_ = 0
|
||||
X_SYS__STDINT_H_ = 0
|
||||
X_SYS__TIMESPEC_H_ = 0
|
||||
X_SYS__TIMEVAL_H_ = 0
|
||||
@@ -934,10 +934,7 @@ const (
|
||||
X_V6_ILP32_OFFBIG = 0
|
||||
X_V6_LP64_OFF64 = 0
|
||||
X_V6_LPBIG_OFFBIG = -1
|
||||
X_VA_LIST = 0
|
||||
X_VA_LIST_DECLARED = 0
|
||||
X_VA_LIST_DEFINED = 0
|
||||
X_VA_LIST_T_H = 0
|
||||
X_WCHAR_T_DECLARED = 0
|
||||
X_XLOCALE_CTYPE_H = 0
|
||||
X_XLOCALE_RUN_FUNCTIONS_DEFINED = 1
|
||||
@@ -963,27 +960,13 @@ type wchar_t = int32 /* <builtin>:15:24 */
|
||||
// A program for performance testing.
|
||||
//
|
||||
// The available command-line options are described below:
|
||||
var zHelp = *(*[2206]int8)(unsafe.Pointer(ts /* "Usage: %s [--opt..." */)) /* speedtest1.c:6:19 */
|
||||
var zHelp = *(*[2206]int8)(unsafe.Pointer(ts /* "Usage: %s [--opt..." */)) /* speedtest1.c:6:19 */ // compatibility w/GNU headers
|
||||
|
||||
// Define the standard macros for the user,
|
||||
// if this invocation was from the user program.
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
|
||||
// Define va_list, if desired, from __gnuc_va_list.
|
||||
// We deliberately do not define va_list when called from
|
||||
// stdio.h, because ANSI C says that stdio.h is not supposed to define
|
||||
// va_list. stdio.h needs to have access to that data type,
|
||||
// but must not use that name. It should use the name __gnuc_va_list,
|
||||
// which is safe because it is reserved for the implementation.
|
||||
|
||||
// The macro _VA_LIST_ is the same thing used by this file in Ultrix.
|
||||
// But on BSD NET2 we must not test or define or undef it.
|
||||
// (Note that the comments in NET 2's ansi.h
|
||||
// are incorrect for _VA_LIST_--see stdio.h!)
|
||||
// The macro _VA_LIST_DEFINED is used in Windows NT 3.5
|
||||
// The macro _VA_LIST is used in SCO Unix 3.2.
|
||||
// The macro _VA_LIST_T_H is used in the Bull dpx2
|
||||
// The macro __va_list__ is used by BeOS.
|
||||
type va_list = uintptr /* stdarg.h:99:24 */
|
||||
type va_list = uintptr /* _stdarg.h:41:27 */
|
||||
|
||||
// CAPI3REF: 64-Bit Integer Types
|
||||
// KEYWORDS: sqlite_int64 sqlite_uint64
|
||||
@@ -3055,11 +3038,137 @@ type fts5_api1 = struct {
|
||||
// ************************************************************************
|
||||
//
|
||||
// FTS5 EXTENSION REGISTRATION API
|
||||
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */ // internally known to gcc
|
||||
type fts5_api = fts5_api1 /* sqlite3.h:12312:25 */
|
||||
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1990, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
//
|
||||
// This code is derived from software contributed to Berkeley by
|
||||
// Chris Torek.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// 3. Neither the name of the University nor the names of its contributors
|
||||
// may be used to endorse or promote products derived from this software
|
||||
// without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
// SUCH DAMAGE.
|
||||
//
|
||||
// @(#)stdio.h 8.5 (Berkeley) 4/29/95
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1991, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
//
|
||||
// This code is derived from software contributed to Berkeley by
|
||||
// Berkeley Software Design, Inc.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// 3. Neither the name of the University nor the names of its contributors
|
||||
// may be used to endorse or promote products derived from this software
|
||||
// without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
// SUCH DAMAGE.
|
||||
//
|
||||
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2003 Marcel Moolenaar
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
//
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// 1. Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// 2. Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
// ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
// SUCH DAMAGE.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
type fpos_t = int64 /* stdio.h:47:18 */
|
||||
|
||||
@@ -4164,7 +4273,7 @@ func isTemp(tls *libc.TLS, N int32) uintptr { /* speedtest1.c:113:19: */
|
||||
func fatal_error(tls *libc.TLS, zMsg uintptr, va uintptr) { /* speedtest1.c:118:13: */
|
||||
var ap va_list
|
||||
_ = ap
|
||||
ap = va
|
||||
(ap) = va
|
||||
libc.Xvfprintf(tls, libc.X__stderrp, zMsg, ap)
|
||||
_ = ap
|
||||
libc.Xexit(tls, 1)
|
||||
@@ -4321,12 +4430,16 @@ func speedtest1_timestamp(tls *libc.TLS) sqlite3_int64 { /* speedtest1.c:257:15:
|
||||
clockVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
|
||||
}
|
||||
if ((*sqlite3_vfs)(unsafe.Pointer(clockVfs)).iVersion >= 2) && ((*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTimeInt64 != uintptr(0)) {
|
||||
(*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((clockVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, clockVfs, bp /* &t */)
|
||||
(*struct {
|
||||
f func(*libc.TLS, uintptr, uintptr) int32
|
||||
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTimeInt64})).f(tls, clockVfs, bp /* &t */)
|
||||
} else {
|
||||
// var r float64 at bp+8, 8
|
||||
|
||||
(*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((clockVfs + 120 /* &.xCurrentTime */))))(tls, clockVfs, bp+8 /* &r */)
|
||||
*(*sqlite3_int64)(unsafe.Pointer(bp /* t */)) = (sqlite3_int64(*(*float64)(unsafe.Pointer(bp + 8 /* r */)) * 86400000.0))
|
||||
(*struct {
|
||||
f func(*libc.TLS, uintptr, uintptr) int32
|
||||
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTime})).f(tls, clockVfs, bp+8 /* &r */)
|
||||
*(*sqlite3_int64)(unsafe.Pointer(bp /* t */)) = (libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 8 /* r */)) * 86400000.0))
|
||||
}
|
||||
return *(*sqlite3_int64)(unsafe.Pointer(bp /* t */))
|
||||
}
|
||||
@@ -4446,7 +4559,7 @@ func speedtest1_begin_test(tls *libc.TLS, iTestNum int32, zTestName uintptr, va
|
||||
var zName uintptr
|
||||
var ap va_list
|
||||
_ = ap
|
||||
ap = va
|
||||
(ap) = va
|
||||
zName = sqlite3.Xsqlite3_vmprintf(tls, zTestName, ap)
|
||||
_ = ap
|
||||
n = int32(libc.Xstrlen(tls, zName))
|
||||
@@ -4547,7 +4660,7 @@ func speedtest1_exec(tls *libc.TLS, zFormat uintptr, va uintptr) { /* speedtest1
|
||||
var ap va_list
|
||||
_ = ap
|
||||
var zSql uintptr
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
if g.bSqlOnly != 0 {
|
||||
@@ -4579,7 +4692,7 @@ func speedtest1_once(tls *libc.TLS, zFormat uintptr, va uintptr) uintptr { /* sp
|
||||
// var pStmt uintptr at bp+16, 8
|
||||
|
||||
var zResult uintptr = uintptr(0)
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
if g.bSqlOnly != 0 {
|
||||
@@ -4610,7 +4723,7 @@ func speedtest1_prepare(tls *libc.TLS, zFormat uintptr, va uintptr) { /* speedte
|
||||
var ap va_list
|
||||
_ = ap
|
||||
var zSql uintptr
|
||||
ap = va
|
||||
(ap) = va
|
||||
zSql = sqlite3.Xsqlite3_vmprintf(tls, zFormat, ap)
|
||||
_ = ap
|
||||
if g.bSqlOnly != 0 {
|
||||
|
Reference in New Issue
Block a user