[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CoreBase parse errors with ARC enabled
From: |
Jens Alfke |
Subject: |
Re: CoreBase parse errors with ARC enabled |
Date: |
Wed, 28 Jan 2015 09:23:42 -0800 |
Looks like the issue is with the declaration of CFString — here's the snippet
from CFBase.h:
> #if __OBJC__
> @class NSString;
> @class NSMutableString;
> typedef NSString * CFStringRef;
> typedef NSMutableString * CFMutableStringRef;
> #else
> typedef const struct __CFString * CFStringRef;
> typedef struct __CFString * CFMutableStringRef;
> #endif
This definitely isn't going to work with ARC, since it declares CFStringRef as
an Objective-C object and gets the compiler involved in the refcounting of
them. That causes trouble with the inline code in CFString.h, as I already
found, and of course it'll be incompatible with any CFString-using code being
ported from Apple platforms, which will be using manual CFRetain/CFRelease.
I can start messing with CFBase.h to remedy this, but I'm wondering if this is
just the tip of the iceberg. I was already worried about CoreBase being
numbered "0.1" and not being included in GNUstep … is it at all supported? Or
would I be taking on a big development task to get it to work with my code?
—Jens
Re: CoreBase parse errors with ARC enabled,
Jens Alfke <=