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

core/disasm: remove static variables #4214

Merged
merged 1 commit into from
Feb 12, 2024
Merged

core/disasm: remove static variables #4214

merged 1 commit into from
Feb 12, 2024

Conversation

XVilka
Copy link
Member

@XVilka XVilka commented Feb 12, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

A small cleanup. A downside - slightly worse performance of the disassembly.

Test plan

CI is green

Closing issues

Partially addresses #4055

@XVilka XVilka force-pushed the asan-remove-core-global branch 2 times, most recently from b5d01db to 1a761cd Compare February 12, 2024 08:27
@XVilka XVilka force-pushed the asan-remove-core-global branch 4 times, most recently from 1a63bc0 to 282573d Compare February 12, 2024 08:47
librz/core/cmd/cmd_print.c Outdated Show resolved Hide resolved
librz/core/cmd/cmd_print.c Outdated Show resolved Hide resolved
*
* It considers space, TAB, and newline characters as the whitespace
*/
RZ_API const char *rz_str_trim_head_ro(RZ_NONNULL const char *str) {
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 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) {
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

Copy link
Member

@wargio wargio left a comment

Choose a reason for hiding this comment

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

.

@XVilka XVilka requested a review from wargio February 12, 2024 13:06
@XVilka XVilka merged commit 3da3184 into dev Feb 12, 2024
47 checks passed
@XVilka XVilka deleted the asan-remove-core-global branch February 12, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants