[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: things that fail to build with gcc and libobjc2
From: |
Richard Frith-Macdonald |
Subject: |
Re: things that fail to build with gcc and libobjc2 |
Date: |
Thu, 7 Apr 2011 12:33:11 +0100 |
On 7 Apr 2011, at 12:25, Wolfgang Lux wrote:
> Richard Frith-Macdonald wrote:
>
>>
>> On 6 Apr 2011, at 19:48, Wolfgang Lux wrote:
>>>
>>> I've updated STObjCRuntime.m in svn so that it now uses the Objective-C 2
>>> API with the exception of type selectors, which are a GNU extension and not
>>> part of Apple's runtime and thus the API. Compiling against libobjc2 you
>>> probably still will get deprecated warnings for them (I haven't tested it
>>> because I don't have libobjc2 installed anywhere), but given the number of
>>> warnings produced by StepTalk, these shouldn't matter much :-(
>>
>> And I've replaced the runtime specific typed selector code with the runtime
>> independent api we introduced about a decade ago.
>
> So obviously before I joined the project :-)
>
> BTW, I've found some other objective C functions in the StepTalk source (and
> as a matter of fact in Jigs as well), namely objc_sizeof_type,
> objc_alignof_type, and objc_skip_typespec, which also are not part of Apple's
> runtime. Looking at GSObjCRuntime.h, it looks like we don't have runtime
> independent replacements for these, do we?
We do ... those are all combined into a single portable function call
NSGetSizeAndAlignment() declared in Foundation/NSObjCRuntime.h
Incidentally, gnustep-base itsself is not completely 'clean' with respect to
the modern runtime yet, but I don't intend to hold up the release trying to
make it so.
- Re: things that fail to build with gcc and libobjc2, (continued)
RE: things that fail to build with gcc and libobjc2, Nicola Pero, 2011/04/06
Re: things that fail to build with gcc and libobjc2, Wolfgang Lux, 2011/04/06