(OBJC_VERSION): Move define to where it is needed.

(Runtime documenation references): Update links.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19458 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ayers 2004-06-04 13:58:36 +00:00
parent cf3354b37f
commit adcb9c12d5
2 changed files with 11 additions and 9 deletions

View file

@ -2,6 +2,8 @@
* Source/Additions/GSObjCRuntime.m (BDBGPrintf) New macro. * Source/Additions/GSObjCRuntime.m (BDBGPrintf) New macro.
(GSObjCAddClassBehavior, GSObjCAddMethods): Use new macro. (GSObjCAddClassBehavior, GSObjCAddMethods): Use new macro.
(OBJC_VERSION): Move define to where it is needed.
(Runtime documenation references): Update links.
* Source/GSSet.m (-[GSMutableSet unionSet:]): Remove redundant * Source/GSSet.m (-[GSMutableSet unionSet:]): Remove redundant
test. test.

View file

@ -412,17 +412,10 @@ GSClassList(Class *buffer, unsigned int max, BOOL clearCache)
return num; return num;
} }
/*
* NOTE - OBJC_VERSION needs to be defined to be the version of the
* Objective-C runtime you are using. You can find this in the file
* 'init.c' in the GNU objective-C runtime source.
*/
#define OBJC_VERSION 8
/** references: /** references:
http://www.macdevcenter.com/pub/a/mac/2002/05/31/runtime_parttwo.html?page=1 http://www.macdevcenter.com/pub/a/mac/2002/05/31/runtime_parttwo.html?page=1
http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/9objc_runtime_reference/_Adding_Classes.html http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/9objc_runtime_reference/chapter_5_section_1.html
http://developer.apple.com/techpubs/macosx/Cocoa/ObjectiveC/9objc_runtime_reference/_Class_Defi__Structures.html http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/9objc_runtime_reference/chapter_5_section_21.html
ObjcRuntimeUtilities.m by Nicola Pero ObjcRuntimeUtilities.m by Nicola Pero
**/ **/
@ -567,6 +560,13 @@ GSObjCAddClasses(NSArray *classes)
} }
} }
#else #else
/*
* NOTE - OBJC_VERSION needs to be defined to be the version of the
* Objective-C runtime you are using. You can find this in the file
* 'init.c' in the GNU objective-C runtime source.
*/
#define OBJC_VERSION 8
void void
GSObjCAddClasses(NSArray *classes) GSObjCAddClasses(NSArray *classes)
{ {