Skip to content

Add shim for extern_proc's p_starttime. #8743

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
Apr 13, 2017
Merged

Add shim for extern_proc's p_starttime. #8743

merged 1 commit into from
Apr 13, 2017

Conversation

tkremenek
Copy link
Member

This constant is not imported by the ClangImporter:

#define p_starttime p_un.__p_starttime

Add a shim to do the same thing.

Fixes rdar://problem/31549450

This constant is not imported by the ClangImporter:

  #define p_starttime p_un.__p_starttime

Add a shim to do the same thing.

Fixes rdar://problem/31549450
@tkremenek
Copy link
Member Author

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 0f56bfa into swiftlang:master Apr 13, 2017
@tkremenek tkremenek deleted the rdar-31549450 branch April 13, 2017 17:51
// Macros defined in bsd/sys/proc.h that do not import into Swift.
extension extern_proc {
// #define p_starttime p_un.__p_starttime
@_transparent var p_starttime: timeval {
Copy link
Contributor

Choose a reason for hiding this comment

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

public is missing. :-(

Copy link
Contributor

Choose a reason for hiding this comment

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

Addressed here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Every time we think something's too simple to need tests…

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.

4 participants