mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 07:47:28 -06:00
[chore]: Bump modernc.org/sqlite from 1.26.0 to 1.27.0 (#2339)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
41435a6c4e
commit
28f85db30a
20 changed files with 526 additions and 143 deletions
12
vendor/modernc.org/libc/mem.go
generated
vendored
12
vendor/modernc.org/libc/mem.go
generated
vendored
|
|
@ -86,6 +86,18 @@ func Xfree(t *TLS, p uintptr) {
|
|||
allocator.UintptrFree(p)
|
||||
}
|
||||
|
||||
func Xmalloc_usable_size(tls *TLS, p uintptr) (r types.Size_t) {
|
||||
if p == 0 {
|
||||
return 0
|
||||
}
|
||||
|
||||
allocMu.Lock()
|
||||
|
||||
defer allocMu.Unlock()
|
||||
|
||||
return types.Size_t(memory.UintptrUsableSize(p))
|
||||
}
|
||||
|
||||
func UsableSize(p uintptr) types.Size_t {
|
||||
allocMu.Lock()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue