libs-base/Source/Additions
David Chisnall 7a80adeb9b A huge blob of changes to make -base build with libobjc2, without using the old libobjc2 headers.
Most of these changes involve simply removing direct manipulation of any runtime structures and replacing them with runtime function calls.  For example class->name becomes class_getName(class) and so on.

libobjc2, like the Apple runtime, the NeXT runtime, and every version of the Objective-C spec, calls the class pointer in id isa.  A few files now have #define class_pointer isa at the top.  This line replaces class_pointer in the old GNU libobjc headers with isa so either class_pointer or isa can be used for accessing the class of an object.  Note: object_getClass() should be used in most cases because, in some future version of the runtime, this will skip things like lock classes and other hidden classes (e.g. KVO classes).

All of the old forwarding stuff has been removed.  Most of this stuff followed convoluted code paths that ended with an exception.  A few simply broke in exciting ways.  Hopefully no one has used them for the last ten years or so, but we can bring them back with some #ifndef stuff if they're really needed by anyone.

There is currently a bug in configure, which prevents dladdr() from being detected, so you need to manually tweak config.h to build - I have not fixed the fall-back code in objc-load.m to work with libobjc2, I just added a new version that uses the loader's functionality directly.  

Although -base now builds, it builds with a lot of warnings.  <string.h> is missing from a lot of files, so memcpy() and strlen() generate implicit function declaration warnings.  

Additionally, libobjc2 does still provide the sel_{get,register}_*() functions, but they're wrappers around the newer API ones.  These are deprecated and are not exposed in the headers.  Although they work, we should be replacing them with the libobjc2 versions as soon as possible.

This incorporates a patch by Eric.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31265 72102866-910b-0410-8b05-ffd578937521
2010-09-09 15:06:09 +00:00
..
unicode Apply nextstep encoding fix by Georg Fleischmann 2009-06-04 07:48:34 +00:00
GCArray.m 64bit fixups 2010-03-08 07:06:47 +00:00
GCDictionary.m fixups for libobjc2 2010-02-25 18:49:31 +00:00
GCObject.m move GNUstep.h into common.h 2010-02-25 05:26:57 +00:00
GNUmakefile Attempt to support OpenStep style property lists on OSX 2010-06-01 09:43:28 +00:00
GSFunctions.m build additions with NO_GNUSTEP=1 2010-02-26 08:39:47 +00:00
GSInsensitiveDictionary.m further cleanup ... always use -zone method to get an object's zone ... 2010-03-05 09:30:18 +00:00
GSLock.m fixups for libobjc2 2010-02-25 18:49:31 +00:00
GSMime.m fix potential problem deleting header 2010-06-15 12:06:12 +00:00
GSObjCRuntime.m * Source/ObjectiveC2/runtime.h: 2010-09-08 20:30:19 +00:00
GSXML.m A huge blob of changes to make -base build with libobjc2, without using the old libobjc2 headers. 2010-09-09 15:06:09 +00:00
Makefile.preamble improve setting of warning flags 2010-03-11 08:08:08 +00:00
NSArray+GNUstepBase.m 64bit fixups 2010-03-08 07:06:47 +00:00
NSAttributedString+GNUstepBase.m further cleanup ... always use -zone method to get an object's zone ... 2010-03-05 09:30:18 +00:00
NSBundle+GNUstepBase.m Simplify header inclusion 2010-02-19 08:12:46 +00:00
NSCalendarDate+GNUstepBase.m Simplify header inclusion 2010-02-19 08:12:46 +00:00
NSData+GNUstepBase.m more missing includes 2010-02-26 08:56:26 +00:00
NSDebug+GNUstepBase.m Cleanup some deprecated code 2010-02-25 08:19:52 +00:00
NSError+GNUstepBase.m fixup for error logging 2010-07-03 05:54:56 +00:00
NSFileHandle+GNUstepBase.m fix OSX specific file to not build elsewhere 2010-04-23 15:59:50 +00:00
NSLock+GNUstepBase.m remove use of obsolete define 2010-02-25 05:09:44 +00:00
NSMutableString+GNUstepBase.m more missing includes 2010-02-26 08:56:26 +00:00
NSNumber+GNUstepBase.m replace deprecated method 2010-02-26 09:05:57 +00:00
NSObject+GNUstepBase.m build additions with NO_GNUSTEP=1 2010-02-26 08:39:47 +00:00
NSProcessInfo+GNUstepBase.m add missing include 2010-02-26 08:43:02 +00:00
NSPropertyList+GNUstepBase.m Attempt to support OpenStep style property lists on OSX 2010-06-01 09:43:28 +00:00
NSStream+GNUstepBase.m osx fixups 2010-03-12 14:01:36 +00:00
NSString+GNUstepBase.m Revert code which belongs in gdl2 rather than base 2010-05-31 07:18:54 +00:00
NSTask+GNUstepBase.m generalize define from __MINGW32__ to __MINGW__ 2010-03-19 12:10:11 +00:00
NSThread+GNUstepBase.m tweak for OSX build 2010-03-12 13:55:11 +00:00
NSURL+GNUstepBase.m Simplify header inclusion 2010-02-19 08:12:46 +00:00
Unicode.m fix bad indirection 2010-06-14 07:09:05 +00:00