Fully type method implementatyion pointers.

This commit is contained in:
Richard Frith-Macdonald 2020-04-15 10:31:55 +01:00
parent 4e98c82396
commit 09e9354f08
8 changed files with 35 additions and 31 deletions

View file

@ -104,7 +104,7 @@
*/
static Class NSString_class;
static Class treeClass;
static IMP usImp;
static id (*usImp)(id, SEL, const char*);
static SEL usSel;
static xmlExternalEntityLoader originalLoader = NULL;
@ -166,7 +166,8 @@ setupCache()
xmlDefaultSAXHandlerInit();
NSString_class = [NSString class];
usSel = @selector(stringWithUTF8String:);
usImp = [NSString_class methodForSelector: usSel];
usImp = (id (*)(id, SEL, const char*))
[NSString_class methodForSelector: usSel];
treeClass = [GSTreeSAXHandler class];
}
}