-
Notifications
You must be signed in to change notification settings - Fork 675
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
Add context module. #311
Conversation
|
||
#[derive(Clone, Copy)] | ||
pub struct UContext { | ||
context: libc::ucontext_t, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be ucontext
?
once you fix the |
The module wraps context handling related functions and structs.
📌 Commit fbe5696 has been approved by |
Add context module. The module wraps context handling related functions and structs.
☀️ Test successful - status |
The module wraps context handling related functions and structs.