mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 11:42:24 -06:00
bump to modernc.org/sqlite v1.29.7 (#2850)
This commit is contained in:
parent
c67bbe5ba0
commit
b3f2d44143
120 changed files with 631479 additions and 58069 deletions
19
vendor/modernc.org/libc/etc.go
generated
vendored
19
vendor/modernc.org/libc/etc.go
generated
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue