Skip to content

Foundation: remove deprecated bzero #1942

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 1 commit into from
Feb 24, 2019
Merged

Conversation

compnerd
Copy link
Member

The bzero implementation is unnecessary as it is trivially
implementable by the "modern" memset API. Additionally, the use of
the type size_t causes trouble for Windows which tries to interpret it
as Foundation.size_t rather than ucrt.size_t which results in a
horrific deserialisation fatalError.

The `bzero` implementation is unnecessary as it is trivially
implementable by the "modern" `memset` API.  Additionally, the use of
the type `size_t` causes trouble for Windows which tries to interpret it
as `Foundation.size_t` rather than `ucrt.size_t` which results in a
horrific deserialisation fatalError.
@compnerd
Copy link
Member Author

CC: @gwynne @millenomi

@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

Seriously, why would anyone even go to the trouble of adding a shim instead of just using memset() in the first place?

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd compnerd merged commit 3acea80 into swiftlang:master Feb 24, 2019
@compnerd compnerd deleted the deprecated branch February 24, 2019 04:33
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