Skip to content

Migrate from UnsafePointer<Void> to UnsafeRawPointer. #3773

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 10 commits into from
Jul 26, 2016
Merged

Migrate from UnsafePointer<Void> to UnsafeRawPointer. #3773

merged 10 commits into from
Jul 26, 2016

Conversation

atrick
Copy link
Contributor

@atrick atrick commented Jul 26, 2016

Previously:
#3724

The lldb errors on the linux bots were not related to these changes.

atrick added 10 commits July 26, 2016 13:01
As proposed in SE-0107: UnsafeRawPointer.

`void*` imports as `UnsafeMutableRawPointer`.
`const void*` imports as `UnsafeRawPointer`.

Occurrences of `UnsafePointer<Void>` are replaced with UnsafeRawPointer.
This requires explicit memory binding in several places,
particularly in NSData and CoreAudio.
This is unfortunately necessary for assignment between types imported from C.
@atrick
Copy link
Contributor Author

atrick commented Jul 26, 2016

@swift-ci Please smoke test OS X.

@atrick
Copy link
Contributor Author

atrick commented Jul 26, 2016

As proposed in SE-0107: UnsafeRawPointer.

Depends on corelibs-foundation PR:
swiftlang/swift-corelibs-foundation#478

@atrick
Copy link
Contributor Author

atrick commented Jul 26, 2016

This passes build-toolchain on both darwin and ubuntu with the above PR.
These are the same changes that were on master yesterday. The lldb failures were unrelated.

@atrick atrick merged commit a18d490 into swiftlang:master Jul 26, 2016
@atrick atrick deleted the rawptr-void branch September 11, 2016 03:05
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.

1 participant