Skip to content

Commit c94bfaf

Browse files
committed
generate: be a bit more specific about types and functions to skip
1 parent 008d2a4 commit c94bfaf

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

generate/function.go

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ var unhandledStructTypes = map[string]bool{
1818
"CFBinaryHeapCallBacks": true,
1919
"CFBinaryHeapCompareContext": true,
2020
"CFCalendarIdentifier": true,
21+
"CFDateFormatterKey": true,
2122
"CFDictionaryKeyCallBacks": true,
2223
"CFDictionaryValueCallBacks": true,
2324
"CFErrorDomain": true,
2425
"CFFileDescriptorContext": true,
2526
"CFLocaleIdentifier": true,
2627
"CFLocaleKey": true,
2728
"CFMachPortContext": true,
28-
"CFMachPortRef": true,
2929
"CFMessagePortContext": true,
3030
"CFMessagePortInvalidationCallBack": true,
31-
"CFPropertyListRef": true,
31+
"CFNumberFormatterKey": true,
3232
"CFRange": true,
3333
"CFRunLoopMode": true,
3434
"CFRunLoopObserverContext": true,
@@ -37,12 +37,11 @@ var unhandledStructTypes = map[string]bool{
3737
"CFSetCallBacks": true,
3838
"CFSocketContext": true,
3939
"CFSocketSignature": true,
40+
"CFStreamPropertyKey": true,
4041
"CFStringInlineBuffer": true,
41-
"CFStringRef": true,
4242
"CFSwappedFloat32": true,
4343
"CFSwappedFloat64": true,
4444
"CFTreeContext": true,
45-
"CFTypeRef": true,
4645
"CFUUIDBytes": true,
4746
"dispatch_queue_t": true, // for return values, not parameters
4847
"va_list": true,
@@ -53,10 +52,19 @@ func (db *Generator) ToFunction(fw string, sym Symbol) *codegen.Function {
5352
knownIssues := map[string]bool{
5453

5554
"CFCharacterSetIsLongCharacterMember": true, // "UTF32Char theChar"
55+
"CFStringGetCharactersPtr": true, // return handling
56+
"CFStringCreateWithFormat": true, // format param
57+
"CFStringAppendFormat": true, // format param
5658
"CFFileSecurityCopyAccessControlList": true, // "acl_t accessControlList"
5759
"CFFileSecuritySetAccessControlList": true, // "acl_t accessControlList"
60+
"CFMachPortGetInvalidationCallBack": true, // converting return value to function pointer
61+
"CFMachPortGetPort": true, // handling return of mach_port_t
5862
"CFStringAppendPascalString": true, // "ConstStr255Param pStr"
63+
"CFStringCreateWithPascalString": true, // StringPtr
64+
"CFStringCreateWithPascalStringNoCopy": true, // StringPtr
5965
"CFStringGetLongCharacterForSurrogatePair": true, // "UTF16Char surrogateHigh, UTF16Char surrogateLow"
66+
"CFStringGetPascalString": true, // StringPtr
67+
"CFStringGetPascalStringPtr": true, // StringPtr
6068
"CFStringGetSurrogatePairForLongCharacter": true, // "UTF32Char character"
6169
"CGColorSpaceCreateIndexed": true, // "const unsigned char *"
6270
"CGPDFArrayGetName": true, // "const char * _Nullable *"

0 commit comments

Comments
 (0)