-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
core/disasm: remove static variables #4214
Conversation
b5d01db
to
1a761cd
Compare
1a63bc0
to
282573d
Compare
* | ||
* It considers space, TAB, and newline characters as the whitespace | ||
*/ | ||
RZ_API const char *rz_str_trim_head_ro(RZ_NONNULL const char *str) { |
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 really be named rz_str_first_non_whitespace
. i will open a PR after this is merged
* | ||
* It considers only space and TAB as the whitespace | ||
*/ | ||
RZ_API const char *rz_str_trim_head_wp(RZ_NONNULL const char *str) { |
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.
Same here.
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.
.
282573d
to
5e8481f
Compare
Your checklist for this pull request
Detailed description
A small cleanup. A downside - slightly worse performance of the disassembly.
Test plan
CI is green
Closing issues
Partially addresses #4055