CuriousTommy
ef09be6e9a
Merge pull request #6 from CKegel/Add_UTIs
...
CFURL and CFAttributedString patches for TextEdit
2024-02-03 13:00:13 -08:00
ckegel
464b2b4e47
Correct CFRunArrayItem
dictionary initialization.
2023-10-21 20:51:52 -04:00
ckegel
80a41ef752
Add kCFURLTypeIdentifierKey
to CFURL(and NSURL)
2023-10-21 20:51:52 -04:00
Ariel Abreu
aa4fa49413
Reserve the stret pointer argument GPR on x86_64
2023-10-16 17:23:30 -04:00
Ariel Abreu
571cb49a5b
NS{In,Out}putStream: Use CF{Read,Write}StreamCopyError
...
Not only is this simpler and more convenient, but this is also more
correct. With the old behavior, we were always returning an error, even
when no error was present (it was returned with code=0).
2023-10-13 09:48:04 -04:00
Ariel Abreu
a18cdf61b4
NSException: Re-enable stack tracing
...
This seems to be performant enough under Darling; besides, you shouldn't
be creating exceptions willy-nilly.
2023-10-13 09:44:02 -04:00
Ariel Abreu
97a6b2b2dd
Use mutable placeholder for __NSCFDictionary
...
The comment added in the code explains why this is necessary.
2023-10-13 09:42:54 -04:00
Ariel Abreu
736d629be1
Add localizedStringForLocaleIdentifier:
...
Xcode needs this and it's a very simple method to implement.
2023-10-07 11:01:38 -04:00
CuriousTommy
32af1dd140
Merge pull request #7 from darlinghq/fedora_38_fix
...
Fix Building For Fedora 38
2023-06-28 20:00:50 -07:00
Thomas A
55f68a394a
Update Submodule
2023-06-28 10:23:28 -07:00
Thomas A
f412466cac
Workaround incompatible-function-pointer-types Build Failures
2023-06-25 09:26:28 -07:00
Thomas A
b16f3de95c
Fix implicit-function-declaration
2023-06-19 11:36:44 -07:00
Thomas A
db263d6dd6
Fix swift-corelibs-foundation URL
2023-03-06 10:43:25 -08:00
Thomas A
6ef57d7c0b
update submodule
2023-01-24 13:09:59 -08:00
Thomas A
fcb9ede9b1
Add back kCFNumberFormatterOrdinalStyle
2023-01-24 10:34:44 -08:00
Thomas A
42ef489e4b
Use Header Files From swift-corelibs-foundation Project
...
While I was looking at Apple's SDK, I noticed that some of the headers files in CoreFoundation are from the
swift-corelibs-foundation project. So I decided to symbol link the header files that exist in that repo.
Interestingly, there are two header files (CFCGTypes.h and CFXMLNode.h) that are licensed under Apache License v2.0,
but are not included in the swift-corelibs-foundation. Not sure why Apple didn't include those files in the repo...
2022-12-18 17:42:09 -08:00
Thomas A
98c37dbb93
Add swift-corelibs-foundation submodule
2022-12-17 17:33:01 -08:00
Thomas A
6170542091
Fix int-conversion error
2022-11-20 11:55:42 -08:00
CuriousTommy
3e1c27049d
Merge pull request #5 from darlinghq/gen_developer_sdk
...
Generate SDK Headers
2022-09-05 20:15:53 -07:00
Thomas A
d0a3c3eb53
Generate Headers for CoreFoundation
2022-09-03 16:15:16 -07:00
Thomas A
e23692a114
Remove static keyword for __kCFBooleanTrue and __kCFBooleanFalse
...
Fixes #1191
See https://github.com/darlinghq/darling/issues/1191#issuecomment-1180585614 for explantion
2022-07-13 20:33:56 -07:00
Ariel Abreu
2d4d7361a8
Completely replace CFDate objects with NSDate
...
Apple's latest CF just dispatches all CFDate functions to NSDate, so we should do the same.
This fix is actually necessary because NSDate objects place their time interval in the same spot where CFDate objects have their CF info data. So 1) NSDate was actually not bridgable with CFDate, 2) with certain values for the time interval, calling CF functions on NSDate objects would mis-interpret the object as a CF object and cause all sorts of messes (such as mis-matched custom allocation indicators, leading to a HALT condition in CFRetain).
By the way, in case you're wondering, the value that triggered that bug was `647236405.47000003`.
2021-07-30 14:10:16 -04:00
Ariel Abreu
c2202d03c9
Move TFB superclass linking to Foundation
2021-06-29 11:20:21 -04:00
Ariel Abreu
5826b519ed
Remember to include CFFileDescriptor header
2021-06-28 23:32:27 -04:00
Ariel Abreu
a76ba9e1e9
NSMethodSignature's typeString should include size hints
...
...but NOT include extended type information
2021-05-19 00:22:28 -04:00
Ariel Abreu
23c43164be
Implement _classForObjectAtArgumentIndex
...
Also fix `_signatureForBlockAtArgumentIndex`; both these methods are supposed to have index 0 be the return type, just like `_argInfo`.
2021-05-06 10:22:04 -04:00
Ariel Abreu
1f64a32cfa
Populate the ObjC class table with __NSCFType by default
...
This is what the newest CoreFoundation does, and it means that we can now treat all CF objects like regular ObjC objects.
2021-05-05 15:47:55 -04:00
Ariel Abreu
4ff60df6c2
Implement getObjects:andKeys:count:
2021-05-05 15:46:57 -04:00
Ariel Abreu
1e120e065d
Implement block forwarding
2021-04-30 09:16:35 -04:00
Ariel Abreu
8e68fa7bf5
Fix ___CFConstantStringClassReference...
...
...by making it an alias to the symbol for `__NSCFConstantString`
2021-03-19 17:11:06 -04:00
Ariel Abreu
662888280d
Define _CFMZEnabled as a symbol
2021-03-04 22:04:31 -05:00
Lubos Dolezel
83dda11881
Add block-based NSTimer functionality
2021-03-03 22:32:36 +01:00
Ariel Abreu
dfdbfeb3fc
Implement a few new <x>withContentsOfURL:error:
methods
2021-01-07 00:05:23 -05:00
Ariel Abreu
eb27048b55
Fix for Clang 11+
2020-12-01 23:48:51 -05:00
Ariel Abreu
0b5e5ea202
Implement CFNotificationCenterGetDistributedCenter
...
Note that no one uses this notification center yet---which is perfectly valid behavior.
2020-08-28 23:17:11 -04:00
Ariel Abreu
54d606dd9a
Stub/implement CFPreferencesAppValueIsForced
and [NSError _setFileNameLocalizationEnabled:]
2020-08-27 22:10:24 -04:00
Ariel Abreu
5906c1c491
Add CF_CLOSED_ENUM and _CFMZEnabled plus some version definitions
2020-07-15 11:48:33 -04:00
Ariel Abreu
e6c6780355
Merge remote-tracking branch 'origin/master' into update-sources
2020-07-15 11:47:11 -04:00
Ariel Abreu
cefb42dff3
Add definition for CFRELEASE_IF_NOT_NULL
...
I'm actually not sure if this belongs here, but it doesn't look like it belongs anywhere else
2020-07-05 13:49:58 -04:00
Thomas A
7bc3e63f1a
Use Better Macro Check
2020-07-02 07:41:35 -07:00
Ariel Abreu
0222b9ee8e
Update to work with update objc runtime
2020-07-01 23:19:33 -04:00
Thomas A
e780581794
Don't Use *_stret Objective C Runtime for ARM64
...
objc_msgSendSuper_stret and objc_msgSend_stret does not exist for ARM64 platforms.
2020-06-30 21:17:56 -07:00
Thomas A
ea6e617c47
Add Generic Implementation For HALT
2020-06-30 21:14:23 -07:00
Ariel Abreu
553dbef124
Initial update to clean up include directories
...
"initial" because there might some additional modifications necessary later on
2020-05-14 12:57:39 -04:00
Lubos Dolezel
01585f999b
Build Apportable's CFStringTransform.c ( darlinghq/darling#781 )
2020-05-11 09:14:56 +02:00
Sergey Bugaev
2f5a05bc01
Rely on NSMethodSignature to provide ___forwarding___ with correct layout
...
Rather than trying to reimplement the same algorithm ourselves.
2020-05-01 18:27:11 +03:00
Sergey Bugaev
fa3b4a0ceb
Fix invocation register dump block size
...
The actual size is 0xe0, but CFForwarding should only subtract 0xd0 to account
for the return address and the frame pointer it pushes onto the stack.
2020-05-01 18:24:47 +03:00
Sergey Bugaev
561605027d
Implement -[NSInvocation invokeUsingIMP:] and invokeSuper
2020-05-01 18:18:33 +03:00
Sergey Bugaev
301a5a4af5
Ignore non-CFLocale locales
...
For compatibility reasons, locale is of type id, and you can pass
a dictionary there. If we are passed a dictionary, ignore it and
just use the current locale as we would when passed nil. This is
also what Apple's version does.
This fixes GNUstep defaults(1) segfaulting.
2020-04-25 18:31:56 +03:00
Lubos Dolezel
a1e76eb4cb
Add CF_SWIFT_NAME() macro
2020-04-19 21:58:52 +02:00