mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Refactor protocols.
This commit is contained in:
committed by
Christoffer Lerno
parent
f3e3aa231d
commit
99cfaa1583
@@ -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();
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module std::os::macos::cf @if(env::DARWIN);
|
||||
|
||||
def CFTypeRef = distinct void*;
|
||||
distinct CFTypeRef = void*;
|
||||
def CFIndex = isz;
|
||||
struct CFRange
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user