On 24 Jun 2018, at 21:28, Riccardo Mottola <riccardo.mott...@libero.it> wrote: > > The patch doesn't apply clean anymore, the code looks changed enough! > > there is no objc_test_class_flag(class, objc_class_flag_new_abi) anymore? > Where should I call objc_test_class_flag(class, objc_class_flag_new_abi)) > now? please check and perhaps update the patch to your changes, so I can test > it.
Ah, sorry. The newer structure of the runtime upgrades all class structures to the modern one in a single place. If you call objc_legacy_class_for_class() and it doesn’t return anything, then it’s a GNUstep ABIv2 class, but you shouldn’t need to do that - you can just unconditionally set the offset variable that dlsym finds to the correct offset, if it finds a symbol. David _______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep