bump to modernc.org/sqlite v1.29.7 (#2850)

This commit is contained in:
kim 2024-04-17 17:10:51 +01:00 committed by GitHub
commit b3f2d44143
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
120 changed files with 631479 additions and 58069 deletions

19
vendor/modernc.org/libc/etc.go generated vendored
View file

@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !(linux && (amd64 || loong64))
package libc // import "modernc.org/libc"
import (
@ -170,6 +172,10 @@ func removeObject(t uintptr) {
}
func (t *TLS) setErrno(err interface{}) {
if t == nil {
panic("nil TLS")
}
if memgrind {
if atomic.SwapInt32(&t.reentryGuard, 1) != 0 {
panic(todo("concurrent use of TLS instance %p", t))
@ -566,6 +572,19 @@ func VaUintptr(app *uintptr) uintptr {
return v
}
func getVaList(va uintptr) []string {
r := []string{}
for p := va; ; p += 8 {
st := *(*uintptr)(unsafe.Pointer(p))
if st == 0 {
return r
}
r = append(r, GoString(st))
}
return r
}
func roundup(n, to uintptr) uintptr {
if r := n % to; r != 0 {
return n + to - r