Skip to content

swift-plugin-server: remove standard headers #68357

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

Closed
wants to merge 4 commits into from

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Sep 6, 2023

Redefine the types rather than use the standard headers due to the circular dependency between Darwin and Swift.

Redefine the types rather than use the standard headers due to the
circular dependency between Darwin and Swift.
@compnerd
Copy link
Member Author

compnerd commented Sep 6, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Sep 6, 2023

@swift-ci please test

Comment on lines 35 to 98
size_t PluginServer_read(const void *connHandle, void *data, size_t nbyte);
SwiftUInt PluginServer_read(const void *connHandle, void *data, SwiftUInt nbyte);

/// Write bytes to the IPC communication handle.
size_t PluginServer_write(const void *connHandle, const void *data, size_t nbyte);
SwiftUInt PluginServer_write(const void *connHandle, const void *data, SwiftUInt nbyte);
Copy link
Member

Choose a reason for hiding this comment

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

read and write can return negative values, so I believe we should use SwiftInt for the return values. For arguments, I don't really care, but you changed them to cast to Int https://github.com/apple/swift/pull/68268/files#diff-767b2b406807fd466b462821427b84772bdb1ddd27f3bea3781df7ec490ef2daL175-R196 So I think this should be SwiftInt as well?

@rintaro
Copy link
Member

rintaro commented Sep 6, 2023

@swift-ci Please smoke test

@rintaro
Copy link
Member

rintaro commented Sep 7, 2023

Moving to #68377

@rintaro rintaro closed this Sep 7, 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