Refactor protocols.

This commit is contained in:
Christoffer Lerno
2023-10-06 20:29:20 +02:00
committed by Christoffer Lerno
parent f3e3aa231d
commit 99cfaa1583
98 changed files with 756 additions and 590 deletions

View File

@@ -1,7 +1,7 @@
module std::os::macos::cf @if(env::DARWIN);
def CFAllocatorRef = distinct void*;
def CFAllocatorContextRef = distinct void*;
distinct CFAllocatorRef = void*;
distinct CFAllocatorContextRef = void*;
def CFOptionFlags = usz;
macro CFAllocatorRef default_allocator() => _macos_CFAllocatorGetDefault();

View File

@@ -1,8 +1,8 @@
module std::os::macos::cf @if(env::DARWIN);
def CFArrayRef = distinct void*;
def CFArrayCallBacksRef = distinct void*;
def CFMutableArrayRef = distinct void*;
distinct CFArrayRef = void*;
distinct CFArrayCallBacksRef = void*;
distinct CFMutableArrayRef = void*;
extern fn CFArrayRef _macos_CFArrayCreate(CFAllocatorRef allocator, void** values, CFIndex num_values, CFArrayCallBacksRef callBacks) @extern("CFArrayCreate");
extern fn CFArrayRef _macos_CFArrayCopy(CFAllocatorRef allocator, CFArrayRef array) @extern("CFArrayCopy");
extern fn CFIndex _macos_CFArrayGetCount(CFArrayRef array) @extern("CFArrayGetCount");

View File

@@ -1,6 +1,6 @@
module std::os::macos::cf @if(env::DARWIN);
def CFTypeRef = distinct void*;
distinct CFTypeRef = void*;
def CFIndex = isz;
struct CFRange
{

View File

@@ -1,9 +1,9 @@
module std::os::macos::objc @if(env::DARWIN);
def Class = distinct void*;
def Method = distinct void*;
def Ivar = distinct void*;
def Selector = distinct void*;
distinct Class = void*;
distinct Method = void*;
distinct Ivar = void*;
distinct Selector = void*;
fault ObjcFailure
{