mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 22:02:26 -05:00
[chore] Update bun / sqlite versions; update gtsmodels (#754)
* upstep bun and sqlite versions * allow specific columns to be updated in the db * only update necessary columns for user * bit tidier * only update necessary fields of media_attachment * only update relevant instance fields * update tests * update only specific account columns * use bool pointers on gtsmodels includes attachment, status, account, user * update columns more selectively * test all default fields on new account insert * updating remaining bools on gtsmodels * initialize pointer fields when extracting AP emoji * copy bools properly * add copyBoolPtr convenience function + test it * initialize false bool ptrs a bit more neatly
This commit is contained in:
parent
52fe681ba2
commit
ac6ed3d939
376 changed files with 337942 additions and 298092 deletions
32
vendor/modernc.org/libc/printf.go
generated
vendored
32
vendor/modernc.org/libc/printf.go
generated
vendored
|
@ -18,6 +18,7 @@ const (
|
|||
modH
|
||||
modL
|
||||
modLL
|
||||
modLD
|
||||
modQ
|
||||
modCapitalL
|
||||
modJ
|
||||
|
@ -167,7 +168,9 @@ more:
|
|||
format++
|
||||
var arg uint64
|
||||
switch mod {
|
||||
case modNone, modL, modLL, mod64:
|
||||
case modNone:
|
||||
arg = uint64(VaUint32(args))
|
||||
case modL, modLL, mod64:
|
||||
arg = VaUint64(args)
|
||||
case modH:
|
||||
arg = uint64(uint16(VaInt32(args)))
|
||||
|
@ -198,7 +201,9 @@ more:
|
|||
format++
|
||||
var arg uint64
|
||||
switch mod {
|
||||
case modNone, modL, modLL, mod64:
|
||||
case modNone:
|
||||
arg = uint64(VaUint32(args))
|
||||
case modL, modLL, mod64:
|
||||
arg = VaUint64(args)
|
||||
case modH:
|
||||
arg = uint64(uint16(VaInt32(args)))
|
||||
|
@ -280,7 +285,9 @@ more:
|
|||
format++
|
||||
var arg uint64
|
||||
switch mod {
|
||||
case modNone, modL, modLL, mod64:
|
||||
case modNone:
|
||||
arg = uint64(VaUint32(args))
|
||||
case modL, modLL, mod64:
|
||||
arg = VaUint64(args)
|
||||
case modH:
|
||||
arg = uint64(uint16(VaInt32(args)))
|
||||
|
@ -335,7 +342,7 @@ more:
|
|||
prec = 6
|
||||
}
|
||||
f := fmt.Sprintf("%s.%d%c", spec, prec, c)
|
||||
str = fmt.Sprintf(f, arg)
|
||||
str = fixNanInf(fmt.Sprintf(f, arg))
|
||||
case 'G':
|
||||
fallthrough
|
||||
case 'g':
|
||||
|
@ -356,7 +363,7 @@ more:
|
|||
}
|
||||
|
||||
f := fmt.Sprintf("%s.%d%c", spec, prec, c)
|
||||
str = fmt.Sprintf(f, arg)
|
||||
str = fixNanInf(fmt.Sprintf(f, arg))
|
||||
case 's':
|
||||
// If no l modifier is present: the const char * argument is expected to be a
|
||||
// pointer to an array of character type (pointer to a string). Characters
|
||||
|
@ -577,7 +584,9 @@ func parseLengthModifier(format uintptr) (_ uintptr, n int) {
|
|||
case 'q':
|
||||
panic(todo(""))
|
||||
case 'L':
|
||||
panic(todo(""))
|
||||
format++
|
||||
n = modLD
|
||||
return format, n
|
||||
case 'j':
|
||||
panic(todo(""))
|
||||
case 'z':
|
||||
|
@ -590,3 +599,14 @@ func parseLengthModifier(format uintptr) (_ uintptr, n int) {
|
|||
return format, 0
|
||||
}
|
||||
}
|
||||
|
||||
func fixNanInf(s string) string {
|
||||
switch s {
|
||||
case "NaN":
|
||||
return "nan"
|
||||
case "+Inf", "-Inf":
|
||||
return "inf"
|
||||
default:
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue