mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 09:42:26 -05:00
[chore]: Bump modernc.org/sqlite from 1.28.0 to 1.29.2 (#2718)
This commit is contained in:
parent
ea0efb8094
commit
adb4cdcf6c
356 changed files with 2619858 additions and 1869411 deletions
16
vendor/modernc.org/libc/mem.go
generated
vendored
16
vendor/modernc.org/libc/mem.go
generated
vendored
|
|
@ -21,6 +21,9 @@ var (
|
|||
|
||||
// void *malloc(size_t size);
|
||||
func Xmalloc(t *TLS, n types.Size_t) uintptr {
|
||||
if __ccgo_strace {
|
||||
trc("t=%v n=%v, (%v:)", t, n, origin(2))
|
||||
}
|
||||
if n == 0 {
|
||||
return 0
|
||||
}
|
||||
|
|
@ -40,6 +43,9 @@ func Xmalloc(t *TLS, n types.Size_t) uintptr {
|
|||
|
||||
// void *calloc(size_t nmemb, size_t size);
|
||||
func Xcalloc(t *TLS, n, size types.Size_t) uintptr {
|
||||
if __ccgo_strace {
|
||||
trc("t=%v size=%v, (%v:)", t, size, origin(2))
|
||||
}
|
||||
rq := int(n * size)
|
||||
if rq == 0 {
|
||||
return 0
|
||||
|
|
@ -60,6 +66,9 @@ func Xcalloc(t *TLS, n, size types.Size_t) uintptr {
|
|||
|
||||
// void *realloc(void *ptr, size_t size);
|
||||
func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr {
|
||||
if __ccgo_strace {
|
||||
trc("t=%v ptr=%v size=%v, (%v:)", t, ptr, size, origin(2))
|
||||
}
|
||||
allocMu.Lock()
|
||||
|
||||
defer allocMu.Unlock()
|
||||
|
|
@ -75,6 +84,9 @@ func Xrealloc(t *TLS, ptr uintptr, size types.Size_t) uintptr {
|
|||
|
||||
// void free(void *ptr);
|
||||
func Xfree(t *TLS, p uintptr) {
|
||||
if __ccgo_strace {
|
||||
trc("t=%v p=%v, (%v:)", t, p, origin(2))
|
||||
}
|
||||
if p == 0 {
|
||||
return
|
||||
}
|
||||
|
|
@ -87,6 +99,10 @@ func Xfree(t *TLS, p uintptr) {
|
|||
}
|
||||
|
||||
func Xmalloc_usable_size(tls *TLS, p uintptr) (r types.Size_t) {
|
||||
if __ccgo_strace {
|
||||
trc("tls=%v p=%v, (%v:)", tls, p, origin(2))
|
||||
defer func() { trc("-> %v", r) }()
|
||||
}
|
||||
if p == 0 {
|
||||
return 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue