mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Minor modification for Apple runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7933 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e6c8161b8a
commit
e6573102f8
23 changed files with 294 additions and 111 deletions
|
@ -186,12 +186,12 @@ static Class GSUInlineStringClass = 0;
|
|||
static Class GSMStringClass = 0;
|
||||
static Class NXConstantStringClass = 0;
|
||||
|
||||
static SEL convertSel = @selector(canBeConvertedToEncoding:);
|
||||
static BOOL (*convertImp)(id, SEL, NSStringEncoding) = 0;
|
||||
static SEL equalSel = @selector(isEqualToString:);
|
||||
static BOOL (*equalImp)(id, SEL, id) = 0;
|
||||
static SEL hashSel = @selector(hash);
|
||||
static unsigned (*hashImp)(id, SEL) = 0;
|
||||
static SEL convertSel;
|
||||
static BOOL (*convertImp)(id, SEL, NSStringEncoding);
|
||||
static SEL equalSel;
|
||||
static BOOL (*equalImp)(id, SEL, id);
|
||||
static SEL hashSel;
|
||||
static unsigned (*hashImp)(id, SEL);
|
||||
|
||||
static NSStringEncoding defEnc = 0;
|
||||
|
||||
|
@ -220,10 +220,13 @@ setup()
|
|||
GSMStringClass = [GSMString class];
|
||||
NXConstantStringClass = [NXConstantString class];
|
||||
|
||||
convertSel = @selector(canBeConvertedToEncoding:);
|
||||
convertImp = (BOOL (*)(id, SEL, NSStringEncoding))
|
||||
[NSStringClass instanceMethodForSelector: convertSel];
|
||||
equalSel = @selector(isEqualToString:);
|
||||
equalImp = (BOOL (*)(id, SEL, id))
|
||||
[NSStringClass instanceMethodForSelector: equalSel];
|
||||
hashSel = @selector(hash);
|
||||
hashImp = (unsigned (*)(id, SEL))
|
||||
[NSStringClass instanceMethodForSelector: hashSel];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue