Skip to content
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

Add context module. #311

Merged
merged 1 commit into from
Mar 17, 2016
Merged

Add context module. #311

merged 1 commit into from
Mar 17, 2016

Conversation

fiveop
Copy link
Contributor

@fiveop fiveop commented Mar 11, 2016

The module wraps context handling related functions and structs.


#[derive(Clone, Copy)]
pub struct UContext {
context: libc::ucontext_t,
Copy link
Member

Choose a reason for hiding this comment

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

for direct wrappers like this, I kind of prefer not naming the inner field, and just accessing it via .0. thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would not mind. Feel free to add a corresponding section to the CONVENTIONS, as you have already talked about in the other issue. We should also open a issue that tracks the refactoring process.

Unless we have public members in our structs anywhere, it will not even be a breaking change.

I will leave this unchanged until we have that convention merged into master.

Copy link
Member

Choose a reason for hiding this comment

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

sounds good!

// provides bindings for them.
#[cfg(all(target_os = "linux",
any(target_arch = "x86", target_arch = "x86_64")))]
pub mod context;
Copy link
Member

Choose a reason for hiding this comment

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

this should be ucontext?

@kamalmarhubi
Copy link
Member

once you fix the pub mod, r=me

The module wraps context handling related functions and structs.
@fiveop
Copy link
Contributor Author

fiveop commented Mar 17, 2016

@homu r=@kamalmarhubi

@homu
Copy link
Contributor

homu commented Mar 17, 2016

📌 Commit fbe5696 has been approved by @kamalmarhubi

@homu
Copy link
Contributor

homu commented Mar 17, 2016

⌛ Testing commit fbe5696 with merge bde2d88...

homu added a commit that referenced this pull request Mar 17, 2016
Add context module.

The module wraps context handling related functions and structs.
@homu
Copy link
Contributor

homu commented Mar 17, 2016

☀️ Test successful - status

@homu homu merged commit fbe5696 into nix-rust:master Mar 17, 2016
@fiveop fiveop deleted the context branch May 1, 2016 14:02
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.

None yet

3 participants