mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
`path::public_share_directory`, `path::templates_directory`, `path::saved_games_directory`, `path::music_directory`, `path::downloads_directory`. Fix codegen bug in expressions like `foo(x()) ?? io::EOF?` causing irregular crashes.
19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
module std::os::macos::cf @if(env::DARWIN) @link(env::DARWIN, "CoreFoundation.framework");
|
|
|
|
typedef CFArray = inline CFType;
|
|
alias CFArrayRef = CFArray*;
|
|
typedef CFArrayCallBacksRef = void*;
|
|
typedef CFMutableArray = inline CFArray;
|
|
typedef CFMutableArrayRef = CFMutableArray*;
|
|
|
|
extern fn CFIndex CFArray.getCount(&self) @extern("CFArrayGetCount");
|
|
extern fn void* CFArray.getValueAtIndex(&self, CFIndex i) @extern("CFArrayGetValueAtIndex");
|
|
|
|
extern fn CFArrayRef macos_CFArrayCreate(CFAllocatorRef allocator, void** values, CFIndex num_values, CFArrayCallBacksRef callBacks) @extern("CFArrayCreate") @builtin;
|
|
extern fn CFArrayRef macos_CFArrayCopy(CFAllocatorRef allocator, CFArrayRef array) @extern("CFArrayCopy") @builtin;
|
|
extern fn void CFMutableArray.appendArray(&self, CFArrayRef otherArray, CFRange otherRange) @extern("CFArrayAppendArray");
|
|
extern fn void CFMutableArray.appendValue(&self, void *value) @extern("CFArrayAppendValue");
|
|
|
|
extern fn CFMutableArrayRef macos_CFArrayCreateMutable(CFAllocatorRef allocator, CFIndex capacity, CFArrayCallBacksRef callBacks) @extern("CFArrayCreateMutable") @builtin;
|
|
|