- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for CFAllocatorRef (0.11 sec)
-
src/cmd/fix/cftype.go
// This fix finds nils initializing these types and replaces the nils with 0s. func cftypefix(f *ast.File) bool { return typefix(f, func(s string) bool { return strings.HasPrefix(s, "C.") && strings.HasSuffix(s, "Ref") && s != "C.CFAllocatorRef" }) } // typefix replaces nil with 0 for all nils whose type, when passed to badType, returns true. func typefix(f *ast.File, badType func(string) bool) bool { if !imports(f, "C") { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0)