Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the CoreFoundation framework #471

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

samuelsleight
Copy link
Contributor

@samuelsleight samuelsleight commented Jun 24, 2023

This PR is a recreation of #400, to add the CoreFoundation framework

The steps to produce this were to add the requisite boilerplate, make the changes needed for the generated code to compile, make changes on a per-framework basis for all our existing frameworks to compile, and then to finally fix any remaining errors in the header translator output.

Going commit-by-commit should break this down into those steps nicely, and hopefully there should be nothing particularly controversial about this, though there will likely be some discussion points about specfic details

Only other thing to note is that I still have the same issue I've previously been having with my generated code, so I've not yet pushed up a submodule change to this PR pushed up the submodule change but expect the CI comparison to fail - I do however plan to start looking into resolving that next

@samuelsleight
Copy link
Contributor Author

Definitely should have added the GNUStep target to my local testing!

@madsmtm Is there a way to require some generated code be behind a feature flag? I can easily enough go and add #[cfg(feature = "apple")] to the requisite libc imports, but that wouldn't fix the generated code that uses those imports. Is there a way, or do I need to manually copy those into fixes and add them there?

@madsmtm
Copy link
Owner

madsmtm commented Jun 25, 2023

Just responding to GNUStep question, will look at the rest later.

I think you may be able to require the feature flag on functions/methods using a specific type by changing visit_required_types?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants