Skip to content

Align libobjc2 runtime function signatures with Apple’s documented API#374

Merged
davidchisnall merged 2 commits intognustep:masterfrom
FloofyPlasma:fix/apple-runtime-signature-compat
Feb 10, 2026
Merged

Align libobjc2 runtime function signatures with Apple’s documented API#374
davidchisnall merged 2 commits intognustep:masterfrom
FloofyPlasma:fix/apple-runtime-signature-compat

Conversation

@FloofyPlasma
Copy link
Contributor

This PR updates several Objective-C runtime function signatures to match Apple’s documented API, as discussed in #122.

The changes are limited to type corrections and do not alter runtime behavior or ABI. In particular:

  • class_getIvarLayout, class_setIvarLayout, and their weak variants now use const uint8_t * instead of const char *.
  • objc_lookUpClass and objc_getRequiredClass now return Class rather than id,.

Happy to adjust if there are preferred compatibility or annotation conventions.

@davidchisnall
Copy link
Member

Thanks! The class things returning id annoyed me for ages, but Apple compatibility required it. I’m glad they’ve fixed it!

@davidchisnall davidchisnall merged commit 62e3a80 into gnustep:master Feb 10, 2026
92 of 95 checks passed
@FloofyPlasma FloofyPlasma deleted the fix/apple-runtime-signature-compat branch February 10, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants