mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
2f4791fdaf
commit
1199f0d2c1
5 changed files with 32 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue