Skip to content

[ASTGen] Use standard headers in bridging interface #68710

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

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Sep 22, 2023

For whatever reason, using standard headers in clang modules imported from Swift code (i.e. depending on Darwin overlay) is no longer an issue.

rdar://115438609

@rintaro
Copy link
Member Author

rintaro commented Sep 22, 2023

@swift-ci Please smoke test

long long JSON_array_getSize(void *arrayPtr);
void *JSON_array_getValue(void *arrayPtr, long long index);
size_t JSON_array_getSize(void *arrayPtr);
void *JSON_array_getValue(void *arrayPtr, size_t index);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be int64_t or was long long wrong?

Copy link
Member Author

@rintaro rintaro Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an index of the array element, since the argument of the operator[] is size_t, I thought we should use it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really meant both here - ie. both the getSize and the getValue. If it's the right thing, sure. I mostly just went through and checked for any inconsistencies.

@rintaro rintaro force-pushed the macros-darwin-swift branch from ead7317 to 51c0829 Compare September 22, 2023 22:42
@rintaro
Copy link
Member Author

rintaro commented Sep 22, 2023

@swift-ci Please smoke test

@rintaro rintaro force-pushed the macros-darwin-swift branch from 51c0829 to bfcf756 Compare September 24, 2023 15:02
@rintaro
Copy link
Member Author

rintaro commented Sep 24, 2023

@swift-ci Please smoke test

@rintaro rintaro force-pushed the macros-darwin-swift branch from bfcf756 to 42256b1 Compare September 24, 2023 15:09
@rintaro
Copy link
Member Author

rintaro commented Sep 24, 2023

@swift-ci Please smoke test

@rintaro rintaro force-pushed the macros-darwin-swift branch from 42256b1 to 292e76d Compare September 26, 2023 17:22
@rintaro
Copy link
Member Author

rintaro commented Sep 26, 2023

@swift-ci Please smoke test

@xedin xedin removed their request for review September 27, 2023 01:18
@rintaro rintaro force-pushed the macros-darwin-swift branch from 292e76d to 5f730f9 Compare September 29, 2023 16:14
@rintaro
Copy link
Member Author

rintaro commented Sep 29, 2023

@swift-ci Please smoke test

For whatever reason, using standard headers in modules imported from
Swift code (depending on Darwin overlay) is no longer an issue.
For whatever reason, using standard headers in modules imported from
Swift code (i.e. depending on Darwin overlay) is no longer an issue.

rdar://115438609
@rintaro rintaro force-pushed the macros-darwin-swift branch from 5f730f9 to 7ac5d65 Compare October 4, 2023 22:12
@rintaro
Copy link
Member Author

rintaro commented Oct 4, 2023

@swift-ci Please smoke test

@rintaro rintaro merged commit 37f5b43 into swiftlang:main Oct 5, 2023
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.

2 participants