-
-
Notifications
You must be signed in to change notification settings - Fork 499
Refactor output mode to use type RzOutputMode and removed unused parts
#5815
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
base: dev
Are you sure you want to change the base?
Conversation
notxvilka
left a comment
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.
Nice, finally we are close to eliminating old modes completely!
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Rot127
left a comment
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.
Sorry, forgot to check the other two.
9643b81 to
d418aa4
Compare
d418aa4 to
43b48ae
Compare
Rot127
left a comment
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.
@wargio @notxvilka I would suggest to reduce this PR only to the RZ_OUTPUT_MODE_ part and do the stuff about exporting of some info in another one.
| } | ||
|
|
||
| /** | ||
| * \brief Export binary information from sdb to the core environment in set mode. |
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.
Please describe in more detail what the function actually does.
I'd recommend to use a debugger and step through it.
E.g. Exports what? Exports to where? Exports from what? Sets what and where.
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.
okay
| * | ||
| * \param core A non null Pointer to the RzCore instance | ||
| */ | ||
| RZ_API void rz_core_bin_print_format(RZ_NONNULL RzCore *core) { |
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.
Maybe the github search is broken again, but this function seems unused.
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.
As told I split the function into two and added a unit test , This functionality was used at rz-bin and was removed discussed in here
#discussion_r270505050
Your checklist for this pull request
RZ_APIfunction and struct this PR changes.RZ_API).Detailed description
The
int modetypes are replaced with theRzOutputMode modetype in the below file , this PR also removes the hardcoded macro's used instead ofRzOutputMode mode/librz/core/cbin.c
/librz/main/rz-bin.c
Test plan
All existing test passes
Closing issues
closes #489