Apple constant string updates

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13097 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-03-12 15:25:37 +00:00
parent 2f4791fdaf
commit 1199f0d2c1
5 changed files with 32 additions and 16 deletions

View file

@ -52,8 +52,11 @@
#include <base/Unicode.h>
/* Used by the Darwin/NeXT ObjC Runtime */
#ifdef NeXT_RUNTIME
/* Used by the Darwin/NeXT ObjC Runtime
until Apple Radar 2870817 is fixed. */
struct objc_class _NSConstantStringClassReference;
#endif
/*
* GSPlaceholderString - placeholder class for objects awaiting intialisation.
@ -3324,17 +3327,7 @@ transmute(ivars self, NSString *aString)
{
if (self == [NXConstantString class])
{
#if NeXT_RUNTIME
struct objc_class *ref = self;
#endif
behavior_class_add_class(self, [GSCString class]);
#if NeXT_RUNTIME
/* Set up a structure to represent the constant string class. All constant strings point to
this structure.
*/
_NSConstantStringClassReference = *ref;
#endif
}
}